Arun Giridharan
09/07/2022, 6:10 PMMason Menges
09/07/2022, 6:58 PM@flow
def test_flow():
flow_run = prefect.context.get_run_context().flow_run
if flow_run.auto_scheduled == False:
some_task()
else:
other_task()
This would only run some_task
if the flow run wasn't automatically scheduled, i.e it was triggered manually or through some other api call like create_flow_run_from_deployment()Arun Giridharan
09/07/2022, 6:59 PMMason Menges
09/07/2022, 7:34 PM