Question: Running a cron task once

Author: luckyvs1Created Mar 9, 2018Updated Apr 20, 2026

Suppose I have a rule where I want the task to run on a fixed hh:mm I am using the following:

let rule = new schedule.RecurrenceRule(); rule.hour = hh; rule.minute = mm;

But this task fires more than once when scheduled, is there a way to limit the number of occurrences?

Source: node-schedule/node-schedule