in reply to Queuing system for running a perl program

Well, why re-invent the wheel? Looks like a task for beanstalkd or Gearman actually. These are work queues or job servers - you connect to it from PHP side and place a job request, and your Perl scripts connect to it to listen for such requests. It's up to you when and how to perform the task, and you can even give some feedback on the task result.

As far as I know clients are available for both applications, both for PHP and for Perl. I'd suggest to start from beanstalkd as it is the simpler one.

  • Comment on Re: Queuing system for running a perl program

Replies are listed 'Best First'.
Re^2: Queuing system for running a perl program
by Anonymous Monk on May 08, 2014 at 15:01 UTC
    It is such informative to learn by your experience fellow Monks!
    Sorry I didn't mention it earlier... My calculations (given the actual machine that the server will run on) show that it might take something like 7-8 mins, 10 at tops but quite uncommon cases... Usually no more than 3-4 minutes. That's why I was thinking the "Please wait" page, or is this time too much?
    However, these 3-4 minutes I am writing here as the typical response time that I am speculating, is based on the assumption that only 1 user will run at a time, else this time gets prolonged (I mean if I don't do any queueing system underneath).