Scripts for controlling job times sbatch
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 35/100
Research direction
Start with the three proposed shell functions—slurm-job-add-timelimit, slurm-job-check-timelimit, and slurm-job-set-timelimit—and review their scontrol, grep, and awk commands. Done means determining where these helpers belong in devops-docs and adding or documenting the intended Slurm time-limit controls, including the stated shorter-than-elapsed-time risk.
Written by the indexing model from the issue text.
Description
function slurm-job-add-timelimit() {
timelimit="$1"
jobids=("${@:2}")
for job in "${jobids[@]}"; do
echo "$job"
scontrol show job $job | grep TimeLimit | awk '{print " Before: " $2}'
scontrol update jobid=$job TimeLimit+="$timelimit"
scontrol show job $job | grep TimeLimit | awk '{print " After: " $2}'
done
}
function slurm-job-check-timelimit() {
jobids=("${@:1}")
for job in "${jobids[@]}"; do
echo "$job"
scontrol show job $job | grep TimeLimit | awk '{print " Time Limit: " $2}'
done
}
The following code could be useful in niche usecases, but it can also force a job to terminate if the input timelimit is shorter than the currently elapsed time.
function slurm-job-set-timelimit() {
timelimit="$1"
jobids=("${@:2}")
for job in "${jobids[@]}"; do
echo "$job"
scontrol show job $job | grep TimeLimit | awk '{print " Before: " $2}'
scontrol update jobid=$job TimeLimit="$timelimit"
scontrol show job $job | grep TimeLimit | awk '{print " After: " $2}'
done
}
- Dominant language
- Python
- Stars
- 1
- Forks
- 9
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from uabrc/devops-docs
-
LTS service accountsOpen
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
uabrc/devops-docs#94 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
uabrc/devops-docs#54 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 65/100
uabrc/devops-docs#48 ·
-
Document procedure for ticket management and closureMay be free again @iam4tune claimed this 51 days ago, and no pull request is open. Open
uabrc/devops-docs#97 · 1 assignee ·
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
uabrc/devops-docs#96 ·
All issues in uabrc/devops-docs
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
BasedHardware/omi#20271 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 92/100
openai/openai-cookbook#3153 ·
Maintainers usually reply within 1 day
-
cvss-severity:high devguard l3montree-cybersecurity/devguard/devguard pkg:golang/github.com/l3montree-dev/devguard risk:low state:open
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
l3montree-dev/devguard#3146 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
bug confirmed issue
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
open-webui/open-webui#31849 · 2 comments ·
Maintainers usually reply within 1 day