mirror of
https://github.com/hibiken/asynq.git
synced 2025-09-19 05:17:30 +08:00
Include worker stats to ProcessState
This commit is contained in:
@@ -52,8 +52,8 @@ func (s *subscriber) start(wg *sync.WaitGroup) {
|
||||
logger.info("Subscriber done")
|
||||
return
|
||||
case msg := <-cancelCh:
|
||||
cancel := s.cancelations.Get(msg.Payload)
|
||||
if cancel != nil {
|
||||
cancel, ok := s.cancelations.Get(msg.Payload)
|
||||
if ok {
|
||||
cancel()
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user