From a891687af5742d6dfdfa2c72f30d360d4d478ff8 Mon Sep 17 00:00:00 2001 From: mrkaye97 Date: Sun, 19 Jan 2025 14:17:45 -0500 Subject: [PATCH 1/3] fix, part i --- hatchet_sdk/clients/rest_client.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hatchet_sdk/clients/rest_client.py b/hatchet_sdk/clients/rest_client.py index dbfa5c6c..19fc130e 100644 --- a/hatchet_sdk/clients/rest_client.py +++ b/hatchet_sdk/clients/rest_client.py @@ -237,7 +237,7 @@ async def cron_create( workflow=workflow_name, create_cron_workflow_trigger_request=CreateCronWorkflowTriggerRequest( cronName=cron_name, - expression=expression, + cronExpression=expression, input=input, additional_metadata=additional_metadata, ), diff --git a/pyproject.toml b/pyproject.toml index b332d11e..c09450a4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "hatchet-sdk" -version = "0.44.0" +version = "0.44.1" description = "" authors = ["Alexander Belanger "] readme = "README.md" From 1c31ea38c1f0a1cca74e8b977131dc96ba87f8dd Mon Sep 17 00:00:00 2001 From: mrkaye97 Date: Sun, 19 Jan 2025 14:26:10 -0500 Subject: [PATCH 2/3] fix: order of ops --- examples/cron/programatic-async.py | 9 +++++---- examples/cron/programatic-sync.py | 8 ++++---- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/examples/cron/programatic-async.py b/examples/cron/programatic-async.py index 712913e1..b5ba7097 100644 --- a/examples/cron/programatic-async.py +++ b/examples/cron/programatic-async.py @@ -24,10 +24,6 @@ async def create_cron() -> None: id = cron_trigger.metadata.id # the id of the cron trigger # !! - # ❓ Delete - await hatchet.cron.aio.delete(cron_trigger=cron_trigger.metadata.id) - # !! - # ❓ List cron_triggers = await hatchet.cron.aio.list() # !! @@ -35,3 +31,8 @@ async def create_cron() -> None: # ❓ Get cron_trigger = await hatchet.cron.aio.get(cron_trigger=cron_trigger.metadata.id) # !! + + + # ❓ Delete + await hatchet.cron.aio.delete(cron_trigger=cron_trigger.metadata.id) + # !! diff --git a/examples/cron/programatic-sync.py b/examples/cron/programatic-sync.py index c5e69c24..d5c74d48 100644 --- a/examples/cron/programatic-sync.py +++ b/examples/cron/programatic-sync.py @@ -22,10 +22,6 @@ id = cron_trigger.metadata.id # the id of the cron trigger # !! -# ❓ Delete -hatchet.cron.delete(cron_trigger=cron_trigger.metadata.id) -# !! - # ❓ List cron_triggers = hatchet.cron.list() # !! @@ -33,3 +29,7 @@ # ❓ Get cron_trigger = hatchet.cron.get(cron_trigger=cron_trigger.metadata.id) # !! + +# ❓ Delete +hatchet.cron.delete(cron_trigger=cron_trigger.metadata.id) +# !! From c8c2505e51c6153ea4a43bf174a678fb99ea6349 Mon Sep 17 00:00:00 2001 From: mrkaye97 Date: Sun, 19 Jan 2025 14:27:20 -0500 Subject: [PATCH 3/3] fmt --- examples/cron/programatic-async.py | 1 - 1 file changed, 1 deletion(-) diff --git a/examples/cron/programatic-async.py b/examples/cron/programatic-async.py index b5ba7097..0108d2d2 100644 --- a/examples/cron/programatic-async.py +++ b/examples/cron/programatic-async.py @@ -32,7 +32,6 @@ async def create_cron() -> None: cron_trigger = await hatchet.cron.aio.get(cron_trigger=cron_trigger.metadata.id) # !! - # ❓ Delete await hatchet.cron.aio.delete(cron_trigger=cron_trigger.metadata.id) # !!