소스 검색

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.