<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="Generator" content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.hoenzb
        {mso-style-name:hoenzb;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style></head><body lang="EN-US" link="blue" vlink="purple"><div class="WordSection1"><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">https://www.mankier.com/1/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">pulp-list-bounces@redhat.com</a> [mailto:<a href="mailto:pulp-list-bounces@redhat.com">pulp-list-bounces@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">dkliban@redhat.com</a>><br><b>Cc:</b> pulp-list <<a href="mailto:pulp-list@redhat.com">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">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>_______________________________________________<br>Pulp-list mailing list<br><a href="mailto:Pulp-list@redhat.com">Pulp-list@redhat.com</a><br><a href="https://www.redhat.com/mailman/listinfo/pulp-list" target="_blank">https://www.redhat.com/mailman/listinfo/pulp-list</a></p></blockquote></div><p class="MsoNormal"> </p></div></div></blockquote></div></body></html>