-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add
session watch
command to client-py (#440)
* It supports `--output=json` mode as well. * The exit code follows the session's startup command result.
- Loading branch information
Showing
6 changed files
with
347 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Add `backend.ai session watch` command to display the event stream of target session. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from typing import Final | ||
|
||
KERNEL_CANCELLED: Final[str] = 'kernel_cancelled' | ||
KERNEL_CREATING: Final[str] = 'kernel_creating' | ||
KERNEL_STARTED: Final[str] = 'kernel_started' | ||
KERNEL_TERMINATED: Final[str] = 'kernel_terminated' | ||
KERNEL_TERMINATING: Final[str] = 'kernel_terminating' | ||
SESSION_FAILURE: Final[str] = 'session_failure' | ||
SESSION_STARTED: Final[str] = 'session_started' | ||
SESSION_SUCCESS: Final[str] = 'session_success' | ||
SESSION_TERMINATED: Final[str] = 'session_terminated' |
Oops, something went wrong.