https://prefect.io logo
#prefect-server
Title
# prefect-server
m

Marc Lipoff

04/18/2022, 6:31 PM
What's the best way to configure a StartFlowRun() task? I'm trying to kick off another flow from the "parent" flow. I'm on cloud, and running v0.15. When I try the following, I get a response that no flow is found:
Copy code
StartFlowRun()(
            flow_name="subflow_name",
            project_name="my_project")
(I tried the query in the cloud api UI, and it does return a flow id) I assume the problem is that my flow is not authenticated to prefect cloud
a

Anna Geller

04/18/2022, 6:36 PM
We have lots of examples about that on Discourse here and you could also try this simple code example
regarding the auth to Cloud - both your child and parent flows must be registered before you run a flow-of-flows - maybe that's the reason for your error?
m

Marc Lipoff

04/18/2022, 6:40 PM
They are both registered. Do I need to run
prefect auth login -k $PREFECT_API_TOKEN && prefect backend cloud
first?
a

Anna Geller

04/18/2022, 6:42 PM
yes, this is required to communicate with the Cloud backend
15 Views