PasanNadeera
PasanNadeera

Reputation: 141

From Redis streams get all the remaining pending(PEL) mesages from XPENDING

I would like to receive all the pending messages from PEL(Pending entry list) for a given stream and a consumer group.

Problem is that XPENDING command has a mandatory count variable. But I don't know how many pending messages beforehand. I just want to list all the pending messages. So how to handle this properly ?

XPENDING mystream group55 - + 10

Upvotes: 0

Views: 2971

Answers (1)

namizaru
namizaru

Reputation: 824

You can use the output of XAUTOCLAIM as the input for XACK instead of using XPENDING

Upvotes: 0

Related Questions