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 @@ -300,8 +300,8 @@ export class Api {
300
300
if ( streamlen === 0 ) {
301
301
await this . redis . multi ( )
302
302
. xDelIfEmpty ( task . stream )
303
- . xDel ( this . redisWorkerStreamName , task . id )
304
303
. xAck ( this . redisWorkerStreamName , this . redisWorkerGroupName , task . id )
304
+ . xDel ( this . redisWorkerStreamName , task . id )
305
305
. sRem ( this . workerSetName , task . stream )
306
306
. exec ( )
307
307
logWorker ( 'Stream still empty, removing recurring task from queue ' , { stream : task . stream } )
@@ -319,8 +319,8 @@ export class Api {
319
319
this . redis . multi ( )
320
320
. xTrim ( task . stream , 'MINID' , lastId - this . redisMinMessageLifetime )
321
321
. xAdd ( this . redisWorkerStreamName , '*' , { compact : task . stream } )
322
- . xDel ( this . redisWorkerStreamName , task . id )
323
322
. xAck ( this . redisWorkerStreamName , this . redisWorkerGroupName , task . id )
323
+ . xDel ( this . redisWorkerStreamName , task . id )
324
324
. sAdd ( this . workerSetName , task . stream )
325
325
. exec ( )
326
326
] )
You can’t perform that action at this time.
0 commit comments