Celery worker hangs without any error

后端 未结 3 2014
梦如初夏
梦如初夏 2021-01-31 06:06

I have a production setup for running celery workers for making a POST / GET request to remote service and storing result, It is handling load around 20k tasks per 15 min.

3条回答
  •  萌比男神i
    2021-01-31 07:03

    Follow this tutorial

    Celery Django Link

    Add the following to the settings

    NB Install redis for both transport and result

       # TRANSPORT
       CELERY_BROKER_TRANSPORT = 'redis'
       CELERY_BROKER_HOST = 'localhost'
       CELERY_BROKER_PORT = '6379'
       CELERY_BROKER_VHOST = '0'
    
       # RESULT
       CELERY_RESULT_BACKEND = 'redis'
       CELERY_REDIS_HOST = 'localhost'
       CELERY_REDIS_PORT = '6379'
       CELERY_REDIS_DB = '1'
    

提交回复
热议问题