File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed
src/dstack/_internal/server/services/jobs/configurators Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change 66from dstack ._internal .server .services .jobs .configurators .base import JobConfigurator
77from dstack ._internal .server .services .jobs .configurators .extensions .vscode import VSCodeDesktop
88
9- DEFAULT_MAX_DURATION_SECONDS = 6 * 3600
10-
119INSTALL_IPYKERNEL = (
1210 "(echo pip install ipykernel... && pip install -q --no-cache-dir ipykernel 2> /dev/null) || "
1311 'echo "no pip, ipykernel was not installed"'
@@ -44,7 +42,7 @@ def _default_single_branch(self) -> bool:
4442 return False
4543
4644 def _default_max_duration (self ) -> Optional [int ]:
47- return DEFAULT_MAX_DURATION_SECONDS
45+ return None
4846
4947 def _spot_policy (self ) -> SpotPolicy :
5048 return self .run_spec .merged_profile .spot_policy or SpotPolicy .ONDEMAND
Original file line number Diff line number Diff line change 55from dstack ._internal .core .models .runs import JobSpec
66from dstack ._internal .server .services .jobs .configurators .base import JobConfigurator
77
8- DEFAULT_MAX_DURATION_SECONDS = 72 * 3600
9-
108
119class TaskJobConfigurator (JobConfigurator ):
1210 TYPE : RunConfigurationType = RunConfigurationType .TASK
@@ -29,7 +27,7 @@ def _default_single_branch(self) -> bool:
2927 return True
3028
3129 def _default_max_duration (self ) -> Optional [int ]:
32- return DEFAULT_MAX_DURATION_SECONDS
30+ return None
3331
3432 def _spot_policy (self ) -> SpotPolicy :
3533 return self .run_spec .merged_profile .spot_policy or SpotPolicy .ONDEMAND
You can’t perform that action at this time.
0 commit comments