浏览代码

Set PeriodicWorkController/Mediator as daemon threads.

Ask Solem 16 年之前
父节点
当前提交
0ce532c68c
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      celery/worker/controllers.py

+ 1 - 0
celery/worker/controllers.py

@@ -23,6 +23,7 @@ class InfinityThread(threading.Thread):
         super(InfinityThread, self).__init__()
         self._shutdown = threading.Event()
         self._stopped = threading.Event()
+        self.setDaemon(True)
 
     def run(self):
         """This is the body of the thread.