Is there any tips for using local agent and local ...
# ask-community
e
Is there any tips for using local agent and local run? I find it is really error prone. e.g I have a file
foo.py
where
flowA
is encoded. I can easily run into following cases: • register with
-p ./foo.py
, it doesn’t work while
-p foo.py
works. • Under same folder
/pipelines/
there are two files
flow.py, common_task.py
, I can also run into import error, sometimes
from .common_task import xxx
works sometimes not, depending on how PYTHONPATH is set. So far my experience is to make sure local agent run on the same level where my
resiger
command is called, no leading dot in register command etc. Curious about whether ppl have better ideas on how to manage the entire process.
k
Hi @Enda Peng! Yes I have experienced that myself. This is something we’re aware of, but I think best practice would be to use a simple Docker container to make sure that it’s being run in the
WORKDIR
.
e
thank you!
k
I think I have an example that might help
e
cool! I will check it out