Explorar el 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 hace 9 años
padre
commit
a0c3c12976
Se han modificado 1 ficheros con 1 adiciones y 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.