Baptiste Merliot
Baptiste Merliot

Reputation: 861

Check celery config with command line

I have celery running in a docker container and I want to check that the option CELERY_TASK_RESULT_EXPIRES = '3600' has been applied.

I tried using celery inspect conf and celery inspect stats but the commands never end. Other than that celery is running fine and doing its work.

Upvotes: 4

Views: 4307

Answers (2)

user3508329
user3508329

Reputation: 101

You can get that from celery inspect. Try this

celery -A app inspect report --timeout 10

Upvotes: 10

Baptiste Merliot
Baptiste Merliot

Reputation: 861

Found flower. It is installed with

pip install flower
flower -A celery-app-name --port=5555

And then celery can be accessed via REST API. The following will give the workers config

curl -w "\n" http://localhost:5555/api/workers

Upvotes: 2

Related Questions