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/03/13 04:45:11 UTC

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

[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

(cherry picked from commit 1c4508d84806debbedac9c4e12f14031c8a1effd)
Signed-off-by: Bolke de Bruin <bo...@xs4all.nl>


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

Branch: refs/heads/v1-8-stable
Commit: b38df6b8c6fc5eefe14b9594827d6f28092f77f8
Parents: 1c23133
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:18 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/b38df6b8/airflow/www/templates/airflow/dags.html
----------------------------------------------------------------------
diff --git a/airflow/www/templates/airflow/dags.html b/airflow/www/templates/airflow/dags.html
index 2cbd12e..5792c6a 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>