Prompt
Sidekiq scheduled jobs
Latest observation
Oct 24, 2026
OpenAI APIWeb search: off
In Sidekiq, scheduled jobs are jobs that are queued to run at a specific future time rather than immediately.
Basic idea
You enqueue a job with a delay, and Sidekiq stores it in its scheduled set until the time arrives. Then it moves the job into the normal queue for processing.
Example
MyWorker.perform_in(10.minutes, user_id)
or
MyWorker.perform_at(2.hours.from_now, user_id)
What’s the difference?
perform_in(interval, args...)→ run after a relative delayperform_at(timestamp, args...)→ run at an absolute time
Important notes
- Scheduled jobs are stored in Redis
- A Sidekiq process periodically checks the scheduled set and moves due jobs to queues
- Execution is not exact to the second; there can be a small delay
- If you need recurring jobs, use something like:
- sidekiq-cron
- sidekiq-scheduler
Example worker
class MyWorker
include Sidekiq::Worker
def perform(user_id)
User.find(user_id).do_something
end
end
Schedule it:
MyWorker.perform_in(5.minutes, 123)
Monitoring
In the Sidekiq Web UI, scheduled jobs appear under:
- Scheduled
If you want, I can also show:
- how scheduled jobs are stored internally in Redis,
- how to cancel a scheduled job, or
- how to set up recurring jobs.