Browse Source

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

Jonatan Heyman 13 years ago
parent
commit
05b07431e5
1 changed files with 2 additions and 0 deletions
  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: