-
Notifications
You must be signed in to change notification settings - Fork 976
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Backoff to avoid excessive retries to Run Service in a duration #3354
Conversation
@@ -62,7 +62,10 @@ public Task<AgentJobRequestMessage> GetJobMessageAsync(string id, CancellationTo | |||
CheckConnection(); | |||
return RetryRequest<AgentJobRequestMessage>( | |||
async () => await _runServiceHttpClient.GetJobMessageAsync(requestUri, id, VarUtil.OS, cancellationToken), cancellationToken, | |||
shouldRetry: ex => ex is not TaskOrchestrationJobAlreadyAcquiredException); | |||
shouldRetry: ex => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The problem with not retrying these errors, means we immediately call to Broker to get the next message, which might be the same job message.
When one of these errors is encountered from Run Service, an async message is sent to Broker. We don't want to keep hammering the service in a tight loop if there are delays processing the message queue.
maxBackoff: s_maxBackoff, | ||
deltaBackoff: s_backoffCoefficient); | ||
Trace.Warning($"Back off {backoff.TotalSeconds} seconds before next attempt."); | ||
await Task.Delay(backoff, token); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI, Task.Delay
will throw on cancellation token fire.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that's OK, but I switched to Host.Delay so I could unit test this
fb896c0
to
d73aabc
Compare
d73aabc
to
ec1e338
Compare
…0 → 2.318.0 ) (#827) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [ghcr.io/onedr0p/actions-runner](https://ghcr.io/onedr0p/actions-runner) ([source](https://github.com/actions/runner)) | minor | `2.317.0` -> `2.318.0` | --- ### Release Notes <details> <summary>actions/runner (ghcr.io/onedr0p/actions-runner)</summary> ### [`v2.318.0`](https://github.com/actions/runner/releases/tag/v2.318.0) [Compare Source](https://github.com/actions/runner/compare/v2.317.0...v2.318.0) ##### What's Changed - Update Docker to v27.1.1 by [@​TingluoHuang](https://github.com/TingluoHuang) in [https://github.com/actions/runner/pull/3401](https://github.com/actions/runner/pull/3401) - Upgrade dotnet sdk to v8.0.303 in [https://github.com/actions/runner/pull/3388](https://github.com/actions/runner/pull/3388) - Rephrase node20 warning by [@​rentziass](https://github.com/rentziass) in [https://github.com/actions/runner/pull/3376](https://github.com/actions/runner/pull/3376) - Bump hook version to 0.6.1 by [@​nikola-jokic](https://github.com/nikola-jokic) in [https://github.com/actions/runner/pull/3350](https://github.com/actions/runner/pull/3350) - Backoff to avoid excessive retries to Run Service in a duration by [@​ericsciple](https://github.com/ericsciple) in [https://github.com/actions/runner/pull/3354](https://github.com/actions/runner/pull/3354) - Bump System.Security.Cryptography.Pkcs from 5.0.0 to 8.0.0 in /src in [https://github.com/actions/runner/pull/3347](https://github.com/actions/runner/pull/3347) - Upgrade dotnet sdk to v8.0.302 in [https://github.com/actions/runner/pull/3346](https://github.com/actions/runner/pull/3346) - Bump runner to dotnet 8 by [@​TingluoHuang](https://github.com/TingluoHuang) in [https://github.com/actions/runner/pull/3345](https://github.com/actions/runner/pull/3345) - Pass runner version as environment variable in workflow by [@​joshmgross](https://github.com/joshmgross) in [https://github.com/actions/runner/pull/3318](https://github.com/actions/runner/pull/3318) - Make sure we mask secrets when reporting telemetry by [@​TingluoHuang](https://github.com/TingluoHuang) in [https://github.com/actions/runner/pull/3315](https://github.com/actions/runner/pull/3315) - Bump docker version and docker buildx version by [@​int128](https://github.com/int128) in [https://github.com/actions/runner/pull/3277](https://github.com/actions/runner/pull/3277) **Full Changelog**: actions/runner@v2.317.0...v2.318.0 *Note: Actions Runner follows a progressive release policy, so the latest release might not be available to your enterprise, organization, or repository yet. To confirm which version of the Actions Runner you should expect, please view the download instructions for your enterprise, organization, or repository. See https://docs.github.com/en/enterprise-cloud@latest/actions/hosting-your-own-runners/adding-self-hosted-runners* ##### Windows x64 We recommend configuring the runner in a root folder of the Windows drive (e.g. "C:\actions-runner"). This will help avoid issues related to service identity folder permissions and long file path restrictions on Windows. The following snipped needs to be run on `powershell`: ```powershell ##### Create a folder under the drive root mkdir \actions-runner ; cd \actions-runner ##### Download the latest runner package Invoke-WebRequest -Uri https://github.com/actions/runner/releases/download/v2.318.0/actions-runner-win-x64-2.318.0.zip -OutFile actions-runner-win-x64-2.318.0.zip ##### Extract the installer Add-Type -AssemblyName System.IO.Compression.FileSystem ; [System.IO.Compression.ZipFile]::ExtractToDirectory("$PWD\actions-runner-win-x64-2.318.0.zip", "$PWD") ``` ##### \[Pre-release] Windows arm64 **Warning:** Windows arm64 runners are currently in preview status and use [unofficial versions of nodejs](https://unofficial-builds.nodejs.org/). They are not intended for production workflows. We recommend configuring the runner in a root folder of the Windows drive (e.g. "C:\actions-runner"). This will help avoid issues related to service identity folder permissions and long file path restrictions on Windows. The following snipped needs to be run on `powershell`: ```powershell ##### Create a folder under the drive root mkdir \actions-runner ; cd \actions-runner ##### Download the latest runner package Invoke-WebRequest -Uri https://github.com/actions/runner/releases/download/v2.318.0/actions-runner-win-arm64-2.318.0.zip -OutFile actions-runner-win-arm64-2.318.0.zip ##### Extract the installer Add-Type -AssemblyName System.IO.Compression.FileSystem ; [System.IO.Compression.ZipFile]::ExtractToDirectory("$PWD\actions-runner-win-arm64-2.318.0.zip", "$PWD") ``` ##### OSX x64 ```bash ##### Create a folder mkdir actions-runner && cd actions-runner ##### Download the latest runner package curl -O -L https://github.com/actions/runner/releases/download/v2.318.0/actions-runner-osx-x64-2.318.0.tar.gz ##### Extract the installer tar xzf ./actions-runner-osx-x64-2.318.0.tar.gz ``` ##### OSX arm64 (Apple silicon) ```bash ##### Create a folder mkdir actions-runner && cd actions-runner ##### Download the latest runner package curl -O -L https://github.com/actions/runner/releases/download/v2.318.0/actions-runner-osx-arm64-2.318.0.tar.gz ##### Extract the installer tar xzf ./actions-runner-osx-arm64-2.318.0.tar.gz ``` ##### Linux x64 ```bash ##### Create a folder mkdir actions-runner && cd actions-runner ##### Download the latest runner package curl -O -L https://github.com/actions/runner/releases/download/v2.318.0/actions-runner-linux-x64-2.318.0.tar.gz ##### Extract the installer tar xzf ./actions-runner-linux-x64-2.318.0.tar.gz ``` ##### Linux arm64 ```bash ##### Create a folder mkdir actions-runner && cd actions-runner ##### Download the latest runner package curl -O -L https://github.com/actions/runner/releases/download/v2.318.0/actions-runner-linux-arm64-2.318.0.tar.gz ##### Extract the installer tar xzf ./actions-runner-linux-arm64-2.318.0.tar.gz ``` ##### Linux arm ```bash ##### Create a folder mkdir actions-runner && cd actions-runner ##### Download the latest runner package curl -O -L https://github.com/actions/runner/releases/download/v2.318.0/actions-runner-linux-arm-2.318.0.tar.gz ##### Extract the installer tar xzf ./actions-runner-linux-arm-2.318.0.tar.gz ``` ##### Using your self hosted runner For additional details about configuring, running, or shutting down the runner please check out our [product docs.](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/adding-self-hosted-runners) ##### SHA-256 Checksums The SHA-256 checksums for the packages included in this build are shown below: - actions-runner-win-x64-2.318.0.zip <!-- BEGIN SHA win-x64 -->35e41033097bda057333718fd0a923650c505ed214437f89328b6c07dc25b45d<!-- END SHA win-x64 --> - actions-runner-win-arm64-2.318.0.zip <!-- BEGIN SHA win-arm64 -->56263cd9002c4b38d649cd6772cc5873e6df1c537c58af58b72cd7a5873b4ae3<!-- END SHA win-arm64 --> - actions-runner-osx-x64-2.318.0.tar.gz <!-- BEGIN SHA osx-x64 -->d5d5ae1138595063958ceb6141bb30fdfb63afe6a9859dee29f0fa56474bd386<!-- END SHA osx-x64 --> - actions-runner-osx-arm64-2.318.0.tar.gz <!-- BEGIN SHA osx-arm64 -->52c8b7200587e0d461e61657a20db2b798ef3c88e41ff1ee435b770cd648b41e<!-- END SHA osx-arm64 --> - actions-runner-linux-x64-2.318.0.tar.gz <!-- BEGIN SHA linux-x64 -->28ed88e4cedf0fc93201a901e392a70463dbd0213f2ce9d57a4ab495027f3e2f<!-- END SHA linux-x64 --> - actions-runner-linux-arm64-2.318.0.tar.gz <!-- BEGIN SHA linux-arm64 -->c4d03f1fdfc74e4e29cc403917be2bb24a714740bd250401fba5a4670e2c6070<!-- END SHA linux-arm64 --> - actions-runner-linux-arm-2.318.0.tar.gz <!-- BEGIN SHA linux-arm -->34e95530fc31c3678ead5a423414103fdf7513ed245268e6e741c94c55e653a1<!-- END SHA linux-arm --> </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC44LjAiLCJ1cGRhdGVkSW5WZXIiOiIzOC44LjAiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbInJlbm92YXRlL2NvbnRhaW5lciIsInR5cGUvbWlub3IiXX0=--> Co-authored-by: kireque-bot[bot] <143391978+kireque-bot[bot]@users.noreply.github.com>
…0 → 2.318.0 ) (#4043) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [ghcr.io/actions/actions-runner](https://github.com/actions/runner) | minor | `2.317.0` -> `2.318.0` | --- ### Release Notes <details> <summary>actions/runner (ghcr.io/actions/actions-runner)</summary> ### [`v2.318.0`](https://github.com/actions/runner/releases/tag/v2.318.0) [Compare Source](https://github.com/actions/runner/compare/v2.317.0...v2.318.0) ##### What's Changed - Update Docker to v27.1.1 by [@​TingluoHuang](https://github.com/TingluoHuang) in [https://github.com/actions/runner/pull/3401](https://github.com/actions/runner/pull/3401) - Upgrade dotnet sdk to v8.0.303 in [https://github.com/actions/runner/pull/3388](https://github.com/actions/runner/pull/3388) - Rephrase node20 warning by [@​rentziass](https://github.com/rentziass) in [https://github.com/actions/runner/pull/3376](https://github.com/actions/runner/pull/3376) - Bump hook version to 0.6.1 by [@​nikola-jokic](https://github.com/nikola-jokic) in [https://github.com/actions/runner/pull/3350](https://github.com/actions/runner/pull/3350) - Backoff to avoid excessive retries to Run Service in a duration by [@​ericsciple](https://github.com/ericsciple) in [https://github.com/actions/runner/pull/3354](https://github.com/actions/runner/pull/3354) - Bump System.Security.Cryptography.Pkcs from 5.0.0 to 8.0.0 in /src in [https://github.com/actions/runner/pull/3347](https://github.com/actions/runner/pull/3347) - Upgrade dotnet sdk to v8.0.302 in [https://github.com/actions/runner/pull/3346](https://github.com/actions/runner/pull/3346) - Bump runner to dotnet 8 by [@​TingluoHuang](https://github.com/TingluoHuang) in [https://github.com/actions/runner/pull/3345](https://github.com/actions/runner/pull/3345) - Pass runner version as environment variable in workflow by [@​joshmgross](https://github.com/joshmgross) in [https://github.com/actions/runner/pull/3318](https://github.com/actions/runner/pull/3318) - Make sure we mask secrets when reporting telemetry by [@​TingluoHuang](https://github.com/TingluoHuang) in [https://github.com/actions/runner/pull/3315](https://github.com/actions/runner/pull/3315) - Bump docker version and docker buildx version by [@​int128](https://github.com/int128) in [https://github.com/actions/runner/pull/3277](https://github.com/actions/runner/pull/3277) **Full Changelog**: actions/runner@v2.317.0...v2.318.0 *Note: Actions Runner follows a progressive release policy, so the latest release might not be available to your enterprise, organization, or repository yet. To confirm which version of the Actions Runner you should expect, please view the download instructions for your enterprise, organization, or repository. See https://docs.github.com/en/enterprise-cloud@latest/actions/hosting-your-own-runners/adding-self-hosted-runners* ##### Windows x64 We recommend configuring the runner in a root folder of the Windows drive (e.g. "C:\actions-runner"). This will help avoid issues related to service identity folder permissions and long file path restrictions on Windows. The following snipped needs to be run on `powershell`: ```powershell ##### Create a folder under the drive root mkdir \actions-runner ; cd \actions-runner ##### Download the latest runner package Invoke-WebRequest -Uri https://github.com/actions/runner/releases/download/v2.318.0/actions-runner-win-x64-2.318.0.zip -OutFile actions-runner-win-x64-2.318.0.zip ##### Extract the installer Add-Type -AssemblyName System.IO.Compression.FileSystem ; [System.IO.Compression.ZipFile]::ExtractToDirectory("$PWD\actions-runner-win-x64-2.318.0.zip", "$PWD") ``` ##### \[Pre-release] Windows arm64 **Warning:** Windows arm64 runners are currently in preview status and use [unofficial versions of nodejs](https://unofficial-builds.nodejs.org/). They are not intended for production workflows. We recommend configuring the runner in a root folder of the Windows drive (e.g. "C:\actions-runner"). This will help avoid issues related to service identity folder permissions and long file path restrictions on Windows. The following snipped needs to be run on `powershell`: ```powershell ##### Create a folder under the drive root mkdir \actions-runner ; cd \actions-runner ##### Download the latest runner package Invoke-WebRequest -Uri https://github.com/actions/runner/releases/download/v2.318.0/actions-runner-win-arm64-2.318.0.zip -OutFile actions-runner-win-arm64-2.318.0.zip ##### Extract the installer Add-Type -AssemblyName System.IO.Compression.FileSystem ; [System.IO.Compression.ZipFile]::ExtractToDirectory("$PWD\actions-runner-win-arm64-2.318.0.zip", "$PWD") ``` ##### OSX x64 ```bash ##### Create a folder mkdir actions-runner && cd actions-runner ##### Download the latest runner package curl -O -L https://github.com/actions/runner/releases/download/v2.318.0/actions-runner-osx-x64-2.318.0.tar.gz ##### Extract the installer tar xzf ./actions-runner-osx-x64-2.318.0.tar.gz ``` ##### OSX arm64 (Apple silicon) ```bash ##### Create a folder mkdir actions-runner && cd actions-runner ##### Download the latest runner package curl -O -L https://github.com/actions/runner/releases/download/v2.318.0/actions-runner-osx-arm64-2.318.0.tar.gz ##### Extract the installer tar xzf ./actions-runner-osx-arm64-2.318.0.tar.gz ``` ##### Linux x64 ```bash ##### Create a folder mkdir actions-runner && cd actions-runner ##### Download the latest runner package curl -O -L https://github.com/actions/runner/releases/download/v2.318.0/actions-runner-linux-x64-2.318.0.tar.gz ##### Extract the installer tar xzf ./actions-runner-linux-x64-2.318.0.tar.gz ``` ##### Linux arm64 ```bash ##### Create a folder mkdir actions-runner && cd actions-runner ##### Download the latest runner package curl -O -L https://github.com/actions/runner/releases/download/v2.318.0/actions-runner-linux-arm64-2.318.0.tar.gz ##### Extract the installer tar xzf ./actions-runner-linux-arm64-2.318.0.tar.gz ``` ##### Linux arm ```bash ##### Create a folder mkdir actions-runner && cd actions-runner ##### Download the latest runner package curl -O -L https://github.com/actions/runner/releases/download/v2.318.0/actions-runner-linux-arm-2.318.0.tar.gz ##### Extract the installer tar xzf ./actions-runner-linux-arm-2.318.0.tar.gz ``` ##### Using your self hosted runner For additional details about configuring, running, or shutting down the runner please check out our [product docs.](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/adding-self-hosted-runners) ##### SHA-256 Checksums The SHA-256 checksums for the packages included in this build are shown below: - actions-runner-win-x64-2.318.0.zip <!-- BEGIN SHA win-x64 -->35e41033097bda057333718fd0a923650c505ed214437f89328b6c07dc25b45d<!-- END SHA win-x64 --> - actions-runner-win-arm64-2.318.0.zip <!-- BEGIN SHA win-arm64 -->56263cd9002c4b38d649cd6772cc5873e6df1c537c58af58b72cd7a5873b4ae3<!-- END SHA win-arm64 --> - actions-runner-osx-x64-2.318.0.tar.gz <!-- BEGIN SHA osx-x64 -->d5d5ae1138595063958ceb6141bb30fdfb63afe6a9859dee29f0fa56474bd386<!-- END SHA osx-x64 --> - actions-runner-osx-arm64-2.318.0.tar.gz <!-- BEGIN SHA osx-arm64 -->52c8b7200587e0d461e61657a20db2b798ef3c88e41ff1ee435b770cd648b41e<!-- END SHA osx-arm64 --> - actions-runner-linux-x64-2.318.0.tar.gz <!-- BEGIN SHA linux-x64 -->28ed88e4cedf0fc93201a901e392a70463dbd0213f2ce9d57a4ab495027f3e2f<!-- END SHA linux-x64 --> - actions-runner-linux-arm64-2.318.0.tar.gz <!-- BEGIN SHA linux-arm64 -->c4d03f1fdfc74e4e29cc403917be2bb24a714740bd250401fba5a4670e2c6070<!-- END SHA linux-arm64 --> - actions-runner-linux-arm-2.318.0.tar.gz <!-- BEGIN SHA linux-arm -->34e95530fc31c3678ead5a423414103fdf7513ed245268e6e741c94c55e653a1<!-- END SHA linux-arm --> </details> <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC44LjAiLCJ1cGRhdGVkSW5WZXIiOiIzOC44LjAiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbInJlbm92YXRlL2NvbnRhaW5lciIsInR5cGUvbWlub3IiXX0=--> Co-authored-by: repo-jeeves[bot] <106431701+repo-jeeves[bot]@users.noreply.github.com>
…318.0 ) (#5116) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [ghcr.io/onedr0p/actions-runner](https://ghcr.io/onedr0p/actions-runner) ([source](https://github.com/actions/runner)) | minor | `2.317.0` -> `2.318.0` | --- ### Release Notes <details> <summary>actions/runner (ghcr.io/onedr0p/actions-runner)</summary> ### [`v2.318.0`](https://github.com/actions/runner/releases/tag/v2.318.0) [Compare Source](https://github.com/actions/runner/compare/v2.317.0...v2.318.0) ##### What's Changed - Update Docker to v27.1.1 by [@​TingluoHuang](https://github.com/TingluoHuang) in [https://github.com/actions/runner/pull/3401](https://github.com/actions/runner/pull/3401) - Upgrade dotnet sdk to v8.0.303 in [https://github.com/actions/runner/pull/3388](https://github.com/actions/runner/pull/3388) - Rephrase node20 warning by [@​rentziass](https://github.com/rentziass) in [https://github.com/actions/runner/pull/3376](https://github.com/actions/runner/pull/3376) - Bump hook version to 0.6.1 by [@​nikola-jokic](https://github.com/nikola-jokic) in [https://github.com/actions/runner/pull/3350](https://github.com/actions/runner/pull/3350) - Backoff to avoid excessive retries to Run Service in a duration by [@​ericsciple](https://github.com/ericsciple) in [https://github.com/actions/runner/pull/3354](https://github.com/actions/runner/pull/3354) - Bump System.Security.Cryptography.Pkcs from 5.0.0 to 8.0.0 in /src in [https://github.com/actions/runner/pull/3347](https://github.com/actions/runner/pull/3347) - Upgrade dotnet sdk to v8.0.302 in [https://github.com/actions/runner/pull/3346](https://github.com/actions/runner/pull/3346) - Bump runner to dotnet 8 by [@​TingluoHuang](https://github.com/TingluoHuang) in [https://github.com/actions/runner/pull/3345](https://github.com/actions/runner/pull/3345) - Pass runner version as environment variable in workflow by [@​joshmgross](https://github.com/joshmgross) in [https://github.com/actions/runner/pull/3318](https://github.com/actions/runner/pull/3318) - Make sure we mask secrets when reporting telemetry by [@​TingluoHuang](https://github.com/TingluoHuang) in [https://github.com/actions/runner/pull/3315](https://github.com/actions/runner/pull/3315) - Bump docker version and docker buildx version by [@​int128](https://github.com/int128) in [https://github.com/actions/runner/pull/3277](https://github.com/actions/runner/pull/3277) **Full Changelog**: actions/runner@v2.317.0...v2.318.0 *Note: Actions Runner follows a progressive release policy, so the latest release might not be available to your enterprise, organization, or repository yet. To confirm which version of the Actions Runner you should expect, please view the download instructions for your enterprise, organization, or repository. See https://docs.github.com/en/enterprise-cloud@latest/actions/hosting-your-own-runners/adding-self-hosted-runners* ##### Windows x64 We recommend configuring the runner in a root folder of the Windows drive (e.g. "C:\actions-runner"). This will help avoid issues related to service identity folder permissions and long file path restrictions on Windows. The following snipped needs to be run on `powershell`: ```powershell ##### Create a folder under the drive root mkdir \actions-runner ; cd \actions-runner ##### Download the latest runner package Invoke-WebRequest -Uri https://github.com/actions/runner/releases/download/v2.318.0/actions-runner-win-x64-2.318.0.zip -OutFile actions-runner-win-x64-2.318.0.zip ##### Extract the installer Add-Type -AssemblyName System.IO.Compression.FileSystem ; [System.IO.Compression.ZipFile]::ExtractToDirectory("$PWD\actions-runner-win-x64-2.318.0.zip", "$PWD") ``` ##### \[Pre-release] Windows arm64 **Warning:** Windows arm64 runners are currently in preview status and use [unofficial versions of nodejs](https://unofficial-builds.nodejs.org/). They are not intended for production workflows. We recommend configuring the runner in a root folder of the Windows drive (e.g. "C:\actions-runner"). This will help avoid issues related to service identity folder permissions and long file path restrictions on Windows. The following snipped needs to be run on `powershell`: ```powershell ##### Create a folder under the drive root mkdir \actions-runner ; cd \actions-runner ##### Download the latest runner package Invoke-WebRequest -Uri https://github.com/actions/runner/releases/download/v2.318.0/actions-runner-win-arm64-2.318.0.zip -OutFile actions-runner-win-arm64-2.318.0.zip ##### Extract the installer Add-Type -AssemblyName System.IO.Compression.FileSystem ; [System.IO.Compression.ZipFile]::ExtractToDirectory("$PWD\actions-runner-win-arm64-2.318.0.zip", "$PWD") ``` ##### OSX x64 ```bash ##### Create a folder mkdir actions-runner && cd actions-runner ##### Download the latest runner package curl -O -L https://github.com/actions/runner/releases/download/v2.318.0/actions-runner-osx-x64-2.318.0.tar.gz ##### Extract the installer tar xzf ./actions-runner-osx-x64-2.318.0.tar.gz ``` ##### OSX arm64 (Apple silicon) ```bash ##### Create a folder mkdir actions-runner && cd actions-runner ##### Download the latest runner package curl -O -L https://github.com/actions/runner/releases/download/v2.318.0/actions-runner-osx-arm64-2.318.0.tar.gz ##### Extract the installer tar xzf ./actions-runner-osx-arm64-2.318.0.tar.gz ``` ##### Linux x64 ```bash ##### Create a folder mkdir actions-runner && cd actions-runner ##### Download the latest runner package curl -O -L https://github.com/actions/runner/releases/download/v2.318.0/actions-runner-linux-x64-2.318.0.tar.gz ##### Extract the installer tar xzf ./actions-runner-linux-x64-2.318.0.tar.gz ``` ##### Linux arm64 ```bash ##### Create a folder mkdir actions-runner && cd actions-runner ##### Download the latest runner package curl -O -L https://github.com/actions/runner/releases/download/v2.318.0/actions-runner-linux-arm64-2.318.0.tar.gz ##### Extract the installer tar xzf ./actions-runner-linux-arm64-2.318.0.tar.gz ``` ##### Linux arm ```bash ##### Create a folder mkdir actions-runner && cd actions-runner ##### Download the latest runner package curl -O -L https://github.com/actions/runner/releases/download/v2.318.0/actions-runner-linux-arm-2.318.0.tar.gz ##### Extract the installer tar xzf ./actions-runner-linux-arm-2.318.0.tar.gz ``` ##### Using your self hosted runner For additional details about configuring, running, or shutting down the runner please check out our [product docs.](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/adding-self-hosted-runners) ##### SHA-256 Checksums The SHA-256 checksums for the packages included in this build are shown below: - actions-runner-win-x64-2.318.0.zip <!-- BEGIN SHA win-x64 -->35e41033097bda057333718fd0a923650c505ed214437f89328b6c07dc25b45d<!-- END SHA win-x64 --> - actions-runner-win-arm64-2.318.0.zip <!-- BEGIN SHA win-arm64 -->56263cd9002c4b38d649cd6772cc5873e6df1c537c58af58b72cd7a5873b4ae3<!-- END SHA win-arm64 --> - actions-runner-osx-x64-2.318.0.tar.gz <!-- BEGIN SHA osx-x64 -->d5d5ae1138595063958ceb6141bb30fdfb63afe6a9859dee29f0fa56474bd386<!-- END SHA osx-x64 --> - actions-runner-osx-arm64-2.318.0.tar.gz <!-- BEGIN SHA osx-arm64 -->52c8b7200587e0d461e61657a20db2b798ef3c88e41ff1ee435b770cd648b41e<!-- END SHA osx-arm64 --> - actions-runner-linux-x64-2.318.0.tar.gz <!-- BEGIN SHA linux-x64 -->28ed88e4cedf0fc93201a901e392a70463dbd0213f2ce9d57a4ab495027f3e2f<!-- END SHA linux-x64 --> - actions-runner-linux-arm64-2.318.0.tar.gz <!-- BEGIN SHA linux-arm64 -->c4d03f1fdfc74e4e29cc403917be2bb24a714740bd250401fba5a4670e2c6070<!-- END SHA linux-arm64 --> - actions-runner-linux-arm-2.318.0.tar.gz <!-- BEGIN SHA linux-arm -->34e95530fc31c3678ead5a423414103fdf7513ed245268e6e741c94c55e653a1<!-- END SHA linux-arm --> </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC44LjAiLCJ1cGRhdGVkSW5WZXIiOiIzOC44LjAiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbInJlbm92YXRlL2NvbnRhaW5lciIsInR5cGUvbWlub3IiXX0=--> Co-authored-by: lumiere-bot[bot] <98047013+lumiere-bot[bot]@users.noreply.github.com>
…8.0 (#872) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [ghcr.io/onedr0p/actions-runner](https://ghcr.io/onedr0p/actions-runner) ([source](https://github.com/actions/runner)) | minor | `2.317.0` -> `2.318.0` | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>actions/runner (ghcr.io/onedr0p/actions-runner)</summary> ### [`v2.318.0`](https://github.com/actions/runner/releases/tag/v2.318.0) [Compare Source](https://github.com/actions/runner/compare/v2.317.0...v2.318.0) ##### What's Changed - Update Docker to v27.1.1 by [@​TingluoHuang](https://github.com/TingluoHuang) in [https://github.com/actions/runner/pull/3401](https://github.com/actions/runner/pull/3401) - Upgrade dotnet sdk to v8.0.303 in [https://github.com/actions/runner/pull/3388](https://github.com/actions/runner/pull/3388) - Rephrase node20 warning by [@​rentziass](https://github.com/rentziass) in [https://github.com/actions/runner/pull/3376](https://github.com/actions/runner/pull/3376) - Bump hook version to 0.6.1 by [@​nikola-jokic](https://github.com/nikola-jokic) in [https://github.com/actions/runner/pull/3350](https://github.com/actions/runner/pull/3350) - Backoff to avoid excessive retries to Run Service in a duration by [@​ericsciple](https://github.com/ericsciple) in [https://github.com/actions/runner/pull/3354](https://github.com/actions/runner/pull/3354) - Bump System.Security.Cryptography.Pkcs from 5.0.0 to 8.0.0 in /src in [https://github.com/actions/runner/pull/3347](https://github.com/actions/runner/pull/3347) - Upgrade dotnet sdk to v8.0.302 in [https://github.com/actions/runner/pull/3346](https://github.com/actions/runner/pull/3346) - Bump runner to dotnet 8 by [@​TingluoHuang](https://github.com/TingluoHuang) in [https://github.com/actions/runner/pull/3345](https://github.com/actions/runner/pull/3345) - Pass runner version as environment variable in workflow by [@​joshmgross](https://github.com/joshmgross) in [https://github.com/actions/runner/pull/3318](https://github.com/actions/runner/pull/3318) - Make sure we mask secrets when reporting telemetry by [@​TingluoHuang](https://github.com/TingluoHuang) in [https://github.com/actions/runner/pull/3315](https://github.com/actions/runner/pull/3315) - Bump docker version and docker buildx version by [@​int128](https://github.com/int128) in [https://github.com/actions/runner/pull/3277](https://github.com/actions/runner/pull/3277) **Full Changelog**: actions/runner@v2.317.0...v2.318.0 *Note: Actions Runner follows a progressive release policy, so the latest release might not be available to your enterprise, organization, or repository yet. To confirm which version of the Actions Runner you should expect, please view the download instructions for your enterprise, organization, or repository. See https://docs.github.com/en/enterprise-cloud@latest/actions/hosting-your-own-runners/adding-self-hosted-runners* ##### Windows x64 We recommend configuring the runner in a root folder of the Windows drive (e.g. "C:\actions-runner"). This will help avoid issues related to service identity folder permissions and long file path restrictions on Windows. The following snipped needs to be run on `powershell`: ```powershell ##### Create a folder under the drive root mkdir \actions-runner ; cd \actions-runner ##### Download the latest runner package Invoke-WebRequest -Uri https://github.com/actions/runner/releases/download/v2.318.0/actions-runner-win-x64-2.318.0.zip -OutFile actions-runner-win-x64-2.318.0.zip ##### Extract the installer Add-Type -AssemblyName System.IO.Compression.FileSystem ; [System.IO.Compression.ZipFile]::ExtractToDirectory("$PWD\actions-runner-win-x64-2.318.0.zip", "$PWD") ``` ##### \[Pre-release] Windows arm64 **Warning:** Windows arm64 runners are currently in preview status and use [unofficial versions of nodejs](https://unofficial-builds.nodejs.org/). They are not intended for production workflows. We recommend configuring the runner in a root folder of the Windows drive (e.g. "C:\actions-runner"). This will help avoid issues related to service identity folder permissions and long file path restrictions on Windows. The following snipped needs to be run on `powershell`: ```powershell ##### Create a folder under the drive root mkdir \actions-runner ; cd \actions-runner ##### Download the latest runner package Invoke-WebRequest -Uri https://github.com/actions/runner/releases/download/v2.318.0/actions-runner-win-arm64-2.318.0.zip -OutFile actions-runner-win-arm64-2.318.0.zip ##### Extract the installer Add-Type -AssemblyName System.IO.Compression.FileSystem ; [System.IO.Compression.ZipFile]::ExtractToDirectory("$PWD\actions-runner-win-arm64-2.318.0.zip", "$PWD") ``` ##### OSX x64 ```bash ##### Create a folder mkdir actions-runner && cd actions-runner ##### Download the latest runner package curl -O -L https://github.com/actions/runner/releases/download/v2.318.0/actions-runner-osx-x64-2.318.0.tar.gz ##### Extract the installer tar xzf ./actions-runner-osx-x64-2.318.0.tar.gz ``` ##### OSX arm64 (Apple silicon) ```bash ##### Create a folder mkdir actions-runner && cd actions-runner ##### Download the latest runner package curl -O -L https://github.com/actions/runner/releases/download/v2.318.0/actions-runner-osx-arm64-2.318.0.tar.gz ##### Extract the installer tar xzf ./actions-runner-osx-arm64-2.318.0.tar.gz ``` ##### Linux x64 ```bash ##### Create a folder mkdir actions-runner && cd actions-runner ##### Download the latest runner package curl -O -L https://github.com/actions/runner/releases/download/v2.318.0/actions-runner-linux-x64-2.318.0.tar.gz ##### Extract the installer tar xzf ./actions-runner-linux-x64-2.318.0.tar.gz ``` ##### Linux arm64 ```bash ##### Create a folder mkdir actions-runner && cd actions-runner ##### Download the latest runner package curl -O -L https://github.com/actions/runner/releases/download/v2.318.0/actions-runner-linux-arm64-2.318.0.tar.gz ##### Extract the installer tar xzf ./actions-runner-linux-arm64-2.318.0.tar.gz ``` ##### Linux arm ```bash ##### Create a folder mkdir actions-runner && cd actions-runner ##### Download the latest runner package curl -O -L https://github.com/actions/runner/releases/download/v2.318.0/actions-runner-linux-arm-2.318.0.tar.gz ##### Extract the installer tar xzf ./actions-runner-linux-arm-2.318.0.tar.gz ``` ##### Using your self hosted runner For additional details about configuring, running, or shutting down the runner please check out our [product docs.](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/adding-self-hosted-runners) ##### SHA-256 Checksums The SHA-256 checksums for the packages included in this build are shown below: - actions-runner-win-x64-2.318.0.zip <!-- BEGIN SHA win-x64 -->35e41033097bda057333718fd0a923650c505ed214437f89328b6c07dc25b45d<!-- END SHA win-x64 --> - actions-runner-win-arm64-2.318.0.zip <!-- BEGIN SHA win-arm64 -->56263cd9002c4b38d649cd6772cc5873e6df1c537c58af58b72cd7a5873b4ae3<!-- END SHA win-arm64 --> - actions-runner-osx-x64-2.318.0.tar.gz <!-- BEGIN SHA osx-x64 -->d5d5ae1138595063958ceb6141bb30fdfb63afe6a9859dee29f0fa56474bd386<!-- END SHA osx-x64 --> - actions-runner-osx-arm64-2.318.0.tar.gz <!-- BEGIN SHA osx-arm64 -->52c8b7200587e0d461e61657a20db2b798ef3c88e41ff1ee435b770cd648b41e<!-- END SHA osx-arm64 --> - actions-runner-linux-x64-2.318.0.tar.gz <!-- BEGIN SHA linux-x64 -->28ed88e4cedf0fc93201a901e392a70463dbd0213f2ce9d57a4ab495027f3e2f<!-- END SHA linux-x64 --> - actions-runner-linux-arm64-2.318.0.tar.gz <!-- BEGIN SHA linux-arm64 -->c4d03f1fdfc74e4e29cc403917be2bb24a714740bd250401fba5a4670e2c6070<!-- END SHA linux-arm64 --> - actions-runner-linux-arm-2.318.0.tar.gz <!-- BEGIN SHA linux-arm -->34e95530fc31c3678ead5a423414103fdf7513ed245268e6e741c94c55e653a1<!-- END SHA linux-arm --> </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC44LjAiLCJ1cGRhdGVkSW5WZXIiOiIzOC44LjAiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbInJlbm92YXRlL2NvbnRhaW5lciIsInR5cGUvbWlub3IiXX0=-->
Helps avoid excessive calls to Run Service when encountering non-retriable errors from /acquirejob. Normally we rely on the HTTP clients to back off between retry attempts. However, acquiring a job involves calls to both Run Serivce and Broker. And Run Service and Broker communicate with each other in an async fashion.
When Run Service encounters a non-retriable error, it sends an async message to Broker. The runner will, however, immediately call Broker to get the next message. If the async event from Run Service to Broker has not yet been processed, the next message from Broker may be the same job message.
The error throttler helps us back off when encountering successive, non-retriable errors from /acquirejob.