I have the following .json configuration for a job that I need to run once every 10 minutes and then do nothing for the remaining time...
"name" : "test.10minjob",
"cron_restart": "*/10 * * * *",
"autorestart" : false,
"exec_mode" : "cluster",
"instances" : 1,
If I run it like this, it will run once and never restart.
If I run it with autorestart set to true, it will restart every time the job exits (i.e. is done).
Am I missing something obvious here?
exec_mode
tofork
. I can't find how cron is used in pm2 code. – Inverness