Edmondo Porcu
10/09/2023, 3:49 PMNate
10/09/2023, 6:06 PMrun_deployment
, let me find an exampleNate
10/09/2023, 6:07 PMrun_deployment
in a @task
so that you can .map
and / or wait_for
those calls like you can with tasksHenning Holgersen
10/09/2023, 6:50 PMrun_deployment
approach to my example as well, although I haven’t been able to wrap it correctly to avoid it behaving like a subflow: https://github.com/radbrt/orion_flows/blob/c654c7589d02c9cdb777d2833ee862452b0b19dc/projects/jottings/reschedule/flow.py#L34Nate
10/09/2023, 6:55 PMrun_deployment
is wrapped in a task. yeah, using the API is always an option otherwise if you want to avoid the subflow bitHenning Holgersen
10/10/2023, 7:32 PMclient.create_flow_run_from_deployment(deployment.id, state=Scheduled(scheduled_time=pendulum.datetime(2024, 1, 2, 3, 0, 0, 0, tz="Europe/Oslo")))
, following the example from https://discourse.prefect.io/t/how-to-schedule-a-flow-run-from-a-deployment-for-a-specific-date/1654. It seems the flow starts immediately instead of running at the scheduled time. Any idea why?Nate
10/10/2023, 7:59 PMrun_deployment
should definitely work for this thoughHenning Holgersen
10/10/2023, 8:40 PM