Thomas Hillyer created AIRFLOW-4826:
---------------------------------------
Summary: Resetdb command throws warning in new version of alembic
Key: AIRFLOW-4826
URL: https://issues.apache.org/jira/browse/AIRFLOW-4826
Project: Apache Airflow
Issue Type: Bug
Components: database
Affects Versions: 1.10.3
Reporter: Thomas Hillyer
Assignee: Thomas Hillyer
Fix For: 1.10.4
Resetdb still works but connection should be updated
{code:java}
$ airflow resetdb
{...}
[2019-06-20 09:52:58,165] \{__init__.py:51} INFO - Using executor CeleryExecutor
DB: postgres+psycopg2://USER:PASS@SERVER/DBNAME
This will drop existing tables if they exist. Proceed? (y/n)y
[2019-06-20 09:53:00,869] \{db.py:370} INFO - Dropping tables that exist
/path/to/ve/lib64/python3.6/site-packages/alembic/util/messaging.py:69:
UserWarning: 'connection' argument to configure() is expected to be a
sqlalchemy.engine.Connection instance, got
Engine(postgres+psycopg2://USER:PASS@SERVER/DBNAME)
warnings.warn(msg)
[2019-06-20 09:53:01,010] \{migration.py:117} INFO - Context impl
PostgresqlImpl.
{...}
{code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)