Skip to content

Commit

Permalink
Decrease timeout when connecting to websocket
Browse files Browse the repository at this point in the history
Set timeout in wait_for_evaluator

Without this, ert will wait for 60s before letting users know
that a workflow has failed.

Co-authored-by: Sondre <[email protected]>
  • Loading branch information
dafeda and sondreso committed Dec 5, 2023
1 parent 87fc886 commit a5881af
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/ert/ensemble_evaluator/sync_ws_duplexer.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,16 +74,14 @@ async def _connect(self) -> None:
extra_headers=self._extra_headers,
max_size=2**26,
max_queue=500,
open_timeout=60,
open_timeout=5,
ping_timeout=60,
ping_interval=60,
close_timeout=60,
)

await wait_for_evaluator(
base_url=self._hc_uri,
token=self._token,
cert=self._cert,
base_url=self._hc_uri, token=self._token, cert=self._cert, timeout=5
)

self._ws = await connect
Expand Down

0 comments on commit a5881af

Please sign in to comment.