mirror of
https://github.com/archlinux-jerry/buildbot
synced 2024-12-22 19:09:23 +08:00
fix bugs
This commit is contained in:
parent
96e76dfc40
commit
6e15ce66ea
2 changed files with 3 additions and 3 deletions
|
@ -263,7 +263,7 @@ class jobsManager:
|
|||
sizes = [f.stat().st_size / 1000 / 1000 for f in f_to_upload]
|
||||
max_tries = 10
|
||||
for tries in range(max_tries):
|
||||
timeouts = rrun('push_start', args=(f_to_upload, sizes))
|
||||
timeouts = rrun('push_start', args=([f.name for f in f_to_upload], sizes))
|
||||
if type(timeouts) is list:
|
||||
break
|
||||
else:
|
||||
|
@ -299,7 +299,7 @@ class jobsManager:
|
|||
max_tries = 5
|
||||
for tries in range(max_tries):
|
||||
try:
|
||||
res = rrun('push_done', args=(f_to_upload,), kwargs={'overwrite': overwrite,})
|
||||
res = rrun('push_done', args=([f.name for f in f_to_upload],), kwargs={'overwrite': overwrite,})
|
||||
except Exception:
|
||||
time_to_sleep = (tries + 1) * 60
|
||||
logger.info(f'Error updating {pkg_update_list}, wait {time_to_sleep} secs')
|
||||
|
|
2
repod.py
2
repod.py
|
@ -175,7 +175,7 @@ if __name__ == '__main__':
|
|||
try:
|
||||
with Listener(REPOD_BIND_ADDRESS, authkey=REPOD_BIND_PASSWD) as listener:
|
||||
with listener.accept() as conn:
|
||||
logger.info('connection accepted from %s', listener.last_accepted)
|
||||
logger.debug('connection accepted from %s', listener.last_accepted)
|
||||
myrecv = conn.recv()
|
||||
if type(myrecv) is list and len(myrecv) == 3:
|
||||
(funcname, args, kwargs) = myrecv
|
||||
|
|
Loading…
Reference in a new issue