sequoia
sequoia

Reputation: 3165

How can I use Ajax to check the status and result of a django-celery task?

The Django Celery documentation suggests there are URLs I can check to get the status of a task. What are these URLs?

Upvotes: 4

Views: 1934

Answers (1)

David Wolever
David Wolever

Reputation: 154494

To access these URLs, you need to include them from one of your urls.py files. For example:

urlpatterns = patterns('',
    url('^tasks/', include('djcelery.urls')),
)

You would then access them using, for example, http://example.com/tasks/{{ task_id }}/status/.

Upvotes: 6

Related Questions