Browse Source

reraise exception in celery beat.

Without this celery beat would exit with code 0 ("success") when beat.start throws an exception.
Simon Peeters 9 years ago
parent
commit
a0c3c12976
1 changed files with 1 additions and 0 deletions
  1. 1 0
      celery/apps/beat.py

+ 1 - 0
celery/apps/beat.py

@@ -116,6 +116,7 @@ class Beat(object):
             logger.critical('beat raised exception %s: %r',
                             exc.__class__, exc,
                             exc_info=True)
+            raise exc
 
     def init_loader(self):
         # Run the worker init handler.