-
-
Notifications
You must be signed in to change notification settings - Fork 431
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
🚧 workflow pause monitors #1159
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Deploying openstatus-docs with Cloudflare Pages
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 3 out of 4 changed files in this pull request and generated 2 comments.
Files not reviewed (1)
- apps/workflows/package.json: Language not supported
Comments suppressed due to low confidence (3)
apps/workflows/src/cron/monitor.ts:55
- [nitpick] The variable 'user' is being redeclared within the loop, which could lead to confusion. It should be renamed to avoid ambiguity.
for (const user of users) {
apps/workflows/src/cron/monitor.ts:75
- The 'CreateTask' function is called without awaiting its result. This could lead to unexpected behavior if the task creation fails or takes longer than expected.
await CreateTask({
apps/workflows/src/cron/monitor.ts:135
- The 'timestamp' variable is calculated but not used correctly in the 'scheduleTime' object. It should be converted to an integer.
const timestamp = Date.now();
// | ||
// Start workflow -> create task with monitors/start | ||
// add users to workflow Redis | ||
console.log(`user worflow started for ${user.userId}`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The log message contains a typo. It should be 'workflow' instead of 'worflow'.
console.log(`user worflow started for ${user.userId}`); | |
console.log(`user workflow started for ${user.userId}`); |
Copilot is powered by AI, so mistakes are possible. Review output carefully before use.
client: CloudTasksClient; | ||
step: z.infer<typeof workflowStepSchema>; | ||
}) { | ||
const url = ""; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The 'url' variable is declared but not assigned any value, which will cause the task creation to fail.
const url = ""; | |
const url = `${env().API_BASE_URL}/tasks/${step}`; |
Copilot is powered by AI, so mistakes are possible. Review output carefully before use.
Pause monitors for free users
Still a WIP