Skip to content
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

Make forwardmodelrunner async #9198

Open
wants to merge 23 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix asyncio.TimeoutError in event.py
  • Loading branch information
jonathan-eq committed Nov 26, 2024
commit 5d3cac822ae8c20c52d69aa2ef0e7e1181b90da9
9 changes: 6 additions & 3 deletions src/_ert/forward_model_runner/reporting/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,12 @@ async def async_event_publisher(self):
if event is None:
# if we successfully sent the event we can proceed
# to next one
event = await asyncio.wait_for(
self._event_queue.get(), timeout=self._queue_polling_timeout
)
try:
event = await asyncio.wait_for(
self._event_queue.get(), timeout=self._queue_polling_timeout
)
except asyncio.TimeoutError:
continue
if event is self._sentinel:
self._event_queue.task_done()
break
Expand Down