Skip to content

Commit

Permalink
Sleep until all the workers are dead
Browse files Browse the repository at this point in the history
  • Loading branch information
muffato committed Jan 5, 2017
1 parent 2162066 commit 79ecc5b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion t/10.pipeconfig/longmult.t
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,11 @@ foreach my $long_mult_version ( @pipeline_cfgs ) {
sprintf("%s*%s=%s", $_->{'a_multiplier'}, $_->{'b_multiplier'}, $_->{'result'}) );
}

sleep(2) if $pipeline_url =~ /^pgsql:/;
# In case workers are still alive
while ($hive_dba->get_WorkerAdaptor->count_all("status != 'DEAD'")) {
sleep(1);
}

$hive_dba->dbc->disconnect_if_idle();
run_sql_on_db($pipeline_url, 'DROP DATABASE');
}
Expand Down

0 comments on commit 79ecc5b

Please sign in to comment.