Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There is a problem. #184

Closed
Rr7716 opened this issue Dec 21, 2022 · 3 comments
Closed

There is a problem. #184

Rr7716 opened this issue Dec 21, 2022 · 3 comments

Comments

@Rr7716
Copy link

Rr7716 commented Dec 21, 2022

I'm encountering a small probelm with the .pending method of a consumer group stream.

receive_cg.receive_stream.pending()

Raises

return self.database.xpending_range(self.key, self.group, min=start, TypeError: xpending_range() got an unexpected keyword argument 'idle'

By looking into your code i tracked this to the following lines:

[walrus/containers.py:1286]

return self.database.xpending_range(self.key, self.group, min=start, max=stop, count=count, consumername=consumer, idle=idle)

It also failed though I change my code:

receive_cg.receive_stream.pending(idle=1000)

I don't know what's wrong with it. It's so weird.

Can you help me?

@coleifer
Copy link
Owner

What version of redis-py do you have installed?

@coleifer
Copy link
Owner

Looks like redis-py added this in commit 9c60670deea5c593e20204bbd5f172ccfcd1d9db (redis/redis-py#1523). This was added in 4.0, so I suggest updating your redis-py to 4.0 at least.

@Rr7716
Copy link
Author

Rr7716 commented Dec 22, 2022

Thank you so much!!!
I solve it after updating redis to 4.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants