Add agent no-schedule flag (#1567)

This flag allows an agent owner / admin to stop the agent from taking
new workflows / pipelines.
This commit is contained in:
Anbraten
2023-01-30 20:18:48 +01:00
committed by GitHub
parent 5f818e933b
commit 71d6c03ca7
7 changed files with 28 additions and 19 deletions

View File

@@ -26,6 +26,7 @@ type Agent struct {
Backend string `json:"backend" xorm:"VARCHAR(100)"`
Capacity int32 `json:"capacity"`
Version string `json:"version"`
NoSchedule bool `json:"no_schedule"`
}
// TableName return database table name for xorm