You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by el...@apache.org on 2024/03/20 19:13:26 UTC

(airflow) branch main updated: Adding max consecutive failed dag runs info in UI (#38229)

This is an automated email from the ASF dual-hosted git repository.

eladkal pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 513977690f Adding max consecutive failed dag runs info in UI (#38229)
513977690f is described below

commit 513977690f6978d24fe031894e0e023c2df4755e
Author: Ashish Patel <as...@gmail.com>
AuthorDate: Thu Mar 21 00:43:19 2024 +0530

    Adding max consecutive failed dag runs info in UI (#38229)
    
    * adding: information for auto pause in UI
---
 airflow/www/templates/airflow/dag.html | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/airflow/www/templates/airflow/dag.html b/airflow/www/templates/airflow/dag.html
index 350e14865d..4a6ce9f2d8 100644
--- a/airflow/www/templates/airflow/dag.html
+++ b/airflow/www/templates/airflow/dag.html
@@ -129,6 +129,9 @@
           </label>
           <span class="text-muted">DAG:</span> {{ dag.dag_id }}
           <small class="text-muted">{{ dag.description[0:150] + '…' if dag.description and dag.description|length > 150 else dag.description|default('', true) }}</small>
+          {% if dag_model is defined and dag_model.max_consecutive_failed_dag_runs is defined and  dag_model.max_consecutive_failed_dag_runs > 0  %}
+           <span class="material-icons text-muted js-tooltip" aria-hidden="true" data-original-title="Auto Pauses: After {{ dag_model.max_consecutive_failed_dag_runs|string }} consecutive failures">motion_photos_paused</span>
+            {% endif %}
         {% endif %}
         {% if root %}
           <span class="text-muted">ROOT:</span> {{ root }}