Detect whether Celery is Available/Running

后端 未结 7 533
遥遥无期
遥遥无期 2020-12-04 12:09

I\'m using Celery to manage asynchronous tasks. Occasionally, however, the celery process goes down which causes none of the tasks to get executed. I would like to be able t

7条回答
  •  不思量自难忘°
    2020-12-04 12:47

    You can use ping method to check whether any worker (or specific worker) is alive or not
    https://docs.celeryproject.org/en/latest/_modules/celery/app/control.html#Control.ping

    celey_app.control.ping()

提交回复
热议问题