Skip to content

Commit

Permalink
Update local_scheduler.py (#839)
Browse files Browse the repository at this point in the history
D53788269 was landed without updating its linked PR.
This commit is adding the missing piece.
  • Loading branch information
yikaiMeta authored Mar 1, 2024
1 parent e5cb668 commit 6f5f70a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions torchx/schedulers/local_scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,12 @@ def get_entrypoint(self, img_root: str, role: Role) -> str:


class PopenProtocol(Protocol):
"""
Protocol wrapper around python's ``subprocess.Popen``. Keeps track of
the a list of interface methods that the process scheduled by the `LocalScheduler`
must implement.
"""

@property
def pid(self) -> int:
...
Expand Down

0 comments on commit 6f5f70a

Please sign in to comment.