简体   繁体   中英

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?

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/ .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM