Luiz Aoqui
ed204e0fd9
client: ensure task only runs with prestart hooks ( #18662 )
...
Since the allocation in the task runner is updated in a separate
goroutine, a race condition may happen where the task is started but the
prestart hooks are skipped because the allocation became terminal.
Checking for a terminal allocation before proceeding with the task start
ensures the task only runs if the prestart hooks are also executed.
Since `shouldShutdown()` only uses terminal allocation status, it
remains `true` after the first transition, so it's safe to check it
again after the prestart hooks as it will never revert to `false`.
2023-10-05 10:16:57 -04:00
..
2023-09-13 09:36:39 -04:00
2023-08-10 17:27:15 -05:00
2023-08-10 17:27:15 -05:00
2023-08-10 17:27:15 -05:00
2023-08-10 17:27:15 -05:00
2023-08-10 17:27:15 -05:00
2023-08-10 17:27:15 -05:00
2023-08-10 17:27:15 -05:00
2023-08-25 13:51:36 +01:00
2023-08-10 17:27:15 -05:00
2023-08-10 17:27:15 -05:00
2023-08-10 17:27:15 -05:00
2023-10-04 11:12:50 -04:00
2023-08-10 17:27:15 -05:00
2023-08-10 17:27:15 -05:00
2023-08-10 17:27:15 -05:00
2023-08-10 17:27:15 -05:00
2023-08-14 08:43:27 -05:00
2023-08-10 17:27:15 -05:00
2023-08-10 17:27:15 -05:00
2023-08-10 17:27:15 -05:00
2023-08-10 17:27:15 -05:00
2023-08-10 17:27:15 -05:00
2023-08-10 17:27:15 -05:00
2023-09-21 17:31:27 +02:00
2023-09-29 17:41:48 +02:00
2023-08-10 17:27:15 -05:00
2023-08-10 17:27:15 -05:00
2023-08-10 17:27:15 -05:00
2023-08-10 17:27:15 -05:00
2023-09-21 17:31:27 +02:00
2023-08-10 17:27:15 -05:00
2023-08-10 17:27:15 -05:00
2023-10-04 08:35:18 -04:00
2023-08-10 17:27:15 -05:00
2023-10-04 08:35:18 -04:00
2023-10-04 08:35:18 -04:00
2023-09-19 14:35:01 -04:00
2023-10-03 09:12:13 -04:00
2023-08-10 17:27:15 -05:00
2023-08-15 14:38:18 -04:00
2023-08-10 17:27:15 -05:00
2023-08-15 09:11:53 -07:00
2023-10-04 08:35:18 -04:00
2023-09-27 15:53:28 -03:00
2023-10-03 09:12:13 -04:00
2023-10-05 10:16:57 -04:00
2023-08-10 17:27:15 -05:00
2023-08-10 17:27:15 -05:00
2023-08-10 17:27:15 -05:00
2023-08-10 17:27:15 -05:00
2023-08-10 17:27:15 -05:00
2023-08-10 17:27:15 -05:00
2023-09-19 14:35:01 -04:00
2023-08-10 17:27:15 -05:00
2023-08-10 17:27:15 -05:00
2023-09-12 09:11:11 -05:00