-
-
24 Aug 2018 14:57:31 UTC
- Distribution: Gearman
- Module version: 2.004.015
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Repository
- Issues (0)
- Testers
- Kwalitee
Bus factor: 0- License: perl_5
- Perl: v5.8.1
- Activity
24 month- Tools
- Download (47.7KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Carp
- IO::Select
- IO::Socket::IP
- IO::Socket::SSL
- List::MoreUtils
- POSIX
- Scalar::Util
- Socket
- Storable
- String::CRC32
- Time::HiRes
- fields
- version
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Gearman::Taskset - a taskset in Gearman, from the point of view of a Gearman::Client
SYNOPSIS
use Gearman::Client; my $client = Gearman::Client->new; # waiting on a set of tasks in parallel my $ts = $client->new_task_set; $ts->add_task( "add" => "1+2", {...}); $ts->wait();
DESCRIPTION
Gearman::Taskset is a Gearman::Client's representation of tasks queue
METHODS
new($client)
wait(%opts)
Waits for a response from the job server for any of the tasks listed in the taskset. Will call the on_* handlers for each of the tasks that have been completed, updated, etc. Doesn't return until everything has finished running or failing.
add_task(Gearman::Task)
add_task($func, <$scalar | $scalarref>, <$uniq | $opts_hr>
Adds a task to the taskset. Three different calling conventions are available.
$opts_hr
see Gearman::TaskModule Install Instructions
To install Gearman::Job, copy and paste the appropriate command in to your terminal.
cpanm Gearman::Job
perl -MCPAN -e shell install Gearman::Job
For more information on module installation, please visit the detailed CPAN module installation guide.