Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
use optional wait to change polling rate (#765)
Browse files Browse the repository at this point in the history
Co-authored-by: Kevin Tian <[email protected]>
  • Loading branch information
splch and kt474 authored Nov 15, 2023
1 parent 5cd1c8b commit bb6adfe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion qiskit_ibm_provider/job/ibm_circuit_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -641,6 +641,7 @@ def _get_params(self) -> None:
def wait_for_final_state( # pylint: disable=arguments-differ
self,
timeout: Optional[float] = None,
wait: int = 3,
) -> None:
"""Use the websocket server to wait for the final the state of a job. The server
will remain open if the job is still running and the connection will be terminated
Expand All @@ -665,7 +666,7 @@ def wait_for_final_state( # pylint: disable=arguments-differ
raise IBMJobTimeoutError(
f"Timed out waiting for job to complete after {timeout} secs."
)
time.sleep(3)
time.sleep(wait)
status = self.status()
except futures.TimeoutError:
raise IBMJobTimeoutError(
Expand Down

0 comments on commit bb6adfe

Please sign in to comment.