2021-05-04 12:10:04 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Types
|
|
|
|
module Ci
|
|
|
|
class RunnerStatusEnum < BaseEnum
|
|
|
|
graphql_name 'CiRunnerStatus'
|
|
|
|
|
2021-12-06 09:10:26 +00:00
|
|
|
value 'ACTIVE',
|
|
|
|
description: 'Runner that is not paused.',
|
2022-01-25 15:12:32 +00:00
|
|
|
deprecated: {
|
|
|
|
reason: :renamed,
|
|
|
|
replacement: 'CiRunner.paused',
|
|
|
|
milestone: '14.6'
|
|
|
|
},
|
2021-12-06 09:10:26 +00:00
|
|
|
value: :active
|
2021-10-01 09:11:45 +00:00
|
|
|
|
2021-12-06 09:10:26 +00:00
|
|
|
value 'PAUSED',
|
|
|
|
description: 'Runner that is paused.',
|
2022-01-25 15:12:32 +00:00
|
|
|
deprecated: {
|
|
|
|
reason: :renamed,
|
|
|
|
replacement: 'CiRunner.paused',
|
|
|
|
milestone: '14.6'
|
|
|
|
},
|
2021-12-06 09:10:26 +00:00
|
|
|
value: :paused
|
|
|
|
|
|
|
|
value 'ONLINE',
|
|
|
|
description: "Runner that contacted this instance within the last #{::Ci::Runner::ONLINE_CONTACT_TIMEOUT.inspect}.",
|
|
|
|
value: :online
|
|
|
|
|
|
|
|
value 'OFFLINE',
|
2022-05-12 03:08:58 +00:00
|
|
|
description: "Runner that has not contacted this instance within the " \
|
|
|
|
"last #{::Ci::Runner::ONLINE_CONTACT_TIMEOUT.inspect}. Will be considered `STALE` if offline for " \
|
|
|
|
"more than #{::Ci::Runner::STALE_TIMEOUT.inspect}.",
|
2021-12-06 09:10:26 +00:00
|
|
|
value: :offline
|
|
|
|
|
|
|
|
value 'STALE',
|
2022-05-12 03:08:58 +00:00
|
|
|
description: "Runner that has not contacted this instance within the last #{::Ci::Runner::STALE_TIMEOUT.inspect}.",
|
2021-12-06 09:10:26 +00:00
|
|
|
value: :stale
|
|
|
|
|
2021-12-10 18:14:42 +00:00
|
|
|
value 'NEVER_CONTACTED',
|
2022-05-11 21:08:09 +00:00
|
|
|
description: 'Runner that has never contacted this instance.',
|
2021-12-10 18:14:42 +00:00
|
|
|
value: :never_contacted
|
2021-05-04 12:10:04 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|