Skip to content

Commit

Permalink
fix blocking queue
Browse files Browse the repository at this point in the history
  • Loading branch information
sondreso committed Sep 9, 2024
1 parent ea0f79d commit a999bc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ert/experiment_server/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ async def websocket_endpoint(websocket: WebSocket, experiment_id: str):
q = experiments[experiment_id][1]
while True:
try:
item: StatusEvents = q.get()
item: StatusEvents = q.get(block=False)
except queue.Empty:
asyncio.sleep(0.01)
continue
Expand Down

0 comments on commit a999bc4

Please sign in to comment.