Skip to content

.play() on job returns 500 even though job is started successfully #2918

@wardbox

Description

@wardbox

Description of the problem, including code/CLI snippet

I'm starting a job via the API and getting a 400 error even though I can see the job getting kicked off and running in the UI. Because of this I have no way of knowing if the error is reliable.

job = project.jobs.get(job.id, lazy=True)
job.play()

image

Expected Behavior

200 OK - Job played
Job runs and completes successfully

Actual Behavior

400 Bad request - Unplayable Job
Job runs and completes successfully

Specifications

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

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