Skip to content

Commit

Permalink
Use findSizeLimit as size limit
Browse files Browse the repository at this point in the history
  • Loading branch information
jacomago committed Jul 17, 2024
1 parent 52f0e6b commit 65d2662
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/recceiver/cfstore.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 65d2662

Please sign in to comment.