Merge pull request 'build-agent: declare busy, so a replaced agent finishes the check it runs (issue 594, hq ADR 0335)' (#283) from feat/335-the-build-agent-declares-busy into main
This commit was merged in pull request #283.
This commit is contained in:
@@ -13,6 +13,11 @@ that repository's main (`build.artifacts[].context`); this module ships the pack
|
|||||||
Assign it to every machine with a container runtime. It replaces `builder`, the one-holder form of the
|
Assign it to every machine with a container runtime. It replaces `builder`, the one-holder form of the
|
||||||
same thing; retire that once this is assigned where it was.
|
same thing; retire that once this is assigned where it was.
|
||||||
|
|
||||||
|
A send that replaces the agent's container does not throw away the build it runs: the container declares
|
||||||
|
`busy` as `/usr/local/bin/mesh-builder busy` (novox/hq ADR 0335). The node-engine asks it before replacing it; from that
|
||||||
|
ask the agent takes no new build, the node-engine leaves it running while it says a build is in hand, and
|
||||||
|
replaces it once it says idle, or after 15 minutes at the latest.
|
||||||
|
|
||||||
## The package registry (novox/hq ADR 0336)
|
## The package registry (novox/hq ADR 0336)
|
||||||
|
|
||||||
The package registry (`npm-package-registry`, provided by the gitea module) is an optional requirement.
|
The package registry (`npm-package-registry`, provided by the gitea module) is an optional requirement.
|
||||||
|
|||||||
@@ -85,6 +85,9 @@
|
|||||||
"timeout": "5s",
|
"timeout": "5s",
|
||||||
"looks": 3,
|
"looks": 3,
|
||||||
"grace": "60s"
|
"grace": "60s"
|
||||||
|
},
|
||||||
|
"busy": {
|
||||||
|
"command": "/usr/local/bin/mesh-builder busy"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user