Repository: incubator-airflow Updated Branches: refs/heads/v1-10-test 859ec64ae -> 683f46688
[AIRFLOW-2681] Include last dag run of externally triggered DAGs in UI. Closes #3551 from dhatch/AIRFLOW-2681 (cherry picked from commit 78f3d33388c772eafbed8fff81b0e50188297fc6) 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/683f4668 Tree: http://git-wip-us.apache.org/repos/asf/incubator-airflow/tree/683f4668 Diff: http://git-wip-us.apache.org/repos/asf/incubator-airflow/diff/683f4668 Branch: refs/heads/v1-10-test Commit: 683f46688bc9228c70b3b6c96486280b29542dc4 Parents: 859ec64 Author: David Hatch <dha...@flatiron.com> Authored: Tue Jun 26 15:26:13 2018 -0700 Committer: Bolke de Bruin <bo...@xs4all.nl> Committed: Wed Jun 27 22:09:51 2018 +0200 ---------------------------------------------------------------------- airflow/www/templates/airflow/dags.html | 2 +- airflow/www_rbac/templates/airflow/dags.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-airflow/blob/683f4668/airflow/www/templates/airflow/dags.html ---------------------------------------------------------------------- diff --git a/airflow/www/templates/airflow/dags.html b/airflow/www/templates/airflow/dags.html index 2397890..217b39d 100644 --- a/airflow/www/templates/airflow/dags.html +++ b/airflow/www/templates/airflow/dags.html @@ -119,7 +119,7 @@ <!-- Column 7: Last Run --> <td class="text-nowrap latest_dag_run {{ dag.dag_id }}"> {% if dag %} - {% set last_run = dag.get_last_dagrun() %} + {% set last_run = dag.get_last_dagrun(include_externally_triggered=True) %} {% if last_run and last_run.execution_date %} <a href="{{ url_for('airflow.graph', dag_id=dag.dag_id, execution_date=last_run.execution_date) }}"> {{ last_run.execution_date.strftime("%Y-%m-%d %H:%M") }} http://git-wip-us.apache.org/repos/asf/incubator-airflow/blob/683f4668/airflow/www_rbac/templates/airflow/dags.html ---------------------------------------------------------------------- diff --git a/airflow/www_rbac/templates/airflow/dags.html b/airflow/www_rbac/templates/airflow/dags.html index a712e5a..a7a7467 100644 --- a/airflow/www_rbac/templates/airflow/dags.html +++ b/airflow/www_rbac/templates/airflow/dags.html @@ -120,7 +120,7 @@ <!-- Column 7: Last Run --> <td class="text-nowrap latest_dag_run {{ dag.dag_id }}"> {% if dag %} - {% set last_run = dag.get_last_dagrun() %} + {% set last_run = dag.get_last_dagrun(include_externally_triggered=True) %} {% if last_run and last_run.execution_date %} <a href="{{ url_for('Airflow.graph', dag_id=dag.dag_id, execution_date=last_run.execution_date) }}"> {{ last_run.execution_date.strftime("%Y-%m-%d %H:%M") }}