Skip to content

Change gitlab-runner process priority

Sander Cox requested to merge sandercox/gitlab-runner:process-priority into main

What does this MR do?

add support to change the process (and subprocess) priority of the gitlab-runner service

Why was this MR needed?

I work on Windows desktop software that has long compile times. Adding my personal desktop to our build-runners farm is great but I want compile jobs for our CI/CD operations not to make my own dev box feel sluggish.

Now you can launch the gitlab-runner service with a different priority and that causes all processes to have a lower priority as well.

Are there points in the code the reviewer needs to double check?

I only have only really tested it on Windows though know it works on Mac. Haven't tested linux as we don't operate any linux runners.

Does this MR meet the acceptance criteria?

  • Documentation created/updated
  • Added tests for this feature/bug
  • In case of conflicts with master - branch was rebased

What are the relevant issue numbers?

Merge request reports