You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: coconut/README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -98,6 +98,7 @@ A valid workflow template (sometimes called simply "workflow" for brevity) must
98
98
99
99
Workflows and tasks are managed with a git based configuration system, so the workflow template may be provided simply by name or with repository and branch/tag/hash constraints.
100
100
Examples:
101
+
101
102
*`coconut env create -w myworkflow` - loads workflow `myworkflow` from default configuration repository at HEAD of master branch
102
103
*`coconut env create -w github.com/AliceO2Group/MyConfRepo/myworkflow` - loads a workflow from a specific git repository, HEAD of master branch
103
104
*`coconut env create -w myworkflow@rev` - loads a workflow from default repository, on branch, tag or revision `rev`
Copy file name to clipboardExpand all lines: coconut/doc/coconut_environment_create.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,7 @@ A valid workflow template (sometimes called simply "workflow" for brevity) must
13
13
14
14
Workflows and tasks are managed with a git based configuration system, so the workflow template may be provided simply by name or with repository and branch/tag/hash constraints.
15
15
Examples:
16
+
16
17
*`coconut env create -w myworkflow` - loads workflow `myworkflow` from default configuration repository at HEAD of master branch
17
18
*`coconut env create -w github.com/AliceO2Group/MyConfRepo/myworkflow` - loads a workflow from a specific git repository, HEAD of master branch
18
19
*`coconut env create -w myworkflow@rev` - loads a workflow from default repository, on branch, tag or revision `rev`
Copy file name to clipboardExpand all lines: coconut/doc/coconut_role_query.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,7 @@ walk through the role tree of the given environment, starting from the root role
17
17
per https://github.com/gobwas/glob syntax.
18
18
19
19
Examples:
20
+
20
21
*`coconut role query 2rE9AV3m1HL readout-dataflow` - queries the role `readout-dataflow` in environment `2rE9AV3m1HL`, prints the full tree, along with the variables defined in the root role
21
22
*`coconut role query 2rE9AV3m1HL readout-dataflow.host-aido2-bld4-lab102` - queries the role `readout-dataflow.host-aido2-bld4-lab102`, prints the subtree of that role, along with the variables defined in it
22
23
*`coconut role query 2rE9AV3m1HL readout-dataflow.host-aido2-bld4-lab102.data-distribution.stfs` - queries the role at the given path, it is a task role so there is no subtree, prints the variables defined in that role
Copy file name to clipboardExpand all lines: core/integration/README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,7 @@ All plugins should implement the [`Plugin`](/core/integration/plugin.go) interfa
9
9
See the existing plugins for examples.
10
10
11
11
In order to have the plugin loaded by the AliECS, one has to:
12
+
12
13
- add `RegisterPlugin` to the `init()` function in [AliECS core main source](https://github.com/AliceO2Group/Control/blob/master/cmd/o2-aliecs-core/main.go)
13
14
- add plugin name in the `integrationPlugins` list and set the endpoint in the AliECS configuration file (typically at `/o2/components/aliecs/ANY/any/settings` in the configuration store)
Copy file name to clipboardExpand all lines: docs/handbook/configuration.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,7 @@ while still being powerful enough to express complex workflows.
12
12
13
13
To instantiate a data taking activity, or environment, two kinds of files
14
14
are needed:
15
+
15
16
* workflow templates
16
17
* task templates
17
18
@@ -196,6 +197,7 @@ for examples of call roles that reference a variety of integration plugins.
196
197
#### Workflow hook call structure
197
198
198
199
The state machine callback moments are exposed to the AliECS workflow template interface and can be used as triggers or synchronization points for integration plugin function calls. The `call` block can be used for this purpose, with similar syntax to the `task` block used for controllable tasks. Its fields are as follows.
200
+
199
201
* `func` - mandatory, it parses as an [`antonmedv/expr`](https://github.com/antonmedv/expr) expression that corresponds to a call to a function that belongs to an integration plugin object (e.g. `bookkeeping.StartOfRun()`, `dcs.EndOfRun()`, etc.).
200
202
* `trigger` - mandatory, the expression at `func` will be executed once the state machine reaches this moment. For possible values, see [State machine triggers](/docs/handbook/operation_order.md#state-machine-triggers)
201
203
* `await` - optional, if absent it defaults to the same as `trigger`, the expression at `func` needs to finish by this moment, and the state machine will block until `func` completes.
@@ -410,10 +412,12 @@ Variables whose availability to tasks is handled in some way by AliECS include
410
412
* variables delivered to tasks explicitly via task templates.
411
413
412
414
The latter can be
415
+
413
416
* sourced from Apricot with a query from the task template iself (e.g. `config.Get`), or
414
417
* sourced from the variables available to the current AliECS environment, as defined in the workflow template (e.g. readout-dataflow.yaml)
415
418
416
419
Depending on the specification in the task template (`command.env`, `command.arguments` or `properties`), the push to the given task can happen
420
+
417
421
* as system environment variables on task startup,
418
422
* as command line parameters on task startup, or
419
423
* as (FairMQ) key-values during `CONFIGURE`.
@@ -441,6 +445,7 @@ In addition to the above, which varies depending on the configuration of the env
441
445
* `pdp_override_run_start_time`
442
446
443
447
The following values are pushed by AliECS during `STOP_ACTIVITY`:
448
+
444
449
* `run_end_time_ms`
445
450
446
451
FairMQ task implementors should expect that these values are written to the FairMQ properties map right before the `RUN` and `STOP` transitions via `SetProperty` calls.
0 commit comments