{# 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 'airflow/dataset_next_run_modal.html' import dataset_next_run_modal %} {% from 'appbuilder/dag_docs.html' import dag_docs %} {% block page_title %}{{ dag.dag_id }} - {{ appbuilder.app_name }}{% endblock %} {% block head_css %} {{ super() }} {% endblock %} {% set dag_is_paused = dag.get_is_paused() %} {% set base_date_arg = request.args.get('base_date') %} {% set num_runs_arg = request.args.get('num_runs') %} {% if execution_date is defined %} {% set execution_date_arg = execution_date %} {% else %} {% set execution_date_arg = request.args.get('execution_date') %} {% endif %} {% block head_meta %} {{ super() }} {% if dag_model is defined and dag_model.next_dagrun_create_after is defined and dag_model.next_dagrun_create_after is not none %} {% endif %} {% if show_external_log_redirect is defined %} {% endif %} {% if external_log_name is defined %} {% endif %} {% endblock %} {% block content %} {% if dag.parent_dag is defined and dag.parent_dag %} DAG: {{ dag.parent_dag.dag_id }} {% endif %}

{% if dag.parent_dag is defined and dag.parent_dag %} SUBDAG: {{ dag.dag_id }} {% else %} {% set can_edit = appbuilder.sm.can_edit_dag(dag.dag_id) %} {% if appbuilder.sm.can_edit_dag(dag.dag_id) %} {% set switch_tooltip = 'Pause/Unpause DAG' %} {% else %} {% set switch_tooltip = 'DAG is Paused' if dag_is_paused else 'DAG is Active' %} {% endif %} DAG: {{ dag.dag_id }} {{ dag.description[0:150] + '…' if dag.description and dag.description|length > 150 else dag.description|default('', true) }} {% endif %} {% if root %} ROOT: {{ root }} {% endif %}

{% if state_token is defined and state_token %} {{ state_token }} {% endif %} Schedule: {{ dag_model is defined and dag_model and dag_model.schedule_interval }} {% if dag_model is defined and dag_model and dag_model.timetable_description %} {% endif %} {% if dag_model is defined and dag_model.next_dagrun is defined and dag_model.schedule_interval != 'Dataset' %}

Next Run:

{% endif %} {% if dag_model is defined and dag_model.schedule_interval is defined and dag_model.schedule_interval == 'Dataset' %}

Next Run: {{ dag_model.get_dataset_triggered_next_run_info() }}

{% endif %}


{{ dag_docs(doc_md) }} {{ dataset_next_run_modal(id='dataset-next-run-modal') }} {% endblock %} {% block tail %} {{ super() }} {% endblock %}