here is my code:
my task
from celery.decorators import task
@task()
def add(x, y):
return x + y
using my tasks
from core.tasks import add
results = []
for i in range(100):
results.append(add.delay(i, i))
problem 1
after a few seconds I do the following:
for result in results:
print result.result
prints this:
(values are not returned in what looks like a template)
None
None
None
None
8
None
None
None
None
18
None
None
None
None
28
None
None
None
None
38
...
The second installation of Windows OS + installation:
everything works as expected, still not sure what happened here ...
Tasks are also accidentally missing from the Django admin interface ...
Does anyone know what is going on ?: |
source
share