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
1086a637
Commit
1086a637
authored
Jul 13, 2004
by
Jessica Severin
Browse files
extended the Queen::print_hive_status to also show counts and types of
workers currently running
parent
5f956e8e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
modules/Bio/EnsEMBL/Hive/Queen.pm
modules/Bio/EnsEMBL/Hive/Queen.pm
+12
-0
scripts/lsf_beekeeper.pl
scripts/lsf_beekeeper.pl
+2
-1
No files found.
modules/Bio/EnsEMBL/Hive/Queen.pm
View file @
1086a637
...
...
@@ -354,6 +354,18 @@ sub print_hive_status
foreach
my
$analysis_stats
(
@
{
$allStats
})
{
$analysis_stats
->
print_stats
;
}
print
("
HIVE LIVE WORKERS====
\n
");
my
$sql
=
"
select logic_name, count(*) from hive, analysis
"
.
"
where hive.analysis_id=analysis.analysis_id and hive.cause_of_death=''
"
.
"
group by hive.analysis_id
";
my
$sth
=
$self
->
prepare
(
$sql
);
$sth
->
execute
();
while
((
my
$logic_name
,
my
$count
)
=
$sth
->
fetchrow_array
())
{
printf
("
%20s : %d workers
\n
",
$logic_name
,
$count
);
}
print
("
=====================
\n
");
$sth
->
finish
;
}
...
...
scripts/lsf_beekeeper.pl
View file @
1086a637
...
...
@@ -220,6 +220,7 @@ sub run_autonomously {
$queen
->
update_analysis_stats
();
$queen
->
check_blocking_control_rules
;
$queen
->
print_hive_status
();
my
$load
=
$queen
->
get_hive_current_load
();
my
$count
=
$queen
->
get_num_needed_workers
();
...
...
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