mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-04-04 19:28:49 +08:00
Load defaults from config
This commit is contained in:
@@ -40,7 +40,7 @@ from module_build_service.errors import (Unauthorized, Conflict)
|
||||
from multiprocessing.dummy import Pool as ThreadPool
|
||||
|
||||
|
||||
def retry(timeout=120, interval=30, wait_on=Exception):
|
||||
def retry(timeout=conf.net_timeout, interval=conf.net_retry_interval, wait_on=Exception):
|
||||
""" A decorator that allows to retry a section of code...
|
||||
...until success or timeout.
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user