You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by bo...@apache.org on 2017/02/23 21:51:09 UTC

incubator-airflow git commit: [AIRFLOW-893][AIRFLOW-510] Fix crashing webservers when a dagrun has no start date

Repository: incubator-airflow
Updated Branches:
  refs/heads/master 974b75e93 -> 1c4508d84


[AIRFLOW-893][AIRFLOW-510] Fix crashing webservers when a dagrun has no start date

Closes #2094 from aoen/ddavydov/fix_webservers_whe
n_bad_startdate_dag


Project: http://git-wip-us.apache.org/repos/asf/incubator-airflow/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-airflow/commit/1c4508d8
Tree: http://git-wip-us.apache.org/repos/asf/incubator-airflow/tree/1c4508d8
Diff: http://git-wip-us.apache.org/repos/asf/incubator-airflow/diff/1c4508d8

Branch: refs/heads/master
Commit: 1c4508d84806debbedac9c4e12f14031c8a1effd
Parents: 974b75e
Author: Dan Davydov <da...@airbnb.com>
Authored: Thu Feb 23 22:51:02 2017 +0100
Committer: Bolke de Bruin <bo...@xs4all.nl>
Committed: Thu Feb 23 22:51:02 2017 +0100

----------------------------------------------------------------------
 airflow/www/templates/airflow/dags.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-airflow/blob/1c4508d8/airflow/www/templates/airflow/dags.html
----------------------------------------------------------------------
diff --git a/airflow/www/templates/airflow/dags.html b/airflow/www/templates/airflow/dags.html
index 59a8bd0..1b97c85 100644
--- a/airflow/www/templates/airflow/dags.html
+++ b/airflow/www/templates/airflow/dags.html
@@ -108,7 +108,7 @@
                 <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>