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 <[email protected]>
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 }}

Reply via email to