Setting a pool of runners that can run max 1 build at the same time

Hi,
I’d like to build a “pool” of runners that don’t accept new builds if one is already running on that specific runner, this pool of runners would be dedicated to very expensive and long builds where we don’t want more than 1 build running at the same time.

Can this be achieved?

thanks

To avoid the hanging question for other searchers, it can be done using the concurrent setting in the global section of a runner config:
https://docs.gitlab.com/runner/configuration/advanced-configuration.html#the-global-section

1 Like

This topic was automatically closed after 4 days. New replies are no longer allowed.