-
Notifications
You must be signed in to change notification settings - Fork 293
[Serving] Avoid creating an output artifact in serving job without respond() [1.10.x]
#9104
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
Conversation
…respond()` [ML-11400](https://iguazio.atlassian.net/browse/ML-11400) Also: * Avoid creating per-model artifacts when the output schema doesn't fit * Avoid failing the job if per-model artifact creation fails * Expand tests to cover output artifacts * Fix minor static code analysis warning
respond()respond() [1.10.x]
danielperezz
left a comment
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.
Looks great! had just one comment, not directly related to your changes
| df = data.as_df() | ||
|
|
||
| if df.empty: | ||
| context.logger.warn("Job terminated due to empty inputs (0 rows)") |
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.
Perhaps we should consider adding after this line:
context.log_result("num_rows", run_call_count) # run_call_count=0
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.
But the input is empty, and run_call_count will necessarily always be zero? It doesn't get incremented until later in the function.
…respond()` Forward-port of mlrun#9104. [ML-11400](https://iguazio.atlassian.net/browse/ML-11400) Also: * Avoid creating per-model artifacts when the output schema doesn't fit * Avoid failing the job if per-model artifact creation fails * Expand tests to cover output artifacts * Fix minor static code analysis warning
…espond()` (#9106) Forward-port of #9104. [ML-11400](https://iguazio.atlassian.net/browse/ML-11400) Also: * Avoid creating per-model artifacts when the output schema doesn't fit * Avoid failing the job if per-model artifact creation fails * Expand tests to cover output artifacts * Fix minor static code analysis warning [ML-11400]: https://iguazio.atlassian.net/browse/ML-11400?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
…thout `respond()` [1.10.x] (mlrun#9104)" This reverts commit d48a638.
ML-11400
Also: