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:
committed by
Marge Bot
parent
b0ea4d36ff
commit
e2acf0934b
@@ -155,7 +155,7 @@ def get_merge_queue(project: Project) -> MargeQueue:
|
||||
def main():
|
||||
args = parse_args()
|
||||
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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user