mirror of
https://github.com/hibiken/asynq.git
synced 2025-10-23 10:16:12 +08:00
降低等待时长
This commit is contained in:
@@ -179,7 +179,7 @@ func (p *processor) exec() {
|
||||
// Sleep to avoid slamming redis and let scheduler move tasks into queues.
|
||||
// Note: We are not using blocking pop operation and polling queues instead.
|
||||
// This adds significant load to redis.
|
||||
time.Sleep(time.Second)
|
||||
time.Sleep(time.Millisecond * 100)
|
||||
<-p.sema // release token
|
||||
return
|
||||
case err != nil:
|
||||
|
Reference in New Issue
Block a user