<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style>
<!--
@font-face
        {font-family:"Cambria Math"}
@font-face
        {font-family:Calibri}
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif"}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline}
pre
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New"}
span.EmailStyle17
        {font-family:"Calibri","sans-serif";
        color:windowtext}
span.HTMLPreformattedChar
        {font-family:"Courier New"}
span.pln
        {}
span.pun
        {}
span.kwd
        {}
.MsoChpDefault
        {font-family:"Calibri","sans-serif"}
@page WordSection1
        {margin:1.0in 1.0in 1.0in 1.0in}
div.WordSection1
        {}
-->
</style>
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hello,</p>
<p class="MsoNormal">In my searches for obtaining the queue&#8217;s status from a client, I stumbled upon this Stack Overflow question:<br>
<a href="http://stackoverflow.com/questions/1038318/check-rabbitmq-queue-size-from-client">http://stackoverflow.com/questions/1038318/check-rabbitmq-queue-size-from-client</a></p>
<p class="MsoNormal">&nbsp;</p>
<p class="MsoNormal">The user is asking about .NET, however I need it to work for Python.</p>
<p class="MsoNormal"><br>
I&#8217;m using PIka (0-9-1, if I recall correctly), with RabbitMQ 2.7.1</p>
<p class="MsoNormal">&nbsp;</p>
<pre><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">The user on Stack Overflow seems to be posting the exact solution I need as:<br><br></span></pre>
<pre><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">name, jobs, consumers = chan.queue_declare(queue=queuename, passive=True)</span></pre>
<p class="MsoNormal">&nbsp;</p>
<p class="MsoNormal">However, when I use this line, I only receive back an error that a None type object is not iterable. Which is due to the function only returning None.</p>
<p class="MsoNormal">&nbsp;</p>
<p class="MsoNormal">Does anyone have any experience with this use case? Am I missing something in the queue declare?</p>
<p class="MsoNormal">&nbsp;</p>
<p class="MsoNormal">&nbsp;</p>
<p class="MsoNormal">Thank you for your time,</p>
<p class="MsoNormal">-Christopher Lefevre</p>
</div>
The information contained in this electronic message and any attached document(s) is intended only for the personal and confidential use of the designated recipients named above. This message may be confidential. If the reader of this message is not the intended
 recipient, you are hereby notified that you have received this document in error, and that any review, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this communication in error, please notify sender immediately
 by telephone (603) 262-6300 or by electronic mail immediately. Thank you.
</body>
</html>