torchx-nightly 2024.6.5__py3-none-any.whl → 2024.6.7__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/docker_scheduler.py +9 -0
- {torchx_nightly-2024.6.5.dist-info → torchx_nightly-2024.6.7.dist-info}/METADATA +1 -1
- {torchx_nightly-2024.6.5.dist-info → torchx_nightly-2024.6.7.dist-info}/RECORD +7 -7
- {torchx_nightly-2024.6.5.dist-info → torchx_nightly-2024.6.7.dist-info}/LICENSE +0 -0
- {torchx_nightly-2024.6.5.dist-info → torchx_nightly-2024.6.7.dist-info}/WHEEL +0 -0
- {torchx_nightly-2024.6.5.dist-info → torchx_nightly-2024.6.7.dist-info}/entry_points.txt +0 -0
- {torchx_nightly-2024.6.5.dist-info → torchx_nightly-2024.6.7.dist-info}/top_level.txt +0 -0
|
@@ -124,6 +124,7 @@ def ensure_network(client: Optional["DockerClient"] = None) -> None:
|
|
|
124
124
|
class DockerOpts(TypedDict, total=False):
|
|
125
125
|
copy_env: Optional[List[str]]
|
|
126
126
|
env: Optional[Dict[str, str]]
|
|
127
|
+
privileged: bool
|
|
127
128
|
|
|
128
129
|
|
|
129
130
|
class DockerScheduler(DockerWorkspaceMixin, Scheduler[DockerOpts]):
|
|
@@ -287,6 +288,7 @@ class DockerScheduler(DockerWorkspaceMixin, Scheduler[DockerOpts]):
|
|
|
287
288
|
LABEL_REPLICA_ID: str(replica_id),
|
|
288
289
|
},
|
|
289
290
|
"hostname": name,
|
|
291
|
+
"privileged": cfg.get("privileged", False),
|
|
290
292
|
"network": NETWORK,
|
|
291
293
|
"mounts": mounts,
|
|
292
294
|
"devices": devices,
|
|
@@ -374,6 +376,13 @@ class DockerScheduler(DockerWorkspaceMixin, Scheduler[DockerOpts]):
|
|
|
374
376
|
(e.g. ENV1:v1,ENV2:v2,ENV3:v3 or ENV1:V1;ENV2:V2). Environment variables from env will be applied on top
|
|
375
377
|
of the ones from copy_env""",
|
|
376
378
|
)
|
|
379
|
+
opts.add(
|
|
380
|
+
"privileged",
|
|
381
|
+
type_=bool,
|
|
382
|
+
default=False,
|
|
383
|
+
help="If true runs the container with elevated permissions."
|
|
384
|
+
" Equivalent to running with `docker run --privileged`.",
|
|
385
|
+
)
|
|
377
386
|
return opts
|
|
378
387
|
|
|
379
388
|
def _get_app_state(self, container: "Container") -> AppState:
|
|
@@ -69,7 +69,7 @@ torchx/schedulers/api.py,sha256=s2hI87uAWtU2SHMNBKjAqelzQU_GKp_BjcxdtjVVDDk,1415
|
|
|
69
69
|
torchx/schedulers/aws_batch_scheduler.py,sha256=7qxy3UFRq0F731-kTjEi6VABWKD60o0req6CBMsTohU,27975
|
|
70
70
|
torchx/schedulers/aws_sagemaker_scheduler.py,sha256=dPah3yaKFUVm-ZZrzFbyM_abP-LCTd-AcAjZ6t2iycU,20699
|
|
71
71
|
torchx/schedulers/devices.py,sha256=BnjZnbXGTWiZKLmMKE3zPDOkb4Vao3jgPVa01aV6vyY,1367
|
|
72
|
-
torchx/schedulers/docker_scheduler.py,sha256=
|
|
72
|
+
torchx/schedulers/docker_scheduler.py,sha256=IrDlmeH-tg_f3krA04Y81nK9dmuYfEPbYOuCjSQkIHA,16541
|
|
73
73
|
torchx/schedulers/gcp_batch_scheduler.py,sha256=dlUfvjfMuQiRcSXQAdwxqdadwPhOf82L5u-ejRWtFgE,16226
|
|
74
74
|
torchx/schedulers/ids.py,sha256=3E-_vwVYC-8Tv8kjuY9-W7TbOe_-Laqd8a65uIN3hQY,1798
|
|
75
75
|
torchx/schedulers/kubernetes_mcad_scheduler.py,sha256=xAt-on3K8HwS2kzWasn0zXd2q4IDQzo2N5A5Ehh9NII,42885
|
|
@@ -113,9 +113,9 @@ torchx/workspace/__init__.py,sha256=FqN8AN4VhR1C_SBY10MggQvNZmyanbbuPuE-JCjkyUY,
|
|
|
113
113
|
torchx/workspace/api.py,sha256=1heBmPgB-W5Zf9gwViM7NrqvHpZlVYeMN7jpY8Qkytc,5479
|
|
114
114
|
torchx/workspace/dir_workspace.py,sha256=npNW_IjUZm_yS5r-8hrRkH46ndDd9a_eApT64m1S1T4,2268
|
|
115
115
|
torchx/workspace/docker_workspace.py,sha256=PFu2KQNVC-0p2aKJ-W_BKA9ZOmXdCY2ABEkCExp3udQ,10269
|
|
116
|
-
torchx_nightly-2024.6.
|
|
117
|
-
torchx_nightly-2024.6.
|
|
118
|
-
torchx_nightly-2024.6.
|
|
119
|
-
torchx_nightly-2024.6.
|
|
120
|
-
torchx_nightly-2024.6.
|
|
121
|
-
torchx_nightly-2024.6.
|
|
116
|
+
torchx_nightly-2024.6.7.dist-info/LICENSE,sha256=WVHfXhFC0Ia8LTKt_nJVYobdqTJVg_4J3Crrfm2A8KQ,1721
|
|
117
|
+
torchx_nightly-2024.6.7.dist-info/METADATA,sha256=bVS-vpYCm9ua1LcsjnRhwb0LKglyUfAenaAr0ha1ThI,6183
|
|
118
|
+
torchx_nightly-2024.6.7.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
119
|
+
torchx_nightly-2024.6.7.dist-info/entry_points.txt,sha256=3JYZFlX9aWzR-Gs_qsx1zq7mlqbFz6Mi9rQUULW8caI,170
|
|
120
|
+
torchx_nightly-2024.6.7.dist-info/top_level.txt,sha256=pxew3bc2gsiViS0zADs0jb6kC5v8o_Yy_85fhHj_J1A,7
|
|
121
|
+
torchx_nightly-2024.6.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|