eeshugerman opened a new pull request #4797: [AIRFLOW-3973] problem: `initdb` spams log with errors | solution: run each migration in its own transaction URL: https://github.com/apache/airflow/pull/4797 ### Jira https://issues.apache.org/jira/browse/AIRFLOW-3973 ### Description If `Variable`s are used in DAGs, and Postgres is used for the internal database, a fresh `$ airflow initdb` (or `$ airflow resetdb`) spams the logs with error messages (but does not fail). This commit corrects this by running each migration in a separate transaction. See Jira ticket for more details. I have tested this change with the default SQLite database and, of course, with Postgres. ### Tests No tests included as this is a one line change which adds no functionality whatsoever.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
