赞
踩
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.
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。