in reply to Question about communicating with a running perl script

A fairly common technique is to use an SQL database to contain a job-queue, as well as step-control, time-stamping and status logging related to each job.   As the workers complete a step, they (in an SQL transaction ...) update the status table for the job that they are working on and perhaps alter their flow in some way.   For user status-reporting, a simple polling loop will usually suffice (the reads also being done within a transaction so that the data being read is atomically correct).

There are a number of batch job scheduling frameworks available in CPAN for Perl.

Replies are listed 'Best First'.
Re^2: Question about communicating with a running perl script
by Amblikai (Scribe) on Jul 06, 2015 at 18:44 UTC

    Thanks for the info, could you point me to one of the frameworks you mentioned?

      Just search "job queue" on http://metacpan.org. I have used TheSchwartz with some success before but it has been quite a long time and there are lots of new ones in the search results I do not know and might be worth trying/comparing.