def METHOD_NAME(self, value, should_save_to_file=True):
    if value == SEARCH_FINISHED:
        self.finished = True
        self.save()
    if not should_save_to_file:
        return
    status = {
        'status': value,
        'process': self.process_id
    }
    self.save_to_file(results=status)