Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
ensembl-gh-mirror
ensembl-hive
Commits
a1d37d9e
Commit
a1d37d9e
authored
Mar 20, 2012
by
Leo Gordon
Browse files
code optimization suggested by Matthieu
parent
4da57a10
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
modules/Bio/EnsEMBL/Hive/DBSQL/AnalysisJobAdaptor.pm
modules/Bio/EnsEMBL/Hive/DBSQL/AnalysisJobAdaptor.pm
+3
-2
No files found.
modules/Bio/EnsEMBL/Hive/DBSQL/AnalysisJobAdaptor.pm
View file @
a1d37d9e
...
...
@@ -591,8 +591,9 @@ sub release_undone_jobs_from_worker {
my
$cod
=
$worker
->
cause_of_death
();
$msg
||=
"
GarbageCollector: The worker died because of
$cod
";
while
(
my
(
$job_id
,
$retry_count
)
=
$sth
->
fetchrow_array
())
{
my
$resource_overusage
=
(
$cod
eq
'
MEMLIMIT
')
||
(
$cod
eq
'
RUNLIMIT
'
and
$worker
->
work_done
()
==
0
);
my
$resource_overusage
=
(
$cod
eq
'
MEMLIMIT
')
||
(
$cod
eq
'
RUNLIMIT
'
and
$worker
->
work_done
()
==
0
);
while
(
my
(
$job_id
)
=
$sth
->
fetchrow_array
())
{
my
$passed_on
=
0
;
# the flag indicating that the garbage_collection was attempted and was successful
...
...
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