python ^3.10 support
Since !11 (merged) Python3.13 is required for the ApiConnector. According to the python devguide older versions has to be supported until 2028.
The issue arises as Queue.get raises ShutDown if the queue has been shut down and is empty, or if the queue has been shut down immediately since Python3.13, while for Pyhton3.12 it does not.
This should be resolved before merging develop to main.
Funktion in question is def _send_to_api(self)
in api.py
def _send_to_api(self):
shutdown = False
while not shutdown:
batch = []
for _ in range(API_PACKAGE_SIZE_SEND):
try:
batch.append(self._queue.get(block=True))
except ShutDown:
shutdown = True
break
if batch:
logger.debug("Sending batch of size %s", len(batch))
send_batch(batch)
logger.debug("Consumer shut down")