Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Question about communicating with a running perl script

by sundialsvc4 (Abbot)
on Jul 06, 2015 at 18:09 UTC ( [id://1133405]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1133405]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2024-04-23 21:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found