Skip to content

Commit

Permalink
Display job and program id in service.jobs() (Qiskit#87)
Browse files Browse the repository at this point in the history
Co-authored-by: Rathish Cholarajan <rathishc24@gmail.com>
  • Loading branch information
daka1510 and rathishcholarajan authored Jan 10, 2022
1 parent 29de539 commit c3c5483
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions qiskit_ibm_runtime/runtime_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,9 @@ def _empty_result_queue(self, result_queue: queue.Queue) -> None:
except queue.Empty:
pass

def __repr__(self) -> str:
return f"<{self.__class__.__name__}('{self._job_id}', '{self._program_id}')>"

@property
def job_id(self) -> str:
"""Return a unique ID identifying the job.
Expand Down

0 comments on commit c3c5483

Please sign in to comment.