make a lot of retries ...

This commit is contained in:
2018-12-13 15:06:24 +01:00
parent 7d18a1d384
commit e12820231e
4 changed files with 5 additions and 4 deletions
+2 -1
View File
@@ -91,7 +91,7 @@ def get_pulse_id_date_mapping(pulse_ids):
"channels": ["SIN-CVME-TIFGUN-EVR0:BEAMOK"],
"fields": ["pulseId", "globalDate"]}
for c in range(1):
for c in range(10):
logger.info("Retrieve mapping for pulse_id %d" % pulse_id)
# Query server
@@ -126,6 +126,7 @@ def get_pulse_id_date_mapping(pulse_ids):
date = data[0]["data"][0]["globalDate"]
date = dateutil.parser.parse(date)
dates.append(date)
break
return dates
except Exception:
+1 -1
View File
@@ -1,6 +1,6 @@
package:
name: cadump
version: 0.0.6
version: 0.0.7
source:
path: ..
+1 -1
View File
@@ -2,7 +2,7 @@ from setuptools import setup
setup(
name="cadump",
version="0.0.6",
version="0.0.7",
author="Paul Scherrer Institute",
author_email="daq@psi.ch",
description="Interface to dump data from archiver/databuffer",
+1 -1
View File
@@ -9,7 +9,7 @@ class TestDownloadData(TestCase):
config = {
'range': {
'startPulseId': 7314794868,
'endPulseId': 7414798868
'endPulseId': 7314798868
},
'parameters': {