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