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 {
109109 * After this timeout, a new worker will pick up the task
110110 * @todo rename this variable
111111 */
112- this . redisWorkerTimeout = number . parseInt ( env . getConf ( 'redis-task-timeout' ) || '600000 ' )
112+ this . redisWorkerTimeout = number . parseInt ( env . getConf ( 'redis-task-timeout' ) || '1000 ' )
113113 /**
114114 * Minimum lifetime of y* update messages in redis streams.
115115 */
@@ -357,7 +357,7 @@ export class Worker {
357357 try {
358358 const tasks = await client . consumeWorkerQueue ( opts )
359359 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 )
361361 }
362362 } catch ( e ) {
363363 console . error ( e )
You can’t perform that action at this time.
0 commit comments