2
0
mirror of https://github.com/hibiken/asynq.git synced 2024-09-20 02:55:54 +08:00

Add log messages around Server.Quiet

This commit is contained in:
Ken Hibino 2020-05-16 07:12:08 -07:00
parent 556b2103fe
commit 210b026b01

View File

@ -422,6 +422,8 @@ func (srv *Server) Stop() {
// Quiet signals the server to stop pulling new tasks off queues.
// Quiet should be used before stopping the server.
func (srv *Server) Quiet() {
srv.logger.Info("Stopping processor")
srv.processor.stop()
srv.ss.SetStatus(base.StatusQuiet)
srv.logger.Info("Processor stopped")
}