Skip to content

Commit

Permalink
Consistent sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
sondreso committed Sep 12, 2024
1 parent 33d7aab commit dd3fef4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ert/experiment_server/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ async def websocket_endpoint(websocket: WebSocket, experiment_id: str):
print()
print()
await websocket.send_json(jsonable_encoder(item))
await asyncio.sleep(0.1)
await asyncio.sleep(0.01)
if isinstance(item, EndEvent):
break

3 changes: 1 addition & 2 deletions src/ert/gui/simulation/event_fetcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ def consume_and_emit(self) -> None:
logger.debug("stopped")
break
if message is None:
sleep(0.1)
print("Sleep")
sleep(0.01)
continue

print(message)
Expand Down

0 comments on commit dd3fef4

Please sign in to comment.