Commit 0836138
committed
Fix infinite loop in actor decorator for finished actors
Previously, the actor decorator was causing an infinite loop
for actors that had finished normally (without exceptions)
even when the restart_limit attribute was set to zero.
This was particularly problematic in test cases where the
restart_limit attribute was intended to limit the number of
times an actor can be restarted.
To address this issue, the patch modified the code to consider
the restart_limit attribute in cases where exceptions different
than CancelledError are raised or when an actor finishes normally.
This ensures that the actor decorator does not cause an infinite
loop for finished actors, and the restart_limit attribute works
as expected.
Signed-off-by: Daniel Zullo <[email protected]>1 parent 94b031e commit 0836138
1 file changed
+10
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
204 | | - | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
205 | 210 | | |
206 | 211 | | |
207 | 212 | | |
208 | 213 | | |
209 | 214 | | |
210 | 215 | | |
211 | 216 | | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
| |||
0 commit comments