Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^4: Distributed FIFO queues?

by jettero (Monsignor)
on Aug 17, 2007 at 14:30 UTC ( [id://633308]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Distributed FIFO queues?
in thread Distributed FIFO queues?

For the record, I mistook the on_complete trigger from the example for sending a coderef to one of the job servers. Upon re-reading it, I see only the string code (1+2) goes to the servers... my bad.
use Gearman::Client; my $client = Gearman::Client->new; $client->job_servers('127.0.0.1', '10.0.0.1'); $taskset->add_task( "add" => "1+2", { on_complete => sub { ... } });

It's still pretty magical imo, but nolonger seems like some kind of dark arts.

-Paul

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2024-04-25 16:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found