[ 
https://issues.apache.org/jira/browse/AIRFLOW-4826?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16869630#comment-16869630
 ] 

ASF subversion and git services commented on AIRFLOW-4826:
----------------------------------------------------------

Commit 5fdfd81ca478895e57598f5b0e877ff831b24819 in airflow's branch 
refs/heads/v1-10-test from Thomas Hillyer
[ https://gitbox.apache.org/repos/asf?p=airflow.git;h=5fdfd81 ]

[AIRFLOW-4826] Remove warning from `airflow resetdb` command (#5447)

Change engine to connection because error is thrown from new alembic version.
Connection is expected.

(cherry picked from commit d5ad0761fd0b33cb89258ff6924c608c3e086680)


> 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)

Reply via email to