You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/10/06 07:53:45 UTC

[GitHub] [airflow] uranusjr commented on issue #26834: `airflow db upgrade` Failed to write serialized DAG

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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org