diff --git a/examples/cron/programatic-async.py b/examples/cron/programatic-async.py index 712913e1..0108d2d2 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,7 @@ 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) +# !! 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"