Commit 68bef8f
authored
[v0.15] - Adds a temporary fix to avoid race conditions when processing webhooks (#4854)
* [v0.15] - Adds a temporary fix to avoid race conditions when processing webhooks
Looks like after a recent Github API upgrade commits in a ref are updating slower. We're hitting a race condition between the commit received from a webhook and the commit we get from the ref (because in the ref we get sometimes the previous commit - it takes longer to be reflected)
This is a temporary workaround to give time to the ref to be updated.
Refers to: #4853
Signed-off-by: Xavi Garcia <xavi.garcia@suse.com>
* Add context cancelled verification
Signed-off-by: Xavi Garcia <xavi.garcia@suse.com>
---------
Signed-off-by: Xavi Garcia <xavi.garcia@suse.com>1 parent a72317d commit 68bef8f
2 files changed
Lines changed: 12 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | 141 | | |
153 | 142 | | |
154 | 143 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
169 | 181 | | |
170 | 182 | | |
171 | 183 | | |
| |||
0 commit comments