File tree Expand file tree Collapse file tree 7 files changed +135
-1104
lines changed Expand file tree Collapse file tree 7 files changed +135
-1104
lines changed Original file line number Diff line number Diff line change 25
25
uses : HassanAbouelela/actions/setup-python@setup-python_v1.1.0
26
26
with :
27
27
dev : true
28
- python_version : 3.9
28
+ python_version : " 3.10 "
29
29
install_args : " --extras async-rediscache"
30
30
31
31
# Undeclared dependency for `releases`... whoops
54
54
uses : HassanAbouelela/actions/setup-python@setup-python_v1.1.0
55
55
with :
56
56
dev : true
57
- python_version : 3.9
57
+ python_version : " 3.10 "
58
58
install_args : " --extras async-rediscache"
59
59
60
60
# Undeclared dependency for `releases`... whoops
Original file line number Diff line number Diff line change 21
21
with :
22
22
# Set dev=true to run pre-commit which is a dev dependency
23
23
dev : true
24
- python_version : 3.9
24
+ python_version : " 3.10 "
25
25
install_args : " --extras async-rediscache"
26
26
27
27
# We will not run `flake8` here, as we will use a separate flake8
Original file line number Diff line number Diff line change @@ -234,10 +234,10 @@ async def setup_hook(self) -> None:
234
234
)
235
235
self .http .connector = self ._connector
236
236
237
- if getattr (self , "redis_session" , False ) and self .redis_session .closed :
237
+ if getattr (self , "redis_session" , False ) and not self .redis_session .valid :
238
238
# If the RedisSession was somehow closed, we try to reconnect it
239
239
# here. Normally, this shouldn't happen.
240
- await self .redis_session .connect ()
240
+ await self .redis_session .connect (ping = True )
241
241
242
242
# Create dummy stats client first, in case `statsd_url` is unreachable or None
243
243
self .stats = AsyncStatsClient (loop , "127.0.0.1" )
@@ -284,8 +284,5 @@ async def close(self) -> None:
284
284
if getattr (self .stats , "_transport" , False ):
285
285
self .stats ._transport .close ()
286
286
287
- if getattr (self , "redis_session" , False ):
288
- await self .redis_session .close ()
289
-
290
287
if self ._statsd_timerhandle :
291
288
self ._statsd_timerhandle .cancel ()
Original file line number Diff line number Diff line change 1
- FROM python:3.9 -slim
1
+ FROM python:3.10 -slim
2
2
3
3
# Set pip to have no saved cache
4
4
ENV PIP_NO_CACHE_DIR=false \
Original file line number Diff line number Diff line change 4
4
Changelog
5
5
=========
6
6
7
- - :bug: `107 ` Declare aiodns as a project dependency.
7
+ - :release: `8.0.0 <27th July 2022> `
8
+ - :breaking: `110 ` Bump async-rediscache to v1.0.0-rc2
9
+ - :support: `108 ` Bump Python version to 3.10.*
10
+ - :bug: `107 major ` Declare aiodns as a project dependency.
8
11
- :support: `107 ` Add a sample project with boilerplate and documentation explaining how to develop for bot-core.
9
12
10
13
You can’t perform that action at this time.
0 commit comments