Scheduling a job using recurrence rule puts the app in limbo after the date has passed.
Author: 5h4nxCreated Mar 27, 2025Updated Mar 27, 2025
Recently, I created a schedule to be run only for a single day in a given year as below. However, the app got into a limbo with no logs at the stroke of 26th 00 hrs. Couldn't find any logs. Is this an issue or I have incorrectly used the rule? May I request to have this addressed or the behavior explained ? const rule = new schedule.RecurrenceRule(); rule.minute = [0, 4, 8, 12, 16, 20, 24, 28, 32, 36, 40, 44, 48, 52, 56]; rule.date = 25; rule.month = 2; // March is month 2 (0-indexed) rule.year = 2025; rule.tz = 'UTC';
schedule.scheduleJob(rule, () => {
Thanks
Source: node-schedule/node-schedule