Commit 955080db authored by Matthieu Muffato's avatar Matthieu Muffato
Browse files

"execute_writes" is a property of a Worker, not a Runnable

parent a15e7dd8
......@@ -142,7 +142,7 @@ sub life_cycle {
$self->run;
$job_partial_timing{'RUN'} = $partial_stopwatch->pause->get_elapsed;
if($self->execute_writes) {
if($self->worker->execute_writes) {
$self->enter_status('WRITE_OUTPUT');
$partial_stopwatch->restart();
$self->write_output;
......@@ -362,20 +362,10 @@ sub worker {
}
=head2 execute_writes
Title : execute_writes
Usage : $self->execute_writes( 1 );
Function: getter/setter for whether we want the 'write_output' method to be run
Returns : boolean
=cut
sub execute_writes {
my $self = shift;
$self->{'_execute_writes'} = shift if(@_);
return $self->{'_execute_writes'};
return $self->worker->execute_writes(@_);
}
......
......@@ -55,7 +55,6 @@ sub standaloneJob {
my $runnable_object = $runnable_module->new($flags->{debug}, $language, $module_or_file); # Only GuestProcess will read the arguments
die "Runnable $module_or_file not created\n" unless $runnable_object;
$runnable_object->execute_writes(not $flags->{no_write});
$runnable_object->worker($worker);
my $hive_pipeline = Bio::EnsEMBL::Hive::HivePipeline->new();
......
......@@ -646,7 +646,6 @@ sub specialize_and_compile_wrapper {
$runnable_object->db( $self->adaptor->db );
$runnable_object->worker( $self );
$runnable_object->execute_writes( $self->execute_writes );
$self->runnable_object( $runnable_object );
$self->enter_status('READY');
......
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