https://prefect.io logo
Title
a

Alex Furrier

07/13/2021, 8:44 PM
I'm trying to run a "flow of flows" following the documentation on dependent flows here. Running into an issue when trying to initialize the
StartFlowRun(flow_name="my registered flow", project_name="my project")
with a registered flow. I pass the name of the registered flow but when I try to execute the flow of flows I get this error:
Unexpected error: ValueError("Flow 'my registered flow' not found.")
To double check the name is correct in the Interactive API I queried for flows and found the flow name I passed. Any idea what I'm doing wrong? Attempting to execute this on k8s and a Dask cluster if that makes a difference.
n

nicholas

07/13/2021, 8:46 PM
Hi @Alex Furrier - I think you need to pass
flow_name
to
StartFlowRun
, instead of
name
a

Alex Furrier

07/13/2021, 8:47 PM
My bad, I did pass that but was writing the call from memory
n

nicholas

07/13/2021, 8:47 PM
But in case that was just a recreation typo, check that the API key you're using to start the run is from the same tenant as the one you're looking for
k

Kevin Kho

07/13/2021, 8:47 PM
Do you use
project_name
instead of
project
too?
a

Alex Furrier

07/13/2021, 8:58 PM
yes using
project_name
also
@nicholas I'm guessing the API key / client connection is the issue. Just to be clear we're running Prefect server on k8s and not Prefect Cloud. Would that client connection still be possible if we're using Prefect server to orchestrate kubernetes runs using Docker images as storage? My guess is that since it's executing a flow within a container the client isn't able to connect to our server by the default instantiation of
Client()
that's used within
StartFlowRun()
?