torchx-nightly 2024.8.23__py3-none-any.whl → 2024.8.24__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/runner/api.py CHANGED
@@ -198,10 +198,12 @@ class Runner:
198
198
  parent_run_id=parent_run_id,
199
199
  )
200
200
  handle = self.schedule(dryrun_info)
201
+ app = none_throws(dryrun_info._app)
201
202
  ctx._torchx_event.workspace = workspace
202
203
  ctx._torchx_event.scheduler = none_throws(dryrun_info._scheduler)
203
- ctx._torchx_event.app_image = none_throws(dryrun_info._app).roles[0].image
204
+ ctx._torchx_event.app_image = app.roles[0].image
204
205
  ctx._torchx_event.app_id = parse_app_handle(handle)[2]
206
+ ctx._torchx_event.app_metadata = app.metadata
205
207
  return handle
206
208
 
207
209
  def dryrun_component(
@@ -263,6 +265,7 @@ class Runner:
263
265
  ctx._torchx_event.scheduler = none_throws(dryrun_info._scheduler)
264
266
  ctx._torchx_event.app_image = none_throws(dryrun_info._app).roles[0].image
265
267
  ctx._torchx_event.app_id = parse_app_handle(handle)[2]
268
+ ctx._torchx_event.app_metadata = app.metadata
266
269
  return handle
267
270
 
268
271
  def schedule(self, dryrun_info: AppDryRunInfo) -> AppHandle:
@@ -24,7 +24,7 @@ import logging
24
24
  import time
25
25
  import traceback
26
26
  from types import TracebackType
27
- from typing import Optional, Type
27
+ from typing import Dict, Optional, Type
28
28
 
29
29
  from torchx.runner.events.handlers import get_logging_handler
30
30
 
@@ -84,6 +84,7 @@ class log_event:
84
84
  scheduler: Optional[str] = None,
85
85
  app_id: Optional[str] = None,
86
86
  app_image: Optional[str] = None,
87
+ app_metadata: Optional[Dict[str, str]] = None,
87
88
  runcfg: Optional[str] = None,
88
89
  workspace: Optional[str] = None,
89
90
  ) -> None:
@@ -92,6 +93,7 @@ class log_event:
92
93
  scheduler or "",
93
94
  app_id,
94
95
  app_image=app_image,
96
+ app_metadata=app_metadata,
95
97
  runcfg=runcfg,
96
98
  workspace=workspace,
97
99
  )
@@ -128,6 +130,7 @@ class log_event:
128
130
  scheduler: str,
129
131
  app_id: Optional[str] = None,
130
132
  app_image: Optional[str] = None,
133
+ app_metadata: Optional[Dict[str, str]] = None,
131
134
  runcfg: Optional[str] = None,
132
135
  source: SourceType = SourceType.UNKNOWN,
133
136
  workspace: Optional[str] = None,
@@ -138,6 +141,7 @@ class log_event:
138
141
  api=api,
139
142
  app_id=app_id,
140
143
  app_image=app_image,
144
+ app_metadata=app_metadata,
141
145
  runcfg=runcfg,
142
146
  source=source,
143
147
  workspace=workspace,
@@ -10,7 +10,7 @@
10
10
  import json
11
11
  from dataclasses import asdict, dataclass
12
12
  from enum import Enum
13
- from typing import Optional, Union
13
+ from typing import Dict, Optional, Union
14
14
 
15
15
 
16
16
  class SourceType(str, Enum):
@@ -30,10 +30,13 @@ class TorchxEvent:
30
30
  api: Api name
31
31
  app_id: Unique id that is set by the underlying scheduler
32
32
  image: Image/container bundle that is used to execute request.
33
+ app_metadata: metadata to the app (treatment of metadata is scheduler dependent)
33
34
  runcfg: Run config that was used to schedule app.
34
35
  source: Type of source the event is generated.
35
36
  cpu_time_usec: CPU time spent in usec
36
37
  wall_time_usec: Wall time spent in usec
