torchx-nightly 2024.10.21__py3-none-any.whl → 2024.10.22__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/util/session.py +7 -0
- {torchx_nightly-2024.10.21.dist-info → torchx_nightly-2024.10.22.dist-info}/METADATA +1 -1
- {torchx_nightly-2024.10.21.dist-info → torchx_nightly-2024.10.22.dist-info}/RECORD +7 -7
- {torchx_nightly-2024.10.21.dist-info → torchx_nightly-2024.10.22.dist-info}/LICENSE +0 -0
- {torchx_nightly-2024.10.21.dist-info → torchx_nightly-2024.10.22.dist-info}/WHEEL +0 -0
- {torchx_nightly-2024.10.21.dist-info → torchx_nightly-2024.10.22.dist-info}/entry_points.txt +0 -0
- {torchx_nightly-2024.10.21.dist-info → torchx_nightly-2024.10.22.dist-info}/top_level.txt +0 -0
torchx/util/session.py
CHANGED
|
@@ -7,9 +7,12 @@
|
|
|
7
7
|
|
|
8
8
|
# pyre-strict
|
|
9
9
|
|
|
10
|
+
import os
|
|
10
11
|
import uuid
|
|
11
12
|
from typing import Optional
|
|
12
13
|
|
|
14
|
+
TORCHX_INTERNAL_SESSION_ID = "TORCHX_INTERNAL_SESSION_ID"
|
|
15
|
+
|
|
13
16
|
CURRENT_SESSION_ID: Optional[str] = None
|
|
14
17
|
|
|
15
18
|
|
|
@@ -22,6 +25,10 @@ def get_session_id_or_create_new() -> str:
|
|
|
22
25
|
global CURRENT_SESSION_ID
|
|
23
26
|
if CURRENT_SESSION_ID:
|
|
24
27
|
return CURRENT_SESSION_ID
|
|
28
|
+
env_session_id = os.getenv(TORCHX_INTERNAL_SESSION_ID)
|
|
29
|
+
if env_session_id:
|
|
30
|
+
CURRENT_SESSION_ID = env_session_id
|
|
31
|
+
return CURRENT_SESSION_ID
|
|
25
32
|
session_id = str(uuid.uuid4())
|
|
26
33
|
CURRENT_SESSION_ID = session_id
|
|
27
34
|
return session_id
|
|
@@ -107,7 +107,7 @@ torchx/util/entrypoints.py,sha256=4rqmA81XYLj4Kk7GboJi0z78h4NIQxSrcOzDuuTwCkw,27
|
|
|
107
107
|
torchx/util/io.py,sha256=HNpWLcFUX0WTAP3CsdamHz--FR5A4kSdLCPfNqa2UkA,1807
|
|
108
108
|
torchx/util/log_tee_helpers.py,sha256=yJ4ODU3QE0t7ZgYHrE-HiwlOhfg8BK1e4oVaw_zMa2E,6320
|
|
109
109
|
torchx/util/modules.py,sha256=LRTuZRH5bbRr0ZaCtCtvKbgwhMoPsTx-GokWbCLGPdk,1131
|
|
110
|
-
torchx/util/session.py,sha256=
|
|
110
|
+
torchx/util/session.py,sha256=r6M_nyzXgcbk1GgYGZ324F_ehRGCqjjdVk4YgKxMj8M,1214
|
|
111
111
|
torchx/util/shlex.py,sha256=eXEKu8KC3zIcd8tEy9_s8Ds5oma8BORr-0VGWNpG2dk,463
|
|
112
112
|
torchx/util/strings.py,sha256=GkLWCmYS89Uv6bWc5hH0XwvHy7oQmprv2U7axC4A2e8,678
|
|
113
113
|
torchx/util/types.py,sha256=een55pV-N8aBc3qUBjHRc1llJcX10JVa19pB8dBE8No,7564
|
|
@@ -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.10.
|
|
119
|
-
torchx_nightly-2024.10.
|
|
120
|
-
torchx_nightly-2024.10.
|
|
121
|
-
torchx_nightly-2024.10.
|
|
122
|
-
torchx_nightly-2024.10.
|
|
123
|
-
torchx_nightly-2024.10.
|
|
118
|
+
torchx_nightly-2024.10.22.dist-info/LICENSE,sha256=WVHfXhFC0Ia8LTKt_nJVYobdqTJVg_4J3Crrfm2A8KQ,1721
|
|
119
|
+
torchx_nightly-2024.10.22.dist-info/METADATA,sha256=K1bYr0xnqUeNUZ6H_jcEFieNtuvnFtmtSlqu6oNQGkE,6170
|
|
120
|
+
torchx_nightly-2024.10.22.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
|
|
121
|
+
torchx_nightly-2024.10.22.dist-info/entry_points.txt,sha256=T328AMXeKI3JZnnxfkEew2ZcMN1oQDtkXjMz7lkV-P4,169
|
|
122
|
+
torchx_nightly-2024.10.22.dist-info/top_level.txt,sha256=pxew3bc2gsiViS0zADs0jb6kC5v8o_Yy_85fhHj_J1A,7
|
|
123
|
+
torchx_nightly-2024.10.22.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
{torchx_nightly-2024.10.21.dist-info → torchx_nightly-2024.10.22.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|