Is there a way to run a dependent flow when running locally for testing without needing to run a prefect server? Using the built-in task (https://docs.prefect.io/core/idioms/flow-to-flow.html) calls to the API which we normally don’t run to keep development lightweight. We add a main to our flows that looks something like:
Copy code
def main():
state = flow.run(executor=LocalExecutor())
parameters = {...}
k
Kevin Kho
07/27/2021, 8:45 PM
Hey @Brad I, the only way to do this is to create your own copy of
StartFlowRun
or
create_flow_run
that uses
context.get("running_with_backend")
and then creates a flow run or
flow.run()
. You’d have to create a task that wraps around these
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.