Returns (and optionally prints) a summary of how many tasks are in each
state (e.g. PENDING, SUCCESS, FAILURE). The formatted message shows
the percentage per state on a single line, with colour coding.
Arguments
- data
A data frame containing a
.task_statecolumn (as produced byda_submit()/da_fetch()).- message
Logical. If
TRUE, prints a nicely formatted, colourised one-line summary viacli::cli_inform()and returns the counts invisibly. IfFALSE(default), just returns the counts.