torchx-nightly 2024.10.1__py3-none-any.whl → 2024.10.2__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 +9 -0
- {torchx_nightly-2024.10.1.dist-info → torchx_nightly-2024.10.2.dist-info}/METADATA +1 -1
- {torchx_nightly-2024.10.1.dist-info → torchx_nightly-2024.10.2.dist-info}/RECORD +7 -7
- {torchx_nightly-2024.10.1.dist-info → torchx_nightly-2024.10.2.dist-info}/LICENSE +0 -0
- {torchx_nightly-2024.10.1.dist-info → torchx_nightly-2024.10.2.dist-info}/WHEEL +0 -0
- {torchx_nightly-2024.10.1.dist-info → torchx_nightly-2024.10.2.dist-info}/entry_points.txt +0 -0
- {torchx_nightly-2024.10.1.dist-info → torchx_nightly-2024.10.2.dist-info}/top_level.txt +0 -0
torchx/util/session.py
CHANGED
|
@@ -17,6 +17,7 @@ def get_session_id_or_create_new() -> str:
|
|
|
17
17
|
"""
|
|
18
18
|
Returns the current session ID, or creates a new one if none exists.
|
|
19
19
|
The session ID remains the same as long as it is in the same process.
|
|
20
|
+
Please DO NOT use this function out of torchx codebase.
|
|
20
21
|
"""
|
|
21
22
|
global CURRENT_SESSION_ID
|
|
22
23
|
if CURRENT_SESSION_ID:
|
|
@@ -24,3 +25,11 @@ def get_session_id_or_create_new() -> str:
|
|
|
24
25
|
session_id = str(uuid.uuid4())
|
|
25
26
|
CURRENT_SESSION_ID = session_id
|
|
26
27
|
return session_id
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
def get_torchx_session_id() -> Optional[str]:
|
|
31
|
+
"""
|
|
32
|
+
Returns the torchx session ID.
|
|
33
|
+
Please use this function to get the session ID out of torchx codebase.
|
|
34
|
+
"""
|
|
35
|
+
return CURRENT_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=UcPPztfY8K-larJte_bQFDa_vI0JR7Ib3SW7SHwJEwE,985
|
|
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=1heBmPgB-W5Zf9gwViM7NrqvHpZlVYeMN7jpY8Qkytc,5479
|
|
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.2.dist-info/LICENSE,sha256=WVHfXhFC0Ia8LTKt_nJVYobdqTJVg_4J3Crrfm2A8KQ,1721
|
|
119
|
+
torchx_nightly-2024.10.2.dist-info/METADATA,sha256=bIjVnYLNCjSR7B6ILr-V87dcROiZmd-mcRqkwgjl5D8,6169
|
|
120
|
+
torchx_nightly-2024.10.2.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
|
|
121
|
+
torchx_nightly-2024.10.2.dist-info/entry_points.txt,sha256=T328AMXeKI3JZnnxfkEew2ZcMN1oQDtkXjMz7lkV-P4,169
|
|
122
|
+
torchx_nightly-2024.10.2.dist-info/top_level.txt,sha256=pxew3bc2gsiViS0zADs0jb6kC5v8o_Yy_85fhHj_J1A,7
|
|
123
|
+
torchx_nightly-2024.10.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|