Skip to content

Commit 77d7c03

Browse files
andywagfacebook-github-bot
authored andcommitted
Remove crash from AIPM in torchX at end
Summary: AIPM is crashing when closing the application. This resolves this by not killing the app_ids Differential Revision: D72580570
1 parent bec9317 commit 77d7c03

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

torchx/schedulers/local_scheduler.py

-4
Original file line numberDiff line numberDiff line change
@@ -1109,10 +1109,6 @@ def _cancel_existing(self, app_id: str) -> None:
11091109
local_app.state = AppState.CANCELLED
11101110

11111111
def close(self) -> None:
1112-
# terminate all apps
1113-
for app_id, app in self._apps.items():
1114-
log.debug(f"Terminating app: {app_id}")
1115-
app.kill()
11161112
# delete logdir if torchx created a log dir
11171113
if self._base_log_dir and self._created_tmp_log_dir:
11181114
shutil.rmtree(self._base_log_dir, ignore_errors=True)

0 commit comments

Comments
 (0)