I followed the recommendations at http://celeryq.org/docs/django-celery/getting-started/first-steps-with-django.html and created a view that calls my test method in tasks.py:
import time from celery.decorators import task @task() def add(x, y): time.sleep(10) return x + y
But if my add-method takes a long time to answer, how can I save the result object that I got when I called add.delay (1,2) and use it to check progress / success / result using get later
django view celery
Weholt
source share