I have four runners at the same server, let’s call them runner.
I now have a project which lints at three php versions. These builds do not depend on each other, and I’ve told GitLab CI to run them in parallel. In fact, they don’t do that. Each runner is shared, the project is allowed to use all of them. So the situation was: runner2 picks php-lint for 5.4, then, after it finished, runner4 picks php-lint for 5.6, and then after that finished, runner3 picks php-lint for 7.0.
To avoid this, I’ve set concurrent = 4 at config.toml 4 is the number of runners, so my intention was, that each runner picks one job, and proceeds it. Instead, runner2 picked all three php-lints and executed them at the same time. (All runners are located at the same server).
Then I’ve changed my config to something like this:
concurrent = 4
check_interval = 0
name = “runner-1”
url = “…”
token = “…”
executor = “docker”
concurrent = 1
So I’ve tried to tell the runners: Run up to 4 jobs, but only one per runner. That failed, runner2 claimed still all jobs. Is there a way to reach what I’ve tried? Each runner can pick one job at the same time?