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

Support large qobj #626

Merged
merged 3 commits into from
Apr 13, 2020
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion qiskit/providers/ibmq/api/rest/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def put_object_storage(self, url: str, qobj_dict: Dict[str, Any]) -> str:
"""
data = json.dumps(qobj_dict, cls=json_encoder.IQXJsonEconder)
logger.debug('Uploading Qobj to object storage.')
response = self.session.put(url, data=data, bare=True)
response = self.session.put(url, data=data, bare=True, timeout=600)
return response.text

def get_object_storage(self, url: str) -> Dict[str, Any]:
Expand Down
2 changes: 1 addition & 1 deletion qiskit/providers/ibmq/api/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def request( # type: ignore[override]
final_url = self.base_url + url

# Add a timeout to the connection for non-proxy connections.
if not self.proxies:
if not self.proxies and 'timeout' not in kwargs:
kwargs.update({'timeout': self._timeout})

try:
Expand Down