mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-04-28 12:42:09 +08:00
Default network timeouts
This commit is contained in:
@@ -29,7 +29,6 @@ from module_build_service import app
|
|||||||
from module_build_service import logger
|
from module_build_service import logger
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def from_app_config():
|
def from_app_config():
|
||||||
""" Create the configuration instance from the values in app.config
|
""" Create the configuration instance from the values in app.config
|
||||||
"""
|
"""
|
||||||
@@ -208,6 +207,14 @@ class Config(object):
|
|||||||
'type': int,
|
'type': int,
|
||||||
'default': 0,
|
'default': 0,
|
||||||
'desc': 'Number of consecutive component builds.'},
|
'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):
|
def __init__(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user