mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 22:30:12 +01:00
ci,marge_queue: protect form transient errors
Use the parameter retry_transient_errors on the GitLab object creation to protect the script from transient errors that can be well handled. Signed-off-by: Sergi Blanch Torne <sergi.blanch.torne@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37395>
This commit is contained in:
parent
b0ea4d36ff
commit
e2acf0934b
1 changed files with 1 additions and 1 deletions
|
|
@ -155,7 +155,7 @@ def get_merge_queue(project: Project) -> MargeQueue:
|
||||||
def main():
|
def main():
|
||||||
args = parse_args()
|
args = parse_args()
|
||||||
token = read_token(args.token)
|
token = read_token(args.token)
|
||||||
gl = gitlab.Gitlab(url="https://gitlab.freedesktop.org", private_token=token)
|
gl = gitlab.Gitlab(url="https://gitlab.freedesktop.org", private_token=token, retry_transient_errors=True)
|
||||||
|
|
||||||
project = gl.projects.get("mesa/mesa")
|
project = gl.projects.get("mesa/mesa")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue