Skip to content

Commit

Permalink
Fix Dag Details start date bug (#16206)
Browse files Browse the repository at this point in the history
* Only show Start Date when catchup=True

* add catchup field to details

* add started field for catchup=false dags
  • Loading branch information
bbovenzi committed Jun 8, 2021
1 parent 78c4f1a commit ebc03c6
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions airflow/www/templates/airflow/dag_details.html
Expand Up @@ -49,9 +49,20 @@ <h3>{{ title }}</h3>
<td>{{ dag.schedule_interval }}</td>
</tr>
<tr>
<th>Start Date</th>
<td class="js-format-date">{{ dag.start_date }}</td>
<th>Catchup</th>
<td>{{ dag.catchup }}</td>
</tr>
{% if dag.catchup %}
<tr>
<th>Start Date</th>
<td class="js-format-date">{{ dag.start_date }}</td>
</tr>
{% else %}
<tr>
<th>Started</th>
<td>{{ states|length > 0 }}</td>
</tr>
{% endif %}
<tr>
<th>End Date</th>
<td class="js-format-date">{{ dag.end_date }}</td>
Expand Down

0 comments on commit ebc03c6

Please sign in to comment.