Skip to content

Fix support for long-polling bots

Adam Coldrick requested to merge sotk/fix-bot-polling into master

Description

Currently, the long-polling support for an SQL-backed BuildGrid is supposed to work by attempting to find a useable lease repeatedly until some timeout happens. However, a tiny bug means that we only try once and then return, whether we get a lease or not. This makes bots poll rapidly instead of connecting and waiting.

This MR fixes that by checking for the right thing.

Merge request reports