https://prefect.io logo
Title
m

Murmuration Dev

03/01/2023, 10:47 AM
dear Prefect team, I am using prefect v1 on the cloud. When I push a flow that build with docker and KubernetesRun through ci/cd, the schedule mode of this flow is automatically turned on, while I want it to stay off. How to avoid that ?
1
n

nicholas

03/01/2023, 2:58 PM
Hi @Murmuration Dev - when you call
flow.register
, you can pass
set_schedule_active=False
to avoid this behavior:
with Flow("my flow") as flow:
  ...


flow.register(set_schedule_active=False)
👍 1
m

Murmuration Dev

03/01/2023, 3:16 PM
thank you very much, it works :-)
🎉 2