Przeglądaj źródła

Disable execv by default

Ask Solem 12 lat temu
rodzic
commit
2887be0daf
2 zmienionych plików z 2 dodań i 2 usunięć
  1. 1 1
      celery/app/defaults.py
  2. 1 1
      celery/worker/__init__.py

+ 1 - 1
celery/app/defaults.py

@@ -169,7 +169,7 @@ NAMESPACES = {
         'CONCURRENCY': Option(0, type='int'),
         'TIMER': Option(type='string'),
         'TIMER_PRECISION': Option(1.0, type='float'),
-        'FORCE_EXECV': Option(True, type='bool'),
+        'FORCE_EXECV': Option(False, type='bool'),
         'HIJACK_ROOT_LOGGER': Option(True, type='bool'),
         'CONSUMER': Option(type='string'),
         'LOG_FORMAT': Option(DEFAULT_PROCESS_LOG_FMT),

+ 1 - 1
celery/worker/__init__.py

@@ -150,7 +150,7 @@ class Pool(bootsteps.StartStopComponent):
     def create(self, w, semaphore=None, max_restarts=None):
         threaded = not w.use_eventloop
         procs = w.min_concurrency
-        forking_enable = not threaded or (w.no_execv or not w.force_execv)
+        forking_enable = w.no_execv or not w.force_execv
         if not threaded:
             semaphore = w.semaphore = BoundedSemaphore(procs)
             max_restarts = 100