From ca198daebf9b04f158e8adea57fc5c24ef26f2f2 Mon Sep 17 00:00:00 2001 From: Filip Valder Date: Wed, 16 Nov 2016 13:52:23 +0100 Subject: [PATCH] Default network timeouts --- module_build_service/config.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/module_build_service/config.py b/module_build_service/config.py index d199f3be..af8d0a1e 100644 --- a/module_build_service/config.py +++ b/module_build_service/config.py @@ -29,7 +29,6 @@ from module_build_service import app from module_build_service import logger - def from_app_config(): """ Create the configuration instance from the values in app.config """ @@ -208,6 +207,14 @@ class Config(object): 'type': int, 'default': 0, 'desc': 'Number of consecutive component builds.'}, + 'net_timeout': { + 'type': int, + 'default': 120, + 'desc': 'Global network timeout for read/write operations, in seconds.'}, + 'net_retry_interval': { + 'type': int, + 'default': 30, + 'desc': 'Global network retry interval for read/write operations, in seconds.'}, } def __init__(self):