node-cron icon indicating copy to clipboard operation
node-cron copied to clipboard

[FR]: Add a "started" state

Open mkikets99 opened this issue 4 years ago • 0 comments

on CronJob instance i founded an running state which is true while job is currently running. What if i want to check when job is somewhere called by start method?

for example: Later in code i can use

if(!cronjob.started) cronjob.start();

to check if job is enabled (at least once)

mkikets99 avatar Mar 29 '21 11:03 mkikets99