sentry
sentry copied to clipboard
Allow configuring global defaults for crons
Problem Statement
We've just started using crons in Sentry at Xelix - and it's a great feature, but it's a bit noisy right now, and making not as noisy is a lot of manual work (especially since we have some dynamic cron jobs)
It is possible to set the Grace Period / Max Runtime, and Failure Tolerance / Recovery Tolerance per cron and it defaults to some values - I would love to change the default values, i.e. set the default grace period to five minutes on all my crons, instead of the current default one minute.
I've searched all the docs, and I have not found a way to do this within the UI. It's possible this is doable with some configuration on the server (we're on-premise), but it would be nice to set the defaults in the UI.
Solution Brainstorm
I'd love a page in the settings (per project probably?) that sets the default values for Grace Period / Max Runtime, and Failure Tolerance / Recovery Tolerance
Product Area
Crons
Assigning to @getsentry/support for routing ⏲️
Routing to @getsentry/product-owners-crons for triage ⏲️
Hey @mikicz, thank you for your feedback. I do recommend taking a look at our upsert functionality. Basically, it allows you to configure or update your monitor directly through a check-in payload. Most of our SDKs support this now.
The fact that max_runtime is optional but has a non-configurable default is quite misleading. I might even go so far as to call it a bug. If we can't configure the default, can you remove the default entirely so that we have the option to configure jobs with no max_runtime at all?