首页 > 解决方案 > 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')

谁能帮我解决上述问题。我的芹菜任务不是一项长期任务。

标签: pythondjangocelery

解决方案


推荐阅读