mirror of
https://github.com/kestra-io/kestra.git
synced 2025-12-19 18:05:41 -05:00
When a Worker is stopping, it will first wait for all running tasks to stop, then kill them. For those that didn't implement kill their thread would be interrupted. But if the task is properly killed, or support interrupts (like the Sleep task), it would ends in FAILED then a WorkerTaskWould be send that would fail the flow preventing the WorkerTask to be resubmitted. We nows check if the worker is terminating and should resubmit, in this case we didn't emit any WorkerTaskResult Fixes #13108 Part-of: https://github.com/kestra-io/kestra-ee/issues/5556