芹菜中的线程3.1.5

时间:2013-11-22 16:11:37

标签: django celery django-celery

我正在尝试将我的django应用程序从celery 3.0.24移植到3.1.5,但我在执行包含其中包含线程的任务时遇到了麻烦。

3.0.23有效,但3.1.5我得到:

[2013-11-22 15:26:39,740: ERROR/MainProcess] Task tss.tasks.buildTileLayer[2dd1d834-0286-4a03-85b1-67ee682f26b3] raised exception: AssertionError('daemonic processes are not allowed to have children',)
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/celery/app/trace.py", line 218, in trace_task
R = retval = fun(*args, **kwargs)
  File "/usr/lib/python2.6/site-packages/celery/app/trace.py", line 398, in __protected_call__
return self.run(*args, **kwargs)
  File "/opt/tss2/software/tss_proj/tss/tasks.py", line 268, in buildTileLayer
render_tiles_test_2(origBbox, bbox, str(mapFilePath), str(tilesDirPathTmp), minZoom, maxZoom, shpName)
  File "/opt/tss2/software/tss_proj/tss/tiles_test_2.py", line 78, in render_tiles_test_2
render_thread.start()
  File "/usr/lib64/python2.6/multiprocessing/process.py", line 98, in start
'daemonic processes are not allowed to have children'
AssertionError: daemonic processes are not allowed to have children

我可能错过了一些新的配置变量吗?

1 个答案:

答案 0 :(得分:4)

GitHub上有关于此问题的票证:https://github.com/celery/celery/issues/1709