Detect whether Celery is Available/Running

后端 未结 7 530
遥遥无期
遥遥无期 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:38

    To check the same using command line in case celery is running as daemon,

    • Activate virtualenv and go to the dir where the 'app' is
    • Now run : celery -A [app_name] status
    • It will show if celery is up or not plus no. of nodes online

    Source: http://michal.karzynski.pl/blog/2014/05/18/setting-up-an-asynchronous-task-queue-for-django-using-celery-redis/

提交回复
热议问题