Skip to content

The "interval" type for a Cron Monitor's "schedule" doesn't work #6386

@coredumperror

Description

@coredumperror

How do you use Sentry?

Sentry Saas (sentry.io)

Version

2.59.0

Steps to Reproduce

If you set monitor_config["schedule"] = {"type": "interval", "value": "1", "unit": "minute"}, you don't get any check-ins.

Expected Result

Using the equivalent crontab (monitor_config["schedule"] = {"type": "crontab", "value": "*/1 * * * *"}) works fine, and shows a check-in happening once a minute. The HTTP docs state that the API accepts the "interval" format in the form I'm using, so it should work via the Python SDK, too.

Actual Result

Using "interval" in a new cron monitor's config results in no new monitor being created.

Changing the config of an existing cron monitor to use "interval" instead of "crontab" results only in repeated missed check-ins. The monitor's schedule is not updated, and check-ins stop happening.

Metadata

Metadata

Assignees

No one assigned
    No fields configured for issues without a type.

    Projects

    Status

    Waiting for: Product Owner

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions