<div dir="auto">Hi,</div><div dir="auto"><br></div><div dir="auto">You can cleanup those jobs with sacctmgr. <div><a href="https://slurm.schedmd.com/sacctmgr.html">https://slurm.schedmd.com/sacctmgr.html</a></div><div dir="auto"><br></div><div dir="auto">sacctmgr show RunawayJobs</div><div dir="auto"><br></div><div dir="auto">This will list the runaway jobs, and if any will ask if you want to fix them. </div><div dir="auto"><br></div><div dir="auto">Regards,</div><div dir="auto">Carlos</div></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 27 Jul 2021 at 22:49, Bill Wichser <<a href="mailto:bill@princeton.edu">bill@princeton.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">[root@della5 bill]# sacctmgr -i delete user mable<br>
  Error with request: Job(s) active, cancel job(s) before remove<br>
   JobID = 602995     C = tukey      A = politics   U = mable<br>
<br>
Yup, when a user has an active job they cannot be deleted from the <br>
database.  The thing is, this cluster tukey has been offline for maybe 5 <br>
years now. Probably more.<br>
<br>
I don't want to lose the old records in the database.  Is there a way to <br>
say,<br>
<br>
Hey, that job you believe is still running on tukey, well it doesn't <br>
exist anymore so please close this job<br>
<br>
?<br>
<br>
I haven't figured out a way to do this outside the database so suspect <br>
that only DB manipulation is the only answer.<br>
<br>
Thanks,<br>
Bill<br>
<br>
</blockquote></div></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">--<br>Carles Fenoy<br></div>