diff --git a/qiskit/backends/ibmq/ibmqbackend.py b/qiskit/backends/ibmq/ibmqbackend.py index cb70abd9f7a7..272a7a0575c1 100644 --- a/qiskit/backends/ibmq/ibmqbackend.py +++ b/qiskit/backends/ibmq/ibmqbackend.py @@ -162,7 +162,6 @@ def jobs(self, limit=50, skip=0, status=None): status = JobStatus[status] while len(job_list) < limit or len(job_info_list) < limit: base_index += limit - job_info_list = self._api.get_jobs(limit=limit, skip=base_index) for job_info in job_info_list: is_device = not bool(self._configuration.get('simulator')) job = IBMQJob.from_api(job_info, self._api, is_device) @@ -171,6 +170,8 @@ def jobs(self, limit=50, skip=0, status=None): job_list.append(job) elif job.status.get('status') == status: job_list.append(job) + job_info_list = self._api.get_jobs(limit=limit, skip=base_index, + backend=backend_name) return job_list def retrieve_job(self, job_id):