Skip to content

Commit 13ff642

Browse files
author
Michael Smit
committed
Updated simulation workflow to retry on 404
To retry on anything actually. The first time we tag a URL it may take a while to go active. Before that it will show as a 404. The default retry rules will not retry on a 404, this change makes our client retry on any error.
1 parent 7b7bbd2 commit 13ff642

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

projects/policyengine-api-simulation/workflow.yaml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,21 @@ main:
6060
Content-Type: "application/json"
6161
body: ${input}
6262
result: response
63-
retry: ${http.default_retry}
63+
retry:
64+
predicate: ${custom_predicate}
65+
max_retries: 5
66+
backoff:
67+
initial_delay: 1
68+
max_delay: 60
69+
multiplier: 1.25
6470

6571
- returnResult:
6672
return: ${response.body}
73+
74+
#retry on any failure. tag links may return 404 before traffic is routed
75+
#the pre-defined http retry strategies will ignore this.
76+
custom_predicate:
77+
params: [e]
78+
steps:
79+
- retry_always:
80+
return: true

0 commit comments

Comments
 (0)