TheSchwartz - TheSchwartz->list_all_jobs()?

Posted on Sat May 19 00:42:00 2007 by dlo
TheSchwartz->list_all_jobs()?
Mr. Fitzpatrick,

We at PictureTrail.com are implementing a job queue system and we are currently deploying "TheSchwartz". After some work with it and good bout with Mr. Coffee we found that there wasn't any way of listing all jobs.

TheSchwartz->list_jobs() requires a funcname to list jobs. I can think of several reasons why there may not be a TheSchwartz->list_all_jobs().


1.We should know what we are putting in there.
2.Security: We shouldn't be knowing what OTHER people are putting in there. See #1.

I find that we need a way of listing all jobs, for the purposes of being able to monitor the job queue:


1.Find jobs that were erroneously listed without a proper (known) funcname.
2.Review the performance of the worker processes.
3.Review the wait time of jobs.

Unless you already have plans to write code to provide a list, I would like to propose the creation of "TheSchwartz::List". The primary function of TheSchwartz::List would be just to provide a current listing of content in the work queue.

We would create the initial code with the listing module, and release it under the same license as "TheSchwartz".

Please get back to us at your earliest convenience.

Regards,


Daniel Lo
daniel_lo at picturetrail dot com

Jay Shirley
jshirley at picturetrail dot com

Write a response