feat: scheduled job management — run now and postpone#40
Merged
Conversation
Adds ScheduledJobsController#update with PATCH /scheduled_jobs/:id. offset=now back-dates scheduled_at so the dispatcher picks the job up immediately; offset=1h/24h/7d pushes scheduled_at forward on both the execution and the job record. Turbo Stream removes the row on run-now and updates the scheduled_at cell in place on postpone. Run Now / +1h / +24h / +7d buttons appear in the scheduled-status row actions alongside the existing Discard button. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ScheduledJobsController#update(PATCH /scheduled_jobs/:id) with four offset options:now,1h,24h,7doffset=nowback-datesscheduled_atto 1 second ago so the Solid Queue dispatcher picks the job up on its next tickoffset=1h/24h/7dpushesscheduled_atforward by the chosen duration on both theScheduledExecutionrecord and the underlyingJobscheduled_atcell is updated in place on postponeTest plan
bundle exec rspec spec/requests/solid_queue_web/scheduled_jobs_spec.rb— all 11 examples passbundle exec rspec— full suite green, 100% coveragebundle exec rake— audit + rubocop + spec all pass/jobs/list?status=scheduled, confirm Run Now / +1h / +24h / +7d buttons appear only on the Scheduled tabscheduled_atcell updates in place with the new time🤖 Generated with Claude Code