def METHOD_NAME(self, cb):
    status_mapper = {
        'successful': 'success',
    }
    this = self.__class__.objects.get(id=self.id)
    this.status = status_mapper.get(cb.status, cb.status)
    this.summary = cb.summary
    this.result = cb.result
    this.finish_task()
    print("Finished")