Skip to content

Optimise UpdateBuildQueueService

Kamil Trzciński requested to merge optimise-build-queue-service into master

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

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 🤖

Merge request reports