You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A directory input whose S3 prefix doesn't exist stages as an empty directory, silently masking a broken task dependency #1207
What happened (spawn 0.135.1): task B's TaskSpec had a directory input s3://…/runs-x86_64/zarr-dask-real/ncref/ (trailing /, so stage-in uses --recursive per pkg/taskproto/wrapper.gorecursiveFlag, ~L626). That prefix is written by task A. Task A's launch had failed with InsufficientInstanceCapacity, so the prefix didn't exist yet.
Task B launched anyway. aws s3 cp --recursive of a non-existent prefix copies nothing and exits 0, so stage-in reported success and B started with an empty input directory. B died much later at open('ref.json'), after paying for boot and its other inputs. Nothing in the stage-in phase said an input was missing.
A single-object input that doesn't exist fails stage-in; a directory input doesn't. So a broken dependency chain (A failed, then B ran on nothing) surfaces as a confusing late error inside the user's command, or worse, as a green run if the command tolerates an empty directory.
Suggestion: when stage-in of a /-terminated input copies zero objects, fail the task in stage-in with a clear message (input s3://… is an empty or missing prefix). If an empty directory is legitimately wanted, an opt-in field such as allow_empty: true would cover it.
Found in scientific-codes-cookbook measurements/zarr-dask-real; the task's own check caught it this time.
Activity
feat(taskproto): container /tmp is its own tmpfs; empty directory inp…