[Python] Apache Airflow DAG not running

Discussão em 'Python' iniciado por Stack, Julho 6, 2025.

  1. Stack

    Stack Membro Participativo

    I have installed the Airflow Docker environment as described in this guide (3.0.2)and I'm able to run a very simple DAG using the EmptyOperator.

    However, when I create another DAG using, for example, the BashOperator, I get the following error:

    [2025-07-06, 20:51:22] ERROR - DAG not found during start up: dag_id="bash_operator_dag": bundle="BundleInfo(name='dags-folder', version=None)": path="chris_2.py": source="task"

    The file i have is a very simple DAG

    from airflow import DAG
    from airflow.operators.bash import BashOperator

    with DAG(
    dag_id="bash_operator_dag",
    start_date=datetime(2025, 4, 1),
    catchup=False,
    tags=["test"]
    ) as dag:
    run_bash = BashOperator(
    task_id="run_bash",
    bash_command="echo chris"
    )
    process = BashOperator(
    task_id="process",
    bash_command="echo chris"
    )
    run_bash >> process


    I'm completely lost, why i get this error, help will be appreciatd

    Continue reading...

Compartilhe esta Página