AppController/djinn.rb
# Runs the Groomer service that the Datastore provides, which cleans up
# deleted entries and generates statistics about the entities stored for each
# application.
#
# Args:
#   secret: A String with the shared key for authentication.
# Returns:
#   'OK' if the groomer was invoked, and BAD_SECRET_MSG if the user failed to
#   authenticate correctly.
Runs the Groomer service that the Datastore provides, which cleans up
deleted entries and generates statistics about the entities stored for each
application.

A String with the shared key for authentication.
Returns:
'OK' if the groomer was invoked, and BAD_SECRET_MSG if the user failed to
authenticate correctly.
Runs the Groomer service that the Datastore provides which cleans up deleted entries and generates statistics about the entities stored for each application . A String with the shared key for authentication . Returns : ' OK ' if the groomer was invoked and BAD_SECRET_MSG if the user failed to authenticate correctly .
def run_groomer(secret)
    return BAD_SECRET_MSG unless valid_secret?(secret)
    Thread.new {
      run_groomer_command = "#{PYTHON27} #{APPSCALE_HOME}/AppDB/groomer.py"
      if my_node.is_db_master?
        Djinn.log_run(run_groomer_command)
      else
        db_master = get_db_master()
        HelperFunctions.run_remote_command(db_master.private_ip,
          run_groomer_command, db_master.ssh_key, NO_OUTPUT)
      end
    }
    return 'OK'
  end
def run_groomer ( secret ) return BAD_SECRET_MSG unless valid_secret? ( secret ) Thread . new { run_groomer_command = "#{PYTHON27} #{APPSCALE_HOME}/AppDB/groomer.py" if my_node . is_db_master? Djinn . log_run ( run_groomer_command ) else db_master = get_db_master ( ) HelperFunctions . run_remote_command ( db_master . private_ip , run_groomer_command , db_master . ssh_key , NO_OUTPUT ) end } return 'OK' end
Runs the Groomer service that the Datastore provides, which cleans up
deleted entries and generates statistics about the entities stored for each
application.
Runs the Groomer service that the Datastore provides which cleans up deleted entries and generates statistics about the entities stored for each application .
secret
<not_specific>