Skip to content

Commit

Permalink
[AIRFLOW-893][AIRFLOW-510] Fix crashing webservers when a dagrun has …
Browse files Browse the repository at this point in the history
…no start date

Closes apache#2094 from aoen/ddavydov/fix_webservers_whe
n_bad_startdate_dag
  • Loading branch information
aoen authored and bolkedebruin committed Feb 23, 2017
1 parent 974b75e commit 1c4508d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airflow/www/templates/airflow/dags.html
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ <h2>DAGs</h2>
<td class="text-nowrap">
{% if dag %}
{% set last_run = dag.get_last_dagrun(include_externally_triggered=True) %}
{% if last_run %}
{% if last_run and last_run.start_date %}
<a href="{{ url_for('airflow.graph', dag_id=last_run.dag_id, execution_date=last_run.execution_date ) }}">
{{ last_run.execution_date.strftime("%Y-%m-%d %H:%M") }}
</a> <span id="statuses_info" class="glyphicon glyphicon-info-sign" aria-hidden="true" title="Start Date: {{last_run.start_date.strftime('%Y-%m-%d %H:%M')}}"></span>
Expand Down

0 comments on commit 1c4508d

Please sign in to comment.