From 0b99e283b2b651ddb9c17984f2816704391614b5 Mon Sep 17 00:00:00 2001 From: Jonathan Desrosiers Date: Wed, 11 Oct 2023 15:54:52 +0000 Subject: [PATCH] Build/Test Tools: Increase the number of retries when restarting a workflow. This increases the number of times to retry restarting a workflow from 2 to 10. Retries use exponential backoff to space out retries. In most cases, only 2 retries was sufficient. However, there are occasionally scenarios where the original workflow is still running and cannot be restarted, resulting in an error. This typically happens during periods of ongoing service degradation, or workflows with a significant number of jobs (GitHub Actions is sometimes very slow to mark these as finished). See #58867. git-svn-id: https://develop.svn.wordpress.org/trunk@56829 602fd350-edb4-49c9-b593-d223f7449a82 --- .github/workflows/failed-workflow.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/failed-workflow.yml b/.github/workflows/failed-workflow.yml index ebc305568c..35d0e8a2e3 100644 --- a/.github/workflows/failed-workflow.yml +++ b/.github/workflows/failed-workflow.yml @@ -32,7 +32,7 @@ jobs: - name: Rerun a workflow uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1 with: - retries: 2 + retries: 10 retry-exempt-status-codes: 418 script: | const workflow_run = await github.rest.actions.getWorkflowRun({