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
6f85948d
Commit
6f85948d
authored
Oct 05, 2012
by
Leo Gordon
Browse files
fetch_failed_workers() is dropped as no longer used, get_hive_current_load() cosmetically touched
parent
edf72142
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
18 deletions
+11
-18
modules/Bio/EnsEMBL/Hive/Queen.pm
modules/Bio/EnsEMBL/Hive/Queen.pm
+11
-18
No files found.
modules/Bio/EnsEMBL/Hive/Queen.pm
View file @
6f85948d
...
...
@@ -457,13 +457,6 @@ sub fetch_overdue_workers {
}
sub
fetch_failed_workers
{
my
$self
=
shift
;
return
$self
->
fetch_all
(
"
cause_of_death='FATALITY'
"
);
}
sub
fetch_all_dead_workers_with_jobs
{
my
$self
=
shift
;
...
...
@@ -681,16 +674,16 @@ sub get_num_failed_analyses {
sub
get_hive_current_load
{
my
$self
=
shift
;
my
$sql
=
"
SELECT sum(1/s.hive_capacity) FROM worker w, analysis_stats s
"
.
"
WHERE w.analysis_id=s.analysis_id and w.cause_of_death =''
"
.
"
AND s.hive_capacity>0
";
my
$sql
=
qq{
SELECT sum(1/hive_capacity)
FROM worker JOIN analysis_stats USING(analysis_id)
WHERE cause_of_death ='' AND hive_capacity>0
}
;
my
$sth
=
$self
->
prepare
(
$sql
);
$sth
->
execute
();
(
my
$load
)
=
$sth
->
fetchrow_array
();
my
(
$load
)
=
$sth
->
fetchrow_array
();
$sth
->
finish
;
$load
=
0
unless
(
$load
);
# print("current hive load = $load\n");
return
$load
;
return
(
$load
||
0
);
}
...
...
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