From 1b7f4e86d526b79b07e0239cc39bbf9a26032f16 Mon Sep 17 00:00:00 2001 From: Sergey Vasilyev Date: Fri, 19 Jan 2024 21:40:11 +0100 Subject: [PATCH] Satisfy aiohttp's deprecation of shutdown timeout kwargs Signed-off-by: Sergey Vasilyev --- kopf/_core/engines/probing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kopf/_core/engines/probing.py b/kopf/_core/engines/probing.py index 0c1bbb99..fb7e7ece 100644 --- a/kopf/_core/engines/probing.py +++ b/kopf/_core/engines/probing.py @@ -79,10 +79,10 @@ async def get_health( app = aiohttp.web.Application() app.add_routes([aiohttp.web.get(path, get_health)]) - runner = aiohttp.web.AppRunner(app, handle_signals=False) + runner = aiohttp.web.AppRunner(app, handle_signals=False, shutdown_timeout=1.0) await runner.setup() - site = aiohttp.web.TCPSite(runner, host, port, shutdown_timeout=1.0) + site = aiohttp.web.TCPSite(runner, host, port) await site.start() # Log with the actual URL: normalised, with hostname/port set.