-
Notifications
You must be signed in to change notification settings - Fork 279
Fix issues with resuming async tasks awaiting a future #1469
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+169
−98
Merged
Changes from all commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
78c50be
Make pending() a public method of Future
bjsowa 428e4e7
Use yielded future to determine whether task is ready to be resumed
bjsowa defad88
Use guard condition to wake up the executor when the task becomes ready
bjsowa 19e9c0a
Add a test for resuming coroutine
bjsowa 534acce
Add call_soon method to the executor
bjsowa 23e334f
Revert changes to executors.py and task.py
bjsowa 6695847
Make the tasks schedule itself to the executor when they can be resumed
bjsowa c6f729c
Fix flake8 error
bjsowa 2a35478
Fix dependent coroutine test
bjsowa e39d310
Disable EventsExecutor tests that result in Segmentation fault
bjsowa 458a73c
Don't schedule tasks when yielding handlers
bjsowa bde1872
Don't remove tasks not managed by this executor
bjsowa faafa26
Raise an error when future awaited a second time
bjsowa 8c1bb36
Disable segfaulting test in EventsExecutor
bjsowa be207ce
Raise exception when resuming a task without an executor
bjsowa a79df94
Fix flake8 warnings
bjsowa 6c19b8e
call_soon -> _call_task_in_next_spin
bjsowa aa5da61
Fix coroutine task requiring 2 spins to resume
bjsowa eab03e3
Merge remote-tracking branch 'origin/rolling' into fix/async-task-resume
bjsowa 2eb1cfb
Move coroutine yield test to executor tests
bjsowa 35be3cc
Assert elapsed time in coroutine thread wakeup test
bjsowa d88d94e
Remove unused imports
bjsowa 44b0f62
Merge remote-tracking branch 'origin/rolling' into fix/async-task-resume
bjsowa bf46550
Set future executor if awaiting a future without one and warn users
bjsowa 91890f3
Use get_logger function
bjsowa e3dd676
Fix return type of Future.__await__
bjsowa 98a9b7a
Move coroutine yield logic out of try block, add helper method
bjsowa bab3ba9
Update coroutine handling exception messages
bjsowa e0f21bf
Use DeprecationWarning instead of logging
bjsowa a0d5592
Remove redundant comment
bjsowa 5a99757
Remove deprecation warning
bjsowa d8db620
Merge remote-tracking branch 'origin/rolling' into fix/async-task-resume
bjsowa 5c0408e
Use executor.create_future() in test
bjsowa 991afa0
Add call_task_in_next_spin to EventsExecutor
bjsowa d27bf64
Reenable EventsExecutor tests
bjsowa dfa0904
Fix new task handling in EventsExecutor
nadavelkabets 23f06e0
Remove unnecessary whitespace
bjsowa cf67589
Enable wake_from_another_thread test for EventsExecutor
bjsowa 9771f6f
Feature: store source entity and node info for pending tasks (#2)
nadavelkabets 5ce6fbd
Fix flake8 warnings
bjsowa 6b38a1e
Merge remote-tracking branch 'origin/rolling' into fix/async-task-resume
bjsowa File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.