torchx-nightly 2024.10.16__py3-none-any.whl → 2024.10.18__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.

@@ -20,7 +20,9 @@ Example of usage:
20
20
 
21
21
  """
22
22
 
23
+ import json
23
24
  import logging
25
+ import sys
24
26
  import time
25
27
  import traceback
26
28
  from types import TracebackType
@@ -123,6 +125,20 @@ class log_event:
123
125
  ) // 1000
124
126
  if traceback_type:
125
127
  self._torchx_event.raw_exception = traceback.format_exc()
128
+ typ, value, tb = sys.exc_info()
129
+ if tb:
130
+ last_frame = traceback.extract_tb(tb)[-1]
131
+ self._torchx_event.exception_source_location = json.dumps(
132
+ {
133
+ "filename": last_frame.filename,
134
+ "lineno": last_frame.lineno,
135
+ "name": last_frame.name,
136
+ }
137
+ )
138
+ if exec_type:
139
+ self._torchx_event.exception_type = exec_type.__name__
140
+ if exec_value:
141
+ self._torchx_event.exception_message = str(exec_value)
126
142
  record(self._torchx_event)
127
143
 
128
144
  def _generate_torchx_event(
@@ -52,6 +52,9 @@ class TorchxEvent:
52
52
  wall_time_usec: Optional[int] = None
53
53
  start_epoch_time_usec: Optional[int] = None
54
54
  workspace: Optional[str] = None
55
+ exception_type: Optional[str] = None
56
+ exception_message: Optional[str] = None
57
+ exception_source_location: Optional[str] = None
55
58
 
56
59
  def __str__(self) -> str:
57
60
  return self.serialize()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: torchx-nightly
3
- Version: 2024.10.16
3
+ Version: 2024.10.18
4
4
  Summary: TorchX SDK and Components
5
5
  Home-page: https://github.com/pytorch/torchx
6
6
  Author: TorchX Devs
@@ -58,8 +58,8 @@ torchx/pipelines/kfp/version.py,sha256=mYBxd6bm4MeR34D--xo-JLQ9wHeAl_ZQLwbItCf9t
58
58
  torchx/runner/__init__.py,sha256=x8Sz7s_tLxPgJgvWIhK4ju9BNZU61uBFywGwDY6CqJs,315
59
59
  torchx/runner/api.py,sha256=1FlElbo-j5M3n1eivb3vE1RaMCXEXexGWrAlS-Mbi3w,29153
60
60
  torchx/runner/config.py,sha256=fTdCcf-MKlBg6MzXopF4W0hYyDDoPAuvZs2v2bKzwG0,17849
61
- torchx/runner/events/__init__.py,sha256=TtzBLZ9oaHKfr689R4NnjCii3G8kxiRafe7Q0jRE5_k,4649
62
- torchx/runner/events/api.py,sha256=_6mjS5B5FcSMEea1U0M-fD4jErmbpZ1gQOyUHV-4dqY,2527
61
+ torchx/runner/events/__init__.py,sha256=1_y0bojXl3FL0zlAj7BI4Dg5cXKXUmaa2jZbVH0EDUA,5268
62
+ torchx/runner/events/api.py,sha256=pPLfowWTXtN_XcrEDNI45pE6Ijvdc_Gdxq76RduqgGE,2664
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
@@ -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.16.dist-info/LICENSE,sha256=WVHfXhFC0Ia8LTKt_nJVYobdqTJVg_4J3Crrfm2A8KQ,1721
119
- torchx_nightly-2024.10.16.dist-info/METADATA,sha256=1bAlLuJQgYDC69-lj4O-Eh_OgJdoSJfdfOP5xUV-S0w,6170
120
- torchx_nightly-2024.10.16.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
121
- torchx_nightly-2024.10.16.dist-info/entry_points.txt,sha256=T328AMXeKI3JZnnxfkEew2ZcMN1oQDtkXjMz7lkV-P4,169
122
- torchx_nightly-2024.10.16.dist-info/top_level.txt,sha256=pxew3bc2gsiViS0zADs0jb6kC5v8o_Yy_85fhHj_J1A,7
123
- torchx_nightly-2024.10.16.dist-info/RECORD,,
118
+ torchx_nightly-2024.10.18.dist-info/LICENSE,sha256=WVHfXhFC0Ia8LTKt_nJVYobdqTJVg_4J3Crrfm2A8KQ,1721
119
+ torchx_nightly-2024.10.18.dist-info/METADATA,sha256=C3pGEoNofJknAitti_8TZoSWQNaSibaQWmDZt2uOujU,6170
120
+ torchx_nightly-2024.10.18.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
121
+ torchx_nightly-2024.10.18.dist-info/entry_points.txt,sha256=T328AMXeKI3JZnnxfkEew2ZcMN1oQDtkXjMz7lkV-P4,169
122
+ torchx_nightly-2024.10.18.dist-info/top_level.txt,sha256=pxew3bc2gsiViS0zADs0jb6kC5v8o_Yy_85fhHj_J1A,7
123
+ torchx_nightly-2024.10.18.dist-info/RECORD,,