An open-source, faster Devin alternative
TypeScript
Merge main into smarter-scaleup: keep 45min drain timeout + backoff constants
Brian Reardond4c0dd3dc6d7
diff --cc internal/controlplane/scaler.goindex a80514b9,23d6cff1..6ed3dfb0--- a/internal/controlplane/scaler.go+++ b/internal/controlplane/scaler.go@@@ -36,11 -37,7 +37,11 @@@ constemergencyDiskThreshold = 90.0evacuationBatchSize = 3 // sandboxes to migrate per eval cycle per workerevacuationCooldown = 60 * time.Second // per-worker cooldown between evacuation batches- drainTimeout = 15 * time.Minute // max time to drain a worker via live migration+ drainTimeout = 45 * time.Minute // max time to drain a worker via live migration (allows 30 sandboxes × 10min each in batches of 3)++ creationFailureThreshold = 3 // consecutive failures before exponential backoff+ creationBackoffMin = 1 * time.Minute // initial backoff after threshold hit+ creationBackoffMax = 10 * time.Minute // cap on exponential backoff)// ScalerRegistry is the interface the Scaler uses to query worker state.