We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38de91a commit 62536ffCopy full SHA for 62536ff
src/instance_runner/git_operations.py
@@ -124,8 +124,11 @@ async def prepare_workspace(
124
sidx = "0"
125
khash = (instance_id or "")[0:8] or "x"
126
127
- # Path: {base}/pitaya/${run_id}/i_${sidx}_${khash} (stable across resume suffixes)
128
- workspace_dir = base_dir / f"pitaya/{run_id}/i_{sidx}_{khash}"
+ # Path: {base}/pitaya/${run_id}/i_${sidx}_${khash}_${iid8}
+ # Include a short instance_id suffix to avoid collisions when many
129
+ # parallel instances share the same durable key (khash).
130
+ iid8 = (instance_id or "")[:8] or "x"
131
+ workspace_dir = base_dir / f"pitaya/{run_id}/i_{sidx}_{khash}_{iid8}"
132
else:
133
# Fallback for standalone usage
134
workspace_dir = base_dir / f"pitaya/instance_{instance_id}"
0 commit comments