Browse Source

every 17 minutes instead of seconds

TODO: make this configurable
pull/991/head
Chris Lu 6 years ago
parent
commit
7f6fb9ffd0
  1. 3
      weed/server/master_server.go

3
weed/server/master_server.go

@ -184,7 +184,6 @@ func (ms *MasterServer) startAdminScripts() {
commandEnv := shell.NewCommandEnv(shellOptions)
reg, _ := regexp.Compile(`'.*?'|".*?"|\S+`)
go commandEnv.MasterClient.KeepConnectedToMaster()
@ -192,7 +191,7 @@ func (ms *MasterServer) startAdminScripts() {
go func() {
commandEnv.MasterClient.WaitUntilConnected()
c := time.Tick(17 * time.Second)
c := time.Tick(17 * time.Minute)
for _ = range c {
if ms.Topo.IsLeader() {
for _, line := range scriptLines {

Loading…
Cancel
Save