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.

ID
string
required

[required]

prefect task-run ls

prefect task-run ls [OPTIONS]

View recent task runs

--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.

ID
string
required

[required]

--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.