Skip to content

Runner List does not support pagination options #850

Closed

Description

@gavk34

Description of the problem, including code/CLI snippet

gitlab.runners.list(all=True)
or
gitlab.runners.list(page=1,per_page=20)

has no effect. Always only returns 6 runners. Our instance has 22 runners.

Expected Behavior

According to https://python-gitlab.readthedocs.io/en/stable/api-usage.html#pagination
page and per_page should be available.

all=True should return all the items

Actual Behavior

Neither all=True or pagination is working for Runners

Specifications

  • python-gitlab version: python-gitlab-1.10.0
  • API version you are using (v3/v4): v4
  • Gitlab server version (or gitlab.com): 12.1.3

Activity

  1. max-wittig commented on Jul 31, 2019

    @max-wittig
    Member

    Are you sure that you're an admin on your instance/are allowed to view all runners?

    Have you tried the same request using curl?

  2. gavk34 commented on Oct 29, 2019

    @gavk34
    Author

    Sorry @max-wittig for not responding to your previous comment.

    I solved it by switching to gitlab.runners.all(all=True) - this seems to return what I want

  3. NikolausDemmel commented on Apr 22, 2020

    @NikolausDemmel

    I have the same discrepancy. More runners show up in gitlab.runners.all(all=True) than gitlab.runners.list(all=True).

    I'm admin.

    Testing the API directly, looks like the missing runners also don't show up in api/v4/runners/all?per_page=1000.

  4. goneng commented on May 9, 2021

    @goneng

    @NikolausDemmel, looks like the highest supported value for per_page is 100, so maybe the 1000 is ignored.

  5. locked as resolved and limited conversation to collaborators on May 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions