celery 任务不会终止

发布于 2024-12-07 17:40:20 字数 87 浏览 0 评论 0原文

我创建了一个任务,其中程序上传文件,并且任务按预期运行,即它成功上传文件,但即使在任务完成工作后,任务也不会“终止”,状态仍然保持待处理。我该如何解决这个问题?

I've created a task where the program uploads a file and the task acts as expected i.e it successfully uploads the file but even after the task does its work, the task does not "terminate", the state still remains PENDING. How can I fix this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

姜生凉生 2024-12-14 17:40:20

来自 celery 文档

PENDING:任务正在等待执行或未知。任何任务 ID 是
不知道意味着处于挂起状态。

您确定任务干净利落地完成了任务吗?最好贴出代码。

From the celery docs:

PENDING: Task is waiting for execution or unknown. Any task id that is
not know is implied to be in the pending state.

Are you sure the task finishes what it does cleanly? Best to post code.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文