Skip to content

Commit

Permalink
bugfixes for local dev setup (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
eriktaubeneck authored May 15, 2024
1 parent 7547d6b commit 999341c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions sidecar/app/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,11 @@ def __enter__(self):
def signal_handler(self, sig, _frame):
print(f"Handling signal: {sig}")
for process in self.processes:
for child in psutil.Process(process.pid).children(recursive=True):
child.terminate()
print(f"Terminating: {child}")
process.terminate()
if psutil.pid_exists(process.pid):
for child in psutil.Process(process.pid).children(recursive=True):
child.terminate()
print(f"Terminating: {child}")
process.terminate()
print(f"Terminating: {process}")
sys.exit(0)

Expand Down
2 changes: 1 addition & 1 deletion sidecar/cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def run_local_dev(
identity=role,
helper_port=helper_ports[role],
sidecar_port=sidecar_ports[role],
root_path=root_path,
root_path=root_path / Path(f"tmp/sidecar/{role.value}"),
_env=_env,
)
for role in Role
Expand Down

0 comments on commit 999341c

Please sign in to comment.