curved-whale-1505
05/03/2025, 3:00 PMcurved-whale-1505
05/03/2025, 3:09 PMtool.uv.sources
the only part I don’t understand is how I can get the the contents of my shared python package in the monorepo also in flyte fast registration instead of installing it into the docker imagefreezing-airport-6809
reference tasks
freezing-airport-6809
high-park-82026
@task(container_image=my_image_1)
and the system will automatically use the right image with the right dependencies. If you do this, you don't have to create separate workflows as Flyte allows you to mix images in the same workflow
2. You can use different workflows/tasks and reference them using Reference Tasks/Workflows as Ketan pointed out
3. We have recently added a feature called with_runtime_packages
(Docs will be part of the upcoming official flyte release) that allows you to use uv run
to install packages on the fly before a task run
@task(container_image=img.with_runtime_packages(["numpy==..."]))
def my_task()...
Note option #3 does incur runtime penalty as it'll install the packages on the fly every time this task runs.curved-whale-1505
05/04/2025, 10:06 PMuv.lock
file and then ensure I can always run pyflyte run ...
without --remote
to replicate the entire workflow locally.
Let’s say I have the following structure (pseudocode):
monorepo/
├── common_utils
│ ├── pyproject.toml
│ └── uv.lock
├── project_a
│ ├── pyproject.toml
│ └── uv.lock
├── project_b
│ ├── pyproject.toml
│ └── uv.lock
In this example, the dependencies of common_utils
is a strict subset of project_a
and project_b
. And project_a
and project_b
have conflicting dependencies (lets stick with conflicting numpy as per the example before).
Now ideally I want want:
1) when I run project_a
, the code for both common_utils
and project_a
to be fast registered into s3
2) the ability to run pyflyte run ...
without --remote
to replicate the entire workflow(s) locally within project_a
and project_b
curved-whale-1505
05/04/2025, 10:06 PMuv.lock
file
2. Reading the docs for reference tasks, it seems like I won’t be able to run the entire workflow locally anymore? Please correct me if I’m wrong / these docs are out of date.
3. Interesting, does that work locally too?curved-whale-1505
05/04/2025, 10:12 PMjolly-knife-16921
05/05/2025, 1:56 PMhigh-park-82026