Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ensembl-gh-mirror
ensembl-hive
Commits
4d7032b1
Commit
4d7032b1
authored
Sep 20, 2010
by
Leo Gordon
Browse files
record the attempt of gc_dataflow
parent
8fdee647
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
modules/Bio/EnsEMBL/Hive/DBSQL/AnalysisJobAdaptor.pm
modules/Bio/EnsEMBL/Hive/DBSQL/AnalysisJobAdaptor.pm
+5
-2
No files found.
modules/Bio/EnsEMBL/Hive/DBSQL/AnalysisJobAdaptor.pm
View file @
4d7032b1
...
...
@@ -554,8 +554,6 @@ sub release_undone_jobs_from_worker {
my
$cod
=
$worker
->
cause_of_death
();
my
$msg
=
"
GarbageCollector: The worker died because of
$cod
";
while
(
my
(
$job_id
,
$retry_count
)
=
$sth
->
fetchrow_array
())
{
$self
->
db
()
->
get_JobMessageAdaptor
()
->
register_message
(
$job_id
,
$msg
,
1
);
my
$resource_overusage
=
(
$cod
eq
'
MEMLIMIT
')
or
(
$cod
eq
'
RUNLIMIT
'
and
$worker
->
work_done
()
==
0
);
my
$passed_on
=
0
;
# the flag indicating that the garbage_collection was attempted and was successful
...
...
@@ -570,6 +568,11 @@ sub release_undone_jobs_from_worker {
$passed_on
=
$self
->
gc_dataflow
(
$worker
->
analysis
->
dbID
(),
$job_id
,
$branch_code
);
}
if
(
$passed_on
)
{
$msg
.=
'
, performing gc_dataflow
';
}
$self
->
db
()
->
get_JobMessageAdaptor
()
->
register_message
(
$job_id
,
$msg
,
not
$passed_on
);
unless
(
$passed_on
)
{
$self
->
release_and_age_job
(
$job_id
,
$max_retry_count
,
not
$resource_overusage
);
}
...
...
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