-
Notifications
You must be signed in to change notification settings - Fork 110
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
Remove asyncio.run_in_executor() calls and make scheduler cancel() async #9664
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -503,12 +503,9 @@ async def run_monitor( | |
EESnapshotUpdate, | ||
}: | ||
event = cast(EESnapshot | EESnapshotUpdate, event) | ||
await asyncio.get_running_loop().run_in_executor( | ||
None, | ||
self.send_snapshot_event, | ||
event, | ||
iteration, | ||
) | ||
|
||
self.send_snapshot_event(event, iteration) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's test this first on bigpoly with 400 realizations There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Tested with 200 realizations, and there was no difference. I think it should be sufficient There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Tested with 400 realization, and it was the same |
||
|
||
if event.snapshot.get(STATUS) in { | ||
ENSEMBLE_STATE_STOPPED, | ||
ENSEMBLE_STATE_FAILED, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we remove
self._loop
attribute as well?