mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-25 17:36:13 +01:00
- handle also gateway timeout error code when watching build results
This commit is contained in:
parent
e89bc8197b
commit
ad9a32ca8f
@ -5023,10 +5023,10 @@ def get_results(apiurl, prj, package, lastbuild=None, repository=[], arch=[], ve
|
|||||||
results = get_package_results(apiurl, prj, package, lastbuild, repository, arch, oldstate)
|
results = get_package_results(apiurl, prj, package, lastbuild, repository, arch, oldstate)
|
||||||
except HTTPError as e:
|
except HTTPError as e:
|
||||||
# check for simple timeout error and fetch again
|
# check for simple timeout error and fetch again
|
||||||
if e.code != 502:
|
if e.code == 502 or e.code == 504:
|
||||||
raise
|
# re-try result request
|
||||||
# re-try result request
|
continue
|
||||||
continue
|
raise
|
||||||
|
|
||||||
for res in results:
|
for res in results:
|
||||||
if '_oldstate' in res:
|
if '_oldstate' in res:
|
||||||
|
Loading…
Reference in New Issue
Block a user