Skip to content

feat(crons): Add rufus-scheduler cron monitoring - #3110

Draft
wedamija wants to merge 1 commit into
masterfrom
danf/rufus-scheduler-crons
Draft

wedamija wants to merge 1 commit into
masterfrom
danf/rufus-scheduler-crons

Conversation

@wedamija

@wedamija wedamija commented Oct 3, 2026

Copy link
Copy Markdown
Member

Adds an opt-in :rufus_scheduler patch (config.enabled_patches << :rufus_scheduler) that sends Crons check-ins around rufus-scheduler jobs: in_progress before the block, then ok or error with duration. Errors are still handed to rufus's on_error.

  • cron: crontab rebuilt from fugit's parsed fields, plus the line's time zone or the local one. No config for syntax Sentry reads differently (L, #, %, &, sub-minute seconds); a fixed seconds field is dropped.
  • every: interval in whole minutes/hours/days, otherwise no config.
  • interval: check-ins without config, since it waits after each run ends.
  • in/at: not monitored.

Slug: name: option, else handler class, else block file and line. Job ids are random per process, so they can't be used. Skip a job with sentry_monitor: false. sidekiq-scheduler jobs are left to :sidekiq_scheduler.

The lockfiles add rufus-scheduler for the specs.

Docs: getsentry/sentry-docs#19789

Opt-in via `config.enabled_patches << :rufus_scheduler`. Sends
in_progress/ok/error check-ins for cron, every and interval jobs, with a
monitor config for cron and fixed-interval every jobs.

Co-Authored-By: Claude <noreply@anthropic.com>
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.

1 participant