swarm-builder: refuse a build that waited too long for the slot
A request that waits behind another build, e.g. one a controller restart orphaned, could start a full build after most of the controller's 61-minute reply deadline was gone. The builder now waits at most REPLY_DEADLINE - BUILD_DEADLINE - 30 s for the slot and answers Failed, without building, past that. The 30 s covers the forge token read, now bounded to 20 s, and the reply's trip back. Fixes #5437
This commit is contained in:
parent
6630a51022
commit
bf848ba65f
4 changed files with 180 additions and 22 deletions
|
|
@ -22,5 +22,10 @@ swarm-secret-client.workspace = true
|
|||
tokio.workspace = true
|
||||
tracing.workspace = true
|
||||
|
||||
# `test-util` for `#[tokio::test(start_paused = true)]`: the slot tests wait
|
||||
# out the build slot's wait limit on paused time.
|
||||
[dev-dependencies]
|
||||
tokio = { workspace = true, features = ["test-util"] }
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
|
|
|||
Loading…
Reference in a new issue