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

Files changed (60) hide show
  1. hatchet_sdk/__init__.py +7 -5
  2. hatchet_sdk/client.py +14 -6
  3. hatchet_sdk/clients/admin.py +57 -15
  4. hatchet_sdk/clients/dispatcher/action_listener.py +2 -2
  5. hatchet_sdk/clients/dispatcher/dispatcher.py +20 -7
  6. hatchet_sdk/clients/event_ts.py +25 -5
  7. hatchet_sdk/clients/listeners/durable_event_listener.py +125 -0
  8. hatchet_sdk/clients/listeners/pooled_listener.py +255 -0
  9. hatchet_sdk/clients/listeners/workflow_listener.py +62 -0
  10. hatchet_sdk/clients/rest/api/api_token_api.py +24 -24
  11. hatchet_sdk/clients/rest/api/default_api.py +64 -64
  12. hatchet_sdk/clients/rest/api/event_api.py +64 -64
  13. hatchet_sdk/clients/rest/api/github_api.py +8 -8
  14. hatchet_sdk/clients/rest/api/healthcheck_api.py +16 -16
  15. hatchet_sdk/clients/rest/api/log_api.py +16 -16
  16. hatchet_sdk/clients/rest/api/metadata_api.py +24 -24
  17. hatchet_sdk/clients/rest/api/rate_limits_api.py +8 -8
  18. hatchet_sdk/clients/rest/api/slack_api.py +16 -16
  19. hatchet_sdk/clients/rest/api/sns_api.py +24 -24
  20. hatchet_sdk/clients/rest/api/step_run_api.py +56 -56
  21. hatchet_sdk/clients/rest/api/task_api.py +56 -56
  22. hatchet_sdk/clients/rest/api/tenant_api.py +128 -128
  23. hatchet_sdk/clients/rest/api/user_api.py +96 -96
  24. hatchet_sdk/clients/rest/api/worker_api.py +24 -24
  25. hatchet_sdk/clients/rest/api/workflow_api.py +144 -144
  26. hatchet_sdk/clients/rest/api/workflow_run_api.py +48 -48
  27. hatchet_sdk/clients/rest/api/workflow_runs_api.py +40 -40
  28. hatchet_sdk/clients/rest/api_client.py +5 -8
  29. hatchet_sdk/clients/rest/configuration.py +7 -3
  30. hatchet_sdk/clients/rest/models/tenant_step_run_queue_metrics.py +2 -2
  31. hatchet_sdk/clients/rest/models/v1_task_summary.py +5 -0
  32. hatchet_sdk/clients/rest/models/workflow_runs_metrics.py +5 -1
  33. hatchet_sdk/clients/rest/rest.py +160 -111
  34. hatchet_sdk/clients/v1/api_client.py +2 -2
  35. hatchet_sdk/context/context.py +22 -21
  36. hatchet_sdk/features/cron.py +41 -40
  37. hatchet_sdk/features/logs.py +7 -6
  38. hatchet_sdk/features/metrics.py +19 -18
  39. hatchet_sdk/features/runs.py +88 -68
  40. hatchet_sdk/features/scheduled.py +42 -42
  41. hatchet_sdk/features/workers.py +17 -16
  42. hatchet_sdk/features/workflows.py +15 -14
  43. hatchet_sdk/hatchet.py +1 -1
  44. hatchet_sdk/runnables/standalone.py +12 -9
  45. hatchet_sdk/runnables/task.py +66 -2
  46. hatchet_sdk/runnables/types.py +8 -0
  47. hatchet_sdk/runnables/workflow.py +26 -125
  48. hatchet_sdk/waits.py +8 -8
  49. hatchet_sdk/worker/runner/run_loop_manager.py +4 -4
  50. hatchet_sdk/worker/runner/runner.py +22 -11
  51. hatchet_sdk/worker/worker.py +29 -25
  52. hatchet_sdk/workflow_run.py +55 -9
  53. {hatchet_sdk-1.2.6.dist-info → hatchet_sdk-1.3.0.dist-info}/METADATA +1 -1
  54. {hatchet_sdk-1.2.6.dist-info → hatchet_sdk-1.3.0.dist-info}/RECORD +57 -57
  55. hatchet_sdk/clients/durable_event_listener.py +0 -329
  56. hatchet_sdk/clients/workflow_listener.py +0 -288
  57. hatchet_sdk/utils/aio.py +0 -43
  58. /hatchet_sdk/clients/{run_event_listener.py → listeners/run_event_listener.py} +0 -0
  59. {hatchet_sdk-1.2.6.dist-info → hatchet_sdk-1.3.0.dist-info}/WHEEL +0 -0
  60. {hatchet_sdk-1.2.6.dist-info → hatchet_sdk-1.3.0.dist-info}/entry_points.txt +0 -0
@@ -38,7 +38,7 @@ class WorkerApi:
38
38
  self.api_client = api_client
39
39
 
40
40
  @validate_call
