miaowing / nest-schedule

A cron-like and not-cron-like job distributed scheduler for Nest.js by decorators.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TimeoutJob after Server Reboot

flodaniel opened this issue · comments

I have a questions regarding the timeout jobs. Are they still executing, even after the server restarts? Or is there any way to persist a job, so it re-runs when the server reboots?

Thanks for your help!

commented

The job will execute again after the server restarts, maybe you can use lock for executing only once

Maybe executing is the wrong word. I want it to automatically schedule again. However I am not sure, if the timeout is properly recalculated or if i have to recalculate the timeout period manually, as the job does not detect how long the server was offline.