]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
supervisord controller: removed sleep(1) from supervisord initialization
authorVasek Sraier <git@vakabus.cz>
Sat, 12 Jun 2021 08:44:01 +0000 (10:44 +0200)
committerAleš Mrázek <ales.mrazek@nic.cz>
Fri, 8 Apr 2022 14:17:52 +0000 (16:17 +0200)
This should definitely not be a way to prevent race conditions...

manager/knot_resolver_manager/kresd_controller/supervisord/config.py

index 408234ff2737cdb87e4f89983d2ceffc2f1aa2fa..0008efd57215617e47439ac931b69ca0ad252357 100644 (file)
@@ -32,7 +32,6 @@ async def _create_config_file(config: SupervisordConfig):
 async def start_supervisord(config: SupervisordConfig):
     await _create_config_file(config)
     await call(f'supervisord --configuration="{CONFIG_FILE}"', shell=True)
-    sleep(1)
 
 
 async def stop_supervisord():