Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete all failed jobs #629

Merged
merged 4 commits into from
Nov 21, 2023
Merged

Delete all failed jobs #629

merged 4 commits into from
Nov 21, 2023

Conversation

chromium7
Copy link
Contributor

Deleting failed jobs in the admin page currently can only be done per page, which can get quite tedious when there are a lot of failed jobs.

delete_jobs.mp4

@chromium7 chromium7 marked this pull request as ready for review November 16, 2023 05:12
# Confirmation received
for job_id in job_ids:
try:
job = Job.fetch(job_id, connection=queue.connection)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mind using Job.fetch_many()?

@selwin selwin merged commit 3b86ca2 into rq:master Nov 21, 2023
@chromium7 chromium7 deleted the clear_failed_registry branch November 22, 2023 03:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants