code: def audit_ghosts(self):
          
          print_header = True
          for app_name in self._get_ghosts():
              if print_header:
                  print_header = False
                  print (
                      "Found the following in the state database but not "
                      "available as a configured job:"
                  )
              print "\t%s" % (app_name,)
docs: compare the list of configured jobs with the jobs in the state