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
fa74bae1
Commit
fa74bae1
authored
7 years ago
by
Morris Jette
Committed by
Danny Auble
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Sanity check in perl api to make sure we get a new structure back from the
perl api.
parent
990eb2e0
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
contribs/torque/pbsnodes.pl
+3
-1
3 additions, 1 deletion
contribs/torque/pbsnodes.pl
contribs/torque/qalter.pl
+3
-0
3 additions, 0 deletions
contribs/torque/qalter.pl
contribs/torque/qsub.pl
+3
-0
3 additions, 0 deletions
contribs/torque/qsub.pl
with
9 additions
and
1 deletion
contribs/torque/pbsnodes.pl
+
3
−
1
View file @
fa74bae1
...
...
@@ -91,7 +91,9 @@ Main:
# Use sole remaining argument as nodeIds
my
@nodeIds
=
@ARGV
;
my
$slurm
=
Slurm::
new
();
if
(
!
$slurm
)
{
die
"
Problem loading slurm.
\n
";
}
# handle all of the node update operations
if
(
defined
$clear
||
defined
$offline
||
defined
$reset
)
{
...
...
This diff is collapsed.
Click to expand it.
contribs/torque/qalter.pl
+
3
−
0
View file @
fa74bae1
...
...
@@ -73,6 +73,9 @@ if (@ARGV < 1) {
pod2usage
(
-
message
=>
"
Missing Job ID
",
-
verbose
=>
0
);
}
else
{
$slurm
=
Slurm::
new
();
if
(
!
$slurm
)
{
die
"
Problem loading slurm.
\n
";
}
$resp
=
$slurm
->
get_end_time
(
$job_id
);
if
(
not
defined
(
$resp
))
{
pod2usage
(
-
message
=>
"
Job id
$job_id
not valid!
",
-
verbose
=>
0
);
...
...
This diff is collapsed.
Click to expand it.
contribs/torque/qsub.pl
+
3
−
0
View file @
fa74bae1
...
...
@@ -418,6 +418,9 @@ if ($interactive) {
# If block is true wait for the job to finish
my
(
$resp
,
$count
);
my
$slurm
=
Slurm::
new
();
if
(
!
$slurm
)
{
die
"
Problem loading slurm.
\n
";
}
if
(
(
lc
(
$block
)
eq
"
true
"
)
and
(
$command_exit_status
==
0
)
)
{
sleep
2
;
my
(
$job
)
=
$slurm
->
load_job
(
$job_id
);
...
...
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