get_task_instance
Retrieve execution details for a specific Airflow task instance, including status, duration, logs, and configuration, to diagnose issues or monitor workflow progress.
Instructions
Get detailed information about a specific task instance execution.
Use this tool when the user asks about:
"Show me details for task X in DAG run Y" or "What's the status of task Z?"
"Why did task A fail?" or "When did task B start/finish?"
"What's the duration of task C?" or "Show me task execution details"
"Get logs for task D" or "What operator does task E use?"
Returns detailed task instance information including:
task_id: Name of the task
state: Current state (success, failed, running, queued, etc.)
start_date: When the task started
end_date: When the task finished
duration: How long the task ran
try_number: Which attempt this is
max_tries: Maximum retry attempts
operator: What operator type (PythonOperator, BashOperator, etc.)
executor_config: Executor configuration
pool: Resource pool assignment
Args: dag_id: The ID of the DAG dag_run_id: The ID of the DAG run (e.g., "manual__2024-01-01T00:00:00+00:00") task_id: The ID of the task within the DAG
Returns: JSON with complete task instance details
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dag_id | Yes | ||
| dag_run_id | Yes | ||
| task_id | Yes |