From 9956845009dcf51248607d3cd9bac448929a46f9 Mon Sep 17 00:00:00 2001 From: Markus Hilger Date: Mon, 27 Jul 2026 06:52:55 +0200 Subject: [PATCH] Do not block the import poll loop with time.sleep osimport polls import progress from a coroutine, so a blocking sleep between reads stalls the whole client loop. It was the only use of time in the script, so the import goes with it. --- confluent_server/bin/osdeploy | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/confluent_server/bin/osdeploy b/confluent_server/bin/osdeploy index 9c5af002..c2ad0323 100644 --- a/confluent_server/bin/osdeploy +++ b/confluent_server/bin/osdeploy @@ -10,7 +10,6 @@ import os.path import pwd import shutil import sys -import time path = os.path.dirname(os.path.realpath(__file__)) path = os.path.realpath(os.path.join(path, '..', 'lib', 'python')) @@ -597,7 +596,7 @@ async def osimport(imagefile, checkonly=False, custname=None): sys.stdout.flush() else: print(repr(rsp)) - time.sleep(0.5) + await asyncio.sleep(0.5) finally: if shortname: async for x in c.delete('/deployment/importing/{0}'.format(shortname)):