Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
E
ensembl-hive
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Jira
Jira
Merge Requests
7
Merge Requests
7
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ensembl-gh-mirror
ensembl-hive
Commits
ebef92d5
Commit
ebef92d5
authored
Jul 03, 2018
by
Brandon Walts
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'version/2.1' into version/2.2
parents
6dda6ab4
f113d2f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
modules/Bio/EnsEMBL/Hive/Meadow/LSF.pm
modules/Bio/EnsEMBL/Hive/Meadow/LSF.pm
+12
-2
No files found.
modules/Bio/EnsEMBL/Hive/Meadow/LSF.pm
View file @
ebef92d5
...
...
@@ -152,11 +152,21 @@ sub check_worker_is_alive_and_mine {
my
$wpid
=
$worker
->
process_id
();
my
$this_user
=
$ENV
{'
USER
'};
my
$cmd
=
qq{bjobs
$wpid -u $this_user 2>&1 | grep -v 'not found' | grep -v JOBID | grep -v EXIT
}
;
my
$cmd
=
qq{bjobs
-u $this_user $wpid 2>&1
}
;
my
@bjobs_out
=
qx/$cmd/
;
# warn "LSF::check_worker_is_alive_and_mine() running cmd:\n\t$cmd\n";
my
$is_alive_and_mine
=
qx/$cmd/
;
my
$is_alive_and_mine
=
0
;
foreach
my
$bjobs_line
(
@bjobs_out
)
{
unless
(
$bjobs_line
=~
/JOBID|DONE|EXIT/
)
{
# *SUSP, UNKWN, and ZOMBI are "alive" for the purposes of this call
# which is typically used to see if the process can be killed.
# Can't search for line containing the job id, since it may be
# formatted differently in bjob output than in $worker->process_id()
# (e.g. for array jobs), so we exclude the header by excluding "JOBID"
$is_alive_and_mine
=
1
;
}
}
return
$is_alive_and_mine
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment