torchx-nightly 2024.12.18__py3-none-any.whl → 2024.12.19__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of torchx-nightly might be problematic. Click here for more details.
- torchx/schedulers/local_scheduler.py +18 -2
- {torchx_nightly-2024.12.18.dist-info → torchx_nightly-2024.12.19.dist-info}/METADATA +1 -1
- {torchx_nightly-2024.12.18.dist-info → torchx_nightly-2024.12.19.dist-info}/RECORD +7 -7
- {torchx_nightly-2024.12.18.dist-info → torchx_nightly-2024.12.19.dist-info}/LICENSE +0 -0
- {torchx_nightly-2024.12.18.dist-info → torchx_nightly-2024.12.19.dist-info}/WHEEL +0 -0
- {torchx_nightly-2024.12.18.dist-info → torchx_nightly-2024.12.19.dist-info}/entry_points.txt +0 -0
- {torchx_nightly-2024.12.18.dist-info → torchx_nightly-2024.12.19.dist-info}/top_level.txt +0 -0
|
@@ -696,12 +696,11 @@ class LocalScheduler(Scheduler[LocalOpts]):
|
|
|
696
696
|
log.debug(f"Running {role_name} (replica {replica_id}):\n {args_pfmt}")
|
|
697
697
|
env = self._get_replica_env(replica_params)
|
|
698
698
|
|
|
699
|
-
proc =
|
|
699
|
+
proc = self.run_local_job(
|
|
700
700
|
args=replica_params.args,
|
|
701
701
|
env=env,
|
|
702
702
|
stdout=stdout_,
|
|
703
703
|
stderr=stderr_,
|
|
704
|
-
start_new_session=True,
|
|
705
704
|
cwd=replica_params.cwd,
|
|
706
705
|
)
|
|
707
706
|
return _LocalReplica(
|
|
@@ -714,6 +713,23 @@ class LocalScheduler(Scheduler[LocalOpts]):
|
|
|
714
713
|
error_file=env.get("TORCHELASTIC_ERROR_FILE", "<N/A>"),
|
|
715
714
|
)
|
|
716
715
|
|
|
716
|
+
def run_local_job(
|
|
717
|
+
self,
|
|
718
|
+
args: List[str],
|
|
719
|
+
env: Dict[str, str],
|
|
720
|
+
stdout: Optional[io.FileIO],
|
|
721
|
+
stderr: Optional[io.FileIO],
|
|
722
|
+
cwd: Optional[str] = None,
|
|
723
|
+
) -> "subprocess.Popen[bytes]":
|
|
724
|
+
return subprocess.Popen(
|
|
725
|
+
args=args,
|
|
726
|
+
env=env,
|
|
727
|
+
stdout=stdout,
|
|
728
|
+
stderr=stderr,
|
|
729
|
+
start_new_session=True,
|
|
730
|
+
cwd=cwd,
|
|
731
|
+
)
|
|
732
|
+
|
|
717
733
|
def _get_replica_output_handles(
|
|
718
734
|
self,
|
|
719
735
|
replica_params: ReplicaParam,
|
|
@@ -74,7 +74,7 @@ torchx/schedulers/gcp_batch_scheduler.py,sha256=o0t70s7fpGgn8MqhkIPWV3ZuF0kc5KdL
|
|
|
74
74
|
torchx/schedulers/ids.py,sha256=3E-_vwVYC-8Tv8kjuY9-W7TbOe_-Laqd8a65uIN3hQY,1798
|
|
75
75
|
torchx/schedulers/kubernetes_mcad_scheduler.py,sha256=riUfzSBega0JcCbV9NspU_a5A46AD-74Jgf7JPvA2Is,42925
|
|
76
76
|
torchx/schedulers/kubernetes_scheduler.py,sha256=W_vVvQVGjNUoasN-JIsOTU9f0qjpds2u3GteNblssGM,28193
|
|
77
|
-
torchx/schedulers/local_scheduler.py,sha256=
|
|
77
|
+
torchx/schedulers/local_scheduler.py,sha256=wOL-Js1fzEJY7RugNpFKu6BjmdHBgRf3llONFdwg-xQ,41845
|
|
78
78
|
torchx/schedulers/lsf_scheduler.py,sha256=BkXKyWoVrCZznjfRFQ8oW3vzM0sBGkGmGUcSX71D-nE,17667
|
|
79
79
|
torchx/schedulers/ray_scheduler.py,sha256=d10PtA-sEfHmDxF-GKog_Qro7FpIDCjSZbkKBdyj72E,17462
|
|
80
80
|
torchx/schedulers/slurm_scheduler.py,sha256=A11XvI0-Wa7n3qc1IdrYcDaQEZhj0GiGf-PjHj0Byn8,19386
|
|
@@ -115,9 +115,9 @@ torchx/workspace/__init__.py,sha256=FqN8AN4VhR1C_SBY10MggQvNZmyanbbuPuE-JCjkyUY,
|
|
|
115
115
|
torchx/workspace/api.py,sha256=PtDkGTC5lX03pRoYpuMz2KCmM1ZOycRP1UknqvNb97Y,6341
|
|
116
116
|
torchx/workspace/dir_workspace.py,sha256=npNW_IjUZm_yS5r-8hrRkH46ndDd9a_eApT64m1S1T4,2268
|
|
117
117
|
torchx/workspace/docker_workspace.py,sha256=PFu2KQNVC-0p2aKJ-W_BKA9ZOmXdCY2ABEkCExp3udQ,10269
|
|
118
|
-
torchx_nightly-2024.12.
|
|
119
|
-
torchx_nightly-2024.12.
|
|
120
|
-
torchx_nightly-2024.12.
|
|
121
|
-
torchx_nightly-2024.12.
|
|
122
|
-
torchx_nightly-2024.12.
|
|
123
|
-
torchx_nightly-2024.12.
|
|
118
|
+
torchx_nightly-2024.12.19.dist-info/LICENSE,sha256=WVHfXhFC0Ia8LTKt_nJVYobdqTJVg_4J3Crrfm2A8KQ,1721
|
|
119
|
+
torchx_nightly-2024.12.19.dist-info/METADATA,sha256=TTMZujCKPVefmghH92lcE9KgEISFAz_4WNx7lXSmvGs,6170
|
|
120
|
+
torchx_nightly-2024.12.19.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
|
121
|
+
torchx_nightly-2024.12.19.dist-info/entry_points.txt,sha256=T328AMXeKI3JZnnxfkEew2ZcMN1oQDtkXjMz7lkV-P4,169
|
|
122
|
+
torchx_nightly-2024.12.19.dist-info/top_level.txt,sha256=pxew3bc2gsiViS0zADs0jb6kC5v8o_Yy_85fhHj_J1A,7
|
|
123
|
+
torchx_nightly-2024.12.19.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
{torchx_nightly-2024.12.18.dist-info → torchx_nightly-2024.12.19.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|