0

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
PasanNadeera
  • 101
  • 1
  • 9
  • One way of getting message count is using "XPENDING " command. This will give you the total amount of pending messages for each consumer. – PasanNadeera May 12 '22 at 07:25

1 Answers1

0

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

namizaru
  • 646
  • 3
  • 5