You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cron tasks running through PM2 do not stat at system statup/reboot and i have to manually pm2 start x them. I have a DNS-Updater task that runs every 30 minutes and this is the ecosystem file:
I was forced to set autorestart : false because otherwise every time the task stops it restarts so this causes it to run constantly instead of the scheduled cron.
I saw that in the new release 5.4.0 was added an autostart#5782 but this won't work either because it does not trigger at system startup
PS. It might be very well that I'm using it in a wrong way, but honestly the docs aren't very clear
How could we reproduce this issue?
Create a cron task without autorestart, start it, reboot the system and it won't run ever until you first start it with pm2 start x
What's going wrong?
Cron tasks running through PM2 do not stat at system statup/reboot and i have to manually
pm2 start x
them. I have a DNS-Updater task that runs every 30 minutes and this is the ecosystem file:I was forced to set
autorestart : false
because otherwise every time the task stops it restarts so this causes it to run constantly instead of the scheduled cron.I saw that in the new release 5.4.0 was added an
autostart
#5782 but this won't work either because it does not trigger at system startupPS. It might be very well that I'm using it in a wrong way, but honestly the docs aren't very clear
How could we reproduce this issue?
Create a cron task without autorestart, start it, reboot the system and it won't run ever until you first start it with
pm2 start x
Supporting information
The text was updated successfully, but these errors were encountered: