Removing Jobs
Currently we have 3 available methods in queue class:
Drain
Removes all jobs that are waiting or delayed, but not active, waiting-children, completed or failed.
Parent jobs that belong to the queue being drained will be kept in waiting-children status if they have pending children, but if they do not have any pending children they will just be removed.
Parent jobs in queues different from the one being drained will either stay in waiting-children if they have pending children in other queues, or just moved to wait.
Clean
Removes jobs in a specific state, but keeps jobs within a certain grace period.
Obliterate
Completely obliterates a queue and all of its contents.
Parent jobs in queues different from the one being obliterated will either stay in waiting-children if they have pending children in other queues, or just moved to wait.
Read more:
Last updated