Jarek Potiuk created AIRFLOW-3630:
-------------------------------------

             Summary: Google Cloud SQL query Operator cleanup will not close 
the connection on error
                 Key: AIRFLOW-3630
                 URL: https://issues.apache.org/jira/browse/AIRFLOW-3630
             Project: Apache Airflow
          Issue Type: Bug
            Reporter: Jarek Potiuk
            Assignee: Jarek Potiuk


When there is an error during Cloud SQL Query, there is a cleanup in 
post_execute_method. This cleanup is supposed to delete the connection, however 
it turns out that post_execute is not executed when execute() method throws an 
error (it was bad assumption). 

The connection should be closed always in finally clause.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to