Skip to content
Snippets Groups Projects
Commit 2f1b97a7 authored by Krzysztof Mochocki's avatar Krzysztof Mochocki
Browse files

Fix force killing of beekeepy

parent ce6131b6
No related branches found
No related tags found
1 merge request!73Clive integration related fixes
......@@ -151,12 +151,12 @@ class Executable(Closeable, Generic[ConfigT, ArgumentT]):
return_code = self.__process.wait(timeout=timeout_secs)
self._logger.debug(f"Closed with {return_code} return code")
except subprocess.TimeoutExpired:
self.__raise_exception_if_timeout_on_close()
self.__process.kill()
self.__process.wait()
self.__process = None
self.__files.close()
self.__warn_if_pid_files_exists()
self.__raise_exception_if_timeout_on_close()
finally:
self.__process = None
self.__files.close()
def __warn_if_pid_files_exists(self) -> None:
if self.__pid_files_exists():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment