question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature request] Function to remove all jobs from Queue including Repeatable

See original GitHub issue

With active development very often Queues accumulate many test jobs, especially when experimenting with delayed and repeatable jobs. But I can’t find the easy way to cleanup the Queue (excluding manual removing from Redis), to remove all jobs from Queue, including delayed and repeatable.

At now I see the drain() and clean() functions, but they didn’t remove the repeatable jobs.

Also exists the removeRepeatable() and removeRepeatableByKey(), but we need to know the name+options or key of each job to delete.

As result, there is not so easy to “cleanup” the queue, to start from scratch.

Will be good to have some function like cleanAll() or deleteQueue() to make “full cleanup” of named Queue, for remove all records about it jobs in database for this Queue, including delayed, repeatable, finished, etc.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
github-actions[bot]commented, Mar 18, 2021

🎉 This issue has been resolved in version 1.15.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

1reaction
manastcommented, Mar 17, 2021

I will prioritize this up since it is a common request!.

Read more comments on GitHub >

github_iconTop Results From Across the Web

remove specific repeatable jobs in bullmq (with jobid)
actual case is I've added a job into queue and then in some API call I need to remove that individual job from...
Read more >
Monitoring Jobs
For a job that has a repeating schedule, the Scheduler makes multiple entries in the job log—one for each job instance. Each log...
Read more >
Queues - Laravel - The PHP Framework For Web Artisans
When the job is actually handled, the queue system will automatically re-retrieve the full model instance and its loaded relationships from the database....
Read more >
A Deep Dive Into Laravel Queues - Honeybadger.io
This table will hold all the queued jobs until a worker processes them. Now, clear the storage/logs/laravel.log file and view the / route....
Read more >
What is service request management? A guide | Atlassian
Request fulfillment is the process of resolving a customer's service request and refers to managing the entire lifecycle of all service requests.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found