Skip to content

Commit dc195d9

Browse files
sjarmakclaude
andcommitted
fix: use Daytona sandbox parallelism cap for OpenHands runs
openhands_2config.sh was using SESSIONS_PER_ACCOUNT (4×3=12 jobs) instead of DAYTONA_PARALLEL_TASK_CAP (60 jobs) in Daytona mode, matching what run_selected_tasks.sh already does for Claude Code. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent d12d804 commit dc195d9

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

configs/openhands_2config.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,17 @@ fi
168168
REAL_HOME="$HOME"
169169
setup_multi_accounts
170170

171+
# In Daytona mode, override the session-based parallelism with sandbox-based cap.
172+
# Daytona Tier 3 allows 125 concurrent sandboxes; paired mode uses 2 per task.
173+
DAYTONA_PARALLEL_TASK_CAP="${DAYTONA_PARALLEL_TASK_CAP:-60}"
174+
if [ "${HARBOR_ENV:-}" = "daytona" ] && [ "$PARALLEL_JOBS" -lt "$DAYTONA_PARALLEL_TASK_CAP" ]; then
175+
if [ "$DAYTONA_PARALLEL_TASK_CAP" -gt 124 ]; then
176+
DAYTONA_PARALLEL_TASK_CAP=124
177+
fi
178+
PARALLEL_JOBS=$DAYTONA_PARALLEL_TASK_CAP
179+
echo "Parallel tasks auto-set to $PARALLEL_JOBS (Daytona mode, capped by DAYTONA_PARALLEL_TASK_CAP=${DAYTONA_PARALLEL_TASK_CAP})"
180+
fi
181+
171182
_model_lower=$(echo "$MODEL" | awk -F/ '{print $NF}' | tr '[:upper:]' '[:lower:]')
172183
case "$_model_lower" in
173184
*gpt-5.3-codex*|*gpt53codex*) MODEL_SHORT="gpt53codex" ;;

0 commit comments

Comments
 (0)