Optimise UpdateBuildQueueService
What does this MR do?
This makes BuildQueueService to force refresh runners that are considered to have recent queue.
Such runners are the ones that connected within online interval + time to expire runner cache.
We use expire runner cache as this also determines how often
runner can connect to GitLab and when it can refresh the DB
contacted_at
column. We reduce the rate of updates,
so we need to be aware of online interval
(how often we refresh column),
and expiry time (how often runner can talk to Rails).
Does this MR meet the acceptance criteria?
Conformity
-
Changelog entry for user-facing changes, or community contribution. Check the link for other scenarios. -
Code review guidelines -
Merge request performance guidelines -
Style guides
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/66438
Related to https://gitlab.com/gitlab-com/gl-infra/infrastructure/issues/7642
Edited by 🤖 GitLab Bot 🤖