One way is to use another tool. If you look at it just right, lpr is a
general
purpose job scheduler. It checks a lock resource, and allows only one job
to acquire the lock, etc.
The best cookbook I can find to this idea is:
http://www.faqs.org/docs/Linux-mini/Fax-Server.html
Your main problem then becomes how to efficiently detect that the
spooled job is finished.
jim penny
[EMAIL PROTECTED] wrote on 09/26/2006 09:14:11 AM:
Hi
I need to produce PDFs with reportlab.
reportlab is not threadsafe.
(http://two.pairlist.net/pipermail/reportlab-users/2006-June/005037.html)
I think I need a way to queue or generate a lockfile on requests for
PDFs so that only one-at-a-time is generated.
I'm hoping that there is a utility for this already, but search in the
source for queue or serialize or lock gets me a lot of stuff that does
not seem to relate to what I want.
This looks like it would be a relatively simple utility. Has this been
done yet? Any hints?
-Jim Washington
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users