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.
2 parents 73d3bf5 + 799fcbc commit 097a747Copy full SHA for 097a747
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