<html style="direction: ltr;">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css">body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
</head>
<body bidimailui-charset-is-forced="true" style="direction: ltr;"
text="#000000" bgcolor="#FFFFFF">
<p>I would use a partition with very low priority and preemption<b>.</b></p>
<p>General cluster conf:<br>
</p>
<p>PreemptType=preempt/partition_prio</p>
<p>Preemptmode=Cancel # Anything except 'Off'<br>
</p>
<p><br>
</p>
<p>Partition definition:<b><br>
</b><dt>ParttionName=weekend PreemptMode=Cancel MaxTime=Unlimited
PriorityTier=1 State=Down<br>
</dt>
<dt><br>
</dt>
<dt>Use cron to 'scontrol update PartitionName=weekend state=up'
when desired and 'scontrol update PartitionName=weekend
state=down' on Sunday.</dt>
</p>
<p>This will not cancel the jobs on it's own, but will prevent new
ones from starting.</p>
<p>The preemption will kill jobs as required to allow regular jobs
to run - the added value is that as long as they don't prevent
other jobs from starting, those jobs can continue, and won't be
killed needlessly.</p>
<p><br>
</p>
<p>Just my 2 cents.</p>
<p><br>
</p>
<p>The other option is to use a recurring reservation with a start
and stop time frame, and force jobs to use that reservation
(possibly via qos).</p>
<p>This solution might look something like:</p>
<p>scontrol create reservation StartTime=00:00:01 Duration= Flags=</p>
<p>For Flags you have a couple of options:</p>
<p>WEEKEND<br>
Repeat the reservation at the same time on every weekend day
(Saturday and Sunday). <br>
WEEKLY<br>
Repeat the reservation at the same time every week.</p>
<p>So I would guess Duration=1-0 Flags=WEEKEND</p>
<p>Or Duration=2-0 Flags=WEEKLY</p>
<p><br>
</p>
<p>You will have to test to see what works best for you.<br>
</p>
<p><b><br>
</b></p>
<p>HTH</p>
<p>--Dani_L.<br>
<b></b></p>
<p><b><br>
</b></p>
<div class="moz-cite-prefix">On 7/23/19 7:36 PM, Matthew BETTINGER
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:D707EFA0-A9A3-4365-B75F-145A3A95E2D4@external.total.com">
<pre class="moz-quote-pre" wrap="">Hello,
We run lsf and slurm here. For LSF we have a weekend queue with no limit and jobs get killed after Sunday. What is the best way to do something similar for slurm? Reservation? We would like to have any running jobs killed after Sunday if possible too. Thanks.
</pre>
</blockquote>
</body>
</html>