mirror of
https://github.com/hibiken/asynq.git
synced 2024-12-25 07:12:17 +08:00
fix: call Stop on all other signals to correctly set the server state for the shutdown procedure to complete successfully (#982)
* fixes: #979
This commit is contained in:
parent
02907551b4
commit
043dcfbf56
@ -24,10 +24,12 @@ func (srv *Server) waitForSignals() {
|
||||
if sig == unix.SIGTSTP {
|
||||
srv.Stop()
|
||||
continue
|
||||
}
|
||||
} else {
|
||||
srv.Stop()
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func (s *Scheduler) waitForSignals() {
|
||||
s.logger.Info("Send signal TERM or INT to stop the scheduler")
|
||||
|
Loading…
Reference in New Issue
Block a user