250f6d1c51d8ea6da274accd925b3189e8f5a1de
[arvados.git] / doc / user / cwl / federated / federated.cwl
1 cwlVersion: v1.0
2 class: Workflow
3 $namespaces:
4   arv: "http://arvados.org/cwl#"
5 requirements:
6   InlineJavascriptRequirement: {}
7   DockerRequirement:
8     dockerPull: arvados/fed-test:scatter-gather
9   ScatterFeatureRequirement: {}
10   StepInputExpressionRequirement: {}
11   SchemaDefRequirement:
12     types:
13       - name: FileOnCluster
14         type: record
15         fields:
16           file: File
17           cluster: string
18           project: string
19 inputs:
20   shards:
21     type:
22       type: array
23       items: FileOnCluster
24 outputs:
25   joined:
26     type: File
27     outputSource: gather-results/joined
28 steps:
29   distributed-analysis:
30     in:
31       shards: shards
32       inp: {valueFrom: $(inputs.shards.file)}
33     scatter: shards
34     hints:
35       arv:ClusterTarget:
36         cluster_id: $(inputs.shards.cluster)
37         project_uuid: $(inputs.shards.project)
38     out: [out]
39     run: md5sum.cwl
40   gather-results:
41     in:
42       inp: distributed-analysis/out
43     out: [joined]
44     run: cat.cwl