% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/diagnostics.R
\name{task_report}
\alias{task_report}
\title{Task Execution Report}
\usage{
task_report(result = NULL)
}
\arguments{
\item{result}{A \code{shard_result} object from \code{\link{shard_map}}.}
}
\value{
An S3 object of class \code{shard_report} with type \code{"task"}
containing:
\itemize{
\item \code{type}: "task"
\item \code{timestamp}: When the report was generated
\item \code{shards_total}: Total number of shards
\item \code{shards_processed}: Number of shards successfully processed
\item \code{shards_failed}: Number of permanently failed shards
\item \code{chunks_dispatched}: Number of chunk batches dispatched
\item \code{total_retries}: Total number of retry attempts
\item \code{duration}: Total execution duration (seconds)
\item \code{throughput}: Shards processed per second
\item \code{queue_status}: Final queue status
}
}
\description{
Generates a report of task/chunk execution statistics from a shard_map result.
}
\examples{
\donttest{
res <- shard_map(shards(100, workers = 2), function(s) sum(s$idx), workers = 2)
pool_stop()
task_report(res)
}
}
