浏览代码

reraise exception in celery beat.

Without this celery beat would exit with code 0 ("success") when beat.start throws an exception.
Simon Peeters 9 年之前
父节点
当前提交
a0c3c12976
共有 1 个文件被更改,包括 1 次插入0 次删除
  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.