Skip to content

Commit

Permalink
improve commment on process ids
Browse files Browse the repository at this point in the history
  • Loading branch information
axelwalter committed Feb 14, 2024
1 parent 9fd5bfc commit af54b2f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/workflow/CommandExecutor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit af54b2f

Please sign in to comment.