torchx-nightly 2024.4.25__py3-none-any.whl → 2024.4.27__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
@@ -177,7 +177,7 @@ class Runner:
177
177
  ComponentNotFoundException: if the ``component_path`` is failed to resolve.
178
178
  """
179
179
 
180
- with log_event("run_component") as ctx:
180
+ with log_event("run_component", workspace=workspace) as ctx:
181
181
  dryrun_info = self.dryrun_component(
182
182
  component,
183
183
  component_args,
@@ -237,7 +237,9 @@ class Runner:
237
237
  An application handle that is used to call other action APIs on the app.
238
238
  """
239
239
 
240
- with log_event(api="run", runcfg=json.dumps(cfg) if cfg else None) as ctx:
240
+ with log_event(
241
+ api="run", runcfg=json.dumps(cfg) if cfg else None, workspace=workspace
242
+ ) as ctx:
241
243
  dryrun_info = self.dryrun(
242
244
  app,
243
245
  scheduler,
@@ -371,7 +373,12 @@ class Runner:
371
373
  role.env[tracker_config_env_var_name(name)] = config
372
374
 
373
375
  cfg = cfg or dict()
374
- with log_event("dryrun", scheduler, runcfg=json.dumps(cfg) if cfg else None):
376
+ with log_event(
377
+ "dryrun",
378
+ scheduler,
379
+ runcfg=json.dumps(cfg) if cfg else None,
380
+ workspace=workspace,
381
+ ):
375
382
  sched = self._scheduler(scheduler)
376
383
  resolved_cfg = sched.run_opts().resolve(cfg)
377
384
  if workspace and isinstance(sched, WorkspaceMixin):
@@ -85,9 +85,15 @@ class log_event:
85
85
  app_id: Optional[str] = None,
86
86
  app_image: Optional[str] = None,
87
87
  runcfg: Optional[str] = None,
88
+ workspace: Optional[str] = None,
88
89
  ) -> None:
89
90
  self._torchx_event: TorchxEvent = self._generate_torchx_event(
90
- api, scheduler or "", app_id, app_image=app_image, runcfg=runcfg
91
+ api,
92
+ scheduler or "",
93
+ app_id,
94
+ app_image=app_image,
95
+ runcfg=runcfg,
96
+ workspace=workspace,
91
97
  )
92
98
  self._start_cpu_time_ns = 0
93
99
  self._start_wall_time_ns = 0
@@ -124,6 +130,7 @@ class log_event:
124
130
  app_image: Optional[str] = None,
125
131
  runcfg: Optional[str] = None,
126
132
  source: SourceType = SourceType.UNKNOWN,
133
+ workspace: Optional[str] = None,
127
134
  ) -> TorchxEvent:
128
135
  return TorchxEvent(
129
136
  session=app_id or "",
@@ -133,4 +140,5 @@ class log_event:
133
140
  app_image=app_image,
134
141
  runcfg=runcfg,
135
142
  source=source,
143
+ workspace=workspace,
136
144
  )
@@ -47,6 +47,7 @@ class TorchxEvent:
47
47
  cpu_time_usec: Optional[int] = None
48
48
  wall_time_usec: Optional[int] = None
49
49
  start_epoch_time_usec: Optional[int] = None
50
+ workspace: Optional[str] = None
50
51
 
51
52
  def __str__(self) -> str:
52
53
  return self.serialize()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: torchx-nightly
3
- Version: 2024.4.25
3
+ Version: 2024.4.27
4
4
  Summary: TorchX SDK and Components
5
5
  Home-page: https://github.com/pytorch/torchx
6
6
  Author: TorchX Devs
@@ -55,10 +55,10 @@ torchx/pipelines/kfp/__init__.py,sha256=8iJ8lql_fxwuk9VCYSxXnX6tPL228fB5mDZpOs-k
55
55
  torchx/pipelines/kfp/adapter.py,sha256=q9fGRS3-xOYVl-tAjTNlUFLbw22r5IiCz9IP34t1rWU,8959
56
56
  torchx/pipelines/kfp/version.py,sha256=mYBxd6bm4MeR34D--xo-JLQ9wHeAl_ZQLwbItCf9tr0,539
57
57
  torchx/runner/__init__.py,sha256=x8Sz7s_tLxPgJgvWIhK4ju9BNZU61uBFywGwDY6CqJs,315
