Commit 6aa10453 authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Increased database query timeout for DEM_Creator._get_DEMPathes_to_include().


Former-commit-id: b0195fcc
Former-commit-id: 9f2dc2ba
parent 731cc17f
......@@ -452,7 +452,8 @@ class DEM_Creator(object):
sceneIDs_srtm = get_overlapping_scenes_from_postgreSQLdb(self.db_conn,
table='scenes',
tgt_corners_lonlat=tgt_corner_coord_lonlat,
conditions=['datasetid=%s' % dsID])
conditions=['datasetid=%s' % dsID],
timeout=20000) # default timeout (15sec) is not enough
sceneIDs_srtm = [i[0] for i in sceneIDs_srtm]
if not sceneIDs_srtm:
raise RuntimeError('No matching %s scene IDs for DEM generation found.' % self.dem_sensor)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment