https://prefect.io logo
#prefect-community
Title
# prefect-community
f

Frederick Thomas

06/08/2022, 1:28 PM
Hi all< We're attempting to use the Docker agent but have run into a problem: the test flow that we created is registered to a local agent. Could you please assist. Thanks!
1
a

Anna Geller

06/08/2022, 1:32 PM
can you elaborate? are you using Prefect 2.0 or 1.0?
generally speaking in 1.0 the run_config and corresponding label is the right place to tell Prefect which agent should pick up this flow run
if you want to switch a flow that used to run on a local agent to Docker agent, you would usually switch the run config from LocalRun to a DockerRun - does this already answer your question?
f

Frederick Thomas

06/08/2022, 1:35 PM
Hi @Anna Geller, how would we add a label to an agent??
f

Frederick Thomas

06/08/2022, 1:43 PM
Thanks Anna!! We have it. Take care.
j

Jason Noxon

06/08/2022, 3:00 PM
Hi, @Anna Geller, or @Kevin Kho! We have an additional question. We successfully registered our flow with the correct agent (thank you). The issue we're having is that when the flow gets run in docker, we get a ModuleNotFoundError when it tries to use our flow. Is there any special parameters we need to keep in mind when registering a flow to use DockerRun?
k

Kevin Kho

06/08/2022, 3:22 PM
I think this is what you are running into?
j

Jason Noxon

06/08/2022, 3:30 PM
I'll take a look!
6 Views