fleet gate: exit when done so a failed run frees its slot

This commit is contained in:
Brennan Benson
2026-11-16 22:33:54 -08:00
parent 1b77deafd9
commit 3cb73decf9
@@ -419,7 +419,10 @@ async function main() {
process.exitCode = passed ? 0 : 1
}
main().catch((error) => {
console.error(`[fleet-gate] ${error.stack ?? error}`)
process.exitCode = 2
})
// Exit explicitly: a launched copy's driver handles otherwise keep the process (and its qa-gate slot) alive.
main()
.catch((error) => {
console.error(`[fleet-gate] ${error.stack ?? error}`)
process.exitCode = 2
})
.finally(() => process.exit())