We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea795f4 commit 655c933Copy full SHA for 655c933
redis.go
@@ -16,6 +16,8 @@ import (
16
17
var _ core.Worker = (*Worker)(nil)
18
19
+const blockTime = 60000
20
+
21
// Worker for Redis
22
type Worker struct {
23
// redis config
@@ -101,10 +103,11 @@ func (w *Worker) fetchTask() {
101
103
Count: 1,
102
104
// we use the block command to make sure if no entry is found we wait
105
// until an entry is found
- Block: 0,
106
+ Block: blockTime,
107
}).Result()
108
if err != nil {
- return
109
+ w.opts.logger.Errorf("error while reading from redis %v",err)
110
+ continue
111
}
112
// we have received the data we should loop it and queue the messages
113
// so that our tasks can start processing
0 commit comments