uranusjr commented on issue #26834:
URL: https://github.com/apache/airflow/issues/26834#issuecomment-1269521702

   Instead of associating the issue to reserialising, IMO it is not a good idea 
in the first place to run `airflow db upgrade` from multiple instances against 
the same database. The workaround above is OK-ish since it practically avoids 
running the command repeatedly, although may still be suspective to race 
conditions in edge cases (depending on how you set things up).
   
   As for the SQL error, I think it should enough to simply add some sort of 
`ON CONFLICT` clause to make the reserialisation step just skip duplicated 
rows. PRs welcomed.


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