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.
- hatchet_sdk/__init__.py +7 -5
- hatchet_sdk/client.py +14 -6
- hatchet_sdk/clients/admin.py +57 -15
- hatchet_sdk/clients/dispatcher/action_listener.py +2 -2
- hatchet_sdk/clients/dispatcher/dispatcher.py +20 -7
- hatchet_sdk/clients/event_ts.py +25 -5
- hatchet_sdk/clients/listeners/durable_event_listener.py +125 -0
- hatchet_sdk/clients/listeners/pooled_listener.py +255 -0
- hatchet_sdk/clients/listeners/workflow_listener.py +62 -0
- hatchet_sdk/clients/rest/api/api_token_api.py +24 -24
- hatchet_sdk/clients/rest/api/default_api.py +64 -64
- hatchet_sdk/clients/rest/api/event_api.py +64 -64
- hatchet_sdk/clients/rest/api/github_api.py +8 -8
- hatchet_sdk/clients/rest/api/healthcheck_api.py +16 -16
- hatchet_sdk/clients/rest/api/log_api.py +16 -16
- hatchet_sdk/clients/rest/api/metadata_api.py +24 -24
- hatchet_sdk/clients/rest/api/rate_limits_api.py +8 -8
- hatchet_sdk/clients/rest/api/slack_api.py +16 -16
- hatchet_sdk/clients/rest/api/sns_api.py +24 -24
- hatchet_sdk/clients/rest/api/step_run_api.py +56 -56
- hatchet_sdk/clients/rest/api/task_api.py +56 -56
- hatchet_sdk/clients/rest/api/tenant_api.py +128 -128
- hatchet_sdk/clients/rest/api/user_api.py +96 -96
- hatchet_sdk/clients/rest/api/worker_api.py +24 -24
- hatchet_sdk/clients/rest/api/workflow_api.py +144 -144
- hatchet_sdk/clients/rest/api/workflow_run_api.py +48 -48
- hatchet_sdk/clients/rest/api/workflow_runs_api.py +40 -40
- hatchet_sdk/clients/rest/api_client.py +5 -8
- hatchet_sdk/clients/rest/configuration.py +7 -3
- hatchet_sdk/clients/rest/models/tenant_step_run_queue_metrics.py +2 -2
- hatchet_sdk/clients/rest/models/v1_task_summary.py +5 -0
- hatchet_sdk/clients/rest/models/workflow_runs_metrics.py +5 -1
- hatchet_sdk/clients/rest/rest.py +160 -111
- hatchet_sdk/clients/v1/api_client.py +2 -2
- hatchet_sdk/context/context.py +22 -21
- hatchet_sdk/features/cron.py +41 -40
- hatchet_sdk/features/logs.py +7 -6
- hatchet_sdk/features/metrics.py +19 -18
- hatchet_sdk/features/runs.py +88 -68
- hatchet_sdk/features/scheduled.py +42 -42
- hatchet_sdk/features/workers.py +17 -16
- hatchet_sdk/features/workflows.py +15 -14
- hatchet_sdk/hatchet.py +1 -1
- hatchet_sdk/runnables/standalone.py +12 -9
- hatchet_sdk/runnables/task.py +66 -2
- hatchet_sdk/runnables/types.py +8 -0
- hatchet_sdk/runnables/workflow.py +26 -125
- hatchet_sdk/waits.py +8 -8
- hatchet_sdk/worker/runner/run_loop_manager.py +4 -4
- hatchet_sdk/worker/runner/runner.py +22 -11
- hatchet_sdk/worker/worker.py +29 -25
- hatchet_sdk/workflow_run.py +55 -9
- {hatchet_sdk-1.2.6.dist-info → hatchet_sdk-1.3.0.dist-info}/METADATA +1 -1
- {hatchet_sdk-1.2.6.dist-info → hatchet_sdk-1.3.0.dist-info}/RECORD +57 -57
- hatchet_sdk/clients/durable_event_listener.py +0 -329
- hatchet_sdk/clients/workflow_listener.py +0 -288
- hatchet_sdk/utils/aio.py +0 -43
- /hatchet_sdk/clients/{run_event_listener.py → listeners/run_event_listener.py} +0 -0
- {hatchet_sdk-1.2.6.dist-info → hatchet_sdk-1.3.0.dist-info}/WHEEL +0 -0
- {hatchet_sdk-1.2.6.dist-info → hatchet_sdk-1.3.0.dist-info}/entry_points.txt +0 -0
|
@@ -39,7 +39,7 @@ class StepRunApi:
|
|
|
39
39
|
self.api_client = api_client
|
|
40
40
|
|
|
41
41
|
@validate_call
|
|
42
|
-
|
|
42
|
+
def step_run_get(
|
|
43
43
|
self,
|
|
44
44
|
tenant: Annotated[
|
|
45
45
|
str,
|
|
@@ -110,17 +110,17 @@ class StepRunApi:
|
|
|
110
110
|
"403": "APIErrors",
|
|
111
111
|
"404": "APIErrors",
|
|
112
112
|
}
|
|
113
|
-
response_data =
|
|
113
|
+
response_data = self.api_client.call_api(
|
|
114
114
|
*_param, _request_timeout=_request_timeout
|
|
115
115
|
)
|
|
116
|
-
|
|
116
|
+
response_data.read()
|
|
117
117
|
return self.api_client.response_deserialize(
|
|
118
118
|
response_data=response_data,
|
|
119
119
|
response_types_map=_response_types_map,
|
|
120
120
|
).data
|
|
121
121
|
|
|
122
122
|
@validate_call
|
|
123
|
-
|
|
123
|
+
def step_run_get_with_http_info(
|
|
124
124
|
self,
|
|
125
125
|
tenant: Annotated[
|
|
126
126
|
str,
|
|
@@ -191,17 +191,17 @@ class StepRunApi:
|
|
|
191
191
|
"403": "APIErrors",
|
|
192
192
|
"404": "APIErrors",
|
|
193
193
|
}
|
|
194
|
-
response_data =
|
|
194
|
+
response_data = self.api_client.call_api(
|
|
195
195
|
*_param, _request_timeout=_request_timeout
|
|
196
196
|
)
|
|
197
|
-
|
|
197
|
+
response_data.read()
|
|
198
198
|
return self.api_client.response_deserialize(
|
|
199
199
|
response_data=response_data,
|
|
200
200
|
response_types_map=_response_types_map,
|
|
201
201
|
)
|
|
202
202
|
|
|
203
203
|
@validate_call
|
|
204
|
-
|
|
204
|
+
def step_run_get_without_preload_content(
|
|
205
205
|
self,
|
|
206
206
|
tenant: Annotated[
|
|
207
207
|
str,
|
|
@@ -272,7 +272,7 @@ class StepRunApi:
|
|
|
272
272
|
"403": "APIErrors",
|
|
273
273
|
"404": "APIErrors",
|
|
274
274
|
}
|
|
275
|
-
response_data =
|
|
275
|
+
response_data = self.api_client.call_api(
|
|
276
276
|
*_param, _request_timeout=_request_timeout
|
|
277
277
|
)
|
|
278
278
|
return response_data.response
|
|
@@ -335,7 +335,7 @@ class StepRunApi:
|
|
|
335
335
|
)
|
|
336
336
|
|
|
337
337
|
@validate_call
|
|
338
|
-
|
|
338
|
+
def step_run_get_schema(
|
|
339
339
|
self,
|
|
340
340
|
tenant: Annotated[
|
|
341
341
|
str,
|
|
@@ -406,17 +406,17 @@ class StepRunApi:
|
|
|
406
406
|
"403": "APIErrors",
|
|
407
407
|
"404": "APIErrors",
|
|
408
408
|
}
|
|
409
|
-
response_data =
|
|
409
|
+
response_data = self.api_client.call_api(
|
|
410
410
|
*_param, _request_timeout=_request_timeout
|
|
411
411
|
)
|
|
412
|
-
|
|
412
|
+
response_data.read()
|
|
413
413
|
return self.api_client.response_deserialize(
|
|
414
414
|
response_data=response_data,
|
|
415
415
|
response_types_map=_response_types_map,
|
|
416
416
|
).data
|
|
417
417
|
|
|
418
418
|
@validate_call
|
|
419
|
-
|
|
419
|
+
def step_run_get_schema_with_http_info(
|
|
420
420
|
self,
|
|
421
421
|
tenant: Annotated[
|
|
422
422
|
str,
|
|
@@ -487,17 +487,17 @@ class StepRunApi:
|
|
|
487
487
|
"403": "APIErrors",
|
|
488
488
|
"404": "APIErrors",
|
|
489
489
|
}
|
|
490
|
-
response_data =
|
|
490
|
+
response_data = self.api_client.call_api(
|
|
491
491
|
*_param, _request_timeout=_request_timeout
|
|
492
492
|
)
|
|
493
|
-
|
|
493
|
+
response_data.read()
|
|
494
494
|
return self.api_client.response_deserialize(
|
|
495
495
|
response_data=response_data,
|
|
496
496
|
response_types_map=_response_types_map,
|
|
497
497
|
)
|
|
498
498
|
|
|
499
499
|
@validate_call
|
|
500
|
-
|
|
500
|
+
def step_run_get_schema_without_preload_content(
|
|
501
501
|
self,
|
|
502
502
|
tenant: Annotated[
|
|
503
503
|
str,
|
|
@@ -568,7 +568,7 @@ class StepRunApi:
|
|
|
568
568
|
"403": "APIErrors",
|
|
569
569
|
"404": "APIErrors",
|
|
570
570
|
}
|
|
571
|
-
response_data =
|
|
571
|
+
response_data = self.api_client.call_api(
|
|
572
572
|
*_param, _request_timeout=_request_timeout
|
|
573
573
|
)
|
|
574
574
|
return response_data.response
|
|
@@ -631,7 +631,7 @@ class StepRunApi:
|
|
|
631
631
|
)
|
|
632
632
|
|
|
633
633
|
@validate_call
|
|
634
|
-
|
|
634
|
+
def step_run_list_archives(
|
|
635
635
|
self,
|
|
636
636
|
step_run: Annotated[
|
|
637
637
|
str,
|
|
@@ -705,17 +705,17 @@ class StepRunApi:
|
|
|
705
705
|
"403": "APIErrors",
|
|
706
706
|
"404": "APIErrors",
|
|
707
707
|
}
|
|
708
|
-
response_data =
|
|
708
|
+
response_data = self.api_client.call_api(
|
|
709
709
|
*_param, _request_timeout=_request_timeout
|
|
710
710
|
)
|
|
711
|
-
|
|
711
|
+
response_data.read()
|
|
712
712
|
return self.api_client.response_deserialize(
|
|
713
713
|
response_data=response_data,
|
|
714
714
|
response_types_map=_response_types_map,
|
|
715
715
|
).data
|
|
716
716
|
|
|
717
717
|
@validate_call
|
|
718
|
-
|
|
718
|
+
def step_run_list_archives_with_http_info(
|
|
719
719
|
self,
|
|
720
720
|
step_run: Annotated[
|
|
721
721
|
str,
|
|
@@ -789,17 +789,17 @@ class StepRunApi:
|
|
|
789
789
|
"403": "APIErrors",
|
|
790
790
|
"404": "APIErrors",
|
|
791
791
|
}
|
|
792
|
-
response_data =
|
|
792
|
+
response_data = self.api_client.call_api(
|
|
793
793
|
*_param, _request_timeout=_request_timeout
|
|
794
794
|
)
|
|
795
|
-
|
|
795
|
+
response_data.read()
|
|
796
796
|
return self.api_client.response_deserialize(
|
|
797
797
|
response_data=response_data,
|
|
798
798
|
response_types_map=_response_types_map,
|
|
799
799
|
)
|
|
800
800
|
|
|
801
801
|
@validate_call
|
|
802
|
-
|
|
802
|
+
def step_run_list_archives_without_preload_content(
|
|
803
803
|
self,
|
|
804
804
|
step_run: Annotated[
|
|
805
805
|
str,
|
|
@@ -873,7 +873,7 @@ class StepRunApi:
|
|
|
873
873
|
"403": "APIErrors",
|
|
874
874
|
"404": "APIErrors",
|
|
875
875
|
}
|
|
876
|
-
response_data =
|
|
876
|
+
response_data = self.api_client.call_api(
|
|
877
877
|
*_param, _request_timeout=_request_timeout
|
|
878
878
|
)
|
|
879
879
|
return response_data.response
|
|
@@ -943,7 +943,7 @@ class StepRunApi:
|
|
|
943
943
|
)
|
|
944
944
|
|
|
945
945
|
@validate_call
|
|
946
|
-
|
|
946
|
+
def step_run_list_events(
|
|
947
947
|
self,
|
|
948
948
|
step_run: Annotated[
|
|
949
949
|
str,
|
|
@@ -1017,17 +1017,17 @@ class StepRunApi:
|
|
|
1017
1017
|
"403": "APIErrors",
|
|
1018
1018
|
"404": "APIErrors",
|
|
1019
1019
|
}
|
|
1020
|
-
response_data =
|
|
1020
|
+
response_data = self.api_client.call_api(
|
|
1021
1021
|
*_param, _request_timeout=_request_timeout
|
|
1022
1022
|
)
|
|
1023
|
-
|
|
1023
|
+
response_data.read()
|
|
1024
1024
|
return self.api_client.response_deserialize(
|
|
1025
1025
|
response_data=response_data,
|
|
1026
1026
|
response_types_map=_response_types_map,
|
|
1027
1027
|
).data
|
|
1028
1028
|
|
|
1029
1029
|
@validate_call
|
|
1030
|
-
|
|
1030
|
+
def step_run_list_events_with_http_info(
|
|
1031
1031
|
self,
|
|
1032
1032
|
step_run: Annotated[
|
|
1033
1033
|
str,
|
|
@@ -1101,17 +1101,17 @@ class StepRunApi:
|
|
|
1101
1101
|
"403": "APIErrors",
|
|
1102
1102
|
"404": "APIErrors",
|
|
1103
1103
|
}
|
|
1104
|
-
response_data =
|
|
1104
|
+
response_data = self.api_client.call_api(
|
|
1105
1105
|
*_param, _request_timeout=_request_timeout
|
|
1106
1106
|
)
|
|
1107
|
-
|
|
1107
|
+
response_data.read()
|
|
1108
1108
|
return self.api_client.response_deserialize(
|
|
1109
1109
|
response_data=response_data,
|
|
1110
1110
|
response_types_map=_response_types_map,
|
|
1111
1111
|
)
|
|
1112
1112
|
|
|
1113
1113
|
@validate_call
|
|
1114
|
-
|
|
1114
|
+
def step_run_list_events_without_preload_content(
|
|
1115
1115
|
self,
|
|
1116
1116
|
step_run: Annotated[
|
|
1117
1117
|
str,
|
|
@@ -1185,7 +1185,7 @@ class StepRunApi:
|
|
|
1185
1185
|
"403": "APIErrors",
|
|
1186
1186
|
"404": "APIErrors",
|
|
1187
1187
|
}
|
|
1188
|
-
response_data =
|
|
1188
|
+
response_data = self.api_client.call_api(
|
|
1189
1189
|
*_param, _request_timeout=_request_timeout
|
|
1190
1190
|
)
|
|
1191
1191
|
return response_data.response
|
|
@@ -1255,7 +1255,7 @@ class StepRunApi:
|
|
|
1255
1255
|
)
|
|
1256
1256
|
|
|
1257
1257
|
@validate_call
|
|
1258
|
-
|
|
1258
|
+
def step_run_update_cancel(
|
|
1259
1259
|
self,
|
|
1260
1260
|
tenant: Annotated[
|
|
1261
1261
|
str,
|
|
@@ -1325,17 +1325,17 @@ class StepRunApi:
|
|
|
1325
1325
|
"400": "APIErrors",
|
|
1326
1326
|
"403": "APIErrors",
|
|
1327
1327
|
}
|
|
1328
|
-
response_data =
|
|
1328
|
+
response_data = self.api_client.call_api(
|
|
1329
1329
|
*_param, _request_timeout=_request_timeout
|
|
1330
1330
|
)
|
|
1331
|
-
|
|
1331
|
+
response_data.read()
|
|
1332
1332
|
return self.api_client.response_deserialize(
|
|
1333
1333
|
response_data=response_data,
|
|
1334
1334
|
response_types_map=_response_types_map,
|
|
1335
1335
|
).data
|
|
1336
1336
|
|
|
1337
1337
|
@validate_call
|
|
1338
|
-
|
|
1338
|
+
def step_run_update_cancel_with_http_info(
|
|
1339
1339
|
self,
|
|
1340
1340
|
tenant: Annotated[
|
|
1341
1341
|
str,
|
|
@@ -1405,17 +1405,17 @@ class StepRunApi:
|
|
|
1405
1405
|
"400": "APIErrors",
|
|
1406
1406
|
"403": "APIErrors",
|
|
1407
1407
|
}
|
|
1408
|
-
response_data =
|
|
1408
|
+
response_data = self.api_client.call_api(
|
|
1409
1409
|
*_param, _request_timeout=_request_timeout
|
|
1410
1410
|
)
|
|
1411
|
-
|
|
1411
|
+
response_data.read()
|
|
1412
1412
|
return self.api_client.response_deserialize(
|
|
1413
1413
|
response_data=response_data,
|
|
1414
1414
|
response_types_map=_response_types_map,
|
|
1415
1415
|
)
|
|
1416
1416
|
|
|
1417
1417
|
@validate_call
|
|
1418
|
-
|
|
1418
|
+
def step_run_update_cancel_without_preload_content(
|
|
1419
1419
|
self,
|
|
1420
1420
|
tenant: Annotated[
|
|
1421
1421
|
str,
|
|
@@ -1485,7 +1485,7 @@ class StepRunApi:
|
|
|
1485
1485
|
"400": "APIErrors",
|
|
1486
1486
|
"403": "APIErrors",
|
|
1487
1487
|
}
|
|
1488
|
-
response_data =
|
|
1488
|
+
response_data = self.api_client.call_api(
|
|
1489
1489
|
*_param, _request_timeout=_request_timeout
|
|
1490
1490
|
)
|
|
1491
1491
|
return response_data.response
|
|
@@ -1548,7 +1548,7 @@ class StepRunApi:
|
|
|
1548
1548
|
)
|
|
1549
1549
|
|
|
1550
1550
|
@validate_call
|
|
1551
|
-
|
|
1551
|
+
def step_run_update_rerun(
|
|
1552
1552
|
self,
|
|
1553
1553
|
tenant: Annotated[
|
|
1554
1554
|
str,
|
|
@@ -1624,17 +1624,17 @@ class StepRunApi:
|
|
|
1624
1624
|
"400": "APIErrors",
|
|
1625
1625
|
"403": "APIErrors",
|
|
1626
1626
|
}
|
|
1627
|
-
response_data =
|
|
1627
|
+
response_data = self.api_client.call_api(
|
|
1628
1628
|
*_param, _request_timeout=_request_timeout
|
|
1629
1629
|
)
|
|
1630
|
-
|
|
1630
|
+
response_data.read()
|
|
1631
1631
|
return self.api_client.response_deserialize(
|
|
1632
1632
|
response_data=response_data,
|
|
1633
1633
|
response_types_map=_response_types_map,
|
|
1634
1634
|
).data
|
|
1635
1635
|
|
|
1636
1636
|
@validate_call
|
|
1637
|
-
|
|
1637
|
+
def step_run_update_rerun_with_http_info(
|
|
1638
1638
|
self,
|
|
1639
1639
|
tenant: Annotated[
|
|
1640
1640
|
str,
|
|
@@ -1710,17 +1710,17 @@ class StepRunApi:
|
|
|
1710
1710
|
"400": "APIErrors",
|
|
1711
1711
|
"403": "APIErrors",
|
|
1712
1712
|
}
|
|
1713
|
-
response_data =
|
|
1713
|
+
response_data = self.api_client.call_api(
|
|
1714
1714
|
*_param, _request_timeout=_request_timeout
|
|
1715
1715
|
)
|
|
1716
|
-
|
|
1716
|
+
response_data.read()
|
|
1717
1717
|
return self.api_client.response_deserialize(
|
|
1718
1718
|
response_data=response_data,
|
|
1719
1719
|
response_types_map=_response_types_map,
|
|
1720
1720
|
)
|
|
1721
1721
|
|
|
1722
1722
|
@validate_call
|
|
1723
|
-
|
|
1723
|
+
def step_run_update_rerun_without_preload_content(
|
|
1724
1724
|
self,
|
|
1725
1725
|
tenant: Annotated[
|
|
1726
1726
|
str,
|
|
@@ -1796,7 +1796,7 @@ class StepRunApi:
|
|
|
1796
1796
|
"400": "APIErrors",
|
|
1797
1797
|
"403": "APIErrors",
|
|
1798
1798
|
}
|
|
1799
|
-
response_data =
|
|
1799
|
+
response_data = self.api_client.call_api(
|
|
1800
1800
|
*_param, _request_timeout=_request_timeout
|
|
1801
1801
|
)
|
|
1802
1802
|
return response_data.response
|
|
@@ -1872,7 +1872,7 @@ class StepRunApi:
|
|
|
1872
1872
|
)
|
|
1873
1873
|
|
|
1874
1874
|
@validate_call
|
|
1875
|
-
|
|
1875
|
+
def workflow_run_list_step_run_events(
|
|
1876
1876
|
self,
|
|
1877
1877
|
tenant: Annotated[
|
|
1878
1878
|
str,
|
|
@@ -1952,17 +1952,17 @@ class StepRunApi:
|
|
|
1952
1952
|
"403": "APIErrors",
|
|
1953
1953
|
"404": "APIErrors",
|
|
1954
1954
|
}
|
|
1955
|
-
response_data =
|
|
1955
|
+
response_data = self.api_client.call_api(
|
|
1956
1956
|
*_param, _request_timeout=_request_timeout
|
|
1957
1957
|
)
|
|
1958
|
-
|
|
1958
|
+
response_data.read()
|
|
1959
1959
|
return self.api_client.response_deserialize(
|
|
1960
1960
|
response_data=response_data,
|
|
1961
1961
|
response_types_map=_response_types_map,
|
|
1962
1962
|
).data
|
|
1963
1963
|
|
|
1964
1964
|
@validate_call
|
|
1965
|
-
|
|
1965
|
+
def workflow_run_list_step_run_events_with_http_info(
|
|
1966
1966
|
self,
|
|
1967
1967
|
tenant: Annotated[
|
|
1968
1968
|
str,
|
|
@@ -2042,17 +2042,17 @@ class StepRunApi:
|
|
|
2042
2042
|
"403": "APIErrors",
|
|
2043
2043
|
"404": "APIErrors",
|
|
2044
2044
|
}
|
|
2045
|
-
response_data =
|
|
2045
|
+
response_data = self.api_client.call_api(
|
|
2046
2046
|
*_param, _request_timeout=_request_timeout
|
|
2047
2047
|
)
|
|
2048
|
-
|
|
2048
|
+
response_data.read()
|
|
2049
2049
|
return self.api_client.response_deserialize(
|
|
2050
2050
|
response_data=response_data,
|
|
2051
2051
|
response_types_map=_response_types_map,
|
|
2052
2052
|
)
|
|
2053
2053
|
|
|
2054
2054
|
@validate_call
|
|
2055
|
-
|
|
2055
|
+
def workflow_run_list_step_run_events_without_preload_content(
|
|
2056
2056
|
self,
|
|
2057
2057
|
tenant: Annotated[
|
|
2058
2058
|
str,
|
|
@@ -2132,7 +2132,7 @@ class StepRunApi:
|
|
|
2132
2132
|
"403": "APIErrors",
|
|
2133
2133
|
"404": "APIErrors",
|
|
2134
2134
|
}
|
|
2135
|
-
response_data =
|
|
2135
|
+
response_data = self.api_client.call_api(
|
|
2136
2136
|
*_param, _request_timeout=_request_timeout
|
|
2137
2137
|
)
|
|
2138
2138
|
return response_data.response
|