From: Vasek Sraier Date: Sat, 12 Jun 2021 08:44:01 +0000 (+0200) Subject: supervisord controller: removed sleep(1) from supervisord initialization X-Git-Tag: v6.0.0a1~146 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ffd3ded50dadded34cc4888ba68abf15e3d7a311;p=thirdparty%2Fknot-resolver.git supervisord controller: removed sleep(1) from supervisord initialization This should definitely not be a way to prevent race conditions... --- diff --git a/manager/knot_resolver_manager/kresd_controller/supervisord/config.py b/manager/knot_resolver_manager/kresd_controller/supervisord/config.py index 408234ff2..0008efd57 100644 --- a/manager/knot_resolver_manager/kresd_controller/supervisord/config.py +++ b/manager/knot_resolver_manager/kresd_controller/supervisord/config.py @@ -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():