Dedicate a selfhosted runner to a job

Hi,

I have setup a resource class with couple of localrunners. Each localrunner is a docker container having its own environment. I have jobs that require to run on that specified runner in a resource class. Is there any option to specify the runner name in the config.yml

From what I can tell of the system no it is not possible.

All the runners defined under a resource class seem to operate as a pool, with the resource_class definition only being able to specify the pool name.

I have got around this by just having a single runner defined under a resource class.

It is worth noting that the different plans from Circleci do have limits on how many runners can be defined so it is not possible to define large numbers of runners each dedicated to a single task/role unless you are a major client.