flat-waiter-82487
08/16/2024, 10:05 AM├── conf
├── data
└── src
When I register my workflow (I want to use fast registration), I need files in conf
and data
TO BE PRESENT during execution. The workflow itself is defined under src/my_package/workflows/workflow.py
. At execution time in Flyte it seems like only files from src
are present in the container. How to include additional files outside of the src folder? They change too during interations on the workflow. I expected that's a basic scenario that is supported to enable fast development cycle (as stated here https://docs.flyte.org/en/latest/flyte_fundamentals/registering_workflows.html#fast-registration )
Right now I'm using pyflyte register src/my_package/workflows
in order to register the workflow. When I use `pyflyte register `pwd`` logs from CLI show that wrong root is detected (parent folder of my current one, dunno why).thankful-minister-83577
src
here)thankful-minister-83577
thankful-minister-83577
thankful-minister-83577
thankful-minister-83577
thankful-minister-83577
Local Container
====================== =====================
(cwd) . /root .................... (container workdir)
├── conf/ ├── my.img
(detected root)...└── src ├── resources
├── my.img │ └── file.txt
├── resources └── work ......(name of entities are basically in-container import path)
│ └── file.txt ├── __init__.py
(naming starts here)....└── work ├── tt.py
├── __init__.py └── wfs.py.........(has `from <http://work.tt|work.tt> import ...`)
├── tt.py
└── wfs.py
if you register this you get
[✔] Registration work.tt.create_large_list type TASK successful with version XW5O98buTy-eqfLoLSwGFA
[✔] Registration work.wfs.make_large_list type WORKFLOW successful with version XW5O98buTy-eqfLoLSwGFA
[✔] Registration work.wfs.make_large_list type LAUNCH_PLAN successful with version XW5O98buTy-eqfLoLSwGFA
thankful-minister-83577
thankful-minister-83577
thankful-minister-83577
thankful-minister-83577
--deref-symlinks
to your register command?flat-waiter-82487
08/19/2024, 8:48 AMpyflyte register src data conf
then the effective cwd
is begin copied into the container and I add /root/src
to PYTHONPATH
in the Dockerfile before. It seems to work that way.
🤷flaky-parrot-42438
08/19/2024, 3:01 PMsrc
?flat-waiter-82487
08/19/2024, 7:55 PMflaky-parrot-42438
08/20/2024, 6:02 PMsrc/my_package/workflows/workflow.py
?flat-waiter-82487
08/22/2024, 6:02 PMfrom my_package.sub_package import my_function
flat-waiter-82487
08/26/2024, 9:37 AMthankful-minister-83577
thankful-minister-83577
thankful-minister-83577
thankful-minister-83577
thankful-minister-83577
thankful-minister-83577
flat-waiter-82487
08/29/2024, 8:26 AMthankful-minister-83577