Skip to content

pipeline data handoff: absolute data_output paths arrive nested under dest_path, and multi-instance stages overwrite each other's outputs #944

Closed

Description

@scttfrdmn

Found while wiring the stage runner in (#910/#911, PR #942). Found by reading pkg/pipeline/data_handoff.go; the e2e test in PR #942 shows the key shape.

UploadStageOutputs keys an absolute data_output path by its full path: /data/processed/a.csv becomes <prefix>/stages/preprocess/output/data/processed/a.csv. downloadFromStage then writes <dest_path>/<rest of key>. So in examples/pipelines/ml-training.json, train (dest_path: /data/input) gets /data/input/data/processed/a.csv, not /data/input/a.csv. A relative pattern is keyed by basename only, so the two forms behave differently.

With instance_count > 1, every instance uploads to the same output/ prefix, so same-named outputs overwrite each other, last writer wins.

Neither is documented, and the examples read as if outputs land directly in dest_path.

Suggested: key outputs relative to the pattern's directory (glob root), and per instance when instance_count > 1 (output/<instance-index>/…) or reject collisions. Document the mapping in the pipeline docs and examples.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions