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
169946c2
Commit
169946c2
authored
14 years ago
by
Danny Auble
Browse files
Options
Downloads
Patches
Plain Diff
temporary change for handling the lag for jobs being started in the dbd
parent
256e883c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
testsuite/expect/globals
+33
-0
33 additions, 0 deletions
testsuite/expect/globals
testsuite/expect/test12.4
+11
-1
11 additions, 1 deletion
testsuite/expect/test12.4
testsuite/expect/test21.23
+16
-0
16 additions, 0 deletions
testsuite/expect/test21.23
with
60 additions
and
1 deletion
testsuite/expect/globals
+
33
−
0
View file @
169946c2
...
...
@@ -822,6 +822,39 @@ proc test_account_storage { } {
return $account_storage
}
################################################################
#
# Proc: test_using_slurmdbd
#
# Purpose: Since there is a lag at which the slurmdbd processes a job start
# we need to wait a bit to make sure the data has been set before proceeding.
# This is based upon
# the value of AccountingStorageType in the slurm.conf.
#
# Returns 1 if the system is running with slurmdbd, 0 otherwise
#
################################################################
proc test_using_slurmdbd { } {
global scontrol
log_user 0
set account_storage 0
spawn $scontrol show config
expect {
-re "(accounting_storage/slurmdbd)" {
set account_storage 1
exp_continue
}
eof {
wait
}
}
log_user 1
return $account_storage
}
################################################################
#
# Proc: priority_type
...
...
This diff is collapsed.
Click to expand it.
testsuite/expect/test12.4
+
11
−
1
View file @
169946c2
...
...
@@ -51,6 +51,9 @@ if { [string compare [check_accounting_admin_level] "Administrator"] } {
send_user "\nWARNING: This test can't be run without being an Accounting administrator.\nUse sacctmgr mod user \$USER_NAME set admin=admin.\n"
exit 0
}
set using_slurmdbd [test_using_slurmdbd]
set cluster [get_cluster_name]
#
# Identify the user and his current default account
...
...
@@ -185,6 +188,12 @@ if {$job_id == 0} {
set exit_code 1
}
}
if {$using_slurmdbd} {
sleep 30
}
################################################################
#
# Proc: sacct_job
...
...
@@ -198,11 +207,12 @@ if {$job_id == 0} {
################################################################
proc sacct_job { soption job_id} {
global sacct
global sacct
using_slurmdbd
set debug 0
set exit_code 0
set matches 0
set not_support 0
send_user "sacct -$soption -p -j $job_id\n"
if { $soption == "-brief" || $soption == "b" } {
...
...
This diff is collapsed.
Click to expand it.
testsuite/expect/test21.23
+
16
−
0
View file @
169946c2
...
...
@@ -38,6 +38,7 @@ set file_in "test.$test_id.input"
set test_acct "test_acct"
set wk 21test
set timeout 60
print_header $test_id
#
...
...
@@ -57,6 +58,8 @@ if { [string compare [check_accounting_admin_level] "Administrator"] } {
exit 0
}
set using_slurmdbd [test_using_slurmdbd]
set cn [get_cluster_name]
#
...
...
@@ -161,6 +164,10 @@ expect {
}
}
if {$using_slurmdbd} {
sleep 30
}
spawn $sacct -j $job_id --fields=wckey
expect {
-re "$wk" {
...
...
@@ -221,6 +228,10 @@ if {$job_id == 0} {
wait
}
}
if {$using_slurmdbd} {
sleep 30
}
spawn $sacct -j $job_id --fields=wckey
expect {
-re "$wk" {
...
...
@@ -278,6 +289,11 @@ if {$job_id == 0} {
wait
}
}
if {$using_slurmdbd} {
sleep 30
}
spawn $sacct -j $job_id --fields=wckey
expect {
-re "$wk" {
...
...
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