The Perl Toolchain Summit 2025 Needs You: You can help 🙏 Learn more

NAME

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

SYNOPSIS

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

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.