Skip to content

Close database connections (if applicable) on CachedSession.__aexit__ - #148

Merged
JWCook merged 2 commits into
mainfrom
close-db-on-ctx-exit
Jan 4, 2023
Merged

Close database connections (if applicable) on CachedSession.__aexit__#148
JWCook merged 2 commits into
mainfrom
close-db-on-ctx-exit

Conversation

@JWCook

@JWCook JWCook commented Jan 4, 2023

Copy link
Copy Markdown
Member

(hopefully) fixes #147

@JWCook JWCook added the bug Something isn't working label Jan 4, 2023
@JWCook JWCook added this to the v0.8 milestone Jan 4, 2023
@JWCook
JWCook force-pushed the close-db-on-ctx-exit branch from 19245cc to 270b7e9 Compare January 4, 2023 21:11
@JWCook JWCook changed the title Close database connections (if applicable) on CachedSession.__exit__ Close database connections (if applicable) on CachedSession.__aexit__ Jan 4, 2023
@codecov

codecov Bot commented Jan 4, 2023

Copy link
Copy Markdown

Codecov Report

Merging #148 (9384f00) into main (8ce6165) will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #148      +/-   ##
==========================================
+ Coverage   95.13%   95.15%   +0.01%     
==========================================
  Files          11       11              
  Lines        1008     1012       +4     
  Branches      180      180              
==========================================
+ Hits          959      963       +4     
  Misses         34       34              
  Partials       15       15              
Impacted Files Coverage Δ
aiohttp_client_cache/backends/sqlite.py 99.10% <ø> (-0.02%) ⬇️
aiohttp_client_cache/backends/base.py 96.62% <100.00%> (+0.05%) ⬆️
aiohttp_client_cache/session.py 91.11% <100.00%> (+0.63%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@JWCook
JWCook force-pushed the close-db-on-ctx-exit branch from 270b7e9 to 9384f00 Compare January 4, 2023 23:49
@JWCook
JWCook marked this pull request as ready for review January 4, 2023 23:50
@JWCook
JWCook merged commit b661225 into main Jan 4, 2023
@JWCook
JWCook deleted the close-db-on-ctx-exit branch January 4, 2023 23:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Possible deadlock with SQLite backend

1 participant