chore: merge dev into refactor/config-file

Merged the latest changes from dev into this branch to stay up to date with current development.

ref: N25B-236
This commit is contained in:
Pim Hutting
2025-11-05 13:49:38 +01:00
15 changed files with 184 additions and 161 deletions

View File

@@ -4,10 +4,10 @@ import logging
import zmq
from spade.agent import Agent
from spade.behaviour import CyclicBehaviour
from zmq.asyncio import Context
from control_backend.agents.ri_command_agent import RICommandAgent
from control_backend.core.config import settings
from control_backend.core.zmq_context import context
logger = logging.getLogger(__name__)
@@ -74,7 +74,7 @@ class RICommunicationAgent(Agent):
# Let's try a certain amount of times before failing connection
while retries < max_retries:
# Bind request socket
self.req_socket = context.socket(zmq.REQ)
self.req_socket = Context.instance().socket(zmq.REQ)
if self._bind:
self.req_socket.bind(self._address)
else: