# NOTE: This is an auto-generated file. Please do not edit this file manually.
{% from 'macros/build_dag.py.jinja2' import build_dag -%}
{% from 'macros/load_file.py.jinja2' import load_file -%}
{% from 'macros/transform_file.py.jinja2' import transform_file -%}
from pathlib import Path

import airflow
from airflow.utils import timezone
from astro import sql as aql
from astro.constants import FileType
from astro.files import File
from astro.table import Metadata, Table

DAGS_FOLDER = Path(__file__).parent.as_posix()

{{ build_dag(dag, schedule_type) }}
    {%- for workflow_file in dag.sorted_workflow_files() %}
    {%- if workflow_file.operator_name == 'load_file' %}
    {{ load_file(workflow_file, dag)|indent(width=4) }}
    {%- elif workflow_file.operator_name == 'transform_file' %}
    {{ transform_file(workflow_file, dag)|indent(width=4) }}
    {%- endif %}
    {%- endfor %}
