Something went wrong on our end
-
Ivan Kondov authoredIvan Kondov authored
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
foreach_task_cmd.yaml 1.07 KiB
fws:
- fw_id: 1
name: Foreach task demo
spec:
_tasks:
- _fw_name: ForeachTask
split: array input
task:
_fw_name: CommandLineTask
command_spec:
array input: array input
command: [echo]
file set:
source: {type: stdout}
target: {type: path, value: /tmp}
inputs: [array input]
outputs: [file set]
array input:
- source: {type: data, value: 1}
- source: {type: data, value: string}
- fw_id: 2
name: Concatenate the files into a string
spec:
_tasks:
- _fw_name: PythonFunctionTask
function: auxiliary.print_func
inputs: [file set]
- _fw_name: CommandLineTask
command_spec:
command: [cat]
file set: file set
stdout dump:
source: {type: stdout}
target: {type: data, value: stdout dump}
inputs: [file set]
outputs: [stdout dump]
- _fw_name: PythonFunctionTask
function: auxiliary.print_func
inputs: [stdout dump]
links:
'1': [2]
metadata: {}
name: A more complex workflow