38
+ start_epoch_time_usec: Epoch time in usec when runner event starts
39
+ Workspace: Track how different workspaces/no workspace affects build and scheduler
37
40
  """
38
41
 
39
42
  session: str
@@ -41,6 +44,7 @@ class TorchxEvent:
41
44
  api: str
42
45
  app_id: Optional[str] = None
43
46
  app_image: Optional[str] = None
47
+ app_metadata: Optional[Dict[str, str]] = None
44
48
  runcfg: Optional[str] = None
45
49
  raw_exception: Optional[str] = None
46
50
  source: SourceType = SourceType.UNKNOWN
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: torchx-nightly
3
- Version: 2024.8.23
3
+ Version: 2024.8.24
4
4
  Summary: TorchX SDK and Components
5
5
  Home-page: https://github.com/pytorch/torchx
6
6
  Author: TorchX Devs
@@ -56,10 +56,10 @@ torchx/pipelines/kfp/__init__.py,sha256=8iJ8lql_fxwuk9VCYSxXnX6tPL228fB5mDZpOs-k
56
56
  torchx/pipelines/kfp/adapter.py,sha256=V96Rg2ypas0ZpNNn4ojplJMmC5vcBfcuxAITaY8PV_M,8969
57
57
  torchx/pipelines/kfp/version.py,sha256=mYBxd6bm4MeR34D--xo-JLQ9wHeAl_ZQLwbItCf9tr0,539
58
58
  torchx/runner/__init__.py,sha256=x8Sz7s_tLxPgJgvWIhK4ju9BNZU61uBFywGwDY6CqJs,315
59
- torchx/runner/api.py,sha256=w882mjD4AbQQe23jeePBfWs0UBZ7LxAI1ryNa73iaq4,28487
59
+ torchx/runner/api.py,sha256=17ZFEYeuIK0kUrTUysdgsFaEVc6_-ggvBuSoabQnrcA,28625
60
60
  torchx/runner/config.py,sha256=fTdCcf-MKlBg6MzXopF4W0hYyDDoPAuvZs2v2bKzwG0,17849
61
- torchx/runner/events/__init__.py,sha256=9vaNjo39IR2YE-gDAd23PLvJg7i-hOMDV50nXAsYGlI,4376
62
- torchx/runner/events/api.py,sha256=JiC3ZgHONE_k9vAmur-8cQ2ZdUAPm45LJB8tBUguGIo,2231
61
+ torchx/runner/events/__init__.py,sha256=KxvodAlq9ZDUIKzdlzHuyQWa0aoIGKTtBfE7vjM6GRk,4570
62
+ torchx/runner/events/api.py,sha256=UTdExV7cMR5kC0nQIViwTlyblhBF3D5bbuqd4-kWrkE,2542
63
63
  torchx/runner/events/handlers.py,sha256=ThHCIJW21BfBgB7b6ftyjASJmD1KdizpjuTtsyqnvJs,522
64
64
  torchx/runtime/__init__.py,sha256=Wxje2BryzeQneFu5r6P9JJiEKG-_C9W1CcZ_JNrKT6g,593
65
65
  torchx/runtime/tracking/__init__.py,sha256=dYnAPnrXYREfPXkpHhdOFkcYIODWEbA13PdD-wLQYBo,3055
@@ -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.8.23.dist-info/LICENSE,sha256=WVHfXhFC0Ia8LTKt_nJVYobdqTJVg_4J3Crrfm2A8KQ,1721
117
- torchx_nightly-2024.8.23.dist-info/METADATA,sha256=cyTc_ts0HjdaSKxubRso3W4YoYOo1hHGMwAMPzI3_Nc,6132
118
- torchx_nightly-2024.8.23.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
119
- torchx_nightly-2024.8.23.dist-info/entry_points.txt,sha256=T328AMXeKI3JZnnxfkEew2ZcMN1oQDtkXjMz7lkV-P4,169
120
- torchx_nightly-2024.8.23.dist-info/top_level.txt,sha256=pxew3bc2gsiViS0zADs0jb6kC5v8o_Yy_85fhHj_J1A,7
121
- torchx_nightly-2024.8.23.dist-info/RECORD,,
116
+ torchx_nightly-2024.8.24.dist-info/LICENSE,sha256=WVHfXhFC0Ia8LTKt_nJVYobdqTJVg_4J3Crrfm2A8KQ,1721
117
+ torchx_nightly-2024.8.24.dist-info/METADATA,sha256=FYqDWiXiLlie01bTwXhg_Fq_WJWg0I45wRPuFodgLmE,6132
118
+ torchx_nightly-2024.8.24.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
119
+ torchx_nightly-2024.8.24.dist-info/entry_points.txt,sha256=T328AMXeKI3JZnnxfkEew2ZcMN1oQDtkXjMz7lkV-P4,169
120
+ torchx_nightly-2024.8.24.dist-info/top_level.txt,sha256=pxew3bc2gsiViS0zADs0jb6kC5v8o_Yy_85fhHj_J1A,7
121
+ torchx_nightly-2024.8.24.dist-info/RECORD,,