1- """Split changes processing worker."""
1+ """Feature Flag changes processing worker."""
22import logging
33import threading
44
77
88
99class SplitWorker (object ):
10- """Split Worker for processing updates."""
10+ """Feature Flag Worker for processing updates."""
1111
1212 _centinel = object ()
1313
1414 def __init__ (self , synchronize_split , split_queue ):
1515 """
1616 Class constructor.
1717
18- :param synchronize_split: handler to perform split synchronization on incoming event
18+ :param synchronize_split: handler to perform feature flag synchronization on incoming event
1919 :type synchronize_split: callable
2020
21- :param split_queue: queue with split updates notifications
21+ :param split_queue: queue with feature flag updates notifications
2222 :type split_queue: queue
2323 """
2424 self ._split_queue = split_queue
@@ -38,11 +38,11 @@ def _run(self):
3838 break
3939 if event == self ._centinel :
4040 continue
41- _LOGGER .debug ('Processing split_update %d' , event .change_number )
41+ _LOGGER .debug ('Processing feature flag update %d' , event .change_number )
4242 try :
4343 self ._handler (event .change_number )
4444 except Exception : # pylint: disable=broad-except
45- _LOGGER .error ('Exception raised in split synchronization' )
45+ _LOGGER .error ('Exception raised in feature flag synchronization' )
4646 _LOGGER .debug ('Exception information: ' , exc_info = True )
4747
4848 def start (self ):
@@ -52,13 +52,13 @@ def start(self):
5252 return
5353 self ._running = True
5454
55- _LOGGER .debug ('Starting Split Worker' )
55+ _LOGGER .debug ('Starting Feature Flag Worker' )
5656 self ._worker = threading .Thread (target = self ._run , name = 'PushSplitWorker' , daemon = True )
5757 self ._worker .start ()
5858
5959 def stop (self ):
6060 """Stop worker."""
61- _LOGGER .debug ('Stopping Split Worker' )
61+ _LOGGER .debug ('Stopping Feature Flag Worker' )
6262 if not self .is_running ():
6363 _LOGGER .debug ('Worker is not running' )
6464 return
0 commit comments