Proc::JobQueue::Sequence - do a sequence of background jobs
use Proc::JobQueue::BackgroundQueue; use aliased 'Proc::JobQueue::Sequence'; use aliased 'Proc::JobQueue::Sort'; use aliased 'Proc::JobQueue::Move'; my $queue = new Proc::JobQueue::BackgroundQueue; my $job = Sequence->new($opts, $config, Sort->new($opts, $config, $sorted_output, @unsorted_files), Move->new($opts, $config, $sorted_output, $final_name, $final_host), ); $queue->add($job); $queue->finish;
This is a subclass of Proc::JobQueue::Job. In the background, do a sequence of jobs. If a job fails, the jobs later in the sequence are cancelled.
Proc::JobQueue Proc::JobQueue::Job Proc::JobQueue::BackgroundQueue Proc::JobQueue::Command Proc::JobQueue::Move Proc::JobQueue::Sort
Copyright (C) 2007-2008 SearchMe, Inc. Copyright (C) 2008-2010 David Sharnoff. Copyright (C) 2011 Google, Inc. This package may be used and redistributed under the terms of either the Artistic 2.0 or LGPL 2.1 licenses.
To install Proc::JobQueue, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Proc::JobQueue
CPAN shell
perl -MCPAN -e shell install Proc::JobQueue
For more information on module installation, please visit the detailed CPAN module installation guide.