You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Say we have current time as 5th Feb 2022 and Time is 15:25:07 while the value of cron is 15:10:10.
How we can handle and execute still that job.
Example as of cron package:
The text was updated successfully, but these errors were encountered:
Normally,missed jobs is out of scope for a pure cron-style scheduler, but I see that you use CronJob with a specific timestamp - I am considering to support this in croner.
In this specific case I would recommend you to use a simpler approach, that does not rely on the cron library to throw errors.
Something like:
if(response[idx].endDate<newDate()){// Immediately run the stuff, without using a cron library}else{// Create a new cron job that execute in the futureletjob=newCron(pattern,()=>{/* stuff to run */});}
But as said, i will consider implementing one-off-scheduling using a single point i time. Follow progress of #4
Say we have current time as 5th Feb 2022 and Time is 15:25:07 while the value of cron is 15:10:10.
How we can handle and execute still that job.
Example as of cron package:
The text was updated successfully, but these errors were encountered: