Skip to content

Commit

Permalink
Make action retries configurable (#147876)
Browse files Browse the repository at this point in the history
Resolves: #146222

This PR makes maximum number of retries of an action configurable. 

Follows the same pattern we used in alerting plugin.
`xpack.actions.run.maxAttempts` as a global settings and
`xpack.actions.run.connectorTypeOverrides` to override the global
settings for specific connector types.
  • Loading branch information
ersin-erdal authored Dec 23, 2022
1 parent 3ac25e9 commit ffb1dc3
Show file tree
Hide file tree
Showing 9 changed files with 472 additions and 381 deletions.
16 changes: 16 additions & 0 deletions docs/settings/alert-action-settings.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,22 @@ Specifies the time allowed for requests to external resources. Requests that tak
+
For example, `20m`, `24h`, `7d`, `1w`. Default: `60s`.

`xpack.actions.run.maxAttempts` {ess-icon}::
Specifies the maximum number of times an action can be attempted to run. Can be minimum 1 and maximum 10.

`xpack.actions.run.connectorTypeOverrides` {ess-icon}::
Overrides the configs under `xpack.actions.run` for the connector type with the given ID. List the connector type identifier and its settings in an array of objects.
+
For example:
[source,yaml]
--
xpack.actions.run:
maxAttempts: 1
connectorTypeOverrides:
- id: '.server-log'
maxAttempts: 5
--

[float]
[[alert-settings]]
==== Alerting settings
Expand Down
Loading

0 comments on commit ffb1dc3

Please sign in to comment.