tryBindToRunners

private suspend fun tryBindToRunners(triggeringRunner: Runner?, triggeredByWrite: Boolean)

Traverses through the reserveQueue, and sequentially binds runners to a Docker daemon if possible.

This method is executed at most once every RESERVE_QUEUE_UPDATE_MILLIS to minimize the amount of redundant updates.

Parameters

triggeredByWrite

Whether this method is triggered by a "write" operation, e.g. adding a runner to the queue.

Throws

if a runner's resource reservation cannot be satisfied by any online daemons.