From 0ac2e4928c2c21602d794220d135d4fc0fc72e81 Mon Sep 17 00:00:00 2001 From: Phil Bruckner Date: Wed, 2 Sep 2020 04:05:29 -0500 Subject: [PATCH] Add max_exceeded log level option to automations & scripts (#14353) --- source/_integrations/automation.markdown | 2 ++ source/_integrations/script.markdown | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/source/_integrations/automation.markdown b/source/_integrations/automation.markdown index 38f2d61fccc..fe6a3decb3e 100644 --- a/source/_integrations/automation.markdown +++ b/source/_integrations/automation.markdown @@ -58,6 +58,8 @@ Mode | Description For both `queued` and `parallel` modes, configuration option `max` controls the maximum number of runs that can be executing and/or queued up at a time. The default is 10. +When `max` is exceeded (which is effectively 1 for `single` mode) a log message will be emitted to indicate this has happened. Configuration option `max_exceeded` controls the severity level of that log message. See [Log Levels](/integrations/logger/#log-levels) for a list of valid options. Or `silent` may be specified to suppress the message from being emitted. The default is `warning`. + #### Example Setting Automation Mode ```yaml diff --git a/source/_integrations/script.markdown b/source/_integrations/script.markdown index 24802c4a9a7..a4a0054c88a 100644 --- a/source/_integrations/script.markdown +++ b/source/_integrations/script.markdown @@ -77,6 +77,11 @@ max: required: false type: integer default: 10 +max_exceeded: + description: "When `max` is exceeded (which is effectively 1 for `single` mode) a log message will be emitted to indicate this has happened. This option controls the severity level of that log message. See [Log Levels](/integrations/logger/#log-levels) for a list of valid options. Or `silent` may be specified to suppress the message from being emitted." + required: false + type: string + default: warning sequence: description: The sequence of actions to be performed in the script. required: true