Always finish by sending a Zaqar message on error
Add a task default to send a Zaqar message on an unhandled error. This
is useful in this workflow due to the complexity and as we have seen
some errors that cause the workflow to fail but the CLI and GUI never
recieve notice of this.
Partial-Bug: #1716671
Change-Id: I84a0fb8d039e9f1b6b124ee003c5cfb98b7f30db
(cherry picked from commit 064ae01d31
)
This commit is contained in:
parent
cfb1cca050
commit
98f8097a8c
|
@ -512,6 +512,9 @@ workflows:
|
|||
tags:
|
||||
- tripleo-common-managed
|
||||
|
||||
task-defaults:
|
||||
on-error: unhandled_error
|
||||
|
||||
tasks:
|
||||
initialize:
|
||||
publish:
|
||||
|
@ -598,6 +601,12 @@ workflows:
|
|||
message: 'Successfully introspected nodes.'
|
||||
on-complete: send_message
|
||||
|
||||
unhandled_error:
|
||||
publish:
|
||||
status: ERROR
|
||||
message: "Unhandled workflow error"
|
||||
on-complete: send_message
|
||||
|
||||
send_message:
|
||||
action: zaqar.queue_post
|
||||
retry: count=5 delay=1
|
||||
|
|
Loading…
Reference in New Issue