From 225a1e8ea6ba5d990ccd161674388467423a7607 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5vard=20Berland?= Date: Tue, 12 Dec 2023 10:06:39 +0100 Subject: [PATCH] Let publisher_task exit gracefully when nothing to do --- src/ert/scheduler/scheduler.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ert/scheduler/scheduler.py b/src/ert/scheduler/scheduler.py index 9e02a7d3b7c..5b900479e5c 100644 --- a/src/ert/scheduler/scheduler.py +++ b/src/ert/scheduler/scheduler.py @@ -85,6 +85,8 @@ def set_ee_info( self._ee_token = ee_token async def _publisher(self) -> None: + if not self._ee_uri: + return tls: Optional[ssl.SSLContext] = None if self._ee_cert: tls = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT)