Skip to main content

prefect task-run

prefect task-run [OPTIONS] COMMAND [ARGS]...
View and inspect task runs.

prefect task-run inspect

prefect task-run inspect [OPTIONS] ID
View details about a task run.

Arguments

ID
string
required
[required]

Options

--web
Open the task run in a web browser.
--output
Specify an output format. Currently supports: json

prefect task-run ls

prefect task-run ls [OPTIONS]
View recent task runs

Options

--task-run-name
Name of the task
--limit
Maximum number of task runs to list
--state
Name of the task run’s state
--state-type
Type of the task run’s state

prefect task-run logs

prefect task-run logs [OPTIONS] ID
View logs for a task run.

Arguments

ID
string
required
[required]

Options

--head
Show the first 20 logs instead of all logs.
--num-logs
Number of logs to show when using the —head or —tail flag. If None, defaults to 20.
--reverse
Reverse the logs order to print the most recent logs first
--tail
Show the last 20 logs instead of all logs.
I