Req #16264 [Fbk->WFx]: Work in progress flag

From: Date: Thu, 17 Sep 2009 22:55:36 +0000
Subject: Req #16264 [Fbk->WFx]: Work in progress flag
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-1671@lists.php.net to get a copy of this message
Edit report at http://pear.php.net/bugs/bug.php?id=16264&edit=1 ID: 16264 Updated by: till@php.net Reported By: simon at lan2k dot org Summary: Work in progress flag -Status: Feedback +Status: Wont fix Type: Feature/Change Request Package: Mail_Queue Operating System: Any Package Version: 1.2.2 PHP Version: 5.2.5 Assigned To: till -Roadmap Versions: 1.2.4 +Roadmap Versions: New Comment: -Status: Feedback +Status: Wont fix -Roadmap Versions: 1.2.4 +Roadmap Versions: I moved this to the TODO list for Mail_Queue2. http://code.google.com/p/mail-queue2/ Previous Comments: ------------------------------------------------------------------------ [2009-09-16 15:18:59] till I'm thinking a Net_Gearman driver could be more appropriate. ------------------------------------------------------------------------ [2009-09-04 01:51:00] till -Roadmap Versions: +Roadmap Versions: 1.2.4 ------------------------------------------------------------------------ [2009-06-29 22:56:43] till -Status: Open +Status: Feedback -Assigned To: +Assigned To: till Ok, basically you'd like to know if an email is already being processed, right? And you want to run multiple workers against the table. I'm not sure on a locking mechanism since this would add a lot, lot more queries in a single run and way more activity on the table. IMHO, in case of MySQL it would also require that we shift to INNODB vs. MyISAM because otherwise it would constantly lock up the table and cause mayhem. Do you have a solution in mind? If so, please elaborate. ------------------------------------------------------------------------ [2009-05-26 16:47:10] simfre Description: ------------ I'd like to see a WIP-flag in the DB to make sure that the same record is not read multiple times. I'm currently using this script with a enormous list of mails to be sent and need to use multiple servers handling the queue. This is also required when using a cron script since there can be delays, causing the next cron session to start up before the previous one ended. Test script: --------------- I suggest that the flag should be some sort of server or session ID, could be random. The idea being to update records with this key first and then select them. This would effectively remove the scenario where srv1 fetches a list of mails and while processing them srv2 fetches some of the same records. ------------------------------------------------------------------------ -- Edit this bug report at http://pear.php.net/bugs/bug.php?id=16264&edit=1

« previous php.pear.bugs (#1671) next »