69cf0d3ee5
Add a new config option 'action_execution_rule' which is a dict type. Its key field is strategy name and the value is 'ALWAYS' or 'ANY'. 'ALWAYS' means the callback function returns True as usual. 'ANY' means the return depends on the result of previous action execution. The callback returns True if previous action gets failed, and the engine continues to run the next action. If previous action executes success, the callback returns False then the next action will be ignored. For strategies that aren't in 'action_execution_rule', the callback always returns True. If exception is throwing out during the action execution, reverting will be triggered by taskflow. To continue executing the next action, we return False instead of throwing an exception. Change-Id: Ib5afa214d8d097d739aad35d18b3fe5c8e4de8fc Implements: blueprint enhance-watcher-applier-engine
17 lines
824 B
YAML
17 lines
824 B
YAML
---
|
|
features:
|
|
- |
|
|
Added a new config option 'action_execution_rule' which is a dict type.
|
|
Its key field is strategy name and the value is 'ALWAYS' or 'ANY'.
|
|
'ALWAYS' means the callback function returns True as usual.
|
|
'ANY' means the return depends on the result of previous action execution.
|
|
The callback returns True if previous action gets failed, and the engine
|
|
continues to run the next action. If previous action executes success,
|
|
the callback returns False then the next action will be ignored.
|
|
For strategies that aren't in 'action_execution_rule', the callback always
|
|
returns True.
|
|
Please add the next section in the watcher.conf file
|
|
if your strategy needs this feature.
|
|
[watcher_workflow_engines.taskflow]
|
|
action_execution_rule = {'your strategy name': 'ANY'}
|