deepak4babu opened a new issue, #54932:
URL: https://github.com/apache/airflow/issues/54932

   ### Apache Airflow version
   
   Other Airflow 2 version (please specify below)
   
   ### If "Other Airflow 2 version" selected, which one?
   
   3.0.4
   
   ### What happened?
   
   We have upgraded our airflow setup fro 2.10.3 to 3.0.4. As part of it, we 
had removed some dags.
   
   A task from that removed dag is still in scheduled state.
   
   <img width="1829" height="188" alt="Image" 
src="https://github.com/user-attachments/assets/76fd9a32-435f-409e-8563-71f8c33a8348";
 />
   
   When scheduler tries to schedule that dag, its failing with below error
   
   <img width="1246" height="397" alt="Image" 
src="https://github.com/user-attachments/assets/35d7b549-e66e-4cf8-a2ac-ba771c8af1d6";
 />
   
   Tried to fail that task in airflow webserver UI. It is failing to patch the 
dag with below error
   
   <img width="1320" height="46" alt="Image" 
src="https://github.com/user-attachments/assets/e6749fb7-b4d6-4ea2-8a51-810f6c372135";
 />
   
   ### What you think should happen instead?
   
   The scheduled run of the removed dag should be removed or failed once the 
dag is removed
   (or)
   Scheduler should skip the task instance where the dagfile is not found.
   
   ### How to reproduce
   
   Add a dag and let dag-processor parse it. Schedule multiple runs and remove 
the dag.
   
   ### Operating System
   
   PRETTY_NAME="Debian GNU/Linux 12 (bookworm)" NAME="Debian GNU/Linux" 
VERSION_ID="12" VERSION="12 (bookworm)" VERSION_CODENAME=bookworm ID=debian 
HOME_URL="https://www.debian.org/"; SUPPORT_URL="https://www.debian.org/support"; 
BUG_REPORT_URL="https://bugs.debian.org/";
   
   ### Versions of Apache Airflow Providers
   
   apache-airflow-providers-celery==3.12.2
   apache-airflow-providers-cncf-kubernetes==10.6.2
   apache-airflow-providers-common-compat==1.7.2
   apache-airflow-providers-common-io==1.6.1
   apache-airflow-providers-common-sql==1.27.3
   apache-airflow-providers-fab==2.3.1
   apache-airflow-providers-ftp==3.13.2
   apache-airflow-providers-http==5.3.3
   apache-airflow-providers-imap==3.9.2
   apache-airflow-providers-postgres==6.2.2
   apache-airflow-providers-smtp==2.1.1
   apache-airflow-providers-sqlite==4.1.2
   apache-airflow-providers-standard==1.4.1
   apache-airflow-task-sdk==1.0.3
   
   ### Deployment
   
   Other
   
   ### Deployment details
   
   We use a slightly modified version of official helm chart
   
   ### 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]

Reply via email to