Преглед на файлове

celeryd: Don't re-raise from new stack

Ask Solem преди 14 години
родител
ревизия
dd02305c68
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      celery/worker/__init__.py

+ 2 - 2
celery/worker/__init__.py

@@ -250,10 +250,10 @@ class WorkController(object):
                 blocking(component.start)
         except SystemTerminate:
             self.terminate()
-            raise SystemExit()
+            raise
         except BaseException, exc:
             self.stop()
-            raise exc
+            raise
 
     def process_task(self, request):
         """Process task by sending it to the pool of workers."""