def after_return(self, status, retval, task_id, args, kwargs, einfo):
        from panda.models import TaskStatus

        query = args[0]
        task_status = TaskStatus.objects.get(id=args[1])

        self.send_notifications(query, task_status, retval, einfo)
Save final status, results, etc.
dataset/ETHPy150Open pandaproject/panda/panda/tasks/export_search.py/ExportSearchTask.after_return