-
Notifications
You must be signed in to change notification settings - Fork 52
[AQUA Telemetry] Update MD Tracking #1193
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
Merged
Merged
Changes from 7 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
f6e3f00
initial commit WIP
agrimk 619a925
ODSC-70841 Improve Model Deployment Status Tracking
agrimk 2608622
Merge branch 'main' into ODSC-70841_update_md_tracking
mrDzurb 6917c98
PR review comments
agrimk 075d714
Merge branch 'ODSC-70841_update_md_tracking' of github.com:oracle/acc…
agrimk bc41862
Merge branch 'main' of github.com:oracle/accelerated-data-science int…
agrimk 5e84eaf
PR review comments
agrimk f3a9e9d
testing in INT
agrimk fc4c72a
testing in INT
agrimk fd09187
Merge branch 'main' into ODSC-70841_update_md_tracking
mrDzurb c0c072f
handling failure case and PR review comments
agrimk bf2953b
Merge branch 'ODSC-70841_update_md_tracking' of github.com:oracle/acc…
agrimk 8b143ff
adding env vars for tracking of SMC in telemetry
agrimk cabbfa4
merge conflicts resolved
agrimk c2b8d41
moved wait work request to background thread
agrimk a96bb82
Merge branch 'main' into ODSC-70841_update_md_tracking
mrDzurb a58ea43
corrected imports
agrimk 3938aac
pull from main branch
agrimk 8f2e0a0
Merge branch 'main' into ODSC-70841_update_md_tracking
VipulMascarenhas 4507162
fixed unit tests
agrimk 6eeb6cb
merge of master
agrimk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
|
@@ -37,7 +37,7 @@ def __init__( | |
description: str = "Processing", | ||
config: dict = None, | ||
signer: Signer = None, | ||
client_kwargs: dict = None, | ||
client_kwargs: dict = None, | ||
**kwargs | ||
) -> None: | ||
"""Initializes ADSWorkRequest object. | ||
|
@@ -65,6 +65,7 @@ def __init__( | |
self._description = description | ||
self._percentage = 0 | ||
self._status = None | ||
_error_message = None | ||
super().__init__(config, signer, client_kwargs, **kwargs) | ||
|
||
|
||
|
@@ -78,6 +79,7 @@ def _sync(self): | |
self._percentage= work_request.percent_complete | ||
self._status = work_request.status | ||
self._description = work_request_logs[-1].message if work_request_logs else "Processing" | ||
if work_request.status == 'FAILED' : self._error_message = self.client.list_work_request_errors | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. might be good to show an example output for failed and successful MD in the PR description. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also let's use ruff formatter to format the code. |
||
|
||
def watch( | ||
self, | ||
|
This file contains hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
can
_error_message
be None for any reason? Might be good to dodetail=data_science_work_request._error_message or UNKNOWN
to avoid unforeseen issues in telemetry logging.