Browse Source

Make sure celeryd exits gracefully.

Ask Solem 16 years ago
parent
commit
171f7fd112
1 changed files with 1 additions and 1 deletions
  1. 1 1
      celery/worker/__init__.py

+ 1 - 1
celery/worker/__init__.py

@@ -135,7 +135,7 @@ class WorkController(object):
 
         try:
             self.amqp_listener.start()
-        except (SystemExit, KeyboardInterrupt):
+        finally:
             self.shutdown()
 
     def process_task(self, task):