Quantcast
Channel: Service Bus forum
Viewing all articles
Browse latest Browse all 1916

Use autoDeleteOnIdle when creating Azure Service Bus Queue in python

$
0
0

Hi,

I'm using azure.servicebus package to manage some queues in my application. I'd like to set the autoDeleteOnIdle property on the queues I create in my code. Is it possible to do it?

I tried this:

queue_options = Queue()
queue_options.auto_delete_on_idle = auto_delete_on_idle_delay
queue_options.default_message_time_to_live = default_message_ttl
self.bus_service.create_queue(queue_name=queue_name, queue=queue_options, fail_on_exist=fail_on_exist)

The default_message_time_to_live seems to work fine but the auto_delete_on_idle doesn't seem to be used.

I also looked at the REST API and the autoDeleteOnIdle doesn't seem to be exposed there either. I can't use .NET, what are my options to use this feature?

Thanks!



Viewing all articles
Browse latest Browse all 1916

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>