Skip to content
GitLab
Next
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • gitlab-runner gitlab-runner
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 2,506
    • Issues 2,506
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 122
    • Merge requests 122
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.orgGitLab.org
  • gitlab-runnergitlab-runner
  • Issues
  • #6361
Closed
Open
Issue created Jan 16, 2020 by Steve Azzopardi@steveazzMaintainer

Remove /debug/jobs/list?v=1 endpoint

Overview

When the listen address is configured we expose an endpoint host:post/debug/jobs/list which by default outputs the logs below (v1), but if you pass in the query parameter ?v=2 so like host:post/debug/jobs/list?v=2 it would out more detailed values. The reason we had v=2 is in case someone depended on the data of v1 and we didn't want to cause a breaking change.

v1
id=405521380 url=https://gitlab.com/gitlab-org/gitlab.git state=running stage=build_script executor_stage=docker_run
id=405521386 url=https://gitlab.com/gitlab-org/gitlab.git state=running stage=build_script executor_stage=docker_run
v2
url=https://gitlab.com/gitlab-org/gitlab/-/jobs/405521380 state=running stage=build_script executor_stage=docker_run duration=1h23m5.876837725s
url=https://gitlab.com/gitlab-org/gitlab/-/jobs/405521386 state=running stage=build_script executor_stage=docker_run duration=1h23m5.391078748s

Proposal

Remove the v1 output and make v2 output the default to have less code. The impact of this should be low since not a lot of users depend on it and this endpoint is used for monitoring so if it "breaks" something it will break monitoring not running any job.

Edited Jan 16, 2020 by Steve Azzopardi
Assignee
Assign to
Time tracking