Subject: | Queue lifetime feature && purge feature |
Date: | Sun, 29 Jul 2012 14:55:21 +0400 |
To: | <bug-queue-dbi [...] rt.cpan.org> |
From: | "Sergey Bond" <bond-spb [...] mail.ru> |
Hi Guillaume,
1. how about lifetime constraint:
my $queue = Queue::DBI->new(
'queue_name' => 'q1',
'database_handle' => $dbh,
'cleanup_timeout' => 600,
'lifetime' => 3600 #sec
);
See example http://wiki.qmailtoaster.com/index.php/Queuelifetime
2. it would be nice to have physicaly remove old queue elements:
$queue->purge('max_requeue_count' => 10);
$queue->purge('lifetime' => 3600);
Thanks for your module
Regards
Sergey