interface TaskPoolStats
Since 0.1.0

A snapshot of one task-module pool's state, returned by IWorkerPool.stats.

Properties

readonly
taskModule: string

The task-module specifier this pool executes.

readonly
workers: number

Workers currently alive in the pool.

readonly
busy: number

Workers currently executing a task.

readonly
queued: number

Tasks waiting in the pool's queue.

readonly
completed: number

Tasks completed successfully since the pool was created.

readonly
failed: number

Tasks failed (error, crash, or timeout) since the pool was created.

Usage

import { type TaskPoolStats } from "common/src/index.ts";