【问题标题】:Notification from Celery when it cannot connect to broker?无法连接到代理时来自 Celery 的通知?
【发布时间】:2014-04-02 19:18:55
【问题描述】:

我有一个 celery 设置,并且使用 rabbitmq 作为代理运行良好。我的设置中也有 CELERY_SEND_TASK_ERROR_EMAILS=True 。如果出现异常,我会收到电子邮件 执行任务时抛出,这很好。

我的问题是 celery 或 rabbitmq 是否有办法在无法建立代理连接时从 celery 接收错误通知,或者如果 rabbitmq-server 正在运行时停止接收来自 rabbitmq 本身的错误通知。

【问题讨论】:

    标签: python django rabbitmq celery ubuntu-server


    【解决方案1】:

    我认为适合这项工作的工具是process control system like supervisord,它启动/监视进程,并可以在这些进程死亡或重新启动时触发事件。更具体地说,使用插件superlance,您可以send an email when a process dies

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-04-27
      • 2020-05-31
      • 1970-01-01
      • 1970-01-01
      • 2017-11-29
      • 1970-01-01
      • 1970-01-01
      • 2013-04-17
      相关资源
      最近更新 更多