sentry icon indicating copy to clipboard operation
sentry copied to clipboard

Allow configuring global defaults for crons

Open mikicz opened this issue 1 year ago • 3 comments

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

mikicz avatar Feb 08 '24 16:02 mikicz

Assigning to @getsentry/support for routing ⏲️

getsantry[bot] avatar Feb 08 '24 16:02 getsantry[bot]

Routing to @getsentry/product-owners-crons for triage ⏲️

getsantry[bot] avatar Feb 08 '24 21:02 getsantry[bot]

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.

gaprl avatar Feb 10 '24 01:02 gaprl

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?

hillam avatar Feb 28 '24 16:02 hillam