-
Notifications
You must be signed in to change notification settings - Fork 5
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: Add a cron job to hit the filter orphan tasks API every 6hours #65
Conversation
await callDiscordNicknameBatchUpdate(env); | ||
await filterOrphanTasks(env); | ||
console.log('Worker for filtering the orphan tasks has completed'); |
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.
await? won't this cause workers to exhaust 30s timelimit
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.
Sir, without await
how we can call the async function, I mean yes you are right the case is real where we might be exhausting the 30 time-limit. But I then how to do it without await
Date: 2/04/2024
Developer Name: @MehulKChaudhari
Issue Ticket Number
Description
This PR add's cron job which run every 6hours and hits orphan tasks API, That API filters all the tasks from users who are not in discord server and the tasks which are not
DONE
are marked asBACKLOG
##Warning⚠️
Please merge this PR after Real-Dev-Squad/website-backend#1996
Documentation Updated?
Under Feature Flag
Database Changes
Breaking Changes
Development Tested?