<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="" style="margin: 0in 0in 0.0001pt;"><font face="Calibri" class="" style="font-size: 14px;">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?<o:p class=""></o:p></font></div><div class="" style="margin: 0in 0in 0.0001pt;"><o:p class=""><font face="Calibri" class="" style="font-size: 14px;"> </font></o:p></div><div class="" style="margin: 0in 0in 0.0001pt;"><font face="Calibri" class="" style="font-size: 14px;"># A whole lotta pulp tasks<o:p class=""></o:p></font></div><div class="" style="margin: 0in 0in 0.0001pt;"><font face="Calibri" class="" style="font-size: 14px;">[root@pulp-server :~]# pulp-admin tasks list |grep 'Task Id' |wc -l<o:p class=""></o:p></font></div><div class="" style="margin: 0in 0in 0.0001pt;"><font face="Calibri" class="" style="font-size: 14px;">67016<o:p class=""></o:p></font></div><div class="" style="margin: 0in 0in 0.0001pt;"><o:p class=""><font face="Calibri" class="" style="font-size: 14px;"> </font></o:p></div><div class="" style="margin: 0in 0in 0.0001pt;"><font face="Calibri" class="" style="font-size: 14px;"># A for loop to generate a list of the task IDs and cancel one at a time.<o:p class=""></o:p></font></div><div class="" style="margin: 0in 0in 0.0001pt;"><font face="Calibri" class="" style="font-size: 14px;">for n in `pulp-admin tasks list |grep 'Task Id' |awk '{print $NF}'`; do echo $n; pulp-admin tasks cancel --task-id $n; done<o:p class=""></o:p></font></div><div class="" style="margin: 0in 0in 0.0001pt;"><o:p class=""><font face="Calibri" class="" style="font-size: 14px;"> </font></o:p></div><div class="" style="margin: 0in 0in 0.0001pt;"><font face="Calibri" class="" style="font-size: 14px;">Thanks<o:p class=""></o:p></font></div><div class="" style="margin: 0in 0in 0.0001pt;"><font face="Calibri" class="" style="font-size: 14px;">Dustin</font></div></body></html>