Skip to content

Conversation

timfish
Copy link
Collaborator

@timfish timfish commented Dec 17, 2023

Closes #9876

This PR adds support for Deno.CronSchedule. Since the CronSchedule type cannot be fully expressed by the Sentry IntervalSchedule, I instead copied the Deno code to convert to CrontabSchedule.

I also added checkinMargin: 1 since the Deno docs state that on Deno Deploy, crons can be up to 1 minute late.

Copy link
Member

@AbhiPrasad AbhiPrasad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for quick turnaround Tim!

@AbhiPrasad AbhiPrasad merged commit 8fb1a2f into getsentry:develop Dec 18, 2023
@timfish timfish deleted the feat/deno-cron-schedule branch December 30, 2023 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support JSON schedule syntax for Deno Cron
2 participants