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

@@ -67,11 +67,13 @@ class AsyncLogSender:
67
67
  break
68
68
 
69
69
  try:
70
- self.event_client.log(
71
- message=record.message, step_run_id=record.step_run_id
70
+ await asyncio.to_thread(
71
+ self.event_client.log,
72
+ message=record.message,
73
+ step_run_id=record.step_run_id,
72
74
  )
73
- except Exception as e:
74
- logger.error(f"Error logging: {e}")
75
+ except Exception:
76
+ logger.exception("Failed to send log to Hatchet")
75
77
 
76
78
  def publish(self, record: LogRecord | STOP_LOOP_TYPE) -> None:
77
79
  try:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: hatchet-sdk
3
- Version: 1.15.1
3
+ Version: 1.15.2
4
4
  Summary:
5
5
  License: MIT
6
6
  Author: Alexander Belanger
@@ -511,10 +511,10 @@ hatchet_sdk/worker/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuF
511
511
  hatchet_sdk/worker/action_listener_process.py,sha256=Xzzn1dDFJrqnC9HBsh3fYI8lfpOD4Ecze47qmm_XUWE,12923
512
512
  hatchet_sdk/worker/runner/run_loop_manager.py,sha256=GeILClNXaDbsjXCQb0bBdgeyAwZGem2JdaH0t6wz__I,4053
513
513
  hatchet_sdk/worker/runner/runner.py,sha256=Btz7wd0DQ-5aPEZLN3T5X5__8DjuxN6H4yQEVX0eZiI,21678
514
- hatchet_sdk/worker/runner/utils/capture_logs.py,sha256=DKw6boqVsSCM1XvBWYuc833MZxCdSpMxg3l4aAqKPyw,3465
514
+ hatchet_sdk/worker/runner/utils/capture_logs.py,sha256=nJb67Hq-RGiuj0J2eWO-6QxY6ERfl2N3lvVhbj3YDqE,3540
515
515
  hatchet_sdk/worker/worker.py,sha256=nDuRo_LishRuOCTnDonc7G7qeOoW93nRHGd-fQOE_bs,16541
516
516
  hatchet_sdk/workflow_run.py,sha256=KcylcqRwKADtnzOTjoiVr1vdr7qTZFtDeD5aRS6A4Y8,2823
517
- hatchet_sdk-1.15.1.dist-info/METADATA,sha256=XO0y8f1WYxqCvw4N09NsOmdHbT6vKDwjBNcpPuwCjNc,3636
518
- hatchet_sdk-1.15.1.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
519
- hatchet_sdk-1.15.1.dist-info/entry_points.txt,sha256=Un_76pcLse-ZGBlwebhQpnTPyQrripeHW8J7qmEpGOk,1400
520
- hatchet_sdk-1.15.1.dist-info/RECORD,,
517
+ hatchet_sdk-1.15.2.dist-info/METADATA,sha256=tD9g4uoBnymLMT14UM4RFBhuisTaa1aJxwlXvqHY8fo,3636
518
+ hatchet_sdk-1.15.2.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
519
+ hatchet_sdk-1.15.2.dist-info/entry_points.txt,sha256=Un_76pcLse-ZGBlwebhQpnTPyQrripeHW8J7qmEpGOk,1400
520
+ hatchet_sdk-1.15.2.dist-info/RECORD,,