mirror of
https://github.com/hibiken/asynq.git
synced 2024-11-14 11:31:18 +08:00
Add log messages around Server.Quiet
This commit is contained in:
commit
de146993d2
@ -422,6 +422,8 @@ func (srv *Server) Stop() {
|
|||||||
// Quiet signals the server to stop pulling new tasks off queues.
|
// Quiet signals the server to stop pulling new tasks off queues.
|
||||||
// Quiet should be used before stopping the server.
|
// Quiet should be used before stopping the server.
|
||||||
func (srv *Server) Quiet() {
|
func (srv *Server) Quiet() {
|
||||||
|
srv.logger.Info("Stopping processor")
|
||||||
srv.processor.stop()
|
srv.processor.stop()
|
||||||
srv.ss.SetStatus(base.StatusQuiet)
|
srv.ss.SetStatus(base.StatusQuiet)
|
||||||
|
srv.logger.Info("Processor stopped")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user