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
0ab278b3
Commit
0ab278b3
authored
9 years ago
by
David Bigagli
Browse files
Options
Downloads
Patches
Plain Diff
Revert "Fix bjobs and bsub."
This reverts commit
2d13e016
.
parent
a40f7200
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
contribs/openlava/bjobs.pl
+2
-4
2 additions, 4 deletions
contribs/openlava/bjobs.pl
contribs/openlava/bsub.pl
+22
-1
22 additions, 1 deletion
contribs/openlava/bsub.pl
with
24 additions
and
5 deletions
contribs/openlava/bjobs.pl
+
2
−
4
View file @
0ab278b3
...
...
@@ -92,7 +92,7 @@ sub _print_job_brief
_shrink_char
(
\
$job
->
{'
nodes
'},
11
);
_shrink_char
(
\
$job
->
{'
name
'},
10
);
printf
("
\n
%-7.7s %-7.7s %-5.5s %-10.10s %-11.11s %-11.11s %-10s %-12.12s
",
printf
("
\n
%-7.7s %-7.7s %-5.5s %-10.10s %-11.11s %-11.11s %-10s %-12.12s
\n
",
$job
->
{'
job_id
'},
$job
->
{'
user_name
'},
$job
->
{'
job_state_str
'},
$job
->
{'
partition
'},
$job
->
{'
alloc_node
'},
$job
->
{'
nodes
'},
...
...
@@ -164,9 +164,7 @@ foreach my $job (@{$resp->{job_array}}) {
}
if
(
!
$line
)
{
print
"
No unfinished job found
\n
";
}
else
{
print
"
\n
";
print
"
No unfinished job found
\n
";
}
exit
0
;
...
...
This diff is collapsed.
Click to expand it.
contribs/openlava/bsub.pl
+
22
−
1
View file @
0ab278b3
...
...
@@ -143,8 +143,16 @@ if (!$script) {
}
}
if
(
_check_script
(
$script
))
{
$command
=
$base_command
=
"
$sbatch
";
}
else
{
$command
=
$base_command
=
"
$srun
";
$command
=
$base_command
=
"
$sbatch
";
# We need to find out the jobid we got
$command
.=
"
-v
";
$interactive
=
1
;
}
$command
.=
"
-e
$err_path
"
if
$err_path
;
$command
.=
"
-o
$out_path
"
if
$out_path
;
...
...
@@ -278,6 +286,19 @@ sub _parse_procs {
}
}
sub
_check_script
{
my
(
$script
)
=
@_
;
if
(
open
(
my
$file
,
"
<
$script
"))
{
my
$first_line
=
<
$file
>
;
close
$file
;
return
(
$first_line
=~
/\#!/
);
}
return
"";
}
sub
_parse_node_list
{
my
(
$node_string
)
=
@_
;
my
$hostlist
=
"";
...
...
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