[
https://issues.apache.org/jira/browse/AIRFLOW-4826?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16869370#comment-16869370
]
ASF subversion and git services commented on AIRFLOW-4826:
----------------------------------------------------------
Commit d5ad0761fd0b33cb89258ff6924c608c3e086680 in airflow's branch
refs/heads/master from Thomas Hillyer
[ https://gitbox.apache.org/repos/asf?p=airflow.git;h=d5ad076 ]
[AIRFLOW-4826] Remove warning from `airflow resetdb` command (#5447)
Change engine to connection because error is thrown from new alembic version.
Connection is expected.
> 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
> Priority: Minor
> Fix For: 1.10.4
>
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> 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)