-
Notifications
You must be signed in to change notification settings - Fork 29
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
Wait-RabbitMqMessage drains queue with one run #27
Comments
Similar to #23 You should pipe this to a for-each loop and process messages and/or do assignment within that loop. |
Hello derekmwright, Wait-RabbitMQMessage -Exchange TestFanExc -Key 'TestQueue' -QueueName TestQueue -Timeout 120 @Params -LoopInterval 5 | ForEach-Object { Write-host $_}
#And
Start-RabbitMqListener -Exchange TestFanExc -Key 'TestQueue' -QueueName TestQueue @Params | ForEach-Object { Write-host $_} But the first one still drains the queue while only outputting one item and the second outputs the number of messages but the same message (28 lines of '::1'). |
Try to turn on the
|
Hello,
I'm using the module and when I run Wait-RabbitMqMessage it removes all messages but only returns 1 output. Trying to understand if this is the expected behavior as I expected it to be more like the Get-RabbitMQMessage where it would return 1 object per run as Wait-RabbitMqMessage doesn't have the count parameter.
Thank you,
Kensel
The text was updated successfully, but these errors were encountered: