Skip to content

Commit

Permalink
Refine logic around rollback and commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tim.reichard committed Feb 8, 2021
1 parent 09c3558 commit 1c65b83
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion aioradio/file_ingestion.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,9 @@ def child_wrapper(*args, **kwargs) -> Any:

if rollback[name]:
conn.rollback()
else:
conn.commit()

conn.commit()
conn.close()
print(f"CLOSED CONNECTION for {name}")

Expand Down

0 comments on commit 1c65b83

Please sign in to comment.