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
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
Hide 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
;
...
...
@@ -680,17 +673,17 @@ 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
$sth
=
$self
->
prepare
(
$sql
);
$sth
->
execute
()
;
(
my
$
load
)
=
$sth
->
fetchrow_array
(
);
$sth
->
finish
;
$load
=
0
unless
(
$load
);
#
print("current hive load = $load\n")
;
return
$load
;
my
$self
=
shift
;
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
(
);
$sth
->
finish
;
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