Skip to content
This repository has been archived by the owner on Aug 21, 2023. It is now read-only.

Commit

Permalink
Add missing int cast for QISKIT_CELL_TIMEOUT (#1092)
Browse files Browse the repository at this point in the history
In #1091 we added a new env var to enable downstream CI to adjust the
per cell timeout to make things more reliable in variable performance
environments. But in that PR we neglected to cast the value of the env
var, which is always a string, to an int. This commit fixes that
oversight so the new env var is actually usable.
  • Loading branch information
mtreinish committed Nov 30, 2020
1 parent 11db5ee commit fcc0409
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
exclude_patterns = ['*.ipynb', '_build', 'legacy_tutorials',
'**.ipynb_checkpoints']

cell_timeout = os.getenv('QISKIT_CELL_TIMEOUT', 180)
cell_timeout = int(os.getenv('QISKIT_CELL_TIMEOUT', 180))
nbsphinx_timeout = cell_timeout
nbsphinx_execute = 'always'
nbsphinx_execute_arguments = [
Expand Down

0 comments on commit fcc0409

Please sign in to comment.