简体   繁体   中英

Search and selectively remove tasks from Celery

I want to clean up my celery queues. How can I search the tasks by their types arguments and the selectively remove some of them? I am using Redis as a broker if that matters; I prefer to not deal with this at the Redis level though.

The only option I see here is using coding directly using the Kombu library that is what Celery uses as AMQP a library that can dialogue with all the supported broker in an abstract way including Redis. I will anyway discourage this practice as often the need of cleanup queue is an outcome of bad design.

Regards

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM