Skip to content

Cron check-ins incorrectly marked as timed-out despite successful SDK sends #109771

@InterstellarStella

Description

@InterstellarStella

Environment

SaaS (https://sentry.io/)

Steps to Reproduce

  1. Configure a cron monitor in AWS Lambda using @sentry/aws-serverless:
const monitorConfig = {
  schedule: { type: "crontab", value: "0 3 * * *" },
  checkinMargin: 1,
  maxRuntime: 5,
  timezone: "Etc/UTC",
};

export const handler = async (event) => {
  await Sentry.withMonitor("cleanup", async () => {
    // job logic (~30s runtime)
  }, monitorConfig);
  await Sentry.flush();
};
  1. Run the Lambda (manually or scheduled)
  2. SDK debug logs confirm both check-ins sent successfully:
Sending checkin: cleanup in_progress
Sending checkin: cleanup ok

Expected Result

Check-in shows as successful/OK in the Sentry UI.

Actual Result

Check-in marked as timed-out with tooltip: "This check-in was incorrectly marked as timed-out. The check-in was processed late due to abnormal system latency in Sentry."
Image
Link to the monitor in the internal Linear ticket.

Product Area

Crons

Link

No response

DSN

No response

Version

No response

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