<#1264 Classify task load EIO as system error> Pul...
# flyte-github
a
#1264 Classify task load EIO as system error Pull request opened by pvditt Problem Task import/load failures happen before the normal task execution wrapper. The runtime already uploads an
error.pb
for these failures, but a raw
OSError
with
errno.EIO
was converted through the generic fallback instead of being attributed as a system failure. That means filesystem/image read failures like
[Errno 5] Input/output error
during module import can be surfaced with the wrong attribution, even though
EIO
indicates the runtime failed to read bytes from the underlying filesystem/storage layer rather than a deterministic user-code error. Solution Classify only task-load
OSError
values with
errno.EIO
as
RuntimeSystemError
before converting and uploading the load failure error document. All other load-time exceptions, including non-EIO
OSError
values such as
FileNotFoundError
, continue through the existing generic path. Testing •
uv run python -m pytest tests/flyte/internal/bin/test_runtime.py tests/flyte/internal/runtime/test_entrypoints.py
•
uv run python -m ruff check src/flyte/_internal/runtime/entrypoints.py tests/flyte/internal/runtime/test_entrypoints.py
flyteorg/flyte-sdk