Explorar o código

Set PeriodicWorkController/Mediator as daemon threads.

Ask Solem %!s(int64=16) %!d(string=hai) anos
pai
achega
0ce532c68c
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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.