Threads in celery 3.1.5



我正试图将我的django应用程序从celeb3.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

我可能缺少一些新的配置变量吗?

GitHub上有一张关于这个问题的罚单:https://github.com/celery/celery/issues/1709.

相关内容

  • 没有找到相关文章

最新更新