NAME

Proc::JobQueue::Sequence - do a sequence of background jobs

SYNOPSIS

 use Proc::JobQueue::BackgroundQueue;
 use aliased 'Proc::JobQueue::Sequence';

 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;

DESCRIPTION

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.

SEE ALSO

Proc::JobQueue Proc::JobQueue::Job Proc::JobQueue::BackgroundQueue Proc::JobQueue::Command Proc::JobQueue::Move Proc::JobQueue::Sort

LICENSE

This package may be used and redistributed under the terms of either the Artistic 2.0 or LGPL 2.1 license.