On 9/1/05, Bob Dodds <[EMAIL PROTECTED]> wrote: > To implement I want to use IPC::DirQueue. >[...] > It's site-specific spaghetti right now.
IPC::DirQueue uses FIFO, but in e-mail processing we want to backoff our retries. I implemented a directory-based queueing system for TipJar::MTA, you're welcome to chip it out and wrap a nice interface around it. It uses C<rename> to put redeferred jobs into their new schedule slots, so its lighter on the FS than if it had to write them out again, plus we can figure a jobs age, for determining backoff length, by checking the file's mtime. Altering it to use a directory instead of a file would allow arbitrary additional info to associate with a task, just like IPC::DirQueue, except with backoff instead of FIFO. Or maybe my brief scan of the IPC::DirQueue perldoc missed that it can schedule things to enter the do-soon state at arbitrary points in the future. David
