hatchet-sdk 0.46.0__py3-none-any.whl → 0.46.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.

@@ -91,6 +91,11 @@ class Action:
91
91
 
92
92
  @property
93
93
  def otel_attributes(self) -> dict[str, str | int]:
94
+ try:
95
+ payload_str = json.dumps(self.action_payload, default=str)
96
+ except Exception:
97
+ payload_str = str(self.action_payload)
98
+
94
99
  attrs: dict[str, str | int | None] = {
95
100
  "hatchet.tenant_id": self.tenant_id,
96
101
  "hatchet.worker_id": self.worker_id,
@@ -101,7 +106,7 @@ class Action:
101
106
  "hatchet.parent_workflow_run_id": self.parent_workflow_run_id,
102
107
  "hatchet.child_workflow_index": self.child_workflow_index,
103
108
  "hatchet.child_workflow_key": self.child_workflow_key,
104
- "hatchet.action_payload": self.action_payload,
109
+ "hatchet.action_payload": payload_str,
105
110
  "hatchet.workflow_name": self.job_name,
106
111
  "hatchet.action_name": self.action_id,
107
112
  "hatchet.get_group_key_run_id": self.get_group_key_run_id,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: hatchet-sdk
3
- Version: 0.46.0
3
+ Version: 0.46.1
4
4
  Summary:
5
5
  Author: Alexander Belanger
6
6
  Author-email: alexander@hatchet.run
@@ -1,7 +1,7 @@
1
1
  hatchet_sdk/__init__.py,sha256=R5ogd_Dn_6gA_u9a5W2URNq6eDtN1i56cObBv1tOwyU,9408
2
2
  hatchet_sdk/client.py,sha256=ajjLd-gZptVuAx25gG_SdAW8xDA4V7HMIhgYuh9MkVY,3486
3
3
  hatchet_sdk/clients/admin.py,sha256=4bfm91bqmGte5K09JnG1PciuU2zjjJ_j4AskPdq6bXc,18099
4
- hatchet_sdk/clients/dispatcher/action_listener.py,sha256=KoMCD1h6DIoOsHXkX1a5wTsf6-w_gw9vVO6PhCk-uLI,15393
4
+ hatchet_sdk/clients/dispatcher/action_listener.py,sha256=XZEXSezZjDTd5y3ZmxV8eI9MdMLzIMWb83zhaDQw3dc,15547
5
5
  hatchet_sdk/clients/dispatcher/dispatcher.py,sha256=5ArB3qPy5tetkn38pURWaXLduuRb8iDOjYWjVbbBX-U,6667
6
6
  hatchet_sdk/clients/event_ts.py,sha256=ACGvDdfhvK6ZLKdsPxy-PksLhjIU69P9cdH3AxX-X10,728
7
7
  hatchet_sdk/clients/events.py,sha256=vRIKZu964cVIx89lpm5vXQwtVWSck0hTh7s_FxE9zmA,5880
@@ -231,7 +231,7 @@ hatchet_sdk/worker/runner/utils/error_with_traceback.py,sha256=Iih_s8JNqrinXETFJ
231
231
  hatchet_sdk/worker/worker.py,sha256=7UPm3qTzNYSSm9QTNX6zBBMJqVA6nKFeCbAdqLLjUBs,13007
232
232
  hatchet_sdk/workflow.py,sha256=XRj5jcCQSvPQMXxBipf-ZlARua2E8Z9igRzGcQ5alkI,9375
233
233
  hatchet_sdk/workflow_run.py,sha256=BwK5cefvXXvyQ1Ednj_7LeejMwQJqWnvUC_FTBmJNxk,1805
234
- hatchet_sdk-0.46.0.dist-info/METADATA,sha256=-YCLlzRJLRFd3khigA52tYceAN5xPQjWRF2Ghi4B3vU,1826
235
- hatchet_sdk-0.46.0.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
236
- hatchet_sdk-0.46.0.dist-info/entry_points.txt,sha256=Rxdx7OJUxSHsSjYLUI_JcInpYIFl9vPaMvbl5TGMzdA,1079
237
- hatchet_sdk-0.46.0.dist-info/RECORD,,
234
+ hatchet_sdk-0.46.1.dist-info/METADATA,sha256=FjCNXSY41R0blWhtaATiUVpNUQIo73rfXBCvrSD9XUY,1826
235
+ hatchet_sdk-0.46.1.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
236
+ hatchet_sdk-0.46.1.dist-info/entry_points.txt,sha256=Rxdx7OJUxSHsSjYLUI_JcInpYIFl9vPaMvbl5TGMzdA,1079
237
+ hatchet_sdk-0.46.1.dist-info/RECORD,,