I am new to GitLab and facing a problem where if I trigger two pipelines at the same time on same gitlab-runner, they both run in parallel and results in failure. What I want is to limit the run to one pipeline at a time and others in queue.
I have set the concurrent = 1
in config.toml and restarted the runner but it didn't help. My ultimate goal is to prevent multi-pipeline run on the runner.
Thanks.
Set the limit
keyword in the runners section of your configuration to 1.
limit
:
Limit how many jobs can be handled concurrently by this token. 0 (default) simply means don’t limit
and restart you runner