<div dir="ltr">I think you need to use rabbitmqctl purge_queue[0] command to purge all the messages for the resource manager queue. I believe you want to do this while the resource_manager is offline and the pulp_workers are offline. <br><br><a href="http://www.rabbitmq.com/man/rabbitmqctl.1.man.html">http://www.rabbitmq.com/man/rabbitmqctl.1.man.html</a><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 13, 2017 at 11:11 AM, Dustin McNabb <span dir="ltr"><<a href="mailto:dustin.mcnabb@gmail.com" target="_blank">dustin.mcnabb@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">That only works for completed tasks. Mine are all in Waiting state.<br><br><div>Thanks</div><span class="HOEnZb"><font color="#888888"><div>Dustin</div></font></span><div><div class="h5"><div><br>On Nov 13, 2017, at 8:03 AM, Deej Howard <<a href="mailto:Deej.Howard@neulion.com" target="_blank">Deej.Howard@neulion.com</a>> wrote:<br><br></div><blockquote type="cite"><div><div class="m_5636197092156591050WordSection1"><p class="MsoNormal">                I assume you’ve already tried using “pulp-admin tasks purge”, right (ref: <a href="https://www.mankier.com/1/pulp-admin#Tasks-Purging" target="_blank">https://www.mankier.com/1/<wbr>pulp-admin#Tasks-Purging</a>)?</p><p class="MsoNormal"> </p><div><div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal"><b>From:</b> <a href="mailto:pulp-list-bounces@redhat.com" target="_blank">pulp-list-bounces@redhat.com</a> [mailto:<a href="mailto:pulp-list-bounces@redhat.com" target="_blank">pulp-list-bounces@<wbr>redhat.com</a>] <b>On Behalf Of </b>Dustin McNabb<br><b>Sent:</b> Monday, November 13, 2017 9:00 AM<br><b>To:</b> Dennis Kliban <<a href="mailto:dkliban@redhat.com" target="_blank">dkliban@redhat.com</a>><br><b>Cc:</b> pulp-list <<a href="mailto:pulp-list@redhat.com" target="_blank">pulp-list@redhat.com</a>><br><b>Subject:</b> Re: [Pulp-list] Runaway Pulp Tasks</p></div></div><p class="MsoNormal"> </p><p class="MsoNormal" style="margin-bottom:12.0pt">We are using rabbitMQ rather than qpidd, but I’ve stopped and started all of the relevant services to no avail.</p><div><p class="MsoNormal">Thanks</p></div><div><p class="MsoNormal">Dustin</p></div><div><p class="MsoNormal" style="margin-bottom:12.0pt"><br>On Nov 11, 2017, at 7:45 AM, Dennis Kliban <<a href="mailto:dkliban@redhat.com" target="_blank">dkliban@redhat.com</a>> wrote:</p></div><blockquote style="margin-top:5.0pt;margin-bottom:5.0pt"><div><div><div><p class="MsoNormal">You can stop pulp_resource_manager, pulp_workers, and qpidd. Then start qpidd, pulp_resource_manager, and pulp_workers. The workers will mark the tasks as canceled in the database when they start and qpid should drain the queue when it is restarted.</p></div></div><div><p class="MsoNormal"> </p><div><p class="MsoNormal">On Fri, Nov 10, 2017 at 6:33 PM, Dustin McNabb <<a href="mailto:dustin.mcnabb@gmail.com" target="_blank">dustin.mcnabb@gmail.com</a>> wrote:</p><blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in"><div><div><p class="MsoNormal"><span style="font-size:10.5pt">Anyone ever encountered anything like this? I found 67K pulp tasks pending on one of my pulp servers today. I’m running pulp 2.10.3-1 (I know I know I’m fixing that) with mongoDB 2.6 on RHEL7 with a couple hundred yum repos and one python repo. We recently developed a config mgmt. state to manage the pulp repos on all our pulp servers, and that appears to have caused this issue by submitting a large number of pulp tasks in a short period and then trying again 30 minutes later. My question now, is how can I kill so many pulp tasks in a more efficient manner than the for loop I’m using?</span></p></div><div><p class="MsoNormal"><span style="font-size:10.5pt"> </span></p></div><div><p class="MsoNormal"><span style="font-size:10.5pt"># A whole lotta pulp tasks</span></p></div><div><p class="MsoNormal"><span style="font-size:10.5pt">[root@pulp-server :~]# pulp-admin tasks list |grep 'Task Id' |wc -l</span></p></div><div><p class="MsoNormal"><span style="font-size:10.5pt">67016</span></p></div><div><p class="MsoNormal"><span style="font-size:10.5pt"> </span></p></div><div><p class="MsoNormal"><span style="font-size:10.5pt"># A for loop to generate a list of the task IDs and cancel one at a time.</span></p></div><div><p class="MsoNormal"><span style="font-size:10.5pt">for n in `pulp-admin tasks list |grep 'Task Id' |awk '{print $NF}'`; do echo $n; pulp-admin tasks cancel --task-id $n; done</span></p></div><div><p class="MsoNormal"><span style="font-size:10.5pt"> </span></p></div><div><p class="MsoNormal"><span style="font-size:10.5pt">Thanks</span></p></div><div><p class="MsoNormal"><span style="font-size:10.5pt;color:#888888">Dustin</span><span style="color:#888888"></span></p></div></div><p class="MsoNormal"><br>______________________________<wbr>_________________<br>Pulp-list mailing list<br><a href="mailto:Pulp-list@redhat.com" target="_blank">Pulp-list@redhat.com</a><br><a href="https://www.redhat.com/mailman/listinfo/pulp-list" target="_blank">https://www.redhat.com/<wbr>mailman/listinfo/pulp-list</a></p></blockquote></div><p class="MsoNormal"> </p></div></div></blockquote></div>
</div></blockquote></div></div></div></blockquote></div><br></div>