mirror of
https://github.com/kemko/nomad.git
synced 2026-01-09 03:45:41 +03:00
Disable blocked eval tracker when leadership is lost
This commit is contained in:
@@ -348,6 +348,9 @@ func (s *Server) revokeLeadership() error {
|
||||
// Disable the eval broker, since it is only useful as a leader
|
||||
s.evalBroker.SetEnabled(false)
|
||||
|
||||
// Disable the blocked eval tracker, since it is only useful as a leader
|
||||
s.blockedEvals.SetEnabled(false)
|
||||
|
||||
// Disable the periodic dispatcher, since it is only useful as a leader
|
||||
s.periodicDispatcher.SetEnabled(false)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user