Global jobs API

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Now after !44859 (merged) was merged one last peace is lacking to happily use a custom runners' scaler:

Problem to solve

Unfortunately, GitLab's Jobs Apiprovide the option to list jobs only by project or by pipeline, without the option to list all the jobs by instance like the admin/jobs page.

Further details

For users that need to write their own runners' scaler, for example, mixed environments Windows & Linux it would be very helpful to be able to have API endpoint to query all the pending jobs to know what type of runners should be scaled.

Proposal

Adding the /jobs API endpoint to query all the instance jobs?

What does success look like, and how can we measure that?

/jobs endpoint available

Edited by 🤖 GitLab Bot 🤖