add and unify the retries when messages are published to swift
The swift message actions can run into odd transient errors which can be "fixed" with simple retries. This change ensures all of our swift messaging tasks have retries and that those retries are all unified with a sensible delay. Change-Id: I555c21d5108f9227cacc9487bbb4cc45037caf03 Signed-off-by: Kevin Carter <kecarter@redhat.com>
This commit is contained in:
parent
9e8f79ccf3
commit
04abcf6ee4
@ -95,7 +95,9 @@ workflows:
|
||||
|
||||
send_message:
|
||||
action: zaqar.queue_post
|
||||
retry: count=5 delay=1
|
||||
retry:
|
||||
delay: 4
|
||||
count: 16
|
||||
input:
|
||||
queue_name: <% $.queue_name %>
|
||||
messages:
|
||||
@ -106,6 +108,9 @@ workflows:
|
||||
workflow: tripleo.swift.v1.container_exists container=<% $.container %>
|
||||
input:
|
||||
create_container: true
|
||||
retry:
|
||||
delay: 4
|
||||
count: 16
|
||||
on-success:
|
||||
- wait_for_swift: <% not bool($.deployment_status) %>
|
||||
- persist_to_swift_plan_latest: <% bool($.deployment_status) %>
|
||||
@ -113,7 +118,9 @@ workflows:
|
||||
|
||||
persist_to_swift:
|
||||
action: swift.put_object
|
||||
retry: count=5 delay=1
|
||||
retry:
|
||||
delay: 4
|
||||
count: 16
|
||||
input:
|
||||
container: <% $.container %>
|
||||
obj: <% "{0}/{1}.yaml".format($.type, now().format("%Y-%m-%d_%H:%M:%S")) %>
|
||||
@ -122,7 +129,9 @@ workflows:
|
||||
|
||||
persist_to_swift_plan_latest:
|
||||
action: swift.put_object
|
||||
retry: count=5 delay=1
|
||||
retry:
|
||||
delay: 4
|
||||
count: 16
|
||||
input:
|
||||
container: <% $.container %>
|
||||
obj: <% "deployment_status.yaml" %>
|
||||
|
Loading…
x
Reference in New Issue
Block a user