Explorar el Código

celeryd: Use multiprocesing.freeze_support()

Ask Solem hace 14 años
padre
commit
c863769ee2
Se han modificado 2 ficheros con 3 adiciones y 0 borrados
  1. 2 0
      bin/celeryd
  2. 1 0
      celery/bin/celeryd.py

+ 2 - 0
bin/celeryd

@@ -26,4 +26,6 @@ def main():
     celeryd.run_worker(**vars(options))
 
 if __name__ == "__main__":
+    import multiprocessing
+    multiprocessing.freeze_support()
     main()

+ 1 - 0
celery/bin/celeryd.py

@@ -420,6 +420,7 @@ def run_worker(**options):
 
 
 def main():
+    multiprocessing.freeze_support()
     options = parse_options(sys.argv[1:])
     return run_worker(**vars(options))