Skip to content

Commit f451778

Browse files
committed
Add a delay between affinity re-checks
1 parent b5ddc81 commit f451778

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

frontend/src/pages/device/Editor/index.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,10 @@ export default {
324324
} catch (e) {
325325
if (e?.response?.status === 502) {
326326
tries += 1
327+
328+
// 1s interval timeout between tries
329+
await new Promise(resolve => setTimeout(resolve, 1000))
330+
327331
device = await this.fetchDevice(this.$route.params.id, false)
328332
continue
329333
}

0 commit comments

Comments
 (0)