celery的超时和kill引起的异常

1)终止进程引起的错误:
WorkerLostError:

697a0d6553dc] raised unexpected: WorkerLostError('Worker exited prematurely: signal 9 (SIGKILL).',)
 13:20:15 : Traceback (most recent call last):
 13:20:15 : File "/usr/lib/python2.7/site-packages/xxx/lib/site-packages/billiard/pool.py", line 1175, in mark_as_worker_lost
 13:20:15: human_status(exitcode)),
 13:20:15: WorkerLostError: Worker exited prematurely: signal 9 (SIGKILL)

.

2 超时引起的错误
SoftTimeLimitExceeded

 15:34:50 [21350]: task_class.run(pk,**kwargs)
15:34:50 [21350]: File "/usr/lib/python2.7/site-packages/xxx.py", line 310, in run
 15:34:50 [21350]: raise RuntimeError(str(e))
 15:34:50 e[21350]: RuntimeError: SoftTimeLimitExceeded()

celery的异常文件中 celery.exceptions有以上个异常的定义

发表评论

您的电子邮箱地址不会被公开。