[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#705256: ITP: libparallel-runner-perl -- Perl module to manage running things in parallel processes



Package: wnpp
Severity: wishlist
Owner: Xavier Guimard <x.guimard@free.fr>

* Package name    : libparallel-runner-perl
  Version         : 0.012
  Upstream Author : Chad Granum <exodist7@gmail.com>
* URL             : https://metacpan.org/release/Fennec
* License         : Artistic or GPL-1+
  Programming Lang: Perl
  Description     : Perl module to manage running things in parallel processes

There are several other modules to do this, you probably want one of
them. This module exists as a super specialised parallel task manager.
You create the object with a proces limit and callbacks for what to do
while waiting for a free process slot, as well as a callback for what a
process shoudl do just before exiting.

You must explicetly call $runner->finish() when you are done. If the
runner is destroyed before it's children are finished a warning will be
generated and your child processes will be killed, by force if
necessary.

If you specify a maximum of 1 then no forking will occur, and run() will
block until the coderef returns. You can force a fork by providing a
boolean true value as the second argument to run(), this will force the
runner to fork before running the coderef, however run() will still
block until it the child exits.


Reply to: