Description
Describe the idea
We find the sidekiq_scheduler patch extremely useful, especially as we have 100s of cron jobs defined there.
However, the default grace period of 1 minute does not work that well for our queue configuration: the overwhelming majority of our cron jobs will have latency of 1-3 minutes, and therefore Sentry will create cron issues every single time the checkin is delayed by a couple of minutes, resulting in a abysmal signal-to-noise ratio.
We would like the ability to change the checkin margins for all monitors created by the patch. An alternative could be an ability to configure the default values per Sentry project, but I'm not sure where to submit that, and what approach you like best.
Why do you think it's beneficial to most of the users
I'm not sure about most users, but at this scale (100s of cron jobs) it is very likely that their latency will exceed the default 1 minute.
Possible implementation
The sidekiq_scheduler patch is currently using only the schedule
positional argument to instantiate Monitors, but they support the necessary keyword arguments (checkin_margin
and max_runtime
) as well.
Perhaps Configuration could be extended to allow setting those two values, and the default value for those keyword arguments could be taken from configuration instead of being nils?
If that sounds good, I'm happy to take a stab at contributing this.
Metadata
Assignees
Type
Projects
Status
No status
Status
No status
Activity