Arch::RunLimit(3pm)

Arch::RunLimit3pm

Class to enforce a limit on the number of running processes

Usage

    use Arch::RunLimit
    my $limit = Arch::RunLimit->new(file => $limit_file);
    die "run-limit exceeded" if $limit->exceeded;

Overview

Arch::RunLimit provides an easy way to enforce a limit on the number of concurrently running processes.

Methods

The following methods are available:

new, exceeded.

new %opts

Create a new Arch::RunLimit object with the specified options:

file (mandatory)

The file used to keep track of the number of processes.

limit

The maximum number of concurrently running processes. Defaults to 5.

timeout

The timeout after which a process is assumed to be terminated in seconds. Defaults to 1800 (30 minutes).

exceeded

Return 1 if the number of concurrently running processes has been exceeded, 0 otherwise.

Releases

8 releases since Debian 4.0 (Etch); the text changed 3 times.

  1. 4.0
  2. 5.0
  3. 6.0–8
  4. 9–11

Bugs

Awaiting your reports.

Authors

Mikhael Goikhman ([email protected]/arch-perl--devel).

Enno Cramer ([email protected]/arch-perl--devel).

From libarch-perl 0.5.2-2 in Debian 11 (Bullseye). Parsed by carta from the page's man source.