Skip to content

Commit 1377eba

Browse files
committed
Add ${WORKFLOWMODE_FILE} option to all workflows
1 parent d6092d7 commit 1377eba

39 files changed

+41
-41
lines changed

DATA/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Another abstraction layer above the *workflows* are **topology descriptions**. T
2121
- The defaults (particularly also those set in the common environment files in the `common` folder) are tuned for running on a laptop / desktop.
2222

2323
# Workflow requirements:
24-
- Workflows shall support 3 run modes selected via the `WORKFLOWMODE` env variable, the **dds** mode is mandatory:
24+
- Workflows shall support 3 run modes selected via the `WORKFLOWMODE` env variable, the **dds** mode and its ${WORKFLOWMODE_FILE} parameter are mandatory:
2525
- **run** (default): run the workflow
2626
- **print**: print the final workflow command to the console
2727
- **dds**: create a partial topology.
@@ -95,7 +95,7 @@ For an example, chek the calibration workflows [here](testing/examples)
9595
*NOTE* For reference, to run a workflow with calib aggregator on the EPN with AliECS, currently a node from the `calib` zone must be requested, by setting `odc_resources` to `[ {"zone":"online", "n":10}, {"zone":"calib", "n":1 } ]` (adjust the `10` to the number of required reconstruction nodes). This will be improved later and then this extra setting will not be needed anymore.
9696

