Old Taskscheduler still runs after auto reloading extensions
Posted: 24 Sep 2019, 09:13
Hi,
I have a question about the task scheduler (sfs.getTaskScheduler()). I have noticed that if I have some scheduled tasks running, and frequently have extensions reload (to smoothly update the software without requiring a restart), or during development, that sometimes some of the old tasks are still running in the background, and this adds up over time so I have a situation where I can see schedules are running multiple times.
Is there a way to safely shut down and end a task (in the old "instance") when the extension is reloaded during an update situation ?
Many thanks for your help!
I have a question about the task scheduler (sfs.getTaskScheduler()). I have noticed that if I have some scheduled tasks running, and frequently have extensions reload (to smoothly update the software without requiring a restart), or during development, that sometimes some of the old tasks are still running in the background, and this adds up over time so I have a situation where I can see schedules are running multiple times.
Is there a way to safely shut down and end a task (in the old "instance") when the extension is reloaded during an update situation ?
Many thanks for your help!