{#
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
#}
{% extends base_template %}
{% from 'appbuilder/loading_dots.html' import loading_dots %}
{% from 'airflow/dataset_next_run_modal.html' import dataset_next_run_modal %}
{% from 'airflow/_messages.html' import show_message %}
{%- macro sortable_column(display_name, attribute_name) -%}
{% set curr_ordering_direction = (request.args.get('sorting_direction', 'desc')) %}
{% set new_ordering_direction = ('asc' if (request.args.get('sorting_key') != attribute_name or curr_ordering_direction == 'desc') else 'desc') %}
{{ display_name }}
{%- endmacro -%}
{% block page_title %}
{% if search_query %}"{{ search_query }}" - {% endif %}DAGs - {{ appbuilder.app_name }}
{% endblock %}
{% block head_meta %}
{{ super() }}
{% endblock %}
{% block head_css %}
{{ super() }}
{% endblock %}
{% block messages %}
{% for m in dashboard_alerts %}
{{ show_message(m.message, m.category) }}
{% endfor %}
{% if migration_moved_data_alerts %}
{% call show_message(category='warning', dismissible=false) %}
While upgrading the metadatabase, Airflow had to move some bad data in order to apply new constraints.
The moved data can be found in the following tables:
Source table | Table with moved rows |
---|---|
{{ original_table_name }} |
{{ moved_table_name }} |
{{ sortable_column("DAG", "dag_id") }} | {{ sortable_column("Owner", "owners") }} | Runs | Schedule | Last Run | {{ sortable_column("Next Run", "next_dagrun") }} | Recent Tasks | Actions | Links | |
---|---|---|---|---|---|---|---|---|---|
No results | |||||||||
{% if dag.can_edit %} {% set switch_tooltip = 'Pause/Unpause DAG' %} {% else %} {% set switch_tooltip = 'DAG is Paused' if dag_is_paused else 'DAG is Active' %} {% endif %} |
{{ dag.dag_id }}
{% for tag in dag.tags | sort(attribute='name') %}
{{ tag.name }}
{% endfor %}
|
{% for owner in dag.owners.split(",") %} {{ owner | trim }} {% endfor %} | {{ loading_dots(classes='js-loading-dag-run-stats text-muted') }} | {{ dag.schedule_interval }} {% if dag is defined and dag.timetable_description %} {% endif %} | {{ loading_dots(classes='js-loading-last-run text-muted') }} | {% if dag.dag_id in dataset_triggered_next_run_info %} {%- with ds_info = dataset_triggered_next_run_info[dag.dag_id] -%} | {%- endwith -%} {% endif %} {% if dag.next_dagrun is not none %} {% endif %} {% if dag.next_dagrun_create_after %} {# data-nextrun is being used to pass next_dagrun dates to js to build the full tooltip #} {% endif %}{{ loading_dots(classes='js-loading-task-instance-stats text-muted') }} | {% if dag %} | {% endif %}