We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ddb511 commit a183f67Copy full SHA for a183f67
evals/git-evals/run-git-evals.ts
@@ -406,9 +406,10 @@ export async function runGitEvals(
406
// Use global limiter if available, otherwise create a local one
407
const limitConcurrency = globalConcurrencyLimiter || pLimit(20)
408
409
+ const timeoutMs = 60_000 * 30
410
const evalPromises = commitsToRun.map((evalCommit, index) => {
- return limitConcurrency(
411
- () =>
+ return limitConcurrency(() =>
412
+ withTimeout(
413
new Promise<EvalRunJudged>(async (resolve, reject) => {
414
try {
415
console.log(
@@ -527,6 +528,8 @@ export async function runGitEvals(
527
528
reject(error)
529
}
530
}),
531
+ timeoutMs,
532
+ ),
533
)
534
})
535
0 commit comments