MCPcopy
hub / github.com/openclaw/clawsweeper / ghRetryWaitMs

Function ghRetryWaitMs

src/github-retry.ts:58–62  ·  view source on GitHub ↗
(kind: GhRetryKind, attempt: number)

Source from the content-addressed store, hash-verified

56}
57
58export function ghRetryWaitMs(kind: GhRetryKind, attempt: number): number {
59 if (kind === "throttle") return Math.min(600_000, 30_000 * 2 ** attempt);
60 if (kind === "transient") return Math.min(60_000, 2_000 * 2 ** attempt);
61 return 0;
62}
63
64export function summarizeGhArgs(args: readonly string[]): string {
65 if (args[0] === "api" && args[1]) return `gh api ${args[1]}`;

Callers 3

dispatchCommitFindingFunction · 0.85
ghWithRetryFunction · 0.85
ghRawWithRetryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected