double timeout each try
2 unresolved threads
2 unresolved threads
@karnem this feature doubles the timeout each try while trying to send or retrieve a constant from database
Merge request reports
Activity
Filter activity
354 355 break 355 356 except zmq.error.Again: 356 357 ntries -= 1 358 timeout *= 2 357 359 sleep(np.random.randint(30)) 358 360 if ntries == 0 and doraise: what is this doing and would it be beneficial in get_from_db also?
Edited by Karim Ahmed
237 237 238 238 def get_from_db(device, constant, condition, empty_constant, 239 239 cal_db_interface, creation_time=None, 240 verbosity=1, timeout=30000, ntries=120, meta_only=True, 240 verbosity=1, timeout=30000, ntries=7, meta_only=True, ntries has been decreased to 7 times to reach ~1h if timeout started with 30s
Edited by Karim Ahmed
mentioned in commit 6dbcd61b
Please register or sign in to reply