get_task_logs
Access the log of a task attempt in Airflow, focusing on the trailing portion where errors and tracebacks typically appear.
Instructions
Read the log for one task attempt.
Task logs can be large, so by default only the trailing portion is returned (where the error and traceback usually are).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dag_id | Yes | The DAG. | |
| dag_run_id | Yes | The run. | |
| task_id | Yes | The task. | |
| try_number | No | Which attempt (1-based); retried tasks have more than one. | |
| tail_chars | No | Return at most this many trailing characters. 0 = full log. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |