Skip to content

Commit

Permalink
Use tmp path for user config for k8s compat
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel committed May 20, 2024
1 parent 4a01d2f commit 8bdf324
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion neon_hana/mq_websocket_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

from asyncio import run, get_event_loop
from os import makedirs
from time import time
from fastapi import WebSocket
from neon_iris.client import NeonAIClient
Expand All @@ -39,7 +40,9 @@ def __init__(self, config: dict):
Creates an MQWebsocketAPI to serve multiple client WS connections.
"""
mq_config = config.get("MQ") or dict()
NeonAIClient.__init__(self, mq_config)
config_dir = "/tmp/hana"
makedirs(config_dir, exist_ok=True)
NeonAIClient.__init__(self, mq_config, config_dir=config_dir)
self._sessions = dict()
self._session_lock = RLock()
self._client = "neon_node_websocket"
Expand Down

0 comments on commit 8bdf324

Please sign in to comment.