Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions torchx/runner/test/api_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ def test_empty_session_id(self, _: MagicMock) -> None:
)

app_handle = runner.run(app, "local", self.cfg)
runner.wait(app_handle, wait_interval=0.1)

scheduler, session_name, app_id = parse_app_handle(app_handle)
self.assertEqual(scheduler, "local")
Expand Down
2 changes: 1 addition & 1 deletion torchx/schedulers/local_scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ def terminate(self) -> None:
"""
# safe to call terminate on a process that already died
try:
os.killpg(self.proc.pid, signal.SIGTERM)
os.kill(self.proc.pid, signal.SIGTERM)
except ProcessLookupError as e:
log.debug(f"Process {self.proc.pid} already got terminated")

Expand Down
Loading