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

Make the 'Enqueue all' button for Pending jobs optional #80

Merged
merged 3 commits into from May 2, 2017
Merged

Make the 'Enqueue all' button for Pending jobs optional #80

merged 3 commits into from May 2, 2017

Conversation

chrismear
Copy link
Contributor

Adds a setting, allow_requeue_pending, which, when set to false, removes the 'Enqueue all immediately' feature from the Pending jobs page.

If you're using the run_at attribute of Delayed::Jobs to intentionally set jobs to run at a particular time in the future, it's quite risky to have a button that schedules them all to run immediately. Being able to disable the button is a useful safety feature for apps that are using Delayed Job in this way.

@andyatkinson
Copy link
Collaborator

@chrismear Sorry this has been neglected so long. This seems like a reasonable change. You provided a good explanation of your use case, the code changes and a supporting test, and documentation. Do you think this is still safe to merge (in terms of potential regressions) and include as part of the next gem release?

@chrismear
Copy link
Contributor Author

@andyatkinson Yes, I think this is still safe to merge. Shouldn't change any existing behaviour. Let me know if there's anything I can do to help!

@andyatkinson andyatkinson merged commit 3278a2e into ejschmitt:master May 2, 2017
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.

None yet

2 participants