You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! Just started using NATS with Python and Go. I am publishing messages from Go, and consuming them with Python. Once I changed the stream over to jetstream.WorkQueuePolicy I can no longer pull pending messages size with info.NumPending. I also cannot seem to pull messages from workqueue either with python. I tried with latest release and v1.33.1 and its same issue. So I think it's just user error :)
The code always returns 0 but no error is logged. I have tried logging before return and its 0, always. This only started occurring when I switched over to work queue policy. So, I think I'm just consuming and checking pending messages incorrectly for this queue?
On the python side I cannot pull the messages either:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello! Just started using NATS with Python and Go. I am publishing messages from Go, and consuming them with Python. Once I changed the stream over to
jetstream.WorkQueuePolicy
I can no longer pull pending messages size withinfo.NumPending
. I also cannot seem to pull messages from workqueue either with python. I tried with latest release and v1.33.1 and its same issue. So I think it's just user error :)Go code to pull pending message count:
The code always returns
0
but no error is logged. I have tried logging before return and its0
, always. This only started occurring when I switched over to work queue policy. So, I think I'm just consuming and checking pending messages incorrectly for this queue?On the python side I cannot pull the messages either:
I think that I am using the work queue incorrectly? But not sure.
There are messages in the stream/subjects from the go code that's pushing messages:
Beta Was this translation helpful? Give feedback.
All reactions