You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Found this morning, I'd changed a state to return True rather than None, and all of a sudden timeouts in that state didn't work. I changed it back, and they do. @knitHacker looked into it just now and says that when we return True we run the on_leave method, which will reset both the timers and the retries. That seems unexpected to me.
So I think that this should technically be an error. States should return a state, or nothing. I'll update documentation, but would you be comfortable if this just raised a ValueError?
If we didn't return anything at all, or we returned that we swallowed the message, we'll assume that the FSM is no longer busy and is waiting on some external message to move the state along
It's long past time we wrote up some formal specs.
Found this morning, I'd changed a state to return True rather than None, and all of a sudden timeouts in that state didn't work. I changed it back, and they do. @knitHacker looked into it just now and says that when we return True we run the
on_leave
method, which will reset both the timers and the retries. That seems unexpected to me.@Jeff-Ciesielski
The text was updated successfully, but these errors were encountered: