backport of commit ed204e0fd985bbb43da7e19e07cf541ad74284a8 (#18670)
Co-authored-by: Luiz Aoqui <luiz@hashicorp.com>
This commit is contained in:
parent
252515a84c
commit
88fd96daea
|
@ -0,0 +1,3 @@
|
||||||
|
```release-note:bug
|
||||||
|
client: prevent tasks from starting without the prestart hooks running
|
||||||
|
```
|
|
@ -591,6 +591,12 @@ MAIN:
|
||||||
goto RESTART
|
goto RESTART
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Check for a terminal allocation once more before proceeding as the
|
||||||
|
// prestart hooks may have been skipped.
|
||||||
|
if tr.shouldShutdown() {
|
||||||
|
break MAIN
|
||||||
|
}
|
||||||
|
|
||||||
select {
|
select {
|
||||||
case <-tr.killCtx.Done():
|
case <-tr.killCtx.Done():
|
||||||
break MAIN
|
break MAIN
|
||||||
|
|
Loading…
Reference in New Issue