upload fix and priority

This commit is contained in:
JerryXiao 2019-10-06 13:21:16 +08:00
parent 79a4a7e1d7
commit 09f037c0eb
2 changed files with 2 additions and 1 deletions

View file

@ -276,6 +276,7 @@ class jobsManager:
pkg_update_list.append(fpath)
sizes = [f.stat().st_size / 1000 / 1000 for f in f_to_upload]
pkg_update_list_human = " ".join([f.name for f in pkg_update_list])
assert pkg_update_list
max_tries = 10
for tries in range(max_tries):
timeouts = rrun('push_start', args=([f.name for f in f_to_upload], sizes))

View file

@ -30,7 +30,7 @@ def gen_pkglist(pkgconfigs, pkgvers, pkgerrs):
# namelist is a list of pkgnames
pkgall = dict()
for pc in pkgconfigs:
ps = ('type', 'cleanbuild', 'timeout')
ps = ('type', 'cleanbuild', 'timeout', 'priority')
hps = ('prebuild', 'postbuild', 'update', 'failure')
dps = {p:getattr(pc, p, None) for p in ps}
dhps = {p:'\n'.join([str(cmd) for cmd in getattr(pc, p, None)]) for p in hps}