Runnable: Maximum Runtime Monitor & Actions
For runnable objects a monitor of the maximum runtime can be defined that may trigger actions on deviations. The module allows to edit the attributes for the monitor options and the actions.
Designation
- Name
- mc.MaxRuntimeEdit
Configuration
- Optionen
- Mode (
mode
) - The option controls whether all maximum runtime options or just the monitor or actions will be modifiedMögliche Werte: All (
all
), Monitor (monitor
), Actions (action
), Action Execute (action-exec
)
- Maximum Runtime Monitoring (
max-runtime-mode
) - Mode for monitoring maximum runtimeMögliche Werte: None (deactivated) (
none
), ERT (ert
), Date (date
), Fixed (fixed
)
- Duration (
max-runtime-fixed
) - A fixed duration for the maximum runtime in seconds
- Additional Duration (
max-runtime-ert
) - An additional percentage added to the ERT for maximum runtime
- Additional Days (
max-runtime-date-days
) - Number of days for the maximum runtime
- Finish Time (
max-runtime-date-time
) - A fixed time of day as the finish time
- Time Zone (
max-runtime-date-timezone
) - The time zone for the given timestamp
- cancel or quit task (
max-runtime-cancel
) - if there are any deviations according to the monitor the task will be cancelled/quit
- execute another object (
max-runtime-exec
) - if there are any deviations according to the monitor a given object will be executed
- Object Name (
max-runtime-exec-object
) - if there are any deviations according to the monitor the given object will be executed
Description
The module can change the settings for monitoring the maximum runtime. This relates to the settings for monitoring as well as for the actions. The mode can be used to specify which options are adjusted. The following options are available:
- All: All options in the maximum runtime area are changed by the module options
- Monitoring: Only the monitoring mode and the associated options are changed
- Actions: Only the settings for the two available actions are changed
- Execute action: Only the actions for starting another object are adjusted according to the module options.
Examples
To enter the object DEMO.ERROR-HANDLING
, which is started in the event of deviations from the maximum runtime, the following command can be used. This should be carried out for all JOBS objects whose name begins with DEMO..
./b4A mc.MaxRuntimeEdit -C DEMO-0001 --name "DEMO.*" --types JOBS --mode action-exec --max-runtime-exec --max-runtime-exec-object DEMO.ERROR-HANDLING
The following command can be used to remove the object to be executed.
./b4A mc.MaxRuntimeEdit -C DEMO-0001 --name "DEMO.*" --types JOBS --mode action-exec --max-runtime-exec --max-runtime-exec-object ""
If all actions of the selected objects are to be reset, proceed as follows. In this example, the action to cancel the task and the execution of another object is activated.
./b4A mc.MaxRuntimeEdit -C DEMO-0001 --name "DEMO.*" --types JOBS --mode action --max-runtime-cancel --max-runtime-exec --max-runtime-exec-object DEMO.ERROR-HANDLING