45 lines
1.4 KiB
Ruby
45 lines
1.4 KiB
Ruby
# frozen_string_literal: true
|
|
|
|
module Types
|
|
module Ci
|
|
class RunnerStatusEnum < BaseEnum
|
|
graphql_name 'CiRunnerStatus'
|
|
|
|
value 'ACTIVE',
|
|
description: 'Runner that is not paused.',
|
|
deprecated: {
|
|
reason: :renamed,
|
|
replacement: 'CiRunner.paused',
|
|
milestone: '14.6'
|
|
},
|
|
value: :active
|
|
|
|
value 'PAUSED',
|
|
description: 'Runner that is paused.',
|
|
deprecated: {
|
|
reason: :renamed,
|
|
replacement: 'CiRunner.paused',
|
|
milestone: '14.6'
|
|
},
|
|
value: :paused
|
|
|
|
value 'ONLINE',
|
|
description: "Runner that contacted this instance within the last #{::Ci::Runner::ONLINE_CONTACT_TIMEOUT.inspect}.",
|
|
value: :online
|
|
|
|
value 'OFFLINE',
|
|
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}.",
|
|
value: :offline
|
|
|
|
value 'STALE',
|
|
description: "Runner that has not contacted this instance within the last #{::Ci::Runner::STALE_TIMEOUT.inspect}.",
|
|
value: :stale
|
|
|
|
value 'NEVER_CONTACTED',
|
|
description: 'Runner that has never contacted this instance.',
|
|
value: :never_contacted
|
|
end
|
|
end
|
|
end
|