parameters: (self)
docstring: This method is called by the mgr when the module starts and can be
          used for any background activity.
docstring_summary: This method is called by the mgr when the module starts and can be
          used for any background activity.
docstring_tokens: This method is called by the mgr when the module starts and can be used for any background activity .
function: def serve(self) -> None:
          """
          This method is called by the mgr when the module starts and can be
          used for any background activity.
          """
          self.log.info("Starting")
          while self.run:
              # Do some useful background work here.
  
              # Use mgr_tick_period (default: 2) here just to illustrate
              # consuming native ceph options.  Any real background work
              # would presumably have some more appropriate frequency.
              sleep_interval = self.mgr_tick_period
              self.log.debug('Sleeping for %d seconds', sleep_interval)
              self.event.wait(sleep_interval)
              self.event.clear()
function_tokens: def serve ( self ) -> None : self . log . info ( "Starting" ) while self . run : # Do some useful background work here. # Use mgr_tick_period (default: 2) here just to illustrate # consuming native ceph options.  Any real background work # would presumably have some more appropriate frequency. sleep_interval = self . mgr_tick_period self . log . debug ( 'Sleeping for %d seconds' , sleep_interval ) self . event . wait ( sleep_interval ) self . event . clear ( )