Faheem Khan
06/16/2022, 5:56 AMAnna Geller
prefect version
? You may try running your agent in a local process, e.g. in a virtual environment, instead of running it in Docker - this may be easier
if you run it in Docker, you need to think about network - e.g. run both Orion API server and agent in the same Docker networkFaheem Khan
06/17/2022, 6:07 AMfrom prefect import flow
@flow
def common_flow(config: dict):
print("I am a subgraph that shows up in lots of places!")
intermediate_result = 42
return intermediate_result
@flow
def main_flow():
# do some things
# then call another flow function
data = common_flow(config={})
# do more things
flow_state = main_flow()Anna Geller