From af54b2f3efae2475613378b848d13a1a7429791c Mon Sep 17 00:00:00 2001 From: axelwalter Date: Wed, 14 Feb 2024 13:26:55 +0100 Subject: [PATCH] improve commment on process ids --- src/workflow/CommandExecutor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/workflow/CommandExecutor.py b/src/workflow/CommandExecutor.py index 6218771..614faf2 100644 --- a/src/workflow/CommandExecutor.py +++ b/src/workflow/CommandExecutor.py @@ -87,7 +87,8 @@ def run_command(self, command: list[str], write_log: bool = True) -> None: process = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE) child_pid = process.pid - # Record the PID for potential management + # Record the PID to keep track of running processes associated with this workspace/workflow + # User can close the Streamlit app and return to a running workflow later pid_file_path = self.pid_dir / str(child_pid) pid_file_path.touch()