File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ export class Api {
109
109
* After this timeout, a new worker will pick up the task
110
110
* @todo rename this variable
111
111
*/
112
- this . redisWorkerTimeout = number . parseInt ( env . getConf ( 'redis-task-timeout' ) || '600000 ' )
112
+ this . redisWorkerTimeout = number . parseInt ( env . getConf ( 'redis-task-timeout' ) || '1000 ' )
113
113
/**
114
114
* Minimum lifetime of y* update messages in redis streams.
115
115
*/
@@ -357,7 +357,7 @@ export class Worker {
357
357
try {
358
358
const tasks = await client . consumeWorkerQueue ( opts )
359
359
if ( tasks . length === 0 || ( client . redisMinMessageLifetime > time . getUnixTime ( ) + timeDiff - number . parseInt ( tasks [ 0 ] . id . split ( '-' ) [ 0 ] ) ) ) {
360
- await promise . wait ( client . redisMinMessageLifetime / 2 )
360
+ await promise . wait ( client . redisWorkerTimeout )
361
361
}
362
362
} catch ( e ) {
363
363
console . error ( e )
You can’t perform that action at this time.
0 commit comments