potiuk commented on issue #46015:
URL: https://github.com/apache/airflow/issues/46015#issuecomment-2614422617

   I don't think so @bugraoz93  :). This one looks pretty legitimate (and sorry 
@nesp159de - we recently have been flooded with almost good looking issues 
generated by AI so we are pretty "sensitive" now).
   
   But I am not sure we can do anything about it regardless. There are a number 
of places where mysql can deadlock  - where it is completely unnecessary and we 
know it - the deadlocks are far less often happening on Postgres and our 
recommendation - for now - would be to switch to postgres.
   
   There are few other things you can do:
   
   *  try to disable "schedule_after_task_execution" - which is an often source 
for deadlock
   *  upgrade to latest Airflow 2.10.* - you are running pretty old version of 
Airlfow and you miss more or less 1000 fixes and new features that have been 
implemented since. Among them - especially in some of the latest versions of 
Airlfow was limiting a number of deadlocks that you might have. If you look at 
the changelog you will be able to find them. Generally speaking "upgrade to 
latest version" and "check if the problems are still there" is absolutely 
recommended action before anyones time is spent on looking at this issue.
   * Airlfow 3 (coming in 2-3 months) will have completely revamped 
architecture where removing database deadlocs and generally database pressure 
is one of the most important changes that drove the re-architecting. Stay tuned 
and upgrede/test it when ready
   
   Converting it into discussion if more discussion is needed.


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