Skip to content

Commit

Permalink
Add logging to kill
Browse files Browse the repository at this point in the history
  • Loading branch information
ayjayt committed Jan 29, 2025
1 parent 65a9680 commit 4313b90
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions choreographer/utils/_kill.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
import platform
import subprocess

import logistro

_logger = logistro.getLogger(__name__)


def kill(process: subprocess.Popen[bytes]) -> None:
if platform.system() == "Windows":
Expand All @@ -13,5 +17,7 @@ def kill(process: subprocess.Popen[bytes]) -> None:
)
else:
process.terminate()
_logger.info("Called terminate")
if process.poll() is None:
_logger.info("Calling kill")
process.kill()

0 comments on commit 4313b90

Please sign in to comment.