|
11 | 11 | },
|
12 | 12 | "TimeoutSeconds": 5,
|
13 | 13 | "Retry": [
|
14 | | - { |
15 | | - "ErrorEquals": [ |
16 | | - "ProvisionedThroughputExceededException", |
17 | | - "RequestLimitExceeded", |
18 | | - "ServiceUnavailable", |
19 | | - "ThrottlingException" |
20 | | - ], |
21 | | - "IntervalSeconds": 1, |
22 | | - "BackoffRate": 2, |
23 | | - "MaxAttempts": 2 |
24 | | - } |
| 14 | + { |
| 15 | + "ErrorEquals": [ |
| 16 | + "ProvisionedThroughputExceededException", |
| 17 | + "RequestLimitExceeded", |
| 18 | + "ServiceUnavailable", |
| 19 | + "ThrottlingException" |
| 20 | + ], |
| 21 | + "IntervalSeconds": 1, |
| 22 | + "BackoffRate": 2, |
| 23 | + "MaxAttempts": 2 |
| 24 | + } |
25 | 25 | ],
|
26 | 26 | "Catch": [
|
27 | | - { |
28 | | - "ErrorEquals": [ |
29 | | - "States.ALL" |
30 | | - ], |
31 | | - "ResultPath": "$.registerError", |
32 | | - "Next": "NotifyFailure" |
33 | | - } |
| 27 | + { |
| 28 | + "ErrorEquals": [ |
| 29 | + "States.ALL" |
| 30 | + ], |
| 31 | + "ResultPath": "$.registerError", |
| 32 | + "Next": "NotifyFailure" |
| 33 | + } |
34 | 34 | ],
|
35 | 35 | "ResultPath": "$.dynamodbResult",
|
36 | 36 | "Next": "ChargeFare"
|
|
55 | 55 | "BackoffRate": 2
|
56 | 56 | }
|
57 | 57 | ],
|
58 | | - "Next": "CreditCustomerAccount", |
59 | 58 | "Catch": [
|
60 | 59 | {
|
61 | 60 | "ErrorEquals": [
|
|
65 | 64 | "ResultPath": "$.chargeError",
|
66 | 65 | "Next": "SetFareStatusFailed"
|
67 | 66 | }
|
68 | | - ] |
| 67 | + ], |
| 68 | + "Next": "CreditCustomerAccount" |
69 | 69 | },
|
70 | 70 | "CreditCustomerAccount": {
|
71 | 71 | "Type": "Task",
|
|
87 | 87 | "BackoffRate": 2
|
88 | 88 | }
|
89 | 89 | ],
|
90 | | - "Next": "SetFareStatusCompleted", |
91 | 90 | "Catch": [
|
92 | 91 | {
|
93 | 92 | "ErrorEquals": [
|
|
96 | 95 | "Next": "RefundFare",
|
97 | 96 | "ResultPath": "$.creditError"
|
98 | 97 | }
|
99 | | - ] |
| 98 | + ], |
| 99 | + "Next": "SetFareStatusCompleted" |
100 | 100 | },
|
101 | 101 | "SetFareStatusCompleted": {
|
102 | 102 | "Type": "Task",
|
|
116 | 116 | }
|
117 | 117 | },
|
118 | 118 | "TimeoutSeconds": 5,
|
119 | | - "Retry": [{ |
| 119 | + "Retry": [ |
| 120 | + { |
120 | 121 | "ErrorEquals": [
|
121 | 122 | "ProvisionedThroughputExceededException",
|
122 | 123 | "RequestLimitExceeded",
|
|
128 | 129 | "MaxAttempts": 2
|
129 | 130 | }
|
130 | 131 | ],
|
131 | | - "ResultPath": "$.dynamodbResult", |
| 132 | + "ResultPath": "$.dynamodbResult", |
132 | 133 | "Next": "NotifySuccess"
|
133 | 134 | },
|
134 | 135 | "SetFareStatusFailed": {
|
|
149 | 150 | }
|
150 | 151 | },
|
151 | 152 | "TimeoutSeconds": 5,
|
152 | | - "Retry": [{ |
| 153 | + "Retry": [ |
| 154 | + { |
153 | 155 | "ErrorEquals": [
|
154 | 156 | "ProvisionedThroughputExceededException",
|
155 | 157 | "RequestLimitExceeded",
|
|
0 commit comments