Created
February 8, 2025 12:23
-
-
Save kruchkov-alexandr/a5c5387e1ba5cac773d60aa144fa6a90 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h3>Task {{ task_instance.task_id }} failed in DAG {{ task_instance.dag_id }}</h3> | |
<!-- Basic Task Info --> | |
<p><strong>Task ID:</strong> {{ task_instance.task_id }}</p> | |
<p><strong>DAG ID:</strong> {{ task_instance.dag_id }}</p> | |
{% if task_instance.execution_date %} | |
<p><strong>Execution Date:</strong> {{ task_instance.execution_date.strftime("%Y-%m-%d %H:%M:%S") }}</p> | |
{% endif %} | |
{% if exception_html %} | |
<!-- Error Info --> | |
<p><strong>Exception:</strong></p> | |
<pre>{{ exception_html }}</pre> | |
{% endif %} | |
{% if task_instance.log_url %} | |
<p><strong>Log:</strong> <a href="{{ task_instance.log_url }}">View Log</a></p> | |
{% endif %} | |
<!-- App Info from Tags --> | |
<details> | |
<summary>Application Info</summary> | |
<pre> | |
{% if dag.tags %} | |
{% for tag in dag.tags %} | |
{{ tag }} | |
{% endfor %} | |
{% else %} | |
No tags available | |
{% endif %} | |
</pre> | |
</details> | |
<!-- DAG Details --> | |
{% if dag %} | |
<details> | |
<summary>DAG Details</summary> | |
<pre> | |
DAG ID: {{ dag.dag_id }} | |
Description: {% if dag.description %}{{ dag.description }}{% else %}Not available{% endif %} | |
Schedule Interval: {% if dag.schedule_interval %}{{ dag.schedule_interval }}{% else %}Not available{% endif %} | |
Default Args: {% if dag.default_args %}{{ dag.default_args }}{% else %}Not available{% endif %} | |
Tags: {% if dag.tags %}{{ dag.tags }}{% else %}Not available{% endif %} | |
</pre> | |
</details> | |
{% endif %} | |
<!-- Task Details --> | |
{% if task %} | |
<details> | |
<summary>Task Details</summary> | |
<pre> | |
Task ID: {{ task.task_id }} | |
Task Type: {% if task.task_type %}{{ task.task_type }}{% else %}Not available{% endif %} | |
Retries: {% if task.retries %}{{ task.retries }}{% else %}Not available{% endif %} | |
Queue: {% if task.queue %}{{ task.queue }}{% else %}Not available{% endif %} | |
Pool: {% if task.pool %}{{ task.pool }}{% else %}Not available{% endif %} | |
</pre> | |
</details> | |
{% endif %} | |
<!-- Context Details --> | |
{% if dag_run %} | |
<details> | |
<summary>DAG Run Details</summary> | |
<pre> | |
Run ID: {{ dag_run.run_id }} | |
Execution Date: {% if dag_run.execution_date %}{{ dag_run.execution_date }}{% else %}Not available{% endif %} | |
Start Date: {% if dag_run.start_date %}{{ dag_run.start_date }}{% else %}Not available{% endif %} | |
End Date: {% if dag_run.end_date %}{{ dag_run.end_date }}{% else %}Not available{% endif %} | |
State: {% if dag_run.state %}{{ dag_run.state }}{% else %}Not available{% endif %} | |
External Trigger: {% if dag_run.external_trigger %}{{ dag_run.external_trigger }}{% else %}Not available{% endif %} | |
</pre> | |
</details> | |
{% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment