hey all trying to run dependent flows where I pas...
# ask-community
m
hey all trying to run dependent flows where I pass the output of a flow to the next flow… the docs on dependent flows were not super specific any ideas on how to approach this use case?
k
Hey @Mike Lev, this was a painpoint for users so in 0.15.0, we introduced 3 tasks that go together.
create_flow_run
,
wait_for_flow_run
and
get_task_run_result
. You would get the task run result and then pass it as the payload to the next
create_flow_run
as a
Parameter
. This has an example for the first two. You need to slow the slug you are looking for ahead of time. This blog also has an example
m
thank you very much... I do have another question to ask that is slightly unrelated I am trying to deploy flow runs with a local agent on a local server started with
prefect server start
any full examples of such use cases or best practices? just for additional context running into some issues while working inside of a devcontainer where access to
localhost
is klunky
k
If you are using 0.15.5 and above, maybe using
prefect server start --expose
will help. The Orchestration docs will be applicable to both Server and Cloud. The important thing is you are able to spin up an agent with
prefect agent local start
that can communicate with the server