We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ffdfc3 commit 799fcbcCopy full SHA for 799fcbc
1 file changed
src/index.ts
@@ -108,10 +108,15 @@ else
108
{
109
const schedule = `*/${config.linkUpTimeInterval} * * * *`;
110
logger.info("Starting cron schedule: " + schedule)
111
- cron.schedule(schedule, () =>
+ const task = cron.schedule(schedule, () =>
112
113
main().then()
114
}, {});
115
+
116
+ // Catch missed exectutions, and retry if exectution is missed
117
+ task.on('execution:missed', () => {
118
+ main().then();
119
+ });
120
}
121
122
async function main(): Promise<void>
0 commit comments