schedmd.com
Subject: Re: [slurm-users] [External] Autoset job TimeLimit to fit in a
reservation
External Email Warning
This email originated from outside the university. Please use caution when
opening attachments, clicking links, or responding to requests.
Hi
Hi Florian, and first of all , thanks for this single line command which
is already quite a lot; To give it a bit more sense, I will compute the
remaining time until the reservation ends, so just changing $2 in $3 in
your command
# WEEKRESEND=$(scontrol show res | head -n1 | awk '{print $3}' |
Florian,
Not the OP, but I have a use case where we do this. We have a code that
uses checkpoint/restart, so for the users, being able to calculate how
much time they have until our maintenance reservation starts allows them
to submit restartable jobs right up to the reservation start time to
Hi,
well, I think you're putting the cart before the horse, but anyway, you could
write a script that extracts the next reservation and does some simple math to
display the time in hours or else to the user. It's the users job to set the
time their job needs to finish. Auto-squeezing a job that