From fcc04091d02b257fe754674ccdaf399661ebaecd Mon Sep 17 00:00:00 2001 From: Matthew Treinish Date: Mon, 30 Nov 2020 10:32:42 -0500 Subject: [PATCH] Add missing int cast for QISKIT_CELL_TIMEOUT (#1092) 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. --- conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf.py b/conf.py index d287130d1..266a93992 100644 --- a/conf.py +++ b/conf.py @@ -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 = [