from prefect import flow
from orbitra.flows.orbitra_deploy import orbitra_deployment, ContainerSize
@orbitra_deployment()
def manual_flow():
...
@orbitra_deployment(
name="reporting-prod",
flow_config=flow(name="daily-reporting", log_prints=True),
schedules=["cron=0 7 * * *"],
tags=["prod", "finance"],
container_size="M",
)
def generate_reports(day: str = "yesterday"):
...
@orbitra_deployment(
flow_config=flow(name="etl-runner", retries=2, retry_delay_seconds=60),
schedules=["interval=3600"],
container_size=ContainerSize(memory_gb=16, cpu_cores=6),
)
def hourly_etl():
...