@gen.engine
def SetupAndDispatch(callback):
  EmailManager.SetInstance(SendGridEmailManager())

  # Try not to disturb production usage while checking and repairing the database.
  ThrottleUsage()

  client = db_client.DBClient.Instance()

  # Dispatch command-line options.
  yield gen.Task(Dispatch, client)
  callback()
Sets the environment and dispatches according to command-line options.
dataset/ETHPy150Open viewfinderco/viewfinder/backend/db/tools/dbchk.py/SetupAndDispatch