kibertoad / toad-scheduler

In-memory Node.js and browser job scheduler
MIT License
564 stars 25 forks source link

[Feature request] Add support for start delay #235

Open samiy803 opened 1 month ago

samiy803 commented 1 month ago

Please add support to start tasks after some delay. Currently, the only options for starting tasks are either: immediately, or after the interval expires.

Something like:

new SimpleIntervalJob({ seconds: 300, runImmediately: true, startDelay: 60 }, task)

Would delay 60 seconds, then run the task every 300 seconds.