Geert
11/23/2023, 1:21 PMif "SKIP_HEAVY_IMPORTS" not in os.environ:
import some_package
Yee
is_container
but i don’t think that will suffice for your purposes. you can always hack things around like moving imports into the body of tasks, but fundamentally task signatures are inspected by flytekit and inspected for typetransformers, etc. i think we to establish a good pattern for this @Thomas Fan @Eduardo Apolinario (eapolinario)Yee
Geert
11/24/2023, 7:50 AMis_container()
, but I gather this is just something we have to deal with for now then? There is no way to not install task-specific Python requirements when registering. Flyte needs them all installed locally.Yee
Yee
Thomas Fan
11/27/2023, 4:15 PMGeert
11/27/2023, 5:01 PM