Bogdanp / django_dramatiq

A Django app that integrates with Dramatiq.
https://dramatiq.io
Other
331 stars 77 forks source link

delete all tasks #7

Closed djarum-black closed 6 years ago

djarum-black commented 6 years ago

Is there a way to delete all tasks and remove them from the queue?

Bogdanp commented 6 years ago

On RabbitMQ you can use the management interface to purge a queue and on Redis you can run

del dramatiq:some-queue-name dramatiq:some-queue-name.msgs dramatiq:some-queue-name.acks

or do a keys dramatiq:* then delete all the resulting keys, but there is no built-in way to do this with Dramatiq.