parameters: (self)
docstring: Starts up the `CLEANER` (assigned to that global)
          `~tornado.ioloop.PeriodicCallback` that regularly checks for and
          deletes expired user logs (e.g. terminal session logs or anything in the
          `<user_dir>/<user>/logs` dir) and old session directories via the
          :func:`cleanup_user_logs` and :func:`cleanup_old_sessions` functions.
  
          The interval in which it performs this check is controlled via the
          `cleanup_interval` setting. This setting is not included in Gate One's
          10server.conf by default but can be added if needed to override the
          default value of 5 minutes.  Example:
  
          .. code-block:: javascript
  
              {
                  "*": {
                      "gateone": {
                          "cleanup_interval": "5m"
                      }
                  }
              }
docstring_summary: Starts up the `CLEANER` (assigned to that global)
          `~tornado.ioloop.PeriodicCallback` that regularly checks for and
          deletes expired user logs (e.g. terminal session logs or anything in the
          `<user_dir>/<user>/logs` dir) and old session directories via the
          :func:`cleanup_user_logs` and :func:`cleanup_old_sessions` functions.
docstring_tokens: Starts up the CLEANER ( assigned to that global ) ~tornado . ioloop . PeriodicCallback that regularly checks for and deletes expired user logs ( e . g . terminal session logs or anything in the <user_dir > / <user > / logs dir ) and old session directories via the : func : cleanup_user_logs and : func : cleanup_old_sessions functions .
function: def _start_cleaner(self):
          """
          Starts up the `CLEANER` (assigned to that global)
          `~tornado.ioloop.PeriodicCallback` that regularly checks for and
          deletes expired user logs (e.g. terminal session logs or anything in the
          `<user_dir>/<user>/logs` dir) and old session directories via the
          :func:`cleanup_user_logs` and :func:`cleanup_old_sessions` functions.
  
          The interval in which it performs this check is controlled via the
          `cleanup_interval` setting. This setting is not included in Gate One's
          10server.conf by default but can be added if needed to override the
          default value of 5 minutes.  Example:
  
          .. code-block:: javascript
  
              {
                  "*": {
                      "gateone": {
                          "cleanup_interval": "5m"
                      }
                  }
              }
          """
          global CLEANER
          if not CLEANER:
              default_interval = 5*60*1000 # 5 minutes
              # NOTE: This interval isn't in the settings by default because it is
              # kind of obscure.  No reason to clutter things up.
              interval = self.prefs['*']['gateone'].get(
                  'cleanup_interval', default_interval)
              td = convert_to_timedelta(interval)
              interval = ((
                  td.microseconds +
                  (td.seconds + td.days * 24 * 3600) *
                  10**6) / 10**6) * 1000
              CLEANER = tornado.ioloop.PeriodicCallback(clean_up, interval)
              CLEANER.start()
function_tokens: def _start_cleaner ( self ) : global CLEANER if not CLEANER : default_interval = 5 * 60 * 1000 # 5 minutes # NOTE: This interval isn't in the settings by default because it is # kind of obscure.  No reason to clutter things up. interval = self . prefs [ '*' ] [ 'gateone' ] . get ( 'cleanup_interval' , default_interval ) td = convert_to_timedelta ( interval ) interval = ( ( td . microseconds + ( td . seconds + td . days * 24 * 3600 ) * 10 ** 6 ) / 10 ** 6 ) * 1000 CLEANER = tornado . ioloop . PeriodicCallback ( clean_up , interval ) CLEANER . start ( )