当前位置:   article > 正文

mac python意外退出celeryTask handler raised error: WorkerLostError(‘Worker exited prematurely: signal 6_task handler raised error: workerlosterror('worker

task handler raised error: workerlosterror('worker exited prematurely: signa

Python 意外退出 解决办法:celery work 后面加 --pool solo
objc[2065]: +[NSApplication initialize] may have been in progress in another thread when fork() was called.
objc[2065]: +[NSApplication initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug.
[2021-04-20 15:41:31,591: ERROR/MainProcess] Process ‘ForkPoolWorker-15’ pid:2065 exited with ‘signal 6 (SIGABRT)’
[2021-04-20 15:41:31,644: ERROR/MainProcess] Task handler raised error: WorkerLostError(‘Worker exited prematurely: signal 6 (SIGABRT) Job: 1.’)
Traceback (most recent call last):
File “/Users/e/PycharmProjects/api/venv/lib/python3.8/site-packages/billiard/pool.py”, line 1265, in mark_as_worker_lost
raise WorkerLostError(
billiard.exceptions.WorkerLostError: Worker exited prematurely: signal 6 (SIGABRT) Job: 1.

objc[2065]: +[NSApplication initialize] may have been in progress in another thread when fork() was called.
objc[2065]: +[NSApplication initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug.
[2021-04-20 15:41:31,591: ERROR/MainProcess] Process 'ForkPoolWorker-15' pid:2065 exited with 'signal 6 (SIGABRT)'
[2021-04-20 15:41:31,644: ERROR/MainProcess] Task handler raised error: WorkerLostError('Worker exited prematurely: signal 6 (SIGABRT) Job: 1.')
Traceback (most recent call last):
  File "/Users/macbook/PycharmProjects/kprapi/venv/lib/python3.8/site-packages/billiard/pool.py", line 1265, in mark_as_worker_lost
    raise WorkerLostError(
billiard.exceptions.WorkerLostError: Worker exited prematurely: signal 6 (SIGABRT) Job: 1.
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
celery -A cerely_tasks.tasks worker --loglevel=info 后面加 --pool solo
celery -A cerely_tasks.tasks worker --loglevel=info --pool solo
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/笔触狂放9/article/detail/100796
推荐阅读
相关标签
  

闽ICP备14008679号