Sfoglia il codice sorgente

Fix for getting a stacktrace when shutting down celery with eventlet worker pool

Jonatan Heyman 13 anni fa
parent
commit
05b07431e5
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      celery/worker/__init__.py

+ 2 - 0
celery/worker/__init__.py

@@ -253,6 +253,8 @@ class WorkController(object):
         except SystemTerminate:
             self.terminate()
             raise
+        except SystemExit, e:
+            self.terminate()
         except:
             self.stop()
             try: