Skip to content

Commit

Permalink
Make sure job_queue will not timeout when sending event
Browse files Browse the repository at this point in the history
  • Loading branch information
xjules committed Aug 25, 2023
1 parent a0e1259 commit 98d3465
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/ert/job_queue/queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,12 @@ async def _publish_changes(
]
)
while events:
await asyncio.wait_for(ee_connection.send(to_json(events[0])), 60)
while True:
try:
await asyncio.wait_for(ee_connection.send(to_json(events[0])), 60)
break
except asyncio.TimeoutError:
pass
events.popleft()

async def _execution_loop_queue_via_websockets(
Expand Down

0 comments on commit 98d3465

Please sign in to comment.