in reply to Re^2: A per-instance shared queue among forked child processes?
in thread A per-instance shared queue among forked child processes?
my $sth = $dbh->prepare(q{INSERT INTO TABLE QUEUE SET PARENTID=?, PAYL +OAD=?}); $sth->execute($parentid, $payload) or die $dbh->errstr;
Before each new instance of a parent is run, it should simply scan the table to see if there are any old records left over from a previous process with the same pid.
|
|---|