sulphide created AIRFLOW-2268:
---------------------------------
Summary: upgradedb is not idempotent
Key: AIRFLOW-2268
URL: https://issues.apache.org/jira/browse/AIRFLOW-2268
Project: Apache Airflow
Issue Type: Bug
Affects Versions: 1.9.0
Reporter: sulphide
if upgradedb fails in the middle and you try to run it again you can receive
fatal errors, e.g.:
(from upgradedb for airflow 1.9)
sqlalchemy.exc.OperationalError: (_mysql_exceptions.OperationalError) (1060,
"Duplicate column name 'max_tries'") [SQL: u"ALTER TABLE task_instance ADD
COLUMN max_tries INTEGER DEFAULT '-1'"]
solution, make upgradedb idempotent by using transactions that rollback on
failure.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)