Skip to content

Make PreparationRetries and PreparationRetryInterval configurable

Description

At the current spec, PreparationRetries and PreparationRetryInterval are the fixed values and can not be configured.

https://gitlab.com/gitlab-org/gitlab-runner/-/blob/main/common/consts.go#L20

https://gitlab.com/gitlab-org/gitlab-runner/-/blob/main/common/consts.go#L59

However, these numbers may not be enough to start the instance in time, for example, anti-virus software or other software is running and the instance takes a long time to start.

Proposal

Make PreparationRetries and PreparationRetryInterval configurable

Links to related issues and merge requests / references

Internal link: https://gitlab.zendesk.com/agent/tickets/505874