Why queue of (auto-delete=true) doesn't disappear automatically after no consumer?

StackOverflow https://stackoverflow.com/questions/23167091

  •  06-07-2023
  •  | 
  •  

質問

The rabbitmq version is 3.1.5 Queue parameter is auto-deleted, exclusive owner is none, consumer is 0 and it is idle since yesterday.

From the web manager, I found it was still exist and waste resource.

My question is is auto-deleted mean the queue will be deleted after it is no consumer? If so, how long it will exist after no consumer?

役に立ちましたか?

解決

Not necessarily,

As you can read here:

If the queue never has consumers it will not autodelete (otherwise it would autodelete as soon as you created it).

Ayway, if you want be sure to delete your queue you can also use QueueTTL

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top