Unverified Commit 42aa4ab1 authored by Reshmi V Nair's avatar Reshmi V Nair Committed by GitHub
Browse files

Merge pull request #27 from reshmi-nair/main

Adding a new function to scheduler
No related merge requests found
Showing with 7 additions and 1 deletion
+7 -1
......@@ -117,7 +117,10 @@ const scheduledJob = cron.schedule('0 0 * * *', async () => {
}
}
});
} catch (error) {
scheduler2Fun();
} catch (error) {
console.error('Error updating status:', error.message);
}
}, {
......@@ -125,6 +128,9 @@ const scheduledJob = cron.schedule('0 0 * * *', async () => {
timezone: 'Asia/Kolkata',
});
const scheduler2Fun = () => {
console.log('Arun...');
};
console.log('Scheduler started. Waiting for scheduled tasks...');
export default {
scheduledJob
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment