Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/dstack/_internal/core/models/runs.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,9 @@ class RunSpec(generate_dual_core_model(RunSpecConfig)):
list[FileArchiveMapping],
Field(description="The list of file archive ID to container path mappings."),
] = []
# Server uses configuration.working_dir since 0.19.27 and ignores this field, but the field
# still exists for compatibility with old clients that send it.
working_dir: Optional[str] = None
configuration_path: Annotated[
Optional[str],
Field(
Expand Down
3 changes: 3 additions & 0 deletions src/tests/_internal/server/routers/test_runs.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ def get_dev_env_run_plan_dict(
"repo_dir": "~/repo",
"run_name": run_name,
"ssh_key_pub": "ssh_key",
"working_dir": None,
}
return {
"project_name": project_name,
Expand Down Expand Up @@ -469,6 +470,7 @@ def get_dev_env_run_dict(
"repo_dir": "~/repo",
"run_name": run_name,
"ssh_key_pub": "ssh_key",
"working_dir": None,
},
"jobs": [
{
Expand Down Expand Up @@ -612,6 +614,7 @@ def get_service_run_spec(
"repo_dir": "~/repo",
"run_name": run_name,
"ssh_key_pub": "ssh_key",
"working_dir": None,
}


Expand Down