Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Check celery config with command line

Tags:

celery

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.

like image 912
Baptiste Merliot Avatar asked Sep 03 '25 15:09

Baptiste Merliot


2 Answers

You can get that from celery inspect. Try this

celery -A app inspect report --timeout 10
like image 123
user3508329 Avatar answered Sep 05 '25 16:09

user3508329


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
like image 33
Baptiste Merliot Avatar answered Sep 05 '25 15:09

Baptiste Merliot



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!