Skip to content

Conversation

@gtopper
Copy link
Collaborator

@gtopper gtopper commented Dec 22, 2025

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()`

[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
@gtopper gtopper requested a review from danielperezz December 22, 2025 13:53
@gtopper gtopper requested a review from a team as a code owner December 22, 2025 13:53
@gtopper gtopper changed the title [Serving] Avoid creating an output artifact in serving job without respond() [Serving] Avoid creating an output artifact in serving job without respond() [1.10.x] Dec 22, 2025
Copy link
Contributor

@danielperezz danielperezz left a 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)")
Copy link
Contributor

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

Copy link
Collaborator Author

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.

@gtopper gtopper merged commit d48a638 into mlrun:1.10.x Dec 22, 2025
21 checks passed
gtopper added a commit to gtopper/mlrun that referenced this pull request Dec 22, 2025
…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
assaf758 pushed a commit that referenced this pull request Dec 22, 2025
…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
omermaim added a commit to omermaim/mlrun that referenced this pull request Dec 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants