Skip to content
Snippets Groups Projects
Commit a7f94d54 authored by Jessica Severin's avatar Jessica Severin
Browse files

default to disconnect_when_inactive(0). So RunnableDB's must now

turn disconnect ON, when there will be lots of them and they have
moments when there will be little DB activity.  The new disconnect system
disconnects so much, that it's slower than before, so must use sparingly.
parent d99291c5
No related branches found
No related tags found
No related merge requests found
......@@ -64,15 +64,13 @@ our @ISA = qw(Bio::EnsEMBL::Pipeline::RunnableDB);
sub fetch_input {
my $self = shift;
$self->db->dbc->disconnect_when_inactive(0);
return 1;
}
sub run
{
my $self = shift;
#call superclasses run method
return $self->SUPER::run();
return 1;
}
sub write_output {
......
......@@ -194,7 +194,7 @@ sub _get_db_connection
$module = "Bio::EnsEMBL::Pipeline::DBSQL::DBAdaptor" if($type eq 'pipeline');
$dba = "$module"->new (
-disconnect_when_inactive => 1,
-disconnect_when_inactive => 0,
-driver => 'mysql',
-user => $user,
-pass => $pass,
......
......@@ -283,7 +283,7 @@ sub run
}
$self->print_worker();
$self->db->dbc->disconnect_when_inactive(1);
$self->db->dbc->disconnect_when_inactive(0);
my $jobDBA = $self->db->get_AnalysisJobAdaptor;
my $alive=1;
......
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