Skip to content
Snippets Groups Projects
Commit 1c4579c9 authored by Matthieu Muffato's avatar Matthieu Muffato
Browse files

bugfix: release the unfinished batch if the worker is contaminated

This is done by setting "self_burial" to 0
parent d6bf4791
No related branches found
No related tags found
No related merge requests found
...@@ -542,7 +542,9 @@ sub run { ...@@ -542,7 +542,9 @@ sub run {
} }
} }
$self->adaptor->register_worker_death($self, 1); # The second arguments ("self_burial") controls whether we need to
# release the current (unfinished) batch
$self->adaptor->register_worker_death($self, ($self->cause_of_death eq 'CONTAMINATED' ? 0 : 1));
if($self->debug) { if($self->debug) {
$self->worker_say( 'AnalysisStats : '.$self->current_role->analysis->stats->toString ) if( $self->current_role ); $self->worker_say( 'AnalysisStats : '.$self->current_role->analysis->stats->toString ) if( $self->current_role );
......
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