Skip to content

Commit

Permalink
6666
Browse files Browse the repository at this point in the history
  • Loading branch information
ymakedaq committed Nov 25, 2024
1 parent a267c4f commit 82979a3
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,11 @@ func init() {
Password: config.GAppConfig.Redis.Password,
DB: 0,
})
reloadRunningTaskFromdb()
rdb.Close()
go func() {
time.Sleep(time.Duration(HeartbeatInterval) * time.Second)
reloadRunningTaskFromdb()
rdb.Close()
}()
}

// ReloadParam TODO
Expand Down

0 comments on commit 82979a3

Please sign in to comment.