shy-evening-51366
11/23/2023, 1:21 PMif "SKIP_HEAVY_IMPORTS" not in os.environ:
import some_package
thankful-minister-83577
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 @flaky-parrot-42438 @high-accountant-32689thankful-minister-83577
shy-evening-51366
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.thankful-minister-83577
thankful-minister-83577
flaky-parrot-42438
11/27/2023, 4:15 PMshy-evening-51366
11/27/2023, 5:01 PM