<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}
@font-face
        {font-family:Tahoma}
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.HTMLPreformattedChar
        {font-family:"Courier New"}
span.EmailStyle19
        {font-family:"Calibri","sans-serif";
        color:windowtext}
span.pln
        {}
span.pun
        {}
span.kwd
        {}
span.EmailStyle23
        {font-family:"Calibri","sans-serif";
        color:#1F497D}
.MsoChpDefault
        {font-size:10.0pt}
@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"><span style="color:#1F497D">I apologize, in my haste to send this out, I didn&#8217;t get to fully investigate.</span></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span></p>
<p class="MsoNormal"><span style="color:#1F497D">If someone else were to come upon this issue, what you need to do is declare a different Callback method, which accepts a variable.</span></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span></p>
<p class="MsoNormal"><span style="color:#1F497D">This variable will contain member items for the Queue, Awaiting Messages, Consumers, Channel Number, and Frame Type.</span></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span></p>
<p class="MsoNormal"><span style="color:#1F497D">To access these you would need to use:<br>
variable.frame_type</span></p>
<p class="MsoNormal"><span style="color:#1F497D">variable.channel_number</span></p>
<p class="MsoNormal"><span style="color:#1F497D">variable.method.queue</span></p>
<p class="MsoNormal"><span style="color:#1F497D">variable.method.message_count</span></p>
<p class="MsoNormal"><span style="color:#1F497D">variable.method.consumer_count</span></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span></p>
<p class="MsoNormal"><span style="color:#1F497D">Sorry to clog up the mailing list, and I hope I&#8217;m appending to the message correctly, but hopefully this will clear up any questions people may have had like this.</span></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span></p>
<p class="MsoNormal"><span style="color:#1F497D">-Christopher Lefevre</span></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span></p>
<div>
<div style="border:none; border-top:solid #B5C4DF 1.0pt; padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt; font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:10.0pt; font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> Christopher Lefevre
<br>
<b>Sent:</b> Tuesday, February 28, 2012 10:54 AM<br>
<b>To:</b> 'rabbitmq-discuss@lists.rabbitmq.com'<br>
<b>Subject:</b> Query a queue status from the client</span></p>
</div>
</div>
<p class="MsoNormal">&nbsp;</p>
<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 style="margin-bottom:12.0pt"><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:</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>