2026-05-27 17:07:20 +02:00
|
|
|
"""``schedule`` ``TriggerDefinition`` registration."""
|
2026-05-27 13:58:57 +02:00
|
|
|
|
|
|
|
|
from __future__ import annotations
|
|
|
|
|
|
2026-05-29 17:49:05 +02:00
|
|
|
from app.automations.triggers.store import register_trigger
|
|
|
|
|
from app.automations.triggers.types import TriggerDefinition
|
|
|
|
|
|
2026-05-27 17:07:20 +02:00
|
|
|
from .params import ScheduleTriggerParams
|
2026-05-27 13:58:57 +02:00
|
|
|
|
|
|
|
|
SCHEDULE_TRIGGER = TriggerDefinition(
|
|
|
|
|
type="schedule",
|
|
|
|
|
description="Fire on a cron schedule in a given timezone.",
|
2026-05-27 21:21:43 +02:00
|
|
|
params_model=ScheduleTriggerParams,
|
2026-05-27 13:58:57 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
register_trigger(SCHEDULE_TRIGGER)
|