Skip to content
Snippets Groups Projects
Commit 2236861b authored by Monika Komorowska's avatar Monika Komorowska
Browse files

Added method 'set_reconnect_when_lost'

parent 3dd5f4a4
No related branches found
No related tags found
No related merge requests found
......@@ -1205,6 +1205,23 @@ sub set_disconnect_when_inactive{
}
}
=head2 set_reconnect_when_lost
Example : Bio::EnsEMBL::Registry->set_reconnect_when_lost();
Description: Set the flag to make sure that the database connection is not lost before it's used.
This is useful for long running jobs (over 8hrs).
Returntype : none
Exceptions : none
Status : Stable
=cut
sub set_reconnect_when_lost{
foreach my $dba ( @{get_all_DBAdaptors()}){
my $dbc = $dba->dbc;
$dbc->reconnect_when_lost(1);
}
}
=head2 disconnect_all
......
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