Define handler as an async generator in mlrun_footer#197
Merged
rokatyy merged 3 commits intonuclio:masterfrom Jan 28, 2026
Merged
Define handler as an async generator in mlrun_footer#197rokatyy merged 3 commits intonuclio:masterfrom
mlrun_footer#197rokatyy merged 3 commits intonuclio:masterfrom
Conversation
rokatyy
reviewed
Jan 27, 2026
rokatyy
reviewed
Jan 27, 2026
rokatyy
reviewed
Jan 27, 2026
rokatyy
approved these changes
Jan 28, 2026
gtopper
added a commit
to gtopper/mlrun
that referenced
this pull request
Jan 29, 2026
gtopper
added a commit
to mlrun/mlrun
that referenced
this pull request
Jan 29, 2026
Adds support for streaming responses in serving graphs, enabling real-time chunk-by-chunk HTTP responses (e.g., for LLM token streaming). Key changes: * New `set_streaming(enabled=True)` API on serving functions * Async streaming handler that yields results as they're produced by graph steps * Graph steps can now use generators to stream multiple chunks * Updated nuclio handler for generator return type support Using the new functionality introduced in storey 1.11.8 / mlrun/storey#605. [ML-11876](https://iguazio.atlassian.net/browse/ML-11876) Depends on nuclio/nuclio-jupyter#197. [ML-11876]: https://iguazio.atlassian.net/browse/ML-11876?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
ML-11876
Required for mlrun/mlrun#9248.
This is necessary because nuclio's Python wrapper performs static checks on the handler, meaning that it cannot simply act as a pass-through for whaterver
context.mlrun_handler(context, event)returns.