mirror of
https://github.com/stablyai/orca.git
synced 2026-09-30 00:03:15 +00:00
* fix(ssh): recover orphaned relay install locks (#9828) * test(ssh): split staged upload relay specs (#9828) * fix(ssh): verify staged relay upload namespace * fix(ssh): bound stale relay stage cleanup * fix(ssh): complete bounded stage recovery * fix(ssh): generate valid PowerShell stage scripts * fix(ssh): make staged upload cancellation safe * fix(ssh): fence staged relay recovery * test(ssh): align deploy timeout oracle --------- Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
17 lines
917 B
TypeScript
17 lines
917 B
TypeScript
// npm install on a cold Windows cache plus antivirus scanning can exceed the
|
|
// default 30s exec timeout.
|
|
export const NATIVE_DEPS_COMMAND_TIMEOUT_MS = 240_000
|
|
|
|
// Why: a missing binding can require both install and rebuild while the same
|
|
// install lock is held. Concurrent first installs must wait for that valid
|
|
// holder instead of failing halfway through its bounded work.
|
|
const NATIVE_DEPS_REPAIR_BUDGET_MS = 2 * NATIVE_DEPS_COMMAND_TIMEOUT_MS
|
|
|
|
// Why: native repair also runs separately bounded chmod/probe/diagnostic/
|
|
// finalize commands around install + rebuild. Keep the outer bound above that
|
|
// valid worst path while remaining below the 20-minute stale-lock threshold.
|
|
export const RELAY_DEPLOY_TIMEOUT_MS = NATIVE_DEPS_REPAIR_BUDGET_MS + 7 * 60_000
|
|
|
|
// Lets an aborted SSH transfer report whether its channel and local resources actually settled.
|
|
export const RELAY_DEPLOY_TEARDOWN_TIMEOUT_MS = 5_000
|