From d9d3379174d21f8df5d08aad29303fc93505e937 Mon Sep 17 00:00:00 2001 From: Cristian Le Date: Jan 06 2026 15:13:53 +0000 Subject: Retry koji watch-task if it had 502 error --- diff --git a/roles/fedpkg-build-ng/tasks/main.yaml b/roles/fedpkg-build-ng/tasks/main.yaml index 908d49c..711ca98 100644 --- a/roles/fedpkg-build-ng/tasks/main.yaml +++ b/roles/fedpkg-build-ng/tasks/main.yaml @@ -87,6 +87,10 @@ - name: Wait for koji task to finish command: koji watch-task {{ task_id }} register: koji_watch_task + retries: 10 + delay: 300 + until: + - koji_watch_task is not search("502 Server Error") ignore_errors: yes # If the job has timed-out we would not get to this point