Skip to content
Snippets Groups Projects
Commit b9a49d69 authored by Leo Gordon's avatar Leo Gordon
Browse files

store and retrieve hive_meta.'hive_use_param_stack'

parent 7633e335
No related branches found
No related tags found
No related merge requests found
......@@ -143,6 +143,17 @@ sub hive_use_triggers { # getter only, not setter
}
sub hive_use_param_stack { # getter only, not setter
my $self = shift @_;
unless( defined($self->{'_hive_use_param_stack'}) ) {
my $hive_use_param_stack = $self->get_MetaAdaptor->fetch_value_by_key( 'hive_use_param_stack' );
$self->{'_hive_use_param_stack'} = $hive_use_param_stack || 0;
}
return $self->{'_hive_use_param_stack'};
}
sub get_available_adaptors {
my %pairs = (
......
......@@ -98,6 +98,7 @@ sub default_options {
'pipeline_name' => 'hive_generic',
'hive_use_triggers' => 0, # there have been a few cases of big pipelines misbehaving with triggers on, let's keep the default off.
'hive_use_param_stack' => 0, # do not reconstruct the calling stack of parameters by default (yet)
'hive_force_init' => 0, # setting it to 1 will drop the database prior to creation (use with care!)
'pipeline_db' => {
......@@ -219,6 +220,7 @@ sub hive_meta_table {
return {
'hive_sql_schema_version' => Bio::EnsEMBL::Hive::DBSQL::SqlSchemaAdaptor->get_code_sql_schema_version(),
'hive_pipeline_name' => $self->o('pipeline_name'),
'hive_use_param_stack' => $self->o('hive_use_param_stack'),
};
}
......
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