58
- torchx/runner/api.py,sha256=AuP2qGGPotawzBOrsZHw5pQq8uzDTIelp6PiGNe1DAA,27869
58
+ torchx/runner/api.py,sha256=YPgkqifZqfvHy7FK57qVrLwwaZkt3jit7ALHcuuxhxY,28013
59
59
  torchx/runner/config.py,sha256=pBNbe51EvsfyZvOdhAKvobq0V9lKtpnDkWUzEgnxiP4,17838
60
- torchx/runner/events/__init__.py,sha256=3FBI4y9oaLFUs6TtTjJAWmGV24WLP_GkOo9AfhDrfxg,4179
61
- torchx/runner/events/api.py,sha256=EgXK2wF_qc_zZHFgVHNcSAaPibyjM91DfQVtkXXcC-E,2195
60
+ torchx/runner/events/__init__.py,sha256=9vaNjo39IR2YE-gDAd23PLvJg7i-hOMDV50nXAsYGlI,4376
61
+ torchx/runner/events/api.py,sha256=JiC3ZgHONE_k9vAmur-8cQ2ZdUAPm45LJB8tBUguGIo,2231
62
62
  torchx/runner/events/handlers.py,sha256=ThHCIJW21BfBgB7b6ftyjASJmD1KdizpjuTtsyqnvJs,522
63
63
  torchx/runtime/__init__.py,sha256=Wxje2BryzeQneFu5r6P9JJiEKG-_C9W1CcZ_JNrKT6g,593
64
64
  torchx/runtime/tracking/__init__.py,sha256=dYnAPnrXYREfPXkpHhdOFkcYIODWEbA13PdD-wLQYBo,3055
@@ -112,9 +112,9 @@ torchx/workspace/__init__.py,sha256=FqN8AN4VhR1C_SBY10MggQvNZmyanbbuPuE-JCjkyUY,
112
112
  torchx/workspace/api.py,sha256=1heBmPgB-W5Zf9gwViM7NrqvHpZlVYeMN7jpY8Qkytc,5479
113
113
  torchx/workspace/dir_workspace.py,sha256=npNW_IjUZm_yS5r-8hrRkH46ndDd9a_eApT64m1S1T4,2268
114
114
  torchx/workspace/docker_workspace.py,sha256=PFu2KQNVC-0p2aKJ-W_BKA9ZOmXdCY2ABEkCExp3udQ,10269
115
- torchx_nightly-2024.4.25.dist-info/LICENSE,sha256=WVHfXhFC0Ia8LTKt_nJVYobdqTJVg_4J3Crrfm2A8KQ,1721
116
- torchx_nightly-2024.4.25.dist-info/METADATA,sha256=NkEwKxtGkoWMu3SGsu4-C2H3tKELuIG3ng2kZMp66_o,6053
117
- torchx_nightly-2024.4.25.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
118
- torchx_nightly-2024.4.25.dist-info/entry_points.txt,sha256=3JYZFlX9aWzR-Gs_qsx1zq7mlqbFz6Mi9rQUULW8caI,170
119
- torchx_nightly-2024.4.25.dist-info/top_level.txt,sha256=pxew3bc2gsiViS0zADs0jb6kC5v8o_Yy_85fhHj_J1A,7
120
- torchx_nightly-2024.4.25.dist-info/RECORD,,
115
+ torchx_nightly-2024.4.27.dist-info/LICENSE,sha256=WVHfXhFC0Ia8LTKt_nJVYobdqTJVg_4J3Crrfm2A8KQ,1721
116
+ torchx_nightly-2024.4.27.dist-info/METADATA,sha256=vTpt4RBunHNlIACRcH17wDZdb53GxWTFwXoMlpfrU0c,6053
117
+ torchx_nightly-2024.4.27.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
118
+ torchx_nightly-2024.4.27.dist-info/entry_points.txt,sha256=3JYZFlX9aWzR-Gs_qsx1zq7mlqbFz6Mi9rQUULW8caI,170
119
+ torchx_nightly-2024.4.27.dist-info/top_level.txt,sha256=pxew3bc2gsiViS0zADs0jb6kC5v8o_Yy_85fhHj_J1A,7
120
+ torchx_nightly-2024.4.27.dist-info/RECORD,,