Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Slurm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tud-zih-energy
Slurm
Commits
17b78e3c
Commit
17b78e3c
authored
19 years ago
by
Moe Jette
Browse files
Options
Downloads
Patches
Plain Diff
Adjust sleep time to work with any configured InactiveLimit.
parent
fbc52918
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
testsuite/expect/test1.7
+28
-2
28 additions, 2 deletions
testsuite/expect/test1.7
with
28 additions
and
2 deletions
testsuite/expect/test1.7
+
28
−
2
View file @
17b78e3c
...
...
@@ -10,7 +10,7 @@
# Note: This script generates and then deletes files in the working directory
# named test1.7.input, test1.7.output, and test1.7.error
############################################################################
# Copyright (C) 2002 The Regents of the University of California.
# Copyright (C) 2002
-6
The Regents of the University of California.
# Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER).
# Written by Morris Jette <jette1@llnl.gov>
# UCRL-CODE-217948.
...
...
@@ -41,11 +41,37 @@ set file_out "test$test_id.output"
set file_err "test$test_id.error"
set job_id 0
# NOTE: If you
chang
e sleep_time, change job time limits as well
# NOTE: If you
increas
e sleep_time, change job time limits as well
set sleep_time 180
print_header $test_id
#
# Make sure sleep time is no larger than InactiveLimit
set inactive_limit $sleep_time
log_user 0
spawn $scontrol show config
expect {
-re "InactiveLimit.*= ($number)" {
set inactive_limit $expect_out(1,string)
exp_continue
}
timeout {
send_user "\nFAILURE: scontrol not responding\n"
set exit_code 1
}
eof {
wait
}
}
log_user 1
if {$inactive_limit < $sleep_time} {
if {$inactive_limit != 0} {
set sleep_time $inactive_limit
send_user "\nReset job sleep time to $sleep_time seconds\n"
}
}
#
# Delete left-over input script plus stdout/err files
# Build input script file
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment