Explorar el Código

Set PeriodicWorkController/Mediator as daemon threads.

Ask Solem hace 16 años
padre
commit
0ce532c68c
Se han modificado 1 ficheros con 1 adiciones y 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.