Explorar o código

reraise exception in celery beat.

Without this celery beat would exit with code 0 ("success") when beat.start throws an exception.
Simon Peeters %!s(int64=9) %!d(string=hai) anos
pai
achega
a0c3c12976
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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.