Skip to content

The crontab syntax for a job that runs every x minutes, starting at minute y, does not work. #4441

Closed

Description

@BriskoCube

Package

Sentry

.NET Flavor

.NET

.NET Version

9.0.203

OS

Windows

OS Version

Windows 11

Development Environment

Rider 2024 (Windows)

SDK Version

5.14.0

Self-Hosted Sentry Version

No response

Workload Versions

Installed Workload Id Manifest Version Installation Source

UseSentry or SentrySdk.Init call

builder.WebHost.UseSentry(options =>
{
    options.UseOpenTelemetry();
    options.EnableScopeSync = true;
});

Steps to Reproduce

Calling the method Interval with a cron job set to run every x minutes, starting at minute y, does not work.

var checkInId = _hub.CaptureCheckIn(monitorSlug, CheckInStatus.InProgress, configureMonitorOptions: options => {
    options.Interval("12/5 22 * * *");
});

The web-UI allows this syntax
Image

Expected Result

The ability to set a cron interval that doesn't start with '*' but with any other number.
Valid crons:

  • 12/5 22 * * *
  • 0 2/4 * * *
  • 1/5 2/4 * * *

Actual Result

The exception: System.ArgumentException: The provided crontab does not match the expected format of '* * * * *' translating to 'minute', 'hour', 'day of the month', 'month', and 'day of the week'. is thrown.

Activity

  1. added
    BugSomething isn't working
    .NETPull requests that update .net code
    on Aug 13, 2025
  2. moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on Aug 13, 2025
  3. jamescrosswell commented on Aug 13, 2025

    @jamescrosswell
    Collaborator

    @BriskoCube this has been fixed already in #4407, which will be included in the next release.

  4. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on Aug 13, 2025
  5. BriskoCube commented on Aug 13, 2025

    @BriskoCube
    Author
  6. Flash0ver commented on Aug 14, 2025

    @Flash0ver
    Contributor

    @BriskoCube, 5.14.1 is out now. Please let us know if that fixes your scenario and/or reopen this issue if it does not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    .NETPull requests that update .net codeBugSomething isn't working

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions