diff --git a/app/__init__.py b/app/__init__.py index 5b3b359..2b30a0f 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -37,7 +37,7 @@ from flask_smorest import Api app.redis = Redis.from_url(app.config['REDIS_URL'], port=5040) -app.execute_queue = rq.Queue('qiskit-service_execute', connection=app.redis, default_timeout=3600) +app.execute_queue = rq.Queue('qiskit-service_execute', connection=app.redis, default_timeout=10000) app.logger.setLevel(logging.INFO) diff --git a/app/ibmq_handler.py b/app/ibmq_handler.py index 4baab86..ee1b904 100644 --- a/app/ibmq_handler.py +++ b/app/ibmq_handler.py @@ -46,7 +46,7 @@ def execute_job(transpiled_circuits, shots, backend, noise_model): """Generate qObject from transpiled circuit and execute it. Return result.""" try: - job = backend.run(assemble(transpiled_circuits), shots=shots, noise_model=noise_model) + job = backend.run(assemble(transpiled_circuits, shots=shots), noise_model=noise_model) job_status = job.status() while job_status not in JOB_FINAL_STATES: diff --git a/requirements.txt b/requirements.txt index f3ffb47..005f506 100644 --- a/requirements.txt +++ b/requirements.txt @@ -47,8 +47,8 @@ qiskit-ibmq-provider==0.20.2 qiskit-ionq==0.4.4 qiskit-terra==0.24.0 qiskit_braket_provider==0.0.4 -redis==4.3.1 -requests==2.27.1 +redis==5.0.1 +requests==2.31.0 requests-ntlm==1.1.0 retworkx==0.12.1 rq==1.10.1