Commit fe80913
committed
Remove dependency on retriable gem and implement custom retry mechanism
- Remove retriable gem from runtime dependencies in gemspec
- Remove require statement for retriable in client.rb
- Implement custom with_retry method with exponential backoff
- Replace Retriable.retriable calls with custom with_retry method
- Maintains same retry behavior for ServerError and RateLimitError
- Uses exponential backoff: 0.5s, 0.75s, 1.125s, 1.6875s, ... up to 60s max
- Respects retry_timeout configuration1 parent 7bda933 commit fe80913
2 files changed
Lines changed: 41 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| |||
101 | 100 | | |
102 | 101 | | |
103 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
104 | 142 | | |
105 | 143 | | |
106 | 144 | | |
| |||
137 | 175 | | |
138 | 176 | | |
139 | 177 | | |
140 | | - | |
| 178 | + | |
141 | 179 | | |
142 | 180 | | |
143 | 181 | | |
| |||
166 | 204 | | |
167 | 205 | | |
168 | 206 | | |
169 | | - | |
| 207 | + | |
170 | 208 | | |
171 | 209 | | |
172 | 210 | | |
| |||
0 commit comments