Skip to content

output_from from multi-step workflows #1206

@gaow

Description

@gaow

I have this example:

[vhat_1]
i = range(9)
input: for_each = 'i'
output: f'{_i}.vhat'
_output.touch()

[vhat_2]
input: group_by = 'all'
output: 'all.txt'
bash: expand=True
  cat {_input} > {_output}

[1]
input: output_from('vhat')
output: f'{_input:n}.out'
_output.touch()

It does not work,

$ sos run test.sos -s build
INFO: Running vhat_1: 
INFO: Step vhat_1 (index=3) is ignored with signature constructed
INFO: Step vhat_1 (index=2) is ignored with signature constructed
INFO: Step vhat_1 (index=4) is ignored with signature constructed
INFO: Step vhat_1 (index=0) is ignored with signature constructed
INFO: Step vhat_1 (index=1) is ignored with signature constructed
INFO: Step vhat_1 (index=7) is ignored with signature constructed
INFO: Step vhat_1 (index=8) is ignored with signature constructed
INFO: Step vhat_1 (index=6) is ignored with signature constructed
INFO: Step vhat_1 (index=5) is ignored with signature constructed
INFO: output:   0.vhat 1.vhat... (9 items in 9 groups)
INFO: Running vhat_2: 
INFO: Step vhat_2 (index=0) is ignored with signature constructed
INFO: output:   all.txt
INFO: Running 1: 
ERROR: [1]: Failed to process input statement output_from('vhat')
: Failed to obtain output of step vhat

When I change output_from('vhat') to output_from('vhat_2') it works when all.txt already exists. I would expect vhat to work though.

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