celery 监控相应的命令
celery worker --app=proj -l info (指定项目的文件夹)
celery worker -A proj.tasks -l info (执定项目下的任务文件tasks)
celery -A tasks status

image.png
celery -A tasks result -t tasks.mysql befb9972-b29f-4fd5-b1ad-130a5e05cc31

image.png
celery -A tasks inspect active

image.png
celery inspect scheduled

image.png
celery -A tasks inspect revoked

image.png
celery -A tasks inspect registered

image.png
celery -A tasks inspect stats

image.png
celery control enable_events
celery control disable_events

image.png
默认 inspect 和 control 操作所有的worker 可以用 -d 指定 要操控的worker
celery -A tasks inspect -d celery@204docker5 stats
网友评论