2
0
mirror of https://github.com/hibiken/asynq.git synced 2025-10-20 09:16:12 +08:00

Compare commits

...

1 Commits

Author SHA1 Message Date
Mohammed Sohail
71c746d00a fix: call Stop on all other signals to correctly set the server state for the shutdown procedure to complete successfully
* possibly fixes: #979
2024-12-09 10:08:36 +03:00

View File

@@ -24,9 +24,11 @@ func (srv *Server) waitForSignals() {
if sig == unix.SIGTSTP { if sig == unix.SIGTSTP {
srv.Stop() srv.Stop()
continue continue
} } else {
srv.Stop()
break break
} }
}
} }
func (s *Scheduler) waitForSignals() { func (s *Scheduler) waitForSignals() {