You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "George Leslie-Waksman (JIRA)" <ji...@apache.org> on 2018/08/07 22:41:00 UTC
[jira] [Created] (AIRFLOW-2870) Migrations fail when upgrading from
below cc1e65623dc7_add_max_tries_column_to_task_instance
George Leslie-Waksman created AIRFLOW-2870:
----------------------------------------------
Summary: Migrations fail when upgrading from below cc1e65623dc7_add_max_tries_column_to_task_instance
Key: AIRFLOW-2870
URL: https://issues.apache.org/jira/browse/AIRFLOW-2870
Project: Apache Airflow
Issue Type: Bug
Reporter: George Leslie-Waksman
Running migrations from below cc1e65623dc7_add_max_tries_column_to_task_instance.py fail with:
{noformat}
INFO [alembic.runtime.migration] Context impl PostgresqlImpl.
INFO [alembic.runtime.migration] Will assume transactional DDL.
INFO [alembic.runtime.migration] Running upgrade 127d2bf2dfa7 -> cc1e65623dc7, add max tries column to task instance
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1182, in _execute_context
context)
File "/usr/local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 470, in do_execute
cursor.execute(statement, parameters)
psycopg2.ProgrammingError: column task_instance.executor_config does not exist
LINE 1: ...ued_dttm, task_instance.pid AS task_instance_pid, task_insta...
{noformat}
The failure is occurring because cc1e65623dc7_add_max_tries_column_to_task_instance.py imports TaskInstance from the current code version, which exists in a post-migration state.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)