Skip to content

Commit 2978fe8

Browse files
authored
Merge pull request #265 from PolicyEngine/fix/retry_on_all_sim_service_errors
Updated simulation workflow to retry on 404
2 parents 7b7bbd2 + 13ff642 commit 2978fe8

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)