@@ -560,7 +560,7 @@ def _commitWithThread(self, transaction: CommitTransaction):
560560
561561 record_info_by_name = self .record_info_by_name (record_infos , ioc_info )
562562 self .update_ioc_infos (transaction , ioc_info , records_to_delete , record_info_by_name )
563- poll (__updateCF__ , self , record_info_by_name , records_to_delete , ioc_info )
563+ poll (_updateCF , self , record_info_by_name , records_to_delete , ioc_info )
564564
565565 def remove_channel (self , recordName : str , iocid : str ) -> None :
566566 """Remove channel from self.iocs and self.channel_ioc_ids.
@@ -1037,7 +1037,7 @@ def create_new_channel(
10371037 _log .debug ("Add new alias: %s from %s" , alias , channel_name )
10381038
10391039
1040- def __updateCF__ (
1040+ def _updateCF (
10411041 processor : CFProcessor , record_info_by_name : Dict [str , RecordInfo ], records_to_delete , ioc_info : IocInfo
10421042) -> None :
10431043 """Update Channelfinder with the provided IOC and Record information.
@@ -1068,7 +1068,7 @@ def __updateCF__(
10681068 raise Exception (f"Missing hostName { ioc_info .hostname } or iocName { ioc_info .ioc_name } " )
10691069
10701070 if processor .cancelled :
1071- raise defer .CancelledError ("Processor cancelled in __updateCF__" )
1071+ raise defer .CancelledError (f "Processor cancelled in __updateCF__ for { ioc_info } " )
10721072
10731073 channels : List [CFChannel ] = []
10741074 # A list of channels in channelfinder with the associated hostName and iocName
@@ -1138,7 +1138,7 @@ def __updateCF__(
11381138 if old_channels and len (old_channels ) != 0 :
11391139 cf_set_chunked (client , channels , cf_config .cf_query_limit )
11401140 if processor .cancelled :
1141- raise defer .CancelledError ()
1141+ raise defer .CancelledError (f"Processor cancelled in __updateCF__ for { ioc_info } " )
11421142
11431143
11441144def cf_set_chunked (client : ChannelFinderClient , channels : List [CFChannel ], chunk_size = 10000 ) -> None :
0 commit comments