Skip to content

Commit

Permalink
chore: generate
Browse files Browse the repository at this point in the history
  • Loading branch information
grutt committed Nov 25, 2024
1 parent e9ea0fc commit 0d81f15
Show file tree
Hide file tree
Showing 172 changed files with 10,452 additions and 8,789 deletions.
3 changes: 2 additions & 1 deletion examples/cron/programatic-async.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

hatchet = Hatchet()


async def create_cron():
# ❓ Create
cron_trigger = await hatchet.cron.aio.create(
Expand All @@ -20,7 +21,7 @@ async def create_cron():
},
)

id = cron_trigger.metadata.id # the id of the cron trigger
id = cron_trigger.metadata.id # the id of the cron trigger
# !!

# ❓ Delete
Expand Down
2 changes: 1 addition & 1 deletion examples/cron/programatic-sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
},
)

id = cron_trigger.metadata.id # the id of the cron trigger
id = cron_trigger.metadata.id # the id of the cron trigger
# !!

# ❓ Delete
Expand Down
5 changes: 4 additions & 1 deletion examples/cron/workflow-definition.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@

hatchet = Hatchet(debug=True)


# ❓ Workflow Definition Cron Trigger
# Adding a cron trigger to a workflow is as simple
# as adding a `cron expression` to the `on_cron`
# as adding a `cron expression` to the `on_cron`
# prop of the workflow definition
@hatchet.workflow(on_cron="* * * * *")
class CronWorkflow:
Expand All @@ -20,6 +21,8 @@ def step1(self, context: Context):
return {
"time": "step1",
}


# !!


Expand Down
4 changes: 3 additions & 1 deletion examples/scheduled/programatic-async.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from datetime import datetime, timedelta

from dotenv import load_dotenv

from hatchet_sdk import Hatchet
Expand All @@ -8,6 +9,7 @@

hatchet = Hatchet()


async def create_scheduled():
# ❓ Create
scheduled_run = await hatchet.scheduled.aio.create(
Expand All @@ -21,7 +23,7 @@ async def create_scheduled():
},
)

id = scheduled_run.metadata.id # the id of the scheduled run trigger
id = scheduled_run.metadata.id # the id of the scheduled run trigger
# !!

# ❓ Delete
Expand Down
3 changes: 2 additions & 1 deletion examples/scheduled/programatic-sync.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from datetime import datetime, timedelta

from dotenv import load_dotenv

from hatchet_sdk import Hatchet
Expand All @@ -19,7 +20,7 @@
},
)

id = scheduled_run.metadata.id # the id of the scheduled run trigger
id = scheduled_run.metadata.id # the id of the scheduled run trigger
# !!

# ❓ Delete
Expand Down
214 changes: 155 additions & 59 deletions hatchet_sdk/clients/rest/__init__.py

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions hatchet_sdk/clients/rest/api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,18 @@

# import apis into api package
from hatchet_sdk.clients.rest.api.api_token_api import APITokenApi
from hatchet_sdk.clients.rest.api.default_api import DefaultApi
from hatchet_sdk.clients.rest.api.event_api import EventApi
from hatchet_sdk.clients.rest.api.github_api import GithubApi
from hatchet_sdk.clients.rest.api.healthcheck_api import HealthcheckApi
from hatchet_sdk.clients.rest.api.log_api import LogApi
from hatchet_sdk.clients.rest.api.metadata_api import MetadataApi
from hatchet_sdk.clients.rest.api.rate_limits_api import RateLimitsApi
from hatchet_sdk.clients.rest.api.sns_api import SNSApi
from hatchet_sdk.clients.rest.api.slack_api import SlackApi
from hatchet_sdk.clients.rest.api.sns_api import SNSApi
from hatchet_sdk.clients.rest.api.step_run_api import StepRunApi
from hatchet_sdk.clients.rest.api.tenant_api import TenantApi
from hatchet_sdk.clients.rest.api.user_api import UserApi
from hatchet_sdk.clients.rest.api.worker_api import WorkerApi
from hatchet_sdk.clients.rest.api.workflow_api import WorkflowApi
from hatchet_sdk.clients.rest.api.workflow_run_api import WorkflowRunApi
from hatchet_sdk.clients.rest.api.default_api import DefaultApi

Loading

0 comments on commit 0d81f15

Please sign in to comment.