From 65d2662c954c9b9bf63ed987e4e5e5ee4d06a77e Mon Sep 17 00:00:00 2001 From: skybrewer Date: Wed, 17 Jul 2024 14:24:24 +0200 Subject: [PATCH] Use findSizeLimit as size limit --- server/recceiver/cfstore.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/recceiver/cfstore.py b/server/recceiver/cfstore.py index 9db39f7..bb4b7d8 100755 --- a/server/recceiver/cfstore.py +++ b/server/recceiver/cfstore.py @@ -303,14 +303,14 @@ def clean_service(self): return def get_active_channels(self, recceiverid): - return self.client.findByArgs(prepareFindArgs(self.conf, [('pvStatus', 'Active'), (RECCEIVERID_KEY, recceiverid)], 10000)) + return self.client.findByArgs(prepareFindArgs(self.conf, [('pvStatus', 'Active'), (RECCEIVERID_KEY, recceiverid)])) def clean_channels(self, owner, channels): new_channels = [] for ch in channels or []: new_channels.append(ch[u'name']) _log.info("Total channels to update: {nChannels}", nChannels=len(new_channels)) - _log.debug('Update "pvStatus" property to "Inactive" for {n_channels} channels', n_channels=min(len(new_channels), 10000)) + _log.debug('Update "pvStatus" property to "Inactive" for {n_channels} channels', n_channels=min(len(new_channels), self.conf["findSizeLimit"])) self.client.update(property={u'name': 'pvStatus', u'owner': owner, u'value': "Inactive"}, channelNames=new_channels)