task_report: Task Execution Report

View source: R/diagnostics.R

task_reportR Documentation

Task Execution Report

Description

Generates a report of task/chunk execution statistics from a shard_map result.

Usage

task_report(result = NULL)

Arguments

result

A shard_result object from shard_map.

Value

An S3 object of class shard_report with type "task" containing:

  • type: "task"

  • timestamp: When the report was generated

  • shards_total: Total number of shards

  • shards_processed: Number of shards successfully processed

  • shards_failed: Number of permanently failed shards

  • chunks_dispatched: Number of chunk batches dispatched

  • total_retries: Total number of retry attempts

  • duration: Total execution duration (seconds)

  • throughput: Shards processed per second

  • queue_status: Final queue status

Examples


res <- shard_map(shards(100, workers = 2), function(s) sum(s$idx), workers = 2)
pool_stop()
task_report(res)


shard documentation built on April 3, 2026, 9:08 a.m.