-
Notifications
You must be signed in to change notification settings - Fork 116
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
Wrap call to 'predict' with usage_collector #548
Wrap call to 'predict' with usage_collector #548
Conversation
45eeedd
to
347850d
Compare
f2cd8c5
to
e0dbe78
Compare
except Exception as exc: | ||
logger.debug("Unable to create instance of SQLiteQueue, %s", exc) | ||
logger.debug("No persistence") |
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.
aren't we fallbacking into memory queue here?
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.
Yes, hence no persistence
@@ -118,10 +118,12 @@ def empty(self, connection: Optional[sqlite3.Connection] = None) -> bool: | |||
|
|||
return rows_count == 0 | |||
|
|||
def _flush_db(self, connection: sqlite3.Connection) -> List[Dict[str, Any]]: | |||
def _flush_db( |
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.
👍
a5c9f2d
to
bfc9be4
Compare
…ils submodule; bump version
d415ba2
to
97159cf
Compare
…un); pass is_preview to UsageCollector; store is_preview in resource details
Track preview workflows
Description
Enable collecting usage when calling predict
Type of change
Please delete options that are not relevant.
How has this change been tested, please provide a testcase or example of how you tested the change?
CI tests
Any specific deployment considerations
N/A
Docs
N/A