Vikram Iyer
06/30/2020, 7:11 PMprefect agent start docker --network prefect-server
I am still not able to execute the flows from the UI. Is there anything I am doing wrong?Zachary Hughes
06/30/2020, 7:13 PMVikram Iyer
06/30/2020, 7:17 PMZachary Hughes
06/30/2020, 7:18 PMVikram Iyer
06/30/2020, 7:19 PMZachary Hughes
06/30/2020, 7:21 PMflow.register()
with local storage, then your flow was likely auto-tagged with several labels specific to your machine.
If you want to run your registered flows with local storage, I'd recommend spinning up a local agent. And if you'd rather work with a Docker agent, you'll be best off registering your flows with Docker storage.Vikram Iyer
06/30/2020, 7:22 PMZachary Hughes
06/30/2020, 7:23 PMVikram Iyer
06/30/2020, 7:23 PMprefect agent start
spins up a local agent and prefect agent start docker
spins up a docker based agent and hence I might have to use the docker storage to access the registered flows. Am i getting it right?Zachary Hughes
06/30/2020, 7:27 PMVikram Iyer
06/30/2020, 7:38 PMZachary Hughes
06/30/2020, 7:41 PMVikram Iyer
06/30/2020, 7:51 PMflow.run_agent()
To execute from the UI, when using docker containers for other services, I will have to use Docker Storage.
Sorry if this is redundant, the terms are quite confusing to be honest. @Zachary HughesZachary Hughes
06/30/2020, 7:54 PMVikram Iyer
06/30/2020, 8:14 PMfrom prefect import Flow
from prefect.environments.storage import Local
flow = Flow("local-flow", storage=Local())
flow.storage.build()
So, does the flow.storage.build()
replace flow.register()
or are we required to do both?Zachary Hughes
06/30/2020, 8:19 PM.build()
stores the flow as bytes, while .register()
tells the API information about your flow.Laura Lorenz (she/her)
07/31/2020, 3:20 PMMarvin
07/31/2020, 3:20 PM