hatchet-sdk 1.2.6__py3-none-any.whl → 1.3.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.
- 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/v1_workflow_run.py +5 -0
- 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 +58 -9
- {hatchet_sdk-1.2.6.dist-info → hatchet_sdk-1.3.1.dist-info}/METADATA +1 -1
- {hatchet_sdk-1.2.6.dist-info → hatchet_sdk-1.3.1.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.1.dist-info}/WHEEL +0 -0
- {hatchet_sdk-1.2.6.dist-info → hatchet_sdk-1.3.1.dist-info}/entry_points.txt +0 -0
|
@@ -43,7 +43,7 @@ class TaskApi:
|
|
|
43
43
|
self.api_client = api_client
|
|
44
44
|
|
|
45
45
|
@validate_call
|
|
46
|
-
|
|
46
|
+
def v1_dag_list_tasks(
|
|
47
47
|
self,
|
|
48
48
|
dag_ids: Annotated[
|
|
49
49
|
List[Annotated[str, Field(min_length=36, strict=True, max_length=36)]],
|
|
@@ -112,17 +112,17 @@ class TaskApi:
|
|
|
112
112
|
"403": "APIErrors",
|
|
113
113
|
"501": "APIErrors",
|
|
114
114
|
}
|
|
115
|
-
response_data =
|
|
115
|
+
response_data = self.api_client.call_api(
|
|
116
116
|
*_param, _request_timeout=_request_timeout
|
|
117
117
|
)
|
|
118
|
-
|
|
118
|
+
response_data.read()
|
|
119
119
|
return self.api_client.response_deserialize(
|
|
120
120
|
response_data=response_data,
|
|
121
121
|
response_types_map=_response_types_map,
|
|
122
122
|
).data
|
|
123
123
|
|
|
124
124
|
@validate_call
|
|
125
|
-
|
|
125
|
+
def v1_dag_list_tasks_with_http_info(
|
|
126
126
|
self,
|
|
127
127
|
dag_ids: Annotated[
|
|
128
128
|
List[Annotated[str, Field(min_length=36, strict=True, max_length=36)]],
|
|
@@ -191,17 +191,17 @@ class TaskApi:
|
|
|
191
191
|
"403": "APIErrors",
|
|
192
192
|
"501": "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 v1_dag_list_tasks_without_preload_content(
|
|
205
205
|
self,
|
|
206
206
|
dag_ids: Annotated[
|
|
207
207
|
List[Annotated[str, Field(min_length=36, strict=True, max_length=36)]],
|
|
@@ -270,7 +270,7 @@ class TaskApi:
|
|
|
270
270
|
"403": "APIErrors",
|
|
271
271
|
"501": "APIErrors",
|
|
272
272
|
}
|
|
273
|
-
response_data =
|
|
273
|
+
response_data = self.api_client.call_api(
|
|
274
274
|
*_param, _request_timeout=_request_timeout
|
|
275
275
|
)
|
|
276
276
|
return response_data.response
|
|
@@ -339,7 +339,7 @@ class TaskApi:
|
|
|
339
339
|
)
|
|
340
340
|
|
|
341
341
|
@validate_call
|
|
342
|
-
|
|
342
|
+
def v1_task_cancel(
|
|
343
343
|
self,
|
|
344
344
|
tenant: Annotated[
|
|
345
345
|
str,
|
|
@@ -408,17 +408,17 @@ class TaskApi:
|
|
|
408
408
|
"404": "APIErrors",
|
|
409
409
|
"501": "APIErrors",
|
|
410
410
|
}
|
|
411
|
-
response_data =
|
|
411
|
+
response_data = self.api_client.call_api(
|
|
412
412
|
*_param, _request_timeout=_request_timeout
|
|
413
413
|
)
|
|
414
|
-
|
|
414
|
+
response_data.read()
|
|
415
415
|
return self.api_client.response_deserialize(
|
|
416
416
|
response_data=response_data,
|
|
417
417
|
response_types_map=_response_types_map,
|
|
418
418
|
).data
|
|
419
419
|
|
|
420
420
|
@validate_call
|
|
421
|
-
|
|
421
|
+
def v1_task_cancel_with_http_info(
|
|
422
422
|
self,
|
|
423
423
|
tenant: Annotated[
|
|
424
424
|
str,
|
|
@@ -487,17 +487,17 @@ class TaskApi:
|
|
|
487
487
|
"404": "APIErrors",
|
|
488
488
|
"501": "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 v1_task_cancel_without_preload_content(
|
|
501
501
|
self,
|
|
502
502
|
tenant: Annotated[
|
|
503
503
|
str,
|
|
@@ -566,7 +566,7 @@ class TaskApi:
|
|
|
566
566
|
"404": "APIErrors",
|
|
567
567
|
"501": "APIErrors",
|
|
568
568
|
}
|
|
569
|
-
response_data =
|
|
569
|
+
response_data = self.api_client.call_api(
|
|
570
570
|
*_param, _request_timeout=_request_timeout
|
|
571
571
|
)
|
|
572
572
|
return response_data.response
|
|
@@ -639,7 +639,7 @@ class TaskApi:
|
|
|
639
639
|
)
|
|
640
640
|
|
|
641
641
|
@validate_call
|
|
642
|
-
|
|
642
|
+
def v1_task_event_list(
|
|
643
643
|
self,
|
|
644
644
|
task: Annotated[
|
|
645
645
|
str,
|
|
@@ -712,17 +712,17 @@ class TaskApi:
|
|
|
712
712
|
"404": "APIErrors",
|
|
713
713
|
"501": "APIErrors",
|
|
714
714
|
}
|
|
715
|
-
response_data =
|
|
715
|
+
response_data = self.api_client.call_api(
|
|
716
716
|
*_param, _request_timeout=_request_timeout
|
|
717
717
|
)
|
|
718
|
-
|
|
718
|
+
response_data.read()
|
|
719
719
|
return self.api_client.response_deserialize(
|
|
720
720
|
response_data=response_data,
|
|
721
721
|
response_types_map=_response_types_map,
|
|
722
722
|
).data
|
|
723
723
|
|
|
724
724
|
@validate_call
|
|
725
|
-
|
|
725
|
+
def v1_task_event_list_with_http_info(
|
|
726
726
|
self,
|
|
727
727
|
task: Annotated[
|
|
728
728
|
str,
|
|
@@ -795,17 +795,17 @@ class TaskApi:
|
|
|
795
795
|
"404": "APIErrors",
|
|
796
796
|
"501": "APIErrors",
|
|
797
797
|
}
|
|
798
|
-
response_data =
|
|
798
|
+
response_data = self.api_client.call_api(
|
|
799
799
|
*_param, _request_timeout=_request_timeout
|
|
800
800
|
)
|
|
801
|
-
|
|
801
|
+
response_data.read()
|
|
802
802
|
return self.api_client.response_deserialize(
|
|
803
803
|
response_data=response_data,
|
|
804
804
|
response_types_map=_response_types_map,
|
|
805
805
|
)
|
|
806
806
|
|
|
807
807
|
@validate_call
|
|
808
|
-
|
|
808
|
+
def v1_task_event_list_without_preload_content(
|
|
809
809
|
self,
|
|
810
810
|
task: Annotated[
|
|
811
811
|
str,
|
|
@@ -878,7 +878,7 @@ class TaskApi:
|
|
|
878
878
|
"404": "APIErrors",
|
|
879
879
|
"501": "APIErrors",
|
|
880
880
|
}
|
|
881
|
-
response_data =
|
|
881
|
+
response_data = self.api_client.call_api(
|
|
882
882
|
*_param, _request_timeout=_request_timeout
|
|
883
883
|
)
|
|
884
884
|
return response_data.response
|
|
@@ -948,7 +948,7 @@ class TaskApi:
|
|
|
948
948
|
)
|
|
949
949
|
|
|
950
950
|
@validate_call
|
|
951
|
-
|
|
951
|
+
def v1_task_get(
|
|
952
952
|
self,
|
|
953
953
|
task: Annotated[
|
|
954
954
|
str,
|
|
@@ -1009,17 +1009,17 @@ class TaskApi:
|
|
|
1009
1009
|
"404": "APIErrors",
|
|
1010
1010
|
"501": "APIErrors",
|
|
1011
1011
|
}
|
|
1012
|
-
response_data =
|
|
1012
|
+
response_data = self.api_client.call_api(
|
|
1013
1013
|
*_param, _request_timeout=_request_timeout
|
|
1014
1014
|
)
|
|
1015
|
-
|
|
1015
|
+
response_data.read()
|
|
1016
1016
|
return self.api_client.response_deserialize(
|
|
1017
1017
|
response_data=response_data,
|
|
1018
1018
|
response_types_map=_response_types_map,
|
|
1019
1019
|
).data
|
|
1020
1020
|
|
|
1021
1021
|
@validate_call
|
|
1022
|
-
|
|
1022
|
+
def v1_task_get_with_http_info(
|
|
1023
1023
|
self,
|
|
1024
1024
|
task: Annotated[
|
|
1025
1025
|
str,
|
|
@@ -1080,17 +1080,17 @@ class TaskApi:
|
|
|
1080
1080
|
"404": "APIErrors",
|
|
1081
1081
|
"501": "APIErrors",
|
|
1082
1082
|
}
|
|
1083
|
-
response_data =
|
|
1083
|
+
response_data = self.api_client.call_api(
|
|
1084
1084
|
*_param, _request_timeout=_request_timeout
|
|
1085
1085
|
)
|
|
1086
|
-
|
|
1086
|
+
response_data.read()
|
|
1087
1087
|
return self.api_client.response_deserialize(
|
|
1088
1088
|
response_data=response_data,
|
|
1089
1089
|
response_types_map=_response_types_map,
|
|
1090
1090
|
)
|
|
1091
1091
|
|
|
1092
1092
|
@validate_call
|
|
1093
|
-
|
|
1093
|
+
def v1_task_get_without_preload_content(
|
|
1094
1094
|
self,
|
|
1095
1095
|
task: Annotated[
|
|
1096
1096
|
str,
|
|
@@ -1151,7 +1151,7 @@ class TaskApi:
|
|
|
1151
1151
|
"404": "APIErrors",
|
|
1152
1152
|
"501": "APIErrors",
|
|
1153
1153
|
}
|
|
1154
|
-
response_data =
|
|
1154
|
+
response_data = self.api_client.call_api(
|
|
1155
1155
|
*_param, _request_timeout=_request_timeout
|
|
1156
1156
|
)
|
|
1157
1157
|
return response_data.response
|
|
@@ -1211,7 +1211,7 @@ class TaskApi:
|
|
|
1211
1211
|
)
|
|
1212
1212
|
|
|
1213
1213
|
@validate_call
|
|
1214
|
-
|
|
1214
|
+
def v1_task_get_point_metrics(
|
|
1215
1215
|
self,
|
|
1216
1216
|
tenant: Annotated[
|
|
1217
1217
|
str,
|
|
@@ -1286,17 +1286,17 @@ class TaskApi:
|
|
|
1286
1286
|
"403": "APIErrors",
|
|
1287
1287
|
"501": "APIErrors",
|
|
1288
1288
|
}
|
|
1289
|
-
response_data =
|
|
1289
|
+
response_data = self.api_client.call_api(
|
|
1290
1290
|
*_param, _request_timeout=_request_timeout
|
|
1291
1291
|
)
|
|
1292
|
-
|
|
1292
|
+
response_data.read()
|
|
1293
1293
|
return self.api_client.response_deserialize(
|
|
1294
1294
|
response_data=response_data,
|
|
1295
1295
|
response_types_map=_response_types_map,
|
|
1296
1296
|
).data
|
|
1297
1297
|
|
|
1298
1298
|
@validate_call
|
|
1299
|
-
|
|
1299
|
+
def v1_task_get_point_metrics_with_http_info(
|
|
1300
1300
|
self,
|
|
1301
1301
|
tenant: Annotated[
|
|
1302
1302
|
str,
|
|
@@ -1371,17 +1371,17 @@ class TaskApi:
|
|
|
1371
1371
|
"403": "APIErrors",
|
|
1372
1372
|
"501": "APIErrors",
|
|
1373
1373
|
}
|
|
1374
|
-
response_data =
|
|
1374
|
+
response_data = self.api_client.call_api(
|
|
1375
1375
|
*_param, _request_timeout=_request_timeout
|
|
1376
1376
|
)
|
|
1377
|
-
|
|
1377
|
+
response_data.read()
|
|
1378
1378
|
return self.api_client.response_deserialize(
|
|
1379
1379
|
response_data=response_data,
|
|
1380
1380
|
response_types_map=_response_types_map,
|
|
1381
1381
|
)
|
|
1382
1382
|
|
|
1383
1383
|
@validate_call
|
|
1384
|
-
|
|
1384
|
+
def v1_task_get_point_metrics_without_preload_content(
|
|
1385
1385
|
self,
|
|
1386
1386
|
tenant: Annotated[
|
|
1387
1387
|
str,
|
|
@@ -1456,7 +1456,7 @@ class TaskApi:
|
|
|
1456
1456
|
"403": "APIErrors",
|
|
1457
1457
|
"501": "APIErrors",
|
|
1458
1458
|
}
|
|
1459
|
-
response_data =
|
|
1459
|
+
response_data = self.api_client.call_api(
|
|
1460
1460
|
*_param, _request_timeout=_request_timeout
|
|
1461
1461
|
)
|
|
1462
1462
|
return response_data.response
|
|
@@ -1544,7 +1544,7 @@ class TaskApi:
|
|
|
1544
1544
|
)
|
|
1545
1545
|
|
|
1546
1546
|
@validate_call
|
|
1547
|
-
|
|
1547
|
+
def v1_task_list_status_metrics(
|
|
1548
1548
|
self,
|
|
1549
1549
|
tenant: Annotated[
|
|
1550
1550
|
str,
|
|
@@ -1628,17 +1628,17 @@ class TaskApi:
|
|
|
1628
1628
|
"403": "APIErrors",
|
|
1629
1629
|
"501": "APIErrors",
|
|
1630
1630
|
}
|
|
1631
|
-
response_data =
|
|
1631
|
+
response_data = self.api_client.call_api(
|
|
1632
1632
|
*_param, _request_timeout=_request_timeout
|
|
1633
1633
|
)
|
|
1634
|
-
|
|
1634
|
+
response_data.read()
|
|
1635
1635
|
return self.api_client.response_deserialize(
|
|
1636
1636
|
response_data=response_data,
|
|
1637
1637
|
response_types_map=_response_types_map,
|
|
1638
1638
|
).data
|
|
1639
1639
|
|
|
1640
1640
|
@validate_call
|
|
1641
|
-
|
|
1641
|
+
def v1_task_list_status_metrics_with_http_info(
|
|
1642
1642
|
self,
|
|
1643
1643
|
tenant: Annotated[
|
|
1644
1644
|
str,
|
|
@@ -1722,17 +1722,17 @@ class TaskApi:
|
|
|
1722
1722
|
"403": "APIErrors",
|
|
1723
1723
|
"501": "APIErrors",
|
|
1724
1724
|
}
|
|
1725
|
-
response_data =
|
|
1725
|
+
response_data = self.api_client.call_api(
|
|
1726
1726
|
*_param, _request_timeout=_request_timeout
|
|
1727
1727
|
)
|
|
1728
|
-
|
|
1728
|
+
response_data.read()
|
|
1729
1729
|
return self.api_client.response_deserialize(
|
|
1730
1730
|
response_data=response_data,
|
|
1731
1731
|
response_types_map=_response_types_map,
|
|
1732
1732
|
)
|
|
1733
1733
|
|
|
1734
1734
|
@validate_call
|
|
1735
|
-
|
|
1735
|
+
def v1_task_list_status_metrics_without_preload_content(
|
|
1736
1736
|
self,
|
|
1737
1737
|
tenant: Annotated[
|
|
1738
1738
|
str,
|
|
@@ -1816,7 +1816,7 @@ class TaskApi:
|
|
|
1816
1816
|
"403": "APIErrors",
|
|
1817
1817
|
"501": "APIErrors",
|
|
1818
1818
|
}
|
|
1819
|
-
response_data =
|
|
1819
|
+
response_data = self.api_client.call_api(
|
|
1820
1820
|
*_param, _request_timeout=_request_timeout
|
|
1821
1821
|
)
|
|
1822
1822
|
return response_data.response
|
|
@@ -1900,7 +1900,7 @@ class TaskApi:
|
|
|
1900
1900
|
)
|
|
1901
1901
|
|
|
1902
1902
|
@validate_call
|
|
1903
|
-
|
|
1903
|
+
def v1_task_replay(
|
|
1904
1904
|
self,
|
|
1905
1905
|
tenant: Annotated[
|
|
1906
1906
|
str,
|
|
@@ -1969,17 +1969,17 @@ class TaskApi:
|
|
|
1969
1969
|
"404": "APIErrors",
|
|
1970
1970
|
"501": "APIErrors",
|
|
1971
1971
|
}
|
|
1972
|
-
response_data =
|
|
1972
|
+
response_data = self.api_client.call_api(
|
|
1973
1973
|
*_param, _request_timeout=_request_timeout
|
|
1974
1974
|
)
|
|
1975
|
-
|
|
1975
|
+
response_data.read()
|
|
1976
1976
|
return self.api_client.response_deserialize(
|
|
1977
1977
|
response_data=response_data,
|
|
1978
1978
|
response_types_map=_response_types_map,
|
|
1979
1979
|
).data
|
|
1980
1980
|
|
|
1981
1981
|
@validate_call
|
|
1982
|
-
|
|
1982
|
+
def v1_task_replay_with_http_info(
|
|
1983
1983
|
self,
|
|
1984
1984
|
tenant: Annotated[
|
|
1985
1985
|
str,
|
|
@@ -2048,17 +2048,17 @@ class TaskApi:
|
|
|
2048
2048
|
"404": "APIErrors",
|
|
2049
2049
|
"501": "APIErrors",
|
|
2050
2050
|
}
|
|
2051
|
-
response_data =
|
|
2051
|
+
response_data = self.api_client.call_api(
|
|
2052
2052
|
*_param, _request_timeout=_request_timeout
|
|
2053
2053
|
)
|
|
2054
|
-
|
|
2054
|
+
response_data.read()
|
|
2055
2055
|
return self.api_client.response_deserialize(
|
|
2056
2056
|
response_data=response_data,
|
|
2057
2057
|
response_types_map=_response_types_map,
|
|
2058
2058
|
)
|
|
2059
2059
|
|
|
2060
2060
|
@validate_call
|
|
2061
|
-
|
|
2061
|
+
def v1_task_replay_without_preload_content(
|
|
2062
2062
|
self,
|
|
2063
2063
|
tenant: Annotated[
|
|
2064
2064
|
str,
|
|
@@ -2127,7 +2127,7 @@ class TaskApi:
|
|
|
2127
2127
|
"404": "APIErrors",
|
|
2128
2128
|
"501": "APIErrors",
|
|
2129
2129
|
}
|
|
2130
|
-
response_data =
|
|
2130
|
+
response_data = self.api_client.call_api(
|
|
2131
2131
|
*_param, _request_timeout=_request_timeout
|
|
2132
2132
|
)
|
|
2133
2133
|
return response_data.response
|