Skip to content

Commit 4478a89

Browse files
authoredAug 2, 2019
Merge pull request #1647 from levimalott/fix/recover-from-failed-cleanup-rollbacks
Log, but allow, failures during cleanup rollbacks.
2 parents 9e07912 + 0927093 commit 4478a89

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed
 

‎core/dbt/adapters/base/connections.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,13 @@ def commit(self):
248248
@classmethod
249249
def _rollback_handle(cls, connection):
250250
"""Perform the actual rollback operation."""
251-
connection.handle.rollback()
251+
try:
252+
connection.handle.rollback()
253+
except Exception:
254+
logger.debug(
255+
'Failed to rollback {}'.format(connection.name),
256+
exc_info=True
257+
)
252258

253259
@classmethod
254260
def _close_handle(cls, connection):

0 commit comments

Comments
 (0)