-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: session status-history
handler
#1116
Conversation
Please refer |
392dd1f
to
66bf742
Compare
I updated this PR, but I think there might be some missing session types in https://github.com/lablup/backend.ai/pull/1116/files#diff-617867996601b356e12de71696162ef8390144f3ba6aaba12da78cb7efabf4f7R961-R969. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's improve the console output:
- Order the status changes in the state machine order (e.g., PENDING, SCHEDULED, PULLING, PREPARING, RUNNING).
- I think we could generalize the status history loop.
- Display relative duration between each status change.
- Format all relative timedelta values using human readable formats.
We will revisit this PR after converting the status history columns from mappings to lists in the chronological order. |
session status-history
handlersession status-history
handler
This will be resolved in #3201. |
Follow-up PR to #480.
Ref: #412.
Currently,
session status-history
raises 404 error because thestatus-history
handler does not exist.Result
In this PR,
session status-history
command prints thestatus-history
like below.But I think it would be nice to find better formatting for the
status-history
instead of just printing OrderedDict.