<#1220 feat(container): add file_input_layout to C...
# flyte-github
a
#1220 feat(container): add file_input_layout to ContainerTask Pull request opened by samhita-alla What Adds a
file_input_layout
option to
ContainerTask
, exposing `DataLoadingConfig.file_input_layout`: •
"DIRECT"
(default) — existing behavior; CoPilot stages a
File
at
/var/inputs/<var>
and
list[File]
elements at
/var/inputs/<var>/<index>
(extensionless). •
"NAMED_DIR"
— CoPilot stages each input inside a per-input directory under its original basename, so names/extensions round-trip and tools that detect format by extension (e.g. salmon on
*.fastq.gz
) work. It mirrors the existing
metadata_format
knob (a
Literal
mapped into the
DataLoadingConfig
proto) and defaults to
DIRECT
, so existing raw-container tasks are unaffected. Includes
examples/advanced/named_dir_file_input.py
exercising both a single
File
and a
list[File]
. Dependency
NAMED_DIR
requires the
DataLoadingConfig.file_input_layout
field in
flyteidl2
plus the CoPilot/executor support from the backend change. The
flyteidl2
pin must be bumped to a release that includes the field before
NAMED_DIR
can be selected;
DIRECT
tasks are unaffected and work with the current pin. šŸ¤– Generated with Claude Code flyteorg/flyte-sdk