Skip to content

Runner status cannot be "paused" [RUN-AS-IF-FOSS]

Miguel Rincon requested to merge 343262-runner-no-paused-status into master

What does this MR do and why?

This change removes a data duplication in the GraphQL API by removing the PAUSED status as a possible result of the Ci::Runner status

The same change is announced for the REST API for "status", and "paused" will be removed in the next major release.

In both cases, when checking if a runner is "paused", API users are advised to check the boolean attribute "active" to be false instead.

Note: This MR deprecates paused in out REST API: #344648 (closed)

Screenshots or screen recordings

Our API will let us know if a runner is offline or online, even if paused 👍

Screen_Shot_2021-11-02_at_1.24.07_PM

How to set up and validate locally

There are 2 subtle API changes:

  • GraphQL API: Paused runners' status will only be: online, offline, not_connected. paused will not appear.
  • REST API: Paused runners' status will not be changed, but the paused result is deprecated.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #343262 (closed)

Edited by Miguel Rincon

Merge request reports