Skip to content

Commit a302414

Browse files
committed
throw error on concurrency attempt
1 parent 0317a5a commit a302414

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

evals/apps/cli/src/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,9 @@ const runExercise = async ({ run, task, server }: { run: Run; task: Task; server
203203
const isDocker = fs.existsSync("/.dockerenv")
204204

205205
if (isDocker) {
206+
if (run.concurrency > 1) {
207+
throw new Error("Cannot run multiple tasks in parallel in Docker. Please set concurrency to 1.")
208+
}
206209
codeCommand = `xvfb-run --auto-servernum --server-num=1 ${codeCommand} --wait --log trace --disable-gpu --password-store="basic"`
207210
}
208211

0 commit comments

Comments
 (0)