node.jsnode-cron

How to list the node cron's scheduled jobs


I am using node-cron package to schedule a job. I wanted to know the internal behavior of it in windows server. In documentation I can see this

The actions of cron are driven by a crontab (cron table) file, a configuration file that contains instructions to the cron daemon.

I need to know the internal behavior for documentation purpose. Is anyone share the reference.


Solution

  • cron and node-cron have nothing in common except the job done.

    the sentence you quote seem to come from cron itself while node-cron documentation is here : https://www.npmjs.com/package/node-cron

    in node-cron jobs are not stored in any file. only in memory.

    technically : node-cron only uses clever setTimeout to start programmatically registered jobs.