Skip to content

Commit 6d314bb

Browse files
author
Alan Christie
committed
fix: Attempt to fix 'silence'
1 parent eae5a8b commit 6d314bb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

operator/handlers.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,12 @@ def configure(settings: kopf.OperatorSettings, **_: Any) -> None:
9898
# Here we adjust the logging level
9999
settings.posting.level = logging.INFO
100100

101+
# Attempt to protect ourselves from missing watch events.
102+
# See https://github.com/nolar/kopf/issues/698
103+
# Added in an attempt to prevent the operator "falling silent"
104+
settings.watching.server_timeout = 120
105+
settings.watching.client_timeout = 150
106+
101107

102108
@kopf.on.create("squonk.it", "v2", "jupyternotebooks", id="jupyter")
103109
def create(spec: Dict[str, Any], name: str, namespace: str, **_: Any) -> Dict[str, Any]:

0 commit comments

Comments
 (0)