mirror of
https://github.com/stablyai/orca.git
synced 2026-11-19 04:23:57 +00:00
fleet gate: exit when done so a failed run frees its slot
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user