mirror of
https://github.com/cirruslabs/orchard.git
synced 2026-10-20 09:39:01 +02:00
orchard controller run: introduce configurable --worker-offline-timeout (#342)
This commit is contained in:
@@ -323,7 +323,7 @@ func (controller *Controller) initializeMetrics() error {
|
||||
}
|
||||
|
||||
groups := lo.CountValuesBy(workers, func(worker v1.Worker) string {
|
||||
if worker.Offline(time.Minute) {
|
||||
if worker.Offline(controller.workerOfflineTimeout) {
|
||||
return "offline"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user