From 654e91d7cb48bfdd15bb75037914351d8d8be0b7 Mon Sep 17 00:00:00 2001 From: Victor Skvortsov Date: Thu, 6 Nov 2025 08:09:36 +0500 Subject: [PATCH] Exclude requirements.multinode for client backward compatibility --- src/dstack/_internal/core/compatibility/runs.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dstack/_internal/core/compatibility/runs.py b/src/dstack/_internal/core/compatibility/runs.py index 403009ae02..0ab4904975 100644 --- a/src/dstack/_internal/core/compatibility/runs.py +++ b/src/dstack/_internal/core/compatibility/runs.py @@ -201,6 +201,8 @@ def get_job_spec_excludes(job_specs: list[JobSpec]) -> IncludeExcludeDictType: spec_excludes["probes"] = True if all(s.repo_dir in [None, LEGACY_REPO_DIR] for s in job_specs): spec_excludes["repo_dir"] = True + if all(s.requirements.multinode is None for s in job_specs): + spec_excludes["requirements"] = {"multinode": True} return spec_excludes