Skip to content

Commit 90eae1a

Browse files
sjarmakclaude
andcommitted
fix: add 2s stagger between parallel task launches to prevent Harbor job dir collisions
Harbor names job directories by timestamp (second granularity). Launching multiple tasks to the same jobs_dir within the same second causes FileExistsError. 2-second sleep after each _launch_task ensures unique timestamps. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 89ba030 commit 90eae1a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

configs/run_selected_tasks.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,8 @@ _launch_task() {
370370
) &
371371
_PIDS+=("$!")
372372
echo " [${mcp_mode}] Started $task_id (PID ${_PIDS[-1]}, ${#_PIDS[@]}/${PARALLEL_TASKS} slots used)"
373+
# Stagger launches by 2s to avoid Harbor timestamp-based job directory collisions
374+
sleep 2
373375
}
374376

375377
# ============================================

0 commit comments

Comments
 (0)