File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
packages/service-library/src/servicelib/redis Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,7 @@ async def setup(self) -> None:
7878 @periodic (interval = self .health_check_interval )
7979 async def _periodic_check_health () -> None :
8080 assert self ._started_event_task_health_check # nosec
81+ assert self ._cancelled_event_task_health_check # nosec
8182 self ._started_event_task_health_check .set ()
8283 self ._is_healthy = await self .ping ()
8384 if self ._cancelled_event_task_health_check .is_set ():
@@ -103,6 +104,7 @@ async def shutdown(self) -> None:
103104 if self ._task_health_check :
104105 assert self ._started_event_task_health_check # nosec
105106 await self ._started_event_task_health_check .wait ()
107+ assert self ._cancelled_event_task_health_check # nosec
106108 self ._cancelled_event_task_health_check .set ()
107109 await cancel_wait_task (self ._task_health_check , max_delay = None )
108110
You can’t perform that action at this time.
0 commit comments