Skip to content
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

feat(nextjs): Add automatic monitors for Vercel Cron Jobs #8088

Merged
merged 9 commits into from May 10, 2023

Conversation

lforst
Copy link
Member

@lforst lforst commented May 9, 2023

No description provided.

@lforst lforst requested review from AbhiPrasad, Lms24 and mydea May 10, 2023 08:08
packages/nextjs/src/config/types.ts Outdated Show resolved Hide resolved
packages/nextjs/src/config/types.ts Show resolved Hide resolved
logger.info(
`${chalk.cyan(
'info',
)} - Creating Sentry cron monitors for your Vercel Cron Jobs. You can disable this feature by setting the ${chalk.bold.cyan(
Copy link
Member

Choose a reason for hiding this comment

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

m: Should we only log this out if the crons field is defined? Otherwise I can see how this might get confusing

Copy link
Member Author

Choose a reason for hiding this comment

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

Good point!

Copy link
Member Author

Choose a reason for hiding this comment

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

@@ -42,7 +49,6 @@ export function wrapApiHandlerWithSentryVercelCrons<F extends (...args: any[]) =
status: 'in_progress',
},
{
checkinMargin: 2, // two minutes - in case Vercel has a blip
Copy link
Member

Choose a reason for hiding this comment

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

Why did we remove this?

Copy link
Member Author

Choose a reason for hiding this comment

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

Had a discussion with the crons team. The missed checkins were a bug in the product when the margin is set to 0.

Co-authored-by: Abhijeet Prasad <aprasad@sentry.io>
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.

kitty-cat-sandwich

@lforst lforst merged commit 6be91da into develop May 10, 2023
36 checks passed
@lforst lforst deleted the lforst-auto-crons branch May 10, 2023 13:23
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.

None yet

2 participants