Skip to content
This repository was archived by the owner on Mar 26, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions examples/cron/programatic-async.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ 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()
# !!

# ❓ 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)
# !!
8 changes: 4 additions & 4 deletions examples/cron/programatic-sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@
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()
# !!

# ❓ Get
cron_trigger = hatchet.cron.get(cron_trigger=cron_trigger.metadata.id)
# !!

# ❓ Delete
hatchet.cron.delete(cron_trigger=cron_trigger.metadata.id)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

running this before the get would cause an error b/c the cron would have been deleted by then

# !!
2 changes: 1 addition & 1 deletion hatchet_sdk/clients/rest_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
),
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "hatchet-sdk"
version = "0.44.0"
version = "0.44.1"
description = ""
authors = ["Alexander Belanger <alexander@hatchet.run>"]
readme = "README.md"
Expand Down
Loading