timeout should be int

This commit is contained in:
JerryXiao 2019-04-10 21:03:38 +08:00
parent 3fd4fb3c79
commit f64b42e11b
Signed by: Jerry
GPG key ID: 9D9CE43650FF2BAA

View file

@ -200,7 +200,7 @@ class jobsManager:
else: else:
timeout = 60 timeout = 60
logger.info(f'Uploading {f}, timeout in {timeout}s') logger.info(f'Uploading {f}, timeout in {timeout}s')
mon_bash(UPLOAD_CMD.format(src=f), seconds=timeout) mon_bash(UPLOAD_CMD.format(src=f), seconds=int(timeout))
if f.name.endswith(PKG_SUFFIX): if f.name.endswith(PKG_SUFFIX):
logger.info(f'Requesting repo update for {f.name}') logger.info(f'Requesting repo update for {f.name}')
res = rrun('push_done', args=(f.name,), kwargs={'overwrite': False,}) res = rrun('push_done', args=(f.name,), kwargs={'overwrite': False,})