Browse Source

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

Jonatan Heyman 13 năm trước cách đây
mục cha
commit
05b07431e5
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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: