TT#71908 increase wait timeout when rendering invoicepdf

Change-Id: I6de865819a96d432bfb231c9bd19a2d309b32d2f
(cherry picked from commit 312d9e7534)
changes/90/35990/1
Rene Krenn 6 years ago
parent f08c6a11e1
commit 1a835f3aca

@ -20,6 +20,17 @@ sub set_transaction_isolation {
);
}
sub set_wait_timeout {
my ($self,$timeout) = @_;
return $self->storage->dbh_do(
sub {
my ($storage, $dbh, @args) = @_;
$dbh->do("SET SESSION wait_timeout = " . $args[0]);
},
$timeout,
);
}
1;
__END__

@ -53,6 +53,7 @@ sub create_invoice{
my $invoice;
my $schema = $c->model('DB');
$schema->set_wait_timeout(1800);
#this has to be refactored - select a contract balance instead of a "period"
my $balance = NGCP::Panel::Utils::ProfilePackages::get_contract_balance(
c => $c,

Loading…
Cancel
Save