Skip to content

Commit 4ecf75d

Browse files
authored
Exclude requirements.multinode for client backward compatibility (#3262)
1 parent c8683e0 commit 4ecf75d

File tree

1 file changed

+2
-0
lines changed
  • src/dstack/_internal/core/compatibility

1 file changed

+2
-0
lines changed

src/dstack/_internal/core/compatibility/runs.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,8 @@ def get_job_spec_excludes(job_specs: list[JobSpec]) -> IncludeExcludeDictType:
201201
spec_excludes["probes"] = True
202202
if all(s.repo_dir in [None, LEGACY_REPO_DIR] for s in job_specs):
203203
spec_excludes["repo_dir"] = True
204+
if all(s.requirements.multinode is None for s in job_specs):
205+
spec_excludes["requirements"] = {"multinode": True}
204206

205207
return spec_excludes
206208

0 commit comments

Comments
 (0)