Skip to content

Commit d7fa8f6

Browse files
committed
[misc] Add multi-readout workflow to default config
1 parent 4c4ca62 commit d7fa8f6

1 file changed

Lines changed: 30 additions & 3 deletions

File tree

hacking/config.yaml

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1013,10 +1013,10 @@ o2:
10131013
env: []
10141014
shell: true
10151015
arguments:
1016-
- "file:/opt/readout-occ/readout.cfg"
1016+
- "file:/opt/alisw/el7/Readout/v0.24-occ-1/etc/readout.cfg"
10171017
value: >-
10181018
source /etc/profile.d/modules.sh &&
1019-
MODULEPATH=/opt/alisw/el7/modulefiles module load Readout/master-1 &&
1019+
MODULEPATH=/opt/alisw/el7/modulefiles module load Readout &&
10201020
MODULEPATH=/opt/alisw/el7/modulefiles module load Control-OCCPlugin &&
10211021
MODULEPATH=/opt/alisw/el7/modulefiles module list &&
10221022
readout.exe
@@ -1028,12 +1028,39 @@ o2:
10281028
# roles which constitute the leaves.
10291029
workflows:
10301030
readout-1:
1031-
name: "readout"
1031+
name: "readout-1-root"
10321032
roles:
10331033
- name: "readout-role"
10341034
task:
10351035
load: readout
10361036

1037+
readout-2:
1038+
name: "readout-2-root"
1039+
roles:
1040+
- name: "readout-role-0"
1041+
constraints:
1042+
- attribute: machine_id
1043+
value: lab108
1044+
task:
1045+
load: readout
1046+
- name: "readout-role-1"
1047+
constraints:
1048+
- attribute: machine_id
1049+
value: lab107
1050+
task:
1051+
load: readout
1052+
1053+
readout-n: # TODO: make this use variables, we currently assume n=8
1054+
name: "readout-n-root"
1055+
roles:
1056+
- name: "readout-role-{{ .it }}"
1057+
for:
1058+
begin: 0
1059+
end: 7
1060+
var: it
1061+
task:
1062+
load: readout
1063+
10371064
fairmq-ex-1-n-1: # The name of the workflow, which can then be loaded to create an environment.
10381065
name: "diamond" # The name of the root role, which happens to be an aggregator role.
10391066
vars: {} # Not used yet.

0 commit comments

Comments
 (0)