File tree Expand file tree Collapse file tree
apps/server/src/orchestration-v2 Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,9 +33,9 @@ export type UsageLimitResolution =
3333 /** Fail the run as today. For a pooled run `resetAt` is the pool's earliest reset. */
3434 | { readonly type : "finalize" ; readonly resetAt : IsoDateTime | null } ;
3535
36- export const DEFAULT_LIMIT_COOLDOWN_MS = 15 * 60_000 ;
36+ const DEFAULT_LIMIT_COOLDOWN_MS = 15 * 60_000 ;
3737// Per-minute burst limits recover quickly and should not park a healthy account.
38- export const BURST_LIMIT_COOLDOWN_MS = 60_000 ;
38+ const BURST_LIMIT_COOLDOWN_MS = 60_000 ;
3939
4040export function limitCooldownUntilMs (
4141 failure : OrchestrationV2ProviderFailure ,
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ export const ServerProviderPool = Schema.Union([
3838] ) ;
3939export type ServerProviderPool = typeof ServerProviderPool . Type ;
4040
41- export const PROVIDER_POOL_ID_PREFIX = "pool_" ;
41+ const PROVIDER_POOL_ID_PREFIX = "pool_" ;
4242
4343export const providerPoolInstanceId = ( driver : ProviderDriverKind ) : ProviderInstanceId =>
4444 ProviderInstanceId . make ( `${ PROVIDER_POOL_ID_PREFIX } ${ driver } ` ) ;
@@ -51,7 +51,7 @@ export const isReservedProviderInstanceId = (instanceId: string): boolean =>
5151 * instances are different agents, and the other drivers' usage-limit and
5252 * handoff behavior has not been checked.
5353 */
54- export const POOLABLE_DRIVERS : ReadonlySet < ProviderDriverKind > = new Set ( [
54+ const POOLABLE_DRIVERS : ReadonlySet < ProviderDriverKind > = new Set ( [
5555 ProviderDriverKind . make ( "claudeAgent" ) ,
5656 ProviderDriverKind . make ( "codex" ) ,
5757] ) ;
You can’t perform that action at this time.
0 commit comments