python - django celery 显示错误 -- Process "ForkPoolWorker-1" pid:41 exited with "exitcode 70"
问题描述
我的 django 中有一个 celery 计划任务,它在下午 4 点运行。执行此计划任务后,它运行顺利,没有显示任何错误。昨天我的芹菜任务由于以下错误而失败
Process "ForkPoolWorker-1" pid:41
exited with "exitcode 70"
Task handler raised error:
WorkerLostError('Worker exited
prematurely: exitcode 70 Job: 1.')`
我不知道为什么会出现这个错误。我在用
Django==3.2.4
celery==5.1.2
一些贬值警告也出现了
version 6.0.0. Use the accept_content
instead
The 'CELERY_TIMEZONE' setting is
deprecated and scheduled for removal
in alternative=f'Use the
{_TO_NEW_KEY[setting]} instead')
谁能帮我解决上述问题。我的芹菜任务不是一项长期任务。
解决方案
推荐阅读
- javascript - Office.js 在搜索中转义特殊字符
- swift - 从“(键:字符串,值:NSObject)”转换为不相关的类型“字典”
' 总是失败 - php - 如何在html中包含perl脚本
- java - LOG4J:lo4j.xml 中的错误
- django - 在 Django DRFs 的 `ListCreateAPIView` POST 方法中,我们如何获取模型字段的 pk?
- django - 在 django rest 中制作 /one/{id}/two
- python - 从批处理(.bat)文件运行几个 cmd 命令
- android-fragments - 片段无法加载
- java - 无法执行 jar 文件:缺少 mainclass 属性 Intellij Gradle
- robotframework - 机器人框架 - 从文件中提取测试用例