getsentry / getsentry/sentry

Sentry reports invalid schedule for schedules that should be valid

Open
#119,214 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bug Crons Product Area: Crons
Dominant language
Python
Stars
44.8k
Forks
4.9k
Avg merge
21h 23m
Merged PRs (30d)
607

Description

Environment

SaaS (https://sentry.io/)

Steps to Reproduce
  1. Edit existing cron monitor with schedule of type "Interval" set to "Every 5 minutes".
  2. Change to "Every 6 minutes".
  3. Click on "Save" button.
  4. Sentry reports "Invalid schedule for schedule unit count".

Note that it also reported this when I tried other values I expected to be valid, like 1 or 10.

Expected Result

Saves the cron monitor with the new valid value.

Actual Result
Image
Product Area

Crons

Link

No response

DSN

No response

Version

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the interval cron monitor flow in the Sentry SaaS environment, changing an existing schedule from every 5 minutes to values such as 1, 6, or 10. Trace where the “Invalid schedule for schedule unit count” validation is produced and add regression coverage for valid interval values. Done means valid values save successfully without the error.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
63/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.