I'm using the --cron flag to run a job every hour. The issue is as soon as I deploy using pm2 deploy. I see in the logs it's running the job every second.
apps: [
{
name: "api",
script: "./index.js",
autorestart: true
},
{
name: "cron",
script: "./cron.js --cron '0 * * * *'"
}
],
The cron syntax seems to be correct, am I missing something else?