diff --git a/cal_tools/cal_tools/tools.py b/cal_tools/cal_tools/tools.py index 2943381d897d1bc437bfb0720021a994caf5a801..9d2cc08bb03bf4a126cab05deca4ecd74803b580 100644 --- a/cal_tools/cal_tools/tools.py +++ b/cal_tools/cal_tools/tools.py @@ -288,6 +288,7 @@ def get_from_db(device, constant, condition, empty_constant, break except zmq.error.Again: ntries -= 1 + timeout *= 2 sleep(np.random.randint(30)) except Exception as e: if verbosity > 0: @@ -354,6 +355,7 @@ def send_to_db(device, constant, condition, file_loc, break except zmq.error.Again: ntries -= 1 + timeout *= 2 sleep(np.random.randint(30)) if ntries == 0 and doraise: raise