Clarify usage of break-on and continue-on
Usage of break-on and continue-on are not very clear. This hopefully gives some pointers on their usage. Change-Id: Ide237a23ab85fac7342a8fc9bf748fd0b78bf41d
This commit is contained in:
parent
c77e230a48
commit
f2d8b14ac1
@ -138,6 +138,14 @@ There are different types of policies in Mistral.
|
||||
|
||||
All parameter values for any policy can be defined as YAQL expressions.
|
||||
|
||||
**NOTE:** It would be rare to use both break-on and continue-on in the same
|
||||
retry block. *break-on* should be used when one expects the action to be in an
|
||||
ERROR state for some amount of tries, but may eventually go to a SUCCESS state,
|
||||
thereby stopping the loop. But if *break-on* is *'true'* then the retries will
|
||||
stop and the task will be in ERROR. *continue-on* should be used if the action
|
||||
will usually return *SUCCESS*, but the action has other results that can be
|
||||
used to signal whether to continue the loop or not.
|
||||
|
||||
Join
|
||||
----
|
||||
|
||||
|
@ -385,6 +385,14 @@ Retry policy can also be configured on a single line as:
|
||||
|
||||
All parameter values for any policy can be defined as YAQL/Jinja2 expressions.
|
||||
|
||||
**NOTE:** It would be rare to use both break-on and continue-on in the same
|
||||
retry block. *break-on* should be used when one expects the action to be in an
|
||||
ERROR state for some amount of tries, but may eventually go to a SUCCESS state,
|
||||
thereby stopping the loop. But if *break-on* is *'true'* then the retries will
|
||||
stop and the task will be in ERROR. *continue-on* should be used if the action
|
||||
will usually return *SUCCESS*, but the action has other results that can be
|
||||
used to signal whether to continue the loop or not.
|
||||
|
||||
Input syntax
|
||||
''''''''''''
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user