Replies: 1 comment
-
The best way is to gracefully stop the task and resume it again later. There is a similar example here: https://github.com/kagkarlsson/db-scheduler/blob/master/examples/spring-boot-example/src/main/java/com/github/kagkarlsson/examples/boot/config/LongRunningJobConfiguration.java#L89 Need to regularly check If not done gracefully, i.e. the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
My main use case is to run onetime task but it could be long-running one.
The question that I have is if the VM shutdown (either gracefully or not). Would the incomplete onetime task be resumed to execution?
Regards,
Trung
Beta Was this translation helpful? Give feedback.
All reactions