get_latest_failure
Retrieve error details from failed Metaflow runs by scanning recent runs for failures and returning the failing step, task, exception, and stderr.
Instructions
Find failed runs and return error details.
Scans recent runs, finds all failures, and returns the failing step/task with exception and stderr for each.
Args: flow_name: Name of the flow. last_n_runs: How many recent runs to scan (default 20). namespace: Metaflow namespace to scope results (e.g. "user:npow"). Use get_config to find your default_namespace.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flow_name | Yes | ||
| last_n_runs | No | ||
| namespace | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |