Cricktom opened a new issue, #32324: URL: https://github.com/apache/airflow/issues/32324
### Apache Airflow version 2.6.2 ### What happened I created a DAG with single task and forced that task to be skipped. In that case as per the Airflow documentation when the leaf node task get skipped, the DAG should be successful by default.  Ref: [https://airflow.apache.org/docs/apache-airflow/stable/core-concepts/dag-run.html#dag-runs](url) But we didn't find the same behavior in our testing. <img width="624" alt="Screenshot 2023-07-03 145013" src="https://github.com/apache/airflow/assets/19358003/6b301aaf-2d94-40e8-a9e4-c2f638c94a9f"> ### What you think should happen instead Instead of the DAG run failure it should have been success as per the documentation. ### How to reproduce Create a DAG with the following code , which has single task and force it to get skip and this will cause the DAG run failure which is not expected. ``` from datetime import datetime, timedelta from airflow import DAG from airflow.operators.python import PythonOperator from airflow.exceptions import AirflowSkipException def task_func(): if True: raise AirflowSkipException with DAG(dag_id="test_skip_task_dag", start_date=datetime(2022, 1, 1), schedule_interval='*/5 * * * 1-5', catchup=False, render_template_as_native_obj=True, dagrun_timeout=timedelta(minutes=4) ) as dag: task1 = PythonOperator( task_id='skip_task', python_callable=task_func ) ``` ### Operating System Debian GNU/Linux ### Versions of Apache Airflow Providers apache-airflow-providers-celery==3.2.0 apache-airflow-providers-common-sql==1.5.1 apache-airflow-providers-ftp==3.4.1 apache-airflow-providers-http==4.4.1 apache-airflow-providers-imap==3.2.1 apache-airflow-providers-sqlite==3.4.1 ### Deployment Docker-Compose ### Deployment details We are using slim image for airflow 2.6.2: apache/airflow:slim-2.6.2-python3.9 ### Anything else _No response_ ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
