Commit af69b05
authored
Add overridable
Adds an `is_streaming()` method to `ParallelExecutionRunnable` that detects whether the runnable produces streaming output by inspecting `run()` and `run_async()` for generator functions.
>
> Subclasses can override this method when streaming detection requires custom logic (e.g., when the runnable delegates to other methods like `predict()` in mlrun).
To enable a cleaner solution to [ML-11878](https://iguazio.atlassian.net/browse/ML-11878).is_streaming() to runnables (#611)1 parent 0bc0410 commit af69b05
2 files changed
+60
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1796 | 1796 | | |
1797 | 1797 | | |
1798 | 1798 | | |
| 1799 | + | |
| 1800 | + | |
| 1801 | + | |
| 1802 | + | |
| 1803 | + | |
| 1804 | + | |
| 1805 | + | |
| 1806 | + | |
| 1807 | + | |
| 1808 | + | |
| 1809 | + | |
| 1810 | + | |
1799 | 1811 | | |
1800 | 1812 | | |
1801 | 1813 | | |
| |||
1963 | 1975 | | |
1964 | 1976 | | |
1965 | 1977 | | |
1966 | | - | |
1967 | | - | |
| 1978 | + | |
1968 | 1979 | | |
1969 | 1980 | | |
1970 | 1981 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
65 | 72 | | |
66 | 73 | | |
67 | 74 | | |
| |||
120 | 127 | | |
121 | 128 | | |
122 | 129 | | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
123 | 170 | | |
124 | 171 | | |
125 | 172 | | |
| |||
0 commit comments