satishkumaryarru has asked for the wisdom of the Perl Monks concerning the following question:
eval { local $SIG{ALRM} = sub { die "alarm\n" }; alarm $timeout_in_seconds; $mtd_prod_sqlQuery_delete->execute($mtd_replica_row[0]); alarm 0; }; if ($@) { print "Delete from MTD Prod Timeout\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using Alarms for MySQL DB
by Mr. Muskrat (Canon) on May 26, 2016 at 22:01 UTC | |
by tye (Sage) on May 26, 2016 at 22:28 UTC |