mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2025-12-31 05:39:41 -06:00
[Python] Feat: Replace REST Client (#1413)
* fix: version * feat: first pass at new base rest client * fix: typing * fix: base client cleanup * feat: basic runs client * fix: finally!! * feat: helper functions for uuid and metadata conversion and api format fix * fix: patches * feat: run list apis * feat: add bulk replay and cancel * feat: replays and cancels * feat: result getter * feat: cron client * feat: scheduled workflows * feat: rate limit * refactor: don't export admin client anymore * feat: add a bunch more clients and remove the old `rest` thing * fix: scheduled workflow trigger time * fix: emptymodel default * refactor: stop passing pooled workflow run listener around everywhere * fix: more cleanup of context * refactor: remove unused stuff from runner * unwind: keep passing listeners around * fix: rm some unused stuff * fix: example * feat: metrics api * feat: a couple tests * feat: more default emptymodels * fix: tests * [Docs]: Misc. Python Migration Guide Issues, Rate limits, V1 new features (#1417) * fix: misc python migration guide * feat: rate limits docs * fix: lint * fix: lint * feat: skeleton * feat: add a bunch of docs * feat: bulk replay and cancel docs * fix: add task output to example * fix: otel docs + naming * fix: lint * fix: rm timeout * feat: initial python sdk guide * fix: raise on dupe on failure or on success * fix: dags docs * feat: 1.0.1
This commit is contained in:
@@ -1,51 +1,3 @@
|
||||
diff --git a/hatchet_sdk/clients/rest/api/workflow_api.py b/hatchet_sdk/clients/rest/api/workflow_api.py
|
||||
index 5716532..c32ba44 100644
|
||||
--- a/hatchet_sdk/clients/rest/api/workflow_api.py
|
||||
+++ b/hatchet_sdk/clients/rest/api/workflow_api.py
|
||||
@@ -2185,9 +2185,7 @@ class WorkflowApi:
|
||||
_query_params.append(
|
||||
(
|
||||
"createdAfter",
|
||||
- created_after.strftime(
|
||||
- self.api_client.configuration.datetime_format
|
||||
- ),
|
||||
+ created_after.isoformat(),
|
||||
)
|
||||
)
|
||||
else:
|
||||
@@ -2198,9 +2196,7 @@ class WorkflowApi:
|
||||
_query_params.append(
|
||||
(
|
||||
"createdBefore",
|
||||
- created_before.strftime(
|
||||
- self.api_client.configuration.datetime_format
|
||||
- ),
|
||||
+ created_before.isoformat(),
|
||||
)
|
||||
)
|
||||
else:
|
||||
@@ -2789,9 +2785,7 @@ class WorkflowApi:
|
||||
_query_params.append(
|
||||
(
|
||||
"createdAfter",
|
||||
- created_after.strftime(
|
||||
- self.api_client.configuration.datetime_format
|
||||
- ),
|
||||
+ created_after.isoformat(),
|
||||
)
|
||||
)
|
||||
else:
|
||||
@@ -2802,9 +2796,7 @@ class WorkflowApi:
|
||||
_query_params.append(
|
||||
(
|
||||
"createdBefore",
|
||||
- created_before.strftime(
|
||||
- self.api_client.configuration.datetime_format
|
||||
- ),
|
||||
+ created_before.isoformat(),
|
||||
)
|
||||
)
|
||||
else:
|
||||
diff --git a/hatchet_sdk/clients/rest/models/workflow_runs_metrics.py b/hatchet_sdk/clients/rest/models/workflow_runs_metrics.py
|
||||
index 71b6351..5f70c44 100644
|
||||
--- a/hatchet_sdk/clients/rest/models/workflow_runs_metrics.py
|
||||
|
||||
Reference in New Issue
Block a user