On Wed, Mar 10, 2010 at 11:24 PM, Lyle <[email protected]> wrote:

>   ... this is going to reach the
> CGI timeout limit,

The long term solution to all actions like this is to use some way to
quickly schedule the work that will take a long time from the
interactive CGI script into some sort of queue and then have other
processes that take things off that queue to do the work after the
page has been returned.

One way to do this (reliably) in Perl is to use something like
TheSchwartz to poll a mysql database (see a CPAN mirror near you.)

You can either have a long-running job that pulls things off the
queue, or something that runs every so often from cron, or in a pinch,
you can have a page on your site that you can keep visiting that takes
a few items off the queue and processes them one by one (if you're
stuck with really bad hosting)

HTH.

Mark.

_______________________________________________
BristolBathPM mailing list
[email protected]
http://mailman.bristolbath.org/mailman/listinfo/bristolbathpm

Reply via email to