Skip to content

feat(crons): Monitor resque-scheduler schedules - #3142

Draft
wedamija wants to merge 4 commits into
masterfrom
danf/resque-scheduler-crons
Draft

wedamija wants to merge 4 commits into
masterfrom
danf/resque-scheduler-crons

Conversation

@wedamija

@wedamija wedamija commented Oct 17, 2026 •

Copy link
Copy Markdown
Member

Part of a series adding automatic Crons monitoring for the most-used job schedulers in each SDK. Check-ins for a monitor that doesn't exist yet are dropped, so today each monitor has to be created by hand with its schedule copied from the code. Sending the job's schedule as the monitor config lets Sentry create the monitor and keep it in sync.

This adds a :resque_scheduler patch to sentry-resque that sends check-ins for every resque-scheduler cron and every schedule, static or dynamic. Each schedule name becomes a monitor slug, and the schedule and its time zone are sent as the monitor config. The check-ins wrap the job's run on the worker.

config.enabled_patches << :resque_scheduler
config.resque.exclude_scheduled_jobs = ["clear_cache", /^tmp_/]

Schedules Crons can't express, like every 10 seconds, check in without a config. With the :rufus_scheduler patch from #3110 also on, resque-scheduler's jobs are reported once, by this patch.

The patch is off by default. resque-scheduler is added as a dev dependency for the specs.

Stacked on #3141.

@wedamija wedamija changed the title feat(crons): Add resque-scheduler monitoring feat(crons): Monitor resque-scheduler schedules Oct 20, 2026
Base automatically changed from danf/cron-fugit-config to master October 21, 2026 14:23
Comment thread sentry-resque/lib/sentry/resque/scheduler.rb Fixed
@wedamija
wedamija force-pushed the danf/resque-scheduler-crons branch from 3b053fb to 5a95460 Compare October 21, 2026 16:12
@linear-code

linear-code Bot commented Oct 21, 2026

Copy link
Copy Markdown

RUBY-235

wedamija and others added 4 commits October 21, 2026 14:40
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
@wedamija
wedamija force-pushed the danf/resque-scheduler-crons branch from 5a95460 to 42603a0 Compare October 21, 2026 21:43
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