Skip to content

Commit 28c4134

Browse files
sjarmakclaude
andcommitted
fix: auto-detect parallel task slots from account count in run_selected_tasks.sh
PARALLEL_TASKS defaulted to 1 and never inherited the auto-detected PARALLEL_JOBS from _common.sh (SESSIONS_PER_ACCOUNT * num_accounts). This meant launches ran sequentially unless --parallel was explicitly passed. Now PARALLEL_TASKS=0 is a sentinel that inherits PARALLEL_JOBS after account setup, giving 12 parallel slots with 3 accounts by default. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 4ec00f2 commit 28c4134

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

configs/run_selected_tasks.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ BENCHMARK_FILTER=""
5353
USE_CASE_CATEGORY_FILTER=""
5454
MODEL="${MODEL:-anthropic/claude-opus-4-6}"
5555
CONCURRENCY=1 # harbor -n: trials per task
56-
PARALLEL_TASKS=1 # number of simultaneous task processes
56+
PARALLEL_TASKS=0 # 0 = auto-detect from accounts; overridden by --parallel N
5757
TIMEOUT_MULTIPLIER=10
5858
RUN_BASELINE=true
5959
RUN_FULL=true
@@ -146,6 +146,12 @@ fi
146146

147147
ensure_fresh_token_all # also populates CLAUDE_HOMES[] via setup_multi_accounts
148148

149+
# Auto-detect PARALLEL_TASKS from account count when not explicitly set via --parallel
150+
if [ "$PARALLEL_TASKS" -eq 0 ]; then
151+
PARALLEL_TASKS=$PARALLEL_JOBS # inherits SESSIONS_PER_ACCOUNT * num_accounts from _common.sh
152+
echo "Parallel tasks auto-set to $PARALLEL_TASKS (from $SESSIONS_PER_ACCOUNT sessions x ${#CLAUDE_HOMES[@]} accounts)"
153+
fi
154+
149155
# Derive baseline config and mcp_type values from FULL_CONFIG
150156
BASELINE_CONFIG=$(baseline_config_for "$FULL_CONFIG")
151157
BL_MCP_TYPE=$(config_to_mcp_type "$BASELINE_CONFIG")

0 commit comments

Comments
 (0)