File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -74,16 +74,17 @@ defined by roles dependencies.
7474The ``on_event `` callback provides 3 arguments, when it is called:
7575
7676- ``config ``, which is the configuration of the role;
77- - ``key ``, which reflects the trigger event:
77+ - ``key ``, which reflects the trigger event:
7878 - ``config.apply `` if the callback was triggered by a configuration update;
7979 - ``box.status `` if it was triggered by the ``box.status `` system event.
80- - ``value ``, which shows and logs the information about the instance status as in the trigger ``box.status `` system event.
80+ - ``value ``, which shows and logs the information about the instance status as in the trigger ``box.status `` system event.
8181 If the callback is triggered by a configuration update, the ``value `` shows the information of the most recent ``box.status `` system event.
8282
8383.. NOTE ::
8484
8585 - All ``on_event `` callbacks with the ``config.apply `` key are executed as a part of the configuration
8686 process. Process statuses ``ready `` or ``check_warnings `` are reached only after all such ``on_event `` callbacks are done.
87+
8788 - All ``on_event `` callbacks are executed inside of a ``pcall ``. If an error is raised for a callback, it is logged with ``error `` level
8889 and the series execution continues.
8990
You can’t perform that action at this time.
0 commit comments