# set upper bound on number of rows in the resultset
# before Clark refuses to try to draw a chart
my $max_rows_for_charts = 1000;
+my $statement_timeout = 10 * 60 * 1000;
GetOptions(
"daemon" => \$daemon,
"sleep=i" => \$sleep_interval,
"concurrency=i" => \$count,
"max-rows-for-charts=i" => \$max_rows_for_charts,
+ "statement-timeout=i" => \$statement_timeout,
"bootstrap|boostrap=s" => \$config,
"lockfile=s" => \$lockfile,
);
RaiseError => 1
}
);
+ $data_dbh->do('SET statement_timeout = ?', {}, $statement_timeout);
try {
$state_dbh->do(<<' SQL',{}, $r->{id});