Greetlist commented on issue #20308:
URL: https://github.com/apache/airflow/issues/20308#issuecomment-1058771937


   I re-scan the **scheduler_job.py, models/trigger.py ** again.
   ``` _do_scheduling ``` function has RowLock, ``` _process_executor_events 
``` function also has RowLock and two functions use the same session.
   
   
https://github.com/apache/airflow/blob/17d3e78e1b4011267e81846b5d496769934a5bcc/airflow/models/trigger.py#L109
 has no RowLock, it will select some records which already selected by 
scheduler.But it will update these records, will wait the RowLock, wait until 
one scheduler loop is done.
   
   The process above is make sense. But it do has inconsistent problem.I have 
no idea where the key is.
   Confusing.
   


-- 
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