% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pool.R
\name{pool_health_check}
\alias{pool_health_check}
\title{Check Pool Health}
\usage{
pool_health_check(pool = NULL, busy_workers = NULL)
}
\arguments{
\item{pool}{A \code{shard_pool} object. If NULL, uses the current pool.}

\item{busy_workers}{Optional integer vector of worker ids that are currently
running tasks (used internally by the dispatcher to avoid recycling a worker
while a result is in flight).}
}
\value{
A list with health status per worker and actions taken.
}
\description{
Monitors all workers, recycling those with excessive RSS drift or that have died.
}
\examples{
\donttest{
p <- pool_create(2)
pool_health_check(p)
pool_stop(p)
}
}
