mirror of
git://develop.git.wordpress.org/
synced 2025-01-17 21:08:44 +01:00
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
This commit is contained in:
parent
bb4ab816b5
commit
0b99e283b2
2
.github/workflows/failed-workflow.yml
vendored
2
.github/workflows/failed-workflow.yml
vendored
@ -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({
|
||||
|
Loading…
x
Reference in New Issue
Block a user