Skip to content

feat(deno): Support Deno.CronSchedule for cron jobs #9880

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Dec 18, 2023

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