Skip to contents

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.

Usage

da_progress(data, message = FALSE)

Arguments

data

A data frame containing a .task_state column (as produced by da_submit() / da_fetch()).

message

Logical. If TRUE, prints a nicely formatted, colourised one-line summary via cli::cli_inform() and returns the counts invisibly. If FALSE (default), just returns the counts.

Value

A named list with TOTAL (the total number of rows) and one entry per observed task state.