def get_job_overall_result(self):
        """
        check the status of all the jobs and return the overall session result
        """
        for job in self.doc['jobs'].values():
            if job['status'] != 'completed':
                return 'running'
            if job['result'] != 'success':
                return 'fail'
        return 'success'
dataset/ETHPy150Open openstack/freezer-api/freezer_api/api/v1/sessions.py/Session.get_job_overall_result/original