Problem to solve
We have a pool of transient runner instances that we want jobs to run on. If none of them are available, we’d like gitlab.com saas to fallback to gitlab’s saas-linux-medium-amd64
runner. How can we do that? It appears as though the elements in a job’s tags
list are logically ANDed.
Steps to reproduce
- Add both
org-transient-runner
&saas-linux-medium-amd64
to thetags
element of a job. - Kick off a pipeline.
- Observe stuck pipeline due to no runners having both tags.
Configuration
do-the-needful:
stage: root
script:
- echo This should use an `org-transient-runner` if available, else fall back to a `saas-linux-medium-amd64` gitlab saas runner.
tags:
- org-transient-runner
- saas-linux-medium-amd64
Versions
- Self-managed
- [ x ]
GitLab.com
SaaS - Dedicated
- [ x ] Self-hosted Runners
PS: Not the first time this has been asked: Any way to use a secondary gitlab runner if the primary runner is down?Any way to use a secondary gitlab runner if the primary runner is down?