Commit 045a9d7a authored by Jessica Severin's avatar Jessica Severin
Browse files

split print_hive_status so that there are 2 methods print_analysis_status

and print_running_worker_status.
parent fec86879
...@@ -450,6 +450,14 @@ sub get_num_needed_workers { ...@@ -450,6 +450,14 @@ sub get_num_needed_workers {
sub print_hive_status sub print_hive_status
{
my $self = shift;
$self->print_analysis_status;
$self->print_running_worker_status;
}
sub print_analysis_status
{ {
my $self = shift; my $self = shift;
...@@ -458,6 +466,12 @@ sub print_hive_status ...@@ -458,6 +466,12 @@ sub print_hive_status
foreach my $analysis_stats (@{$allStats}) { foreach my $analysis_stats (@{$allStats}) {
$analysis_stats->print_stats; $analysis_stats->print_stats;
} }
}
sub print_running_worker_status
{
my $self = shift;
print("HIVE LIVE WORKERS====\n"); print("HIVE LIVE WORKERS====\n");
my $sql = "select logic_name, count(*) from hive, analysis ". my $sql = "select logic_name, count(*) from hive, analysis ".
...@@ -469,11 +483,10 @@ sub print_hive_status ...@@ -469,11 +483,10 @@ sub print_hive_status
printf("%20s : %d workers\n", $logic_name, $count); printf("%20s : %d workers\n", $logic_name, $count);
} }
print("=====================\n"); print("=====================\n");
$sth->finish; $sth->finish;
} }
# #
# INTERNAL METHODS # INTERNAL METHODS
# #
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment