Generates a report of task/chunk execution statistics from a shard_map result.
Arguments
- result
A
shard_resultobject fromshard_map.
Value
An S3 object of class shard_report with type "task"
containing:
type: "task"timestamp: When the report was generatedshards_total: Total number of shardsshards_processed: Number of shards successfully processedshards_failed: Number of permanently failed shardschunks_dispatched: Number of chunk batches dispatchedtotal_retries: Total number of retry attemptsduration: Total execution duration (seconds)throughput: Shards processed per secondqueue_status: Final queue status
Examples
# \donttest{
res <- shard_map(shards(100, workers = 2), function(s) sum(s$idx), workers = 2)
pool_stop()
task_report(res)
#> shard task report
#> Generated: 2026-03-30 20:48:06
#>
#> Execution:
#> Total shards: 8
#> Processed: 8
#> Failed: 0
#> Chunks dispatched: 8
#>
#> Timing:
#> Duration: 2.27 seconds
#> Throughput: 3.5 shards/sec
# }