{# 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/dag_docs.html' import dag_docs %} {% block head_css %} {{ super() }} {% endblock %} {% macro form_element(form_key, form_details) %} {% if "custom_html_form" in form_details.schema %} {{ form_details.schema.custom_html_form | replace("{name}", "element_" + form_key) | replace("{value}", form_details.value) }} {% elif "type" in form_details.schema and form_details.schema.type == "boolean" %} {% elif "format" in form_details.schema and "date-time" in form_details.schema.format %}
calendar_today
{% elif "format" in form_details.schema and "date" in form_details.schema.format %}
calendar_today
{% elif "format" in form_details.schema and "time" in form_details.schema.format %}
calendar_today
{% elif "enum" in form_details.schema and form_details.schema.enum %} {% elif form_details.schema and "array" in form_details.schema.type %} {% elif form_details.schema and "object" in form_details.schema.type %} {% elif form_details.schema and ("integer" in form_details.schema.type or "number" in form_details.schema.type) %} {% else %} {% endif %} {% if form_details.description -%} {{ form_details.description }} {%- endif %} {% endmacro %} {% block content %} {{ super() }}

Trigger DAG: {{ dag_id }}

{{ dag_docs(doc_md) }}
{{ form.execution_date(class_="form-control", disabled=False) }}
{% if recent_confs|length > 0 %}
{% endif %} {%- if form_fields %}

DAG conf Parameters

{% for form_key, form_details in form_fields.items() %} {% if ("section" not in form_details.schema or not form_details.schema.section) and ("const" not in form_details.schema or not form_details.schema.const) %} {{ form_element(form_key, form_details) }} {% endif %} {% endfor %}
{% for form_section, form_items in form_fields.values() | groupby(attribute="schema.section", default="") %} {% if form_section %}
{% for form_key, form_details in form_fields.items() %} {% if form_details.schema.section == form_section and not form_details.schema.const %} {{ form_element(form_key, form_details) }} {% endif %} {% endfor %}
{% endif %} {% endfor %}
{%- else %} {%- endif %}

To access configuration in your DAG use {{ '{{ dag_run.conf }}' }}. {% if is_dag_run_conf_overrides_params %} As core.dag_run_conf_overrides_params is set to True, so passing any configuration here will override task params which can be accessed via {{ '{{ params }}' }}. {% else %} As core.dag_run_conf_overrides_params is set to False, so passing any configuration here won't override task params. {% endif %}

Cancel
{% endblock %} {% block tail_js %} {{ super() }} {% endblock %}