Reputation: 3357
I am using node-cron to schedule some tasks inside my node app. This package has some API to create, start and stop cron jobs. However, I can't seem to find these cron jobs when I run crontab -l
command in my OS terminal. I tried both on my mac os as well as on centos.
Specific question:
Upvotes: 0
Views: 504
Reputation: 314
Giving a fast look at the node-cron source code, you can check that, node-cron does not create any cron at the OS Level. It looks like just a long time out functionality.. I suppose that if the node process will be restarted you lost the launched cronjobs.
Upvotes: 1