hatchet-sdk 0.43.3__py3-none-any.whl → 0.44.1__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.

@@ -237,7 +237,7 @@ class AsyncRestApi:
237
237
  workflow=workflow_name,
238
238
  create_cron_workflow_trigger_request=CreateCronWorkflowTriggerRequest(
239
239
  cronName=cron_name,
240
- expression=expression,
240
+ cronExpression=expression,
241
241
  input=input,
242
242
  additional_metadata=additional_metadata,
243
243
  ),
@@ -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.1
4
4
  Summary:
5
5
  Author: Alexander Belanger
6
6
  Author-email: alexander@hatchet.run
@@ -185,12 +185,12 @@ hatchet_sdk/clients/rest/models/workflow_version_meta.py,sha256=TW4R7bAuYAg_LraN
185
185
  hatchet_sdk/clients/rest/models/workflow_workers_count.py,sha256=qhzqfvjjIDyARkiiLGluMIqEmqO-diHTsjlu0Doi0yg,2875
186
186
  hatchet_sdk/clients/rest/rest.py,sha256=G83F1k4g_ePzvXW95rApzvaRDQPcaxrj-JmZyq1LvGw,6606
187
187
  hatchet_sdk/clients/rest/tenacity_utils.py,sha256=gy500kHXQ-4ZrZH1biHGmavhfh0NarCJcaIfW-A9Qd0,1051
188
- hatchet_sdk/clients/rest_client.py,sha256=wYCRQjjZha9XcYg6pdVgrFV4pcli89Y_G45EDEDteCk,21874
188
+ hatchet_sdk/clients/rest_client.py,sha256=M9k6ox594UlhjPvGs1ZTXPGTRg68u2Oqo1EG6CgrJUE,21878
189
189
  hatchet_sdk/clients/run_event_listener.py,sha256=51WTg52_aISgYPOFPHJ21rb4IO6aEd7Ugp7FCf4HnfM,10184
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.1.dist-info/METADATA,sha256=FwPI0n_dhdeo2_71j-Z2FuQ65PgMEGt77LZ5NxuZ4W0,1736
234
+ hatchet_sdk-0.44.1.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
235
+ hatchet_sdk-0.44.1.dist-info/entry_points.txt,sha256=LTtQRABmSGYOxRI68cUVEz5dp9Qb57eqXGic9lU8RMo,1023
236
+ hatchet_sdk-0.44.1.dist-info/RECORD,,