-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed resume state transition behavior
After some stress tests performed on plumpy to verify its conistency in state changes, i discovered an error that can be ignored: if `resume` is called on an already resumed process an `asyncio.exceptions.InvalidStateError` is raised blocking the execution of the process. This error can happen due to some concurrent calls, and it should be ignored, since the task was already resumed successfully, also this fix is going to match the behavior of the other state transitions: calling `play` on an already running process and calling `pause` on an already paused process isn't rising any error.
- Loading branch information
Showing
3 changed files
with
35 additions
and
6 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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