hatchet-sdk 0.43.3__py3-none-any.whl → 0.44.0__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 hatchet-sdk might be problematic. Click here for more details.

@@ -376,6 +376,16 @@ class Context(BaseContext):
376
376
  def parent_workflow_run_id(self) -> str | None:
377
377
  return self.action.parent_workflow_run_id
378
378
 
379
+ def step_run_errors(self) -> dict[str, str]:
380
+ errors = cast(dict[str, str], self.data.get("step_run_errors", {}))
381
+
382
+ if not errors:
383
+ logger.error(
384
+ "No step run errors found. `context.step_run_errors` is intended to be run in an on-failure step, and will only work on engine versions more recent than v0.53.10"
385
+ )
386
+
387
+ return errors
388
+
379
389
  def fetch_run_failures(self) -> list[dict[str, StrictStr]]:
380
390
  data = self.rest_client.workflow_run_get(self.action.workflow_run_id)
381
391
  other_job_runs = [
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: hatchet-sdk
3
- Version: 0.43.3
3
+ Version: 0.44.0
4
4
  Summary:
5
5
  Author: Alexander Belanger
6
6
  Author-email: alexander@hatchet.run
@@ -190,7 +190,7 @@ hatchet_sdk/clients/run_event_listener.py,sha256=51WTg52_aISgYPOFPHJ21rb4IO6aEd7
190
190
  hatchet_sdk/clients/workflow_listener.py,sha256=Q_WJcGlZNHJGSpxzDac9wELjgxhP0vLaNTXRy_xnxc8,9466
191
191
  hatchet_sdk/connection.py,sha256=593aUGAj7Ouf00lcVwx_pmhdQ9NOC5ANT1Jrf8nwkHs,2165
192
192
  hatchet_sdk/context/__init__.py,sha256=Pl_seJ_SJpW34BBZp4KixuZ8GiRK9sJFfegf9u3m7zk,29
193
- hatchet_sdk/context/context.py,sha256=R2RsPgzBNYi1FJvg4MOowSY-V1Yf69qUmXe3MsAWkyo,13518
193
+ hatchet_sdk/context/context.py,sha256=sRAih-dBqxkmQUxgo_IpQP2YIJJinzJ2C09RP-EM94o,13910
194
194
  hatchet_sdk/context/worker_context.py,sha256=OVcEWvdT_Kpd0nlg61VAPUgIPSFzSLs0aSrXWj-1GX4,974
195
195
  hatchet_sdk/contracts/dispatcher_pb2.py,sha256=-9YGf7pfuMyRpkjjcmFa6jlr-95gha4CJw9hG3seNFI,14573
196
196
  hatchet_sdk/contracts/dispatcher_pb2.pyi,sha256=2dvxvN4OETOc-OhLNWDntN7GvI4QUxbMiGLdK7FM1wE,18224
@@ -230,7 +230,7 @@ hatchet_sdk/worker/runner/utils/error_with_traceback.py,sha256=Iih_s8JNqrinXETFJ
230
230
  hatchet_sdk/worker/worker.py,sha256=7UPm3qTzNYSSm9QTNX6zBBMJqVA6nKFeCbAdqLLjUBs,13007
231
231
  hatchet_sdk/workflow.py,sha256=XRj5jcCQSvPQMXxBipf-ZlARua2E8Z9igRzGcQ5alkI,9375
232
232
  hatchet_sdk/workflow_run.py,sha256=BwK5cefvXXvyQ1Ednj_7LeejMwQJqWnvUC_FTBmJNxk,1805
233
- hatchet_sdk-0.43.3.dist-info/METADATA,sha256=5JJaldCzlxfQNz5lvze58BEl0HK6k2cuOTdaeCNJgnE,1736
234
- hatchet_sdk-0.43.3.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
235
- hatchet_sdk-0.43.3.dist-info/entry_points.txt,sha256=LTtQRABmSGYOxRI68cUVEz5dp9Qb57eqXGic9lU8RMo,1023
236
- hatchet_sdk-0.43.3.dist-info/RECORD,,
233
+ hatchet_sdk-0.44.0.dist-info/METADATA,sha256=pJrEPNQ7Lyx6R7FVf2gaUNlWGCa0y9fz5qVwMi1UcuA,1736
234
+ hatchet_sdk-0.44.0.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
235
+ hatchet_sdk-0.44.0.dist-info/entry_points.txt,sha256=LTtQRABmSGYOxRI68cUVEz5dp9Qb57eqXGic9lU8RMo,1023
236
+ hatchet_sdk-0.44.0.dist-info/RECORD,,