41
- async def worker_get(
41
+ def worker_get(
42
42
  self,
43
43
  worker: Annotated[
44
44
  str,
@@ -99,17 +99,17 @@ class WorkerApi:
99
99
  "400": "APIErrors",
100
100
  "403": "APIErrors",
101
101
  }
102
- response_data = await self.api_client.call_api(
102
+ response_data = self.api_client.call_api(
103
103
  *_param, _request_timeout=_request_timeout
104
104
  )
105
- await response_data.read()
105
+ response_data.read()
106
106
  return self.api_client.response_deserialize(
107
107
  response_data=response_data,
108
108
  response_types_map=_response_types_map,
109
109
  ).data
110
110
 
111
111
  @validate_call
112
- async def worker_get_with_http_info(
112
+ def worker_get_with_http_info(
113
113
  self,
114
114
  worker: Annotated[
115
115
  str,
@@ -170,17 +170,17 @@ class WorkerApi:
170
170
  "400": "APIErrors",
171
171
  "403": "APIErrors",
172
172
  }
173
- response_data = await self.api_client.call_api(
173
+ response_data = self.api_client.call_api(
174
174
  *_param, _request_timeout=_request_timeout
175
175
  )
176
- await response_data.read()
176
+ response_data.read()
177
177
  return self.api_client.response_deserialize(
178
178
  response_data=response_data,
179
179
  response_types_map=_response_types_map,
180
180
  )
181
181
 
182
182
  @validate_call
183
- async def worker_get_without_preload_content(
183
+ def worker_get_without_preload_content(
184
184
  self,
185
185
  worker: Annotated[
186
186
  str,
@@ -241,7 +241,7 @@ class WorkerApi:
241
241
  "400": "APIErrors",
242
242
  "403": "APIErrors",
243
243
  }
244
- response_data = await self.api_client.call_api(
244
+ response_data = self.api_client.call_api(
245
245
  *_param, _request_timeout=_request_timeout
246
246
  )
247
247
  return response_data.response
@@ -301,7 +301,7 @@ class WorkerApi:
301
301
  )
302
302
 
303
303
  @validate_call
304
- async def worker_list(
304
+ def worker_list(
305
305
  self,
306
306
  tenant: Annotated[
307
307
  str,
@@ -362,17 +362,17 @@ class WorkerApi:
362
362
  "400": "APIErrors",
363
363
  "403": "APIErrors",
364
364
  }
365
- response_data = await self.api_client.call_api(
365
+ response_data = self.api_client.call_api(
366
366
  *_param, _request_timeout=_request_timeout
367
367
  )
368
- await response_data.read()
368
+ response_data.read()
369
369
  return self.api_client.response_deserialize(
370
370
  response_data=response_data,
371
371
  response_types_map=_response_types_map,
372
372
  ).data
373
373
 
374
374
  @validate_call
375
- async def worker_list_with_http_info(
375
+ def worker_list_with_http_info(
376
376
  self,
377
377
  tenant: Annotated[
378
378
  str,
@@ -433,17 +433,17 @@ class WorkerApi:
433
433
  "400": "APIErrors",
434
434
  "403": "APIErrors",
435
435
  }
436
- response_data = await self.api_client.call_api(
436
+ response_data = self.api_client.call_api(
437
437
  *_param, _request_timeout=_request_timeout
438
438
  )
439
- await response_data.read()
439
+ response_data.read()
440
440
  return self.api_client.response_deserialize(
441
441
  response_data=response_data,
442
442
  response_types_map=_response_types_map,
443
443
  )
444
444
 
445
445
  @validate_call
446
- async def worker_list_without_preload_content(
446
+ def worker_list_without_preload_content(
447
447
  self,
448
448
  tenant: Annotated[
449
449
  str,
@@ -504,7 +504,7 @@ class WorkerApi:
504
504
  "400": "APIErrors",
505
505
  "403": "APIErrors",
506
506
  }
507
- response_data = await self.api_client.call_api(
507
+ response_data = self.api_client.call_api(
508
508
  *_param, _request_timeout=_request_timeout
509
509
  )
510
510
  return response_data.response
@@ -564,7 +564,7 @@ class WorkerApi:
564
564
  )
565
565
 
566
566
  @validate_call
567
- async def worker_update(
567
+ def worker_update(
568
568
  self,
569
569
  worker: Annotated[
570
570
  str,
@@ -631,17 +631,17 @@ class WorkerApi:
631
631
  "400": "APIErrors",
632
632
  "403": "APIErrors",
633
633
  }
634
- response_data = await self.api_client.call_api(
634
+ response_data = self.api_client.call_api(
635
635
  *_param, _request_timeout=_request_timeout
636
636
  )
637
- await response_data.read()
637
+ response_data.read()
638
638
  return self.api_client.response_deserialize(
639
639
  response_data=response_data,
640
640
  response_types_map=_response_types_map,
641
641
  ).data
642
642
 
643
643
  @validate_call
644
- async def worker_update_with_http_info(
644
+ def worker_update_with_http_info(
645
645
  self,
646
646
  worker: Annotated[
647
647
  str,
@@ -708,17 +708,17 @@ class WorkerApi:
708
708
  "400": "APIErrors",
709
709
  "403": "APIErrors",
710
710
  }
711
- response_data = await self.api_client.call_api(
711
+ response_data = self.api_client.call_api(
712
712
  *_param, _request_timeout=_request_timeout
713
713
  )
714
- await response_data.read()
714
+ response_data.read()
715
715
  return self.api_client.response_deserialize(
716
716
  response_data=response_data,
717
717
  response_types_map=_response_types_map,
718
718
  )
719
719
 
720
720
  @validate_call
721
- async def worker_update_without_preload_content(
721
+ def worker_update_without_preload_content(
722
722
  self,
723
723
  worker: Annotated[
724
724
  str,
@@ -785,7 +785,7 @@ class WorkerApi:
785
785
  "400": "APIErrors",
786
786
  "403": "APIErrors",
787
787
  }
788
- response_data = await self.api_client.call_api(
788
+ response_data = self.api_client.call_api(
789
789
  *_param, _request_timeout=_request_timeout
790
790
  )
791
791
  return response_data.response