Is it possible to ensure that delayed function will be executed even if application will be restarted? As example, please check code below
setTimeout(() => {
return Promise.resolve()
}, 100000)
It will work only if application will be running all the time. If it will be restarted during delay, function won’t be executed. What are options here to ensure that delayed function will be executed no matter if application was restarted or not?