Set the timeout on Koji sessions to 10 minutes

This commit is contained in:
mprahl
2017-11-15 12:57:49 -05:00
parent fdd9b87454
commit ea34df0fd1
2 changed files with 4 additions and 0 deletions

View File

@@ -258,6 +258,8 @@ chmod 644 %buildroot/%_sysconfdir/rpm/macros.zz-modules
profile_name=config.koji_profile,
user_config=config.koji_config,
))
# Timeout after 10 minutes. The default is 12 hours.
koji_config["timeout"] = 60 * 10
# In "production" scenarios, our service principal may be blessed to
# allow us to authenticate as the owner of this request. But, in local

View File

@@ -66,6 +66,8 @@ def create_local_repo_from_koji_tag(config, tag, repo_dir, archs=None):
profile_name=config.koji_profile,
user_config=config.koji_config,
))
# Timeout after 10 minutes. The default is 12 hours.
koji_config["timeout"] = 60 * 10
address = koji_config.server
log.info("Connecting to koji %r" % address)