hatchet-sdk 1.2.5__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 +48 -136
  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.5.dist-info → hatchet_sdk-1.3.0.dist-info}/METADATA +1 -1
  54. {hatchet_sdk-1.2.5.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.5.dist-info → hatchet_sdk-1.3.0.dist-info}/WHEEL +0 -0
  60. {hatchet_sdk-1.2.5.dist-info → hatchet_sdk-1.3.0.dist-info}/entry_points.txt +0 -0
@@ -52,7 +52,7 @@ class DefaultApi:
52
52
  self.api_client = api_client
53
53
 
54
54
  @validate_call
55
- async def info_get_version(
55
+ def info_get_version(
56
56
  self,
57
57
  _request_timeout: Union[
58
58
  None,
@@ -102,17 +102,17 @@ class DefaultApi:
102
102
  _response_types_map: Dict[str, Optional[str]] = {
103
103
  "200": "InfoGetVersion200Response",
104
104
  }
105
- response_data = await self.api_client.call_api(
105
+ response_data = self.api_client.call_api(
106
106
  *_param, _request_timeout=_request_timeout
107
107
  )
108
- await response_data.read()
108
+ response_data.read()
109
109
  return self.api_client.response_deserialize(
110
110
  response_data=response_data,
111
111
  response_types_map=_response_types_map,
112
112
  ).data
113
113
 
114
114
  @validate_call
115
- async def info_get_version_with_http_info(
115
+ def info_get_version_with_http_info(
116
116
  self,
117
117
  _request_timeout: Union[
118
118
  None,
@@ -162,17 +162,17 @@ class DefaultApi:
162
162
  _response_types_map: Dict[str, Optional[str]] = {
163
163
  "200": "InfoGetVersion200Response",
164
164
  }
165
- response_data = await self.api_client.call_api(
165
+ response_data = self.api_client.call_api(
166
166
  *_param, _request_timeout=_request_timeout
167
167
  )
168
- await response_data.read()
168
+ response_data.read()
169
169
  return self.api_client.response_deserialize(
170
170
  response_data=response_data,
171
171
  response_types_map=_response_types_map,
172
172
  )
173
173
 
174
174
  @validate_call
175
- async def info_get_version_without_preload_content(
175
+ def info_get_version_without_preload_content(
176
176
  self,
177
177
  _request_timeout: Union[
178
178
  None,
@@ -222,7 +222,7 @@ class DefaultApi:
222
222
  _response_types_map: Dict[str, Optional[str]] = {
223
223
  "200": "InfoGetVersion200Response",
224
224
  }
225
- response_data = await self.api_client.call_api(
225
+ response_data = self.api_client.call_api(
226
226
  *_param, _request_timeout=_request_timeout
227
227
  )
228
228
  return response_data.response
@@ -279,7 +279,7 @@ class DefaultApi:
279
279
  )
280
280
 
281
281
  @validate_call
282
- async def monitoring_post_run_probe(
282
+ def monitoring_post_run_probe(
283
283
  self,
284
284
  tenant: Annotated[
285
285
  str,
@@ -339,17 +339,17 @@ class DefaultApi:
339
339
  "200": None,
340
340
  "403": "APIErrors",
341
341
  }
342
- response_data = await self.api_client.call_api(
342
+ response_data = self.api_client.call_api(
343
343
  *_param, _request_timeout=_request_timeout
344
344
  )
345
- await response_data.read()
345
+ response_data.read()
346
346
  return self.api_client.response_deserialize(
347
347
  response_data=response_data,
348
348
  response_types_map=_response_types_map,
349
349
  ).data
350
350
 
351
351
  @validate_call
352
- async def monitoring_post_run_probe_with_http_info(
352
+ def monitoring_post_run_probe_with_http_info(
353
353
  self,
354
354
  tenant: Annotated[
355
355
  str,
@@ -409,17 +409,17 @@ class DefaultApi:
409
409
  "200": None,
410
410
  "403": "APIErrors",
411
411
  }
412
- response_data = await self.api_client.call_api(
412
+ response_data = self.api_client.call_api(
413
413
  *_param, _request_timeout=_request_timeout
414
414
  )
415
- await response_data.read()
415
+ response_data.read()
416
416
  return self.api_client.response_deserialize(
417
417
  response_data=response_data,
418
418
  response_types_map=_response_types_map,
419
419
  )
420
420
 
421
421
  @validate_call
422
- async def monitoring_post_run_probe_without_preload_content(
422
+ def monitoring_post_run_probe_without_preload_content(
423
423
  self,
424
424
  tenant: Annotated[
425
425
  str,
@@ -479,7 +479,7 @@ class DefaultApi:
479
479
  "200": None,
480
480
  "403": "APIErrors",
481
481
  }
482
- response_data = await self.api_client.call_api(
482
+ response_data = self.api_client.call_api(
483
483
  *_param, _request_timeout=_request_timeout
484
484
  )
485
485
  return response_data.response
@@ -539,7 +539,7 @@ class DefaultApi:
539
539
  )
540
540
 
541
541
  @validate_call
542
- async def tenant_invite_delete(
542
+ def tenant_invite_delete(
543
543
  self,
544
544
  tenant: Annotated[
545
545
  str,
@@ -611,17 +611,17 @@ class DefaultApi:
611
611
  "200": "TenantInvite",
612
612
  "400": "APIErrors",
613
613
  }
614
- response_data = await self.api_client.call_api(
614
+ response_data = self.api_client.call_api(
615
615
  *_param, _request_timeout=_request_timeout
616
616
  )
617
- await response_data.read()
617
+ response_data.read()
618
618
  return self.api_client.response_deserialize(
619
619
  response_data=response_data,
620
620
  response_types_map=_response_types_map,
621
621
  ).data
622
622
 
623
623
  @validate_call
624
- async def tenant_invite_delete_with_http_info(
624
+ def tenant_invite_delete_with_http_info(
625
625
  self,
626
626
  tenant: Annotated[
627
627
  str,
@@ -693,17 +693,17 @@ class DefaultApi:
693
693
  "200": "TenantInvite",
694
694
  "400": "APIErrors",
695
695
  }
696
- response_data = await self.api_client.call_api(
696
+ response_data = self.api_client.call_api(
697
697
  *_param, _request_timeout=_request_timeout
698
698
  )
699
- await response_data.read()
699
+ response_data.read()
700
700
  return self.api_client.response_deserialize(
701
701
  response_data=response_data,
702
702
  response_types_map=_response_types_map,
703
703
  )
704
704
 
705
705
  @validate_call
706
- async def tenant_invite_delete_without_preload_content(
706
+ def tenant_invite_delete_without_preload_content(
707
707
  self,
708
708
  tenant: Annotated[
709
709
  str,
@@ -775,7 +775,7 @@ class DefaultApi:
775
775
  "200": "TenantInvite",
776
776
  "400": "APIErrors",
777
777
  }
778
- response_data = await self.api_client.call_api(
778
+ response_data = self.api_client.call_api(
779
779
  *_param, _request_timeout=_request_timeout
780
780
  )
781
781
  return response_data.response
@@ -838,7 +838,7 @@ class DefaultApi:
838
838
  )
839
839
 
840
840
  @validate_call
841
- async def tenant_invite_update(
841
+ def tenant_invite_update(
842
842
  self,
843
843
  tenant: Annotated[
844
844
  str,
@@ -916,17 +916,17 @@ class DefaultApi:
916
916
  "200": "TenantInvite",
917
917
  "400": "APIErrors",
918
918
  }
919
- response_data = await self.api_client.call_api(
919
+ response_data = self.api_client.call_api(
920
920
  *_param, _request_timeout=_request_timeout
921
921
  )
922
- await response_data.read()
922
+ response_data.read()
923
923
  return self.api_client.response_deserialize(
924
924
  response_data=response_data,
925
925
  response_types_map=_response_types_map,
926
926
  ).data
927
927
 
928
928
  @validate_call
929
- async def tenant_invite_update_with_http_info(
929
+ def tenant_invite_update_with_http_info(
930
930
  self,
931
931
  tenant: Annotated[
932
932
  str,
@@ -1004,17 +1004,17 @@ class DefaultApi:
1004
1004
  "200": "TenantInvite",
1005
1005
  "400": "APIErrors",
1006
1006
  }
1007
- response_data = await self.api_client.call_api(
1007
+ response_data = self.api_client.call_api(
1008
1008
  *_param, _request_timeout=_request_timeout
1009
1009
  )
1010
- await response_data.read()
1010
+ response_data.read()
1011
1011
  return self.api_client.response_deserialize(
1012
1012
  response_data=response_data,
1013
1013
  response_types_map=_response_types_map,
1014
1014
  )
1015
1015
 
1016
1016
  @validate_call
1017
- async def tenant_invite_update_without_preload_content(
1017
+ def tenant_invite_update_without_preload_content(
1018
1018
  self,
1019
1019
  tenant: Annotated[
1020
1020
  str,
@@ -1092,7 +1092,7 @@ class DefaultApi:
1092
1092
  "200": "TenantInvite",
1093
1093
  "400": "APIErrors",
1094
1094
  }
1095
- response_data = await self.api_client.call_api(
1095
+ response_data = self.api_client.call_api(
1096
1096
  *_param, _request_timeout=_request_timeout
1097
1097
  )
1098
1098
  return response_data.response
@@ -1168,7 +1168,7 @@ class DefaultApi:
1168
1168
  )
1169
1169
 
1170
1170
  @validate_call
1171
- async def webhook_create(
1171
+ def webhook_create(
1172
1172
  self,
1173
1173
  tenant: Annotated[
1174
1174
  str,
@@ -1234,17 +1234,17 @@ class DefaultApi:
1234
1234
  "401": "APIErrors",
1235
1235
  "405": "APIErrors",
1236
1236
  }
1237
- response_data = await self.api_client.call_api(
1237
+ response_data = self.api_client.call_api(
1238
1238
  *_param, _request_timeout=_request_timeout
1239
1239
  )
1240
- await response_data.read()
1240
+ response_data.read()
1241
1241
  return self.api_client.response_deserialize(
1242
1242
  response_data=response_data,
1243
1243
  response_types_map=_response_types_map,
1244
1244
  ).data
1245
1245
 
1246
1246
  @validate_call
1247
- async def webhook_create_with_http_info(
1247
+ def webhook_create_with_http_info(
1248
1248
  self,
1249
1249
  tenant: Annotated[
1250
1250
  str,
@@ -1310,17 +1310,17 @@ class DefaultApi:
1310
1310
  "401": "APIErrors",
1311
1311
  "405": "APIErrors",
1312
1312
  }
1313
- response_data = await self.api_client.call_api(
1313
+ response_data = self.api_client.call_api(
1314
1314
  *_param, _request_timeout=_request_timeout
1315
1315
  )
1316
- await response_data.read()
1316
+ response_data.read()
1317
1317
  return self.api_client.response_deserialize(
1318
1318
  response_data=response_data,
1319
1319
  response_types_map=_response_types_map,
1320
1320
  )
1321
1321
 
1322
1322
  @validate_call
1323
- async def webhook_create_without_preload_content(
1323
+ def webhook_create_without_preload_content(
1324
1324
  self,
1325
1325
  tenant: Annotated[
1326
1326
  str,
@@ -1386,7 +1386,7 @@ class DefaultApi:
1386
1386
  "401": "APIErrors",
1387
1387
  "405": "APIErrors",
1388
1388
  }
1389
- response_data = await self.api_client.call_api(
1389
+ response_data = self.api_client.call_api(
1390
1390
  *_param, _request_timeout=_request_timeout
1391
1391
  )
1392
1392
  return response_data.response
@@ -1459,7 +1459,7 @@ class DefaultApi:
1459
1459
  )
1460
1460
 
1461
1461
  @validate_call
1462
- async def webhook_delete(
1462
+ def webhook_delete(
1463
1463
  self,
1464
1464
  webhook: Annotated[
1465
1465
  str,
@@ -1521,17 +1521,17 @@ class DefaultApi:
1521
1521
  "401": "APIErrors",
1522
1522
  "405": "APIErrors",
1523
1523
  }
1524
- response_data = await self.api_client.call_api(
1524
+ response_data = self.api_client.call_api(
1525
1525
  *_param, _request_timeout=_request_timeout
1526
1526
  )
1527
- await response_data.read()
1527
+ response_data.read()
1528
1528
  return self.api_client.response_deserialize(
1529
1529
  response_data=response_data,
1530
1530
  response_types_map=_response_types_map,
1531
1531
  ).data
1532
1532
 
1533
1533
  @validate_call
1534
- async def webhook_delete_with_http_info(
1534
+ def webhook_delete_with_http_info(
1535
1535
  self,
1536
1536
  webhook: Annotated[
1537
1537
  str,
@@ -1593,17 +1593,17 @@ class DefaultApi:
1593
1593
  "401": "APIErrors",
1594
1594
  "405": "APIErrors",
1595
1595
  }
1596
- response_data = await self.api_client.call_api(
1596
+ response_data = self.api_client.call_api(
1597
1597
  *_param, _request_timeout=_request_timeout
1598
1598
  )
1599
- await response_data.read()
1599
+ response_data.read()
1600
1600
  return self.api_client.response_deserialize(
1601
1601
  response_data=response_data,
1602
1602
  response_types_map=_response_types_map,
1603
1603
  )
1604
1604
 
1605
1605
  @validate_call
1606
- async def webhook_delete_without_preload_content(
1606
+ def webhook_delete_without_preload_content(
1607
1607
  self,
1608
1608
  webhook: Annotated[
1609
1609
  str,
@@ -1665,7 +1665,7 @@ class DefaultApi:
1665
1665
  "401": "APIErrors",
1666
1666
  "405": "APIErrors",
1667
1667
  }
1668
- response_data = await self.api_client.call_api(
1668
+ response_data = self.api_client.call_api(
1669
1669
  *_param, _request_timeout=_request_timeout
1670
1670
  )
1671
1671
  return response_data.response
@@ -1725,7 +1725,7 @@ class DefaultApi:
1725
1725
  )
1726
1726
 
1727
1727
  @validate_call
1728
- async def webhook_list(
1728
+ def webhook_list(
1729
1729
  self,
1730
1730
  tenant: Annotated[
1731
1731
  str,
@@ -1787,17 +1787,17 @@ class DefaultApi:
1787
1787
  "401": "APIErrors",
1788
1788
  "405": "APIErrors",
1789
1789
  }
1790
- response_data = await self.api_client.call_api(
1790
+ response_data = self.api_client.call_api(
1791
1791
  *_param, _request_timeout=_request_timeout
1792
1792
  )
1793
- await response_data.read()
1793
+ response_data.read()
1794
1794
  return self.api_client.response_deserialize(
1795
1795
  response_data=response_data,
1796
1796
  response_types_map=_response_types_map,
1797
1797
  ).data
1798
1798
 
1799
1799
  @validate_call
1800
- async def webhook_list_with_http_info(
1800
+ def webhook_list_with_http_info(
1801
1801
  self,
1802
1802
  tenant: Annotated[
1803
1803
  str,
@@ -1859,17 +1859,17 @@ class DefaultApi:
1859
1859
  "401": "APIErrors",
1860
1860
  "405": "APIErrors",
1861
1861
  }
1862
- response_data = await self.api_client.call_api(
1862
+ response_data = self.api_client.call_api(
1863
1863
  *_param, _request_timeout=_request_timeout
1864
1864
  )
1865
- await response_data.read()
1865
+ response_data.read()
1866
1866
  return self.api_client.response_deserialize(
1867
1867
  response_data=response_data,
1868
1868
  response_types_map=_response_types_map,
1869
1869
  )
1870
1870
 
1871
1871
  @validate_call
1872
- async def webhook_list_without_preload_content(
1872
+ def webhook_list_without_preload_content(
1873
1873
  self,
1874
1874
  tenant: Annotated[
1875
1875
  str,
@@ -1931,7 +1931,7 @@ class DefaultApi:
1931
1931
  "401": "APIErrors",
1932
1932
  "405": "APIErrors",
1933
1933
  }
1934
- response_data = await self.api_client.call_api(
1934
+ response_data = self.api_client.call_api(
1935
1935
  *_param, _request_timeout=_request_timeout
1936
1936
  )
1937
1937
  return response_data.response
@@ -1991,7 +1991,7 @@ class DefaultApi:
1991
1991
  )
1992
1992
 
1993
1993
  @validate_call
1994
- async def webhook_requests_list(
1994
+ def webhook_requests_list(
1995
1995
  self,
1996
1996
  webhook: Annotated[
1997
1997
  str,
@@ -2053,17 +2053,17 @@ class DefaultApi:
2053
2053
  "401": "APIErrors",
2054
2054
  "405": "APIErrors",
2055
2055
  }
2056
- response_data = await self.api_client.call_api(
2056
+ response_data = self.api_client.call_api(
2057
2057
  *_param, _request_timeout=_request_timeout
2058
2058
  )
2059
- await response_data.read()
2059
+ response_data.read()
2060
2060
  return self.api_client.response_deserialize(
2061
2061
  response_data=response_data,
2062
2062
  response_types_map=_response_types_map,
2063
2063
  ).data
2064
2064
 
2065
2065
  @validate_call
2066
- async def webhook_requests_list_with_http_info(
2066
+ def webhook_requests_list_with_http_info(
2067
2067
  self,
2068
2068
  webhook: Annotated[
2069
2069
  str,
@@ -2125,17 +2125,17 @@ class DefaultApi:
2125
2125
  "401": "APIErrors",
2126
2126
  "405": "APIErrors",
2127
2127
  }
2128
- response_data = await self.api_client.call_api(
2128
+ response_data = self.api_client.call_api(
2129
2129
  *_param, _request_timeout=_request_timeout
2130
2130
  )
2131
- await response_data.read()
2131
+ response_data.read()
2132
2132
  return self.api_client.response_deserialize(
2133
2133
  response_data=response_data,
2134
2134
  response_types_map=_response_types_map,
2135
2135
  )
2136
2136
 
2137
2137
  @validate_call
2138
- async def webhook_requests_list_without_preload_content(
2138
+ def webhook_requests_list_without_preload_content(
2139
2139
  self,
2140
2140
  webhook: Annotated[
2141
2141
  str,
@@ -2197,7 +2197,7 @@ class DefaultApi:
2197
2197
  "401": "APIErrors",
2198
2198
  "405": "APIErrors",
2199
2199
  }
2200
- response_data = await self.api_client.call_api(
2200
+ response_data = self.api_client.call_api(
2201
2201
  *_param, _request_timeout=_request_timeout
2202
2202
  )
2203
2203
  return response_data.response