Add manual runner removal
Runners can now be manually removed using the CLI. Some restrictions apply: * A runner must be idle in github. Github will not allow us to remove a runner that is running a workflow. * The runner status must be "running" Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
This commit is contained in:
parent
1f419d0abc
commit
5390efbaab
20 changed files with 336 additions and 120 deletions
|
|
@ -153,6 +153,7 @@ type UpdateInstanceParams struct {
|
|||
Status common.InstanceStatus `json:"status,omitempty"`
|
||||
RunnerStatus common.RunnerStatus `json:"runner_status,omitempty"`
|
||||
ProviderFault []byte `json:"provider_fault,omitempty"`
|
||||
AgentID int64 `json:"-"`
|
||||
CreateAttempt int `json:"-"`
|
||||
}
|
||||
|
||||
|
|
@ -186,4 +187,5 @@ type UpdateRepositoryParams struct {
|
|||
type InstanceUpdateMessage struct {
|
||||
Status common.RunnerStatus `json:"status"`
|
||||
Message string `json:"message"`
|
||||
AgentID *int64 `json:"agent_id"`
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue