azure-service-bus
azure-service-bus copied to clipboard
Ability to purge a queue
From @SeanFeldman on December 20, 2016 5:25
There are scenarios where purging a queue is necessary
- Testing scenarios
- Removing all messages because they are no longer needed
- Clearing out deferred messages when sequence numbers are no longer retained by an app
Similar functionality: ASQ`s CloudQueue.ClearAsync().
This would apply to both queue/subscription and associated DLQs.
Copied from original issue: Azure/azure-service-bus-dotnet#46
This is something we can revisit in the future. We currently have an internal project that would make this much easier for us. The project will manage state against partitions.
From @SeanFeldman on January 27, 2017 0:42
We currently have an internal project that would make this much easier for us.
Where's the OSS community in "us" when it's internal? Sharing is carrying, right? 😃
The project I am referring to is for our cluster management. It will simplify transactions across shards, allowing us to better ensure that messages have been purged from all.
Is this something that would be considered? Thank you.
@SeanFeldman it's on our list. But it may take sometime for us to reach to that item. 😢
@binzywu knowing it's planned is better than just wonder if it's even considered 🙂 Thank you.
Just pinging for an update 🙂 Thank you.
Any news on this?
Still wish this functionality would exists...
Still waiting for this!
Two years and counting since this was opened, has there been any progress made?
I am trying to clean up some acceptance tests by deleting a topic and recreating it after each test fixture. In theory this should isolate the tests but I'm experiencing timing issues asking Azure to delete and create an entity in quick succession. I tried adding some logic using the Exists method on the Microsoft.Azure.ServiceBus.Management.ManagementClient - which would seem to indicate things are in a clean state, but this didn't work; possibly because things haven't fully materialised in Azure yet?
Maybe a less heavy handed approach and something like Clear or Purge would help me here. I am in need of a way to clean topics/queues/DLQs between tests
Hi, is there an update on this? thanks
Please consider implementing, needed in our case e.g. in the integration tests where we need to make sure the queue is empty before every new test runs.
Thank you
@yahorsi if that helps, I do a "test run ID" header. Any message received with a different value that is set for the current test run is ignored. That way while there's no way to purge, your tests will be purging and running. Not perfect, but perhaps it would help in your case. Cheers.
Not a month that someone doesn't ask how to purge a queue... If Queue Storage can do it, Service Bus should be able as well.
/cc @axisc
I'm asking for a purge feature - during dev messages get messed up, and they have to be cleared before testing can begin again. Everybody writes their own utility to receive and dump the messages in the queue . Why is this such an issue to implement?
Please consider implementing this feature. Thank you
+1
+1
+1
+1 This feature would be extremely helpful
+1
+1
+1
+1
plus one
Hi, this has surfaced to the top of our backlog, and we hope to implement this in the coming months.
this has surfaced to the top of our backlog, and we hope to implement this in the coming months.
I'm getting emotional reading this after so many years. Thank you.
Any idea when this might go live?