@transaction.commit_manually
    def run(self):
        try:
            self.discover_models()

            for cycle in range(self.cycles):
                log.info("spamming cycle: %d/%d" % (cycle + 1, self.cycles))
                for app in self.appmodels.keys():
                    self.spam(AbstractRecord(app))
            transaction.commit()
            return (len(self.apps),
                     self.rows_affected,
                     self.fields_spammed,
                     self.fields_omitted)

        except Exception, e:
            log.critical("%s" % e)
            transaction.rollback()
            raise
dataset/ETHPy150Open aerosol/django-dilla/dilla/__init__.py/Dilla.run/original