https://prefect.io logo
p

Priyan Chandrapala

11/01/2020, 4:48 PM
Hi All, I’m trying to create a flow with Prefect which will only be triggered on demand, it should not be triggered on a schedule. I’m new to Prefect this is my first project. I could not find this in documentation. If anyone has done this before please help me out. Thanks in advance.
a

Avi A

11/01/2020, 7:40 PM
Triggered on demand is the default.
also, even if you define it with a schedule, you can still trigger it on demand (using the UI or graphql request)
p

Priyan Chandrapala

11/01/2020, 7:43 PM
Thanks Avi, So, do you think I can define a flow without a Schedule, like?
Copy code
with Flow(job["flow_name"] + " (" + env + ")", schedule = None) as flow:
a

Avi A

11/01/2020, 7:54 PM
yes, you don’t need to specify
schedule=None
upvote 1
p

Priyan Chandrapala

11/01/2020, 7:55 PM
Thanks a lot Avi, really appreciate your advice
👍🏼 1