get_task_instance_logs
Retrieve logs for a specific task instance in Apache Airflow, including content and metadata. Specify DAG, task, and try number to fetch detailed execution logs or metadata only. Supports pagination for large logs.
Instructions
[Tool Role]: Retrieves logs for a specific task instance and its try number with content and metadata.
Args: dag_id: The DAG ID containing the task dag_run_id: The DAG run ID containing the task instance task_id: The task ID to get logs for try_number: The try number for the task instance (default: 1) full_content: Whether to return full log content or just metadata (default: False) token: Pagination token for large logs (optional)
Returns: Task instance logs with content and metadata: task_id, dag_id, dag_run_id, try_number, content, metadata
Input Schema
Name | Required | Description | Default |
---|---|---|---|
dag_id | Yes | ||
dag_run_id | Yes | ||
full_content | No | ||
task_id | Yes | ||
token | No | ||
try_number | No |