Skip to content
Snippets Groups Projects
Commit 1d91f12f authored by Abel Ureta-Vidal's avatar Abel Ureta-Vidal
Browse files

Now takes into account lsf_pending jobs if any, before deciding to do a hard...

Now takes into account lsf_pending jobs if any, before deciding to do a hard sync. Added specific exit message when beekeeper is running a specific analysis that is completed
parent 15940b3a
No related branches found
No related tags found
No related merge requests found
......@@ -430,12 +430,14 @@ sub run_autonomously {
my $runCount = $queen->get_num_running_workers();
my $load = $queen->get_hive_current_load();
my $count = $queen->get_num_needed_workers($analysis);
my $lsf_pending_count = 0;
if($self->{'beekeeper_type'} eq 'LSF') {
$count = $count - $self->get_lsf_pending_count();
$lsf_pending_count = $self->get_lsf_pending_count();
$count = $count - $lsf_pending_count;
}
if($load==0 and $count==0 and $runCount==0) {
if($load==0 and $count==0 and $runCount==0 and $lsf_pending_count==0) {
#nothing running and nothing todo => do hard resync
print("*** nothing is happening => do a hard resync\n");
if($analysis) {
......@@ -446,7 +448,10 @@ sub run_autonomously {
$queen->synchronize_hive();
}
$count = $queen->get_num_needed_workers($analysis);
if($count==0) {
if($count==0 && $analysis) {
printf("Nothing left to do for analysis ".$analysis->logic_name.". DONE!!\n\n");
$loopit=0;
} elsif ($count == 0) {
printf("Nothing left to do. DONE!!\n\n");
$loopit=0;
}
......
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