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

   ### Apache Airflow version
   
   2.2.5
   
   ### What happened
   
   Deferable tasks, that trigger instantly after getting defered, might get its 
state set to `FAILED` by the scheduler.
   
   The triggerer can fire the trigger and scheduler can re-queue the task 
instance before it has a chance to process the executor event for when the ti 
got defered.
   
   ### What you think should happen instead
   
   This code block should not run in this instance:
   
https://github.com/apache/airflow/blob/5bfacf81c63668ea63e7cb48f4a708a67d0ac0a2/airflow/jobs/scheduler_job.py#L667-L692
   
   ### How to reproduce
   
   Most importantly have a trigger, that instantly fires. I'm not sure if the 
executor type is important - I'm running `CeleryExecutor`. Also having two 
schedulers might be important.
   
   ### Operating System
   
   Arch Linux
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Virtualenv installation
   
   ### Deployment details
   
   _No response_
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] 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