如何使用 Ajax 检查 django-celery 任务的状态和结果?
Django Celery 文档 建议我可以检查一些 URL 以获取任务的状态。这些 URL 是什么?
The Django Celery documentation suggests there are URLs I can check to get the status of a task. What are these URLs?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
要访问这些 URL,您需要将它们包含在
urls.py
文件之一中。例如:然后您可以使用
http://example.com/tasks/{{ task_id }}/status/
来访问它们。To access these URLs, you need to include them from one of your
urls.py
files. For example:You would then access them using, for example,
http://example.com/tasks/{{ task_id }}/status/
.