Project

General

Profile

« Previous | Next » 

Revision 5125

tnrs.py: max_pause: Changed to 30 min because TNRS sometimes freezes for ~10 min. The freezing usually happens while the data is being uploaded rather than when it's being retrieved, so that the max_pause would not apply, but to be on the safe side, requests should not time out unnecessarily.

View differences:

lib/tnrs.py
12 12
# Config
13 13
initial_pause = 0.35 # sec
14 14
pause_growth_factor = 1.3
15
max_pause = 600 # sec; = 10 min
15
max_pause = 30*60 # sec; = 30 min; TNRS sometimes freezes for ~10 min
16 16
assert initial_pause <= max_pause
17 17
max_names = 5000 # according to http://tnrs.iplantcollaborative.org/TNRSapp.html
18 18
max_names = 500 # the maximum above crashes the TNRS server

Also available in: Unified diff