9797
# The parser script:
98-
The **parser** is a simple python script that parses a *topology description* and generates the DDS XML file with the *full topology*. To do so, it runs all the DPL workflows with the `--dds` option and then uses the `odc-topo-epn` tool to merge the *partial topology* into the final *full topology*.
98+
The **parser** is a simple python script that parses a *topology description* and generates the DDS XML file with the *full topology*. To do so, it runs all the DPL workflows with the `--dds ${WORKFLOWMODE_FILE}` option and then uses the `odc-topo-epn` tool to merge the *partial topology* into the final *full topology*.
9999
The *parser* is steered by some command line options and by some environment variables (note that the env variables get also passed through to the workflows).
100100
- The *parser* needs a DataDistribution topology file. Example files are shipped with the parser in the `tools/datadistribution_workflows` folder for: just discarding the TF, store the TF to disk, forward the TF to DPL processing (what we need for a DPL workflow), and forward to processing while storing to disk in parallel.
101101
- *Parser* command line options:
@@ -142,7 +142,7 @@ FILEWORKDIR=/home/epn/odc/files EPNSYNCMODE=1 DDWORKFLOW=tools/datadistribution_
142142
- Check out the [O2DPG](https://github.com/AliceO2Group/O2DPG) repository to your home folder on the EPN (`$HOME` in the following).
143143
- Copy the content of `O2DPG/DATA/testing/examples` (description library file `workflows.desc` and workflow script `example-workflow.sh`) to another place INSIDE the repository, usually under `testing/detectors/[DETECTOR]` or `testing/private/[USERNAME]`.
144144
- Edit the workflow script to your needs, adjust / rename the workflow in the description library file.
145-
- See [here](#Topology-descriptions) for the syntax of the library file (in case it is not obvious), and make sure not to override the listed protected environment variables. The workflow script is just a bash script that starts a DPL workflow, which must have the `--dds` parameter in order to create a partial DDS topology.
145+
- See [here](#Topology-descriptions) for the syntax of the library file (in case it is not obvious), and make sure not to override the listed protected environment variables. The workflow script is just a bash script that starts a DPL workflow, which must have the `--dds ${WORKFLOWMODE_FILE}` parameter in order to create a partial DDS topology.
146146
- Make sure that the workflow script fullfils the [requirements](#Workflow-requirements), particularly that it respects the requested environment variables.
147147
- Use `O2PDPSuite` for the modules to load to have the latest installed version, or `O2PDPSuite/[version]` to specify a version.
148148
- Create an empty folder in your `$HOME` on the EPN, in the following `$HOME/test`.

DATA/production/calib/phs-led.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ o2-dpl-raw-proxy $ARGS_ALL \
3636
--config $QC_CONFIG \
3737
| o2-calibration-ccdb-populator-workflow $ARGS_ALL \
3838
--ccdb-path $PHS_CCDB_PATH \
39-
| o2-dpl-run $ARGS_ALL --dds
39+
| o2-dpl-run $ARGS_ALL --dds ${WORKFLOWMODE_FILE}

DATA/production/calib/phs-pedestal.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ o2-dpl-raw-proxy $ARGS_ALL \
3636
--config $QC_CONFIG \
3737
| o2-calibration-ccdb-populator-workflow $ARGS_ALL \
3838
--ccdb-path $PHS_CCDB_PATH \
39-
| o2-dpl-run $ARGS_ALL --dds
39+
| o2-dpl-run $ARGS_ALL --dds ${WORKFLOWMODE_FILE}

DATA/production/calib/tpc-laser.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ o2-dpl-raw-proxy $ARGS_ALL \
7878
--max-events 110 \
7979
| o2-calibration-ccdb-populator-workflow $ARGS_ALL \
8080
--ccdb-path http://o2-ccdb.internal \
81-
| o2-dpl-run $ARGS_ALL --dds
81+
| o2-dpl-run $ARGS_ALL --dds ${WORKFLOWMODE_FILE}
8282

8383
# --pipeline tpc-tracker:4 \
8484

DATA/production/calib/tpc-pedestal.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ o2-dpl-raw-proxy $ARGS_ALL \
2727
$EXTRA_CONFIG \
2828
| o2-calibration-ccdb-populator-workflow $ARGS_ALL \
2929
$CCDB_PATH \
30-
| o2-dpl-run $ARGS_ALL --dds
30+
| o2-dpl-run $ARGS_ALL --dds ${WORKFLOWMODE_FILE}

DATA/production/calib/tpc-pulser.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ o2-dpl-raw-proxy $ARGS_ALL \
2929
$EXTRA_CONFIG \
3030
| o2-calibration-ccdb-populator-workflow $ARGS_ALL \
3131
$CCDB_PATH \
32-
| o2-dpl-run $ARGS_ALL --dds
32+
| o2-dpl-run $ARGS_ALL --dds ${WORKFLOWMODE_FILE}

DATA/testing/detectors/EMC/runEMCRawToDigitsRecoPileline.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ o2-dpl-raw-proxy $ARGS_ALL \
2626
--severity $SEVERITY \
2727
--infologger-severity $INFOLOGGER_SEVERITY \
2828
--pipeline EMCALRawToCellConverterSpec:$NCPU \
29-
| o2-dpl-run $ARGS_ALL --dds
29+
| o2-dpl-run $ARGS_ALL --dds ${WORKFLOWMODE_FILE}

DATA/testing/detectors/EMC/runEMCRawToDigitsRecoPilelineCTF.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,4 @@ o2-dpl-raw-proxy $ARGS_ALL \
5050
--meta-output-dir ${CTF_METAFILES_DIR} \
5151
--min-file-size "${CTF_MINSIZE}" \
5252
--max-ctf-per-file "${CTF_MAX_PER_FILE}" \
53-
| o2-dpl-run $ARGS_ALL --dds
53+
| o2-dpl-run $ARGS_ALL --dds ${WORKFLOWMODE_FILE}

DATA/testing/detectors/EMC/runEMCRawToDigitsRecoPilelineQCAlllocalCTF.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,5 @@ o2-dpl-raw-proxy $ARGS_ALL \
5959
--meta-output-dir ${CTF_METAFILES_DIR} \
6060
--min-file-size "${CTF_MINSIZE}" \
6161
--max-ctf-per-file "${CTF_MAX_PER_FILE}" \
62-
| o2-dpl-run $ARGS_ALL --dds
62+
| o2-dpl-run $ARGS_ALL --dds ${WORKFLOWMODE_FILE}
6363

DATA/testing/detectors/EMC/runEMCRawToDigitsRecoPilelineQClocal.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ o2-dpl-raw-proxy $ARGS_ALL \
3535
--config $QC_CONFIG \
3636
--local \
3737
--host $HOST \
38-
| o2-dpl-run $ARGS_ALL --dds
38+
| o2-dpl-run $ARGS_ALL --dds ${WORKFLOWMODE_FILE}

0 commit comments

Comments
 (0)