def wsgi(self): output = super(GunicornFlaskApplication, self).wsgi() with self.application.app_context(): self.run_migration() from src.background import Background Background.run() return output
def wsgi(self): output = super(GunicornFlaskApplication, self).wsgi() with self.application.app_context(): from src.background import Background Background.run() self.clear_download_state() return output