Fix runner API times out for runners with large projects
-
Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA. As a benefit of being a GitLab Community Contributor, you receive complimentary access to GitLab Duo.
What does this MR do and why?
Added optional parameter to exclude projects when fetching runner details to improve performance with runners associated with many projects
References
Screenshots or screen recordings
Before | After |
---|---|
How to set up and validate locally
- Upon running GET /api/v4/runners/:id?include_projects=false - Returns details without projects
- Upon running GET /api/v4/runners/:id?include_projects=true or /api/v4/runners/:id - Returns details with projects (existing behaviour)
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Edited by Aditya B N