-
Notifications
You must be signed in to change notification settings - Fork 1
Retry runner checks 3 times before failing #38
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PyTorch HUD recently has been occassionally responding slowly. Let's add a retry function so that we avoid alerting due to HUD issues. This change will retry up to 3 times waiting 1 minute each before declaring an alert. Signed-off-by: Thanh Ha <[email protected]>
OpenTofu plan for prod Plan: 0 to add, 7 to change, 0 to destroy.OpenTofu used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
!~ update in-place
OpenTofu will perform the following actions:
# datadog_synthetics_test.pytorch-gha-runners-queue-check-amd will be updated in-place
!~ resource "datadog_synthetics_test" "pytorch-gha-runners-queue-check-amd" {
id = "yt8-7zy-xpj"
name = "GHA Runner Queue Check - AMD Runners"
tags = [
"env:project",
"project:pytorch",
"service:gha-runners",
]
# (10 unchanged attributes hidden)
!~ options_list {
# (16 unchanged attributes hidden)
+ retry {
+ count = 3
+ interval = 60000
}
}
# (2 unchanged blocks hidden)
}
# datadog_synthetics_test.pytorch-gha-runners-queue-check-ibm will be updated in-place
!~ resource "datadog_synthetics_test" "pytorch-gha-runners-queue-check-ibm" {
id = "sc6-zip-2n9"
name = "GHA Runner Queue Check - IBM Runners"
tags = [
"env:project",
"project:pytorch",
"service:gha-runners",
]
# (10 unchanged attributes hidden)
!~ options_list {
# (16 unchanged attributes hidden)
+ retry {
+ count = 3
+ interval = 60000
}
}
# (2 unchanged blocks hidden)
}
# datadog_synthetics_test.pytorch-gha-runners-queue-check-intel will be updated in-place
!~ resource "datadog_synthetics_test" "pytorch-gha-runners-queue-check-intel" {
id = "67g-icy-6mh"
name = "GHA Runner Queue Check - Intel Runners"
tags = [
"env:project",
"project:pytorch",
"service:gha-runners",
]
# (10 unchanged attributes hidden)
!~ options_list {
# (16 unchanged attributes hidden)
+ retry {
+ count = 3
+ interval = 60000
}
}
# (2 unchanged blocks hidden)
}
# datadog_synthetics_test.pytorch-gha-runners-queue-check-lf will be updated in-place
!~ resource "datadog_synthetics_test" "pytorch-gha-runners-queue-check-lf" {
id = "p69-6vj-54b"
name = "GHA Runner Queue Check - Linux Foundation Runners"
tags = [
"env:project",
"project:pytorch",
"service:gha-runners",
]
# (10 unchanged attributes hidden)
!~ options_list {
# (16 unchanged attributes hidden)
+ retry {
+ count = 3
+ interval = 60000
}
}
# (2 unchanged blocks hidden)
}
# datadog_synthetics_test.pytorch-gha-runners-queue-check-meta will be updated in-place
!~ resource "datadog_synthetics_test" "pytorch-gha-runners-queue-check-meta" {
id = "nnz-icu-8qk"
name = "GHA Runner Queue Check - Meta Runners"
tags = [
"env:project",
"project:pytorch",
"service:gha-runners",
]
# (10 unchanged attributes hidden)
!~ options_list {
# (16 unchanged attributes hidden)
+ retry {
+ count = 3
+ interval = 60000
}
}
# (2 unchanged blocks hidden)
}
# datadog_synthetics_test.pytorch-gha-runners-queue-check-meta-h100 will be updated in-place
!~ resource "datadog_synthetics_test" "pytorch-gha-runners-queue-check-meta-h100" {
id = "hpi-psi-z8i"
name = "GHA Runner Queue Check - Meta Runners - AWS H100"
tags = [
"env:project",
"project:pytorch",
"service:gha-runners",
]
# (10 unchanged attributes hidden)
!~ options_list {
# (16 unchanged attributes hidden)
+ retry {
+ count = 3
+ interval = 60000
}
}
# (2 unchanged blocks hidden)
}
# datadog_synthetics_test.pytorch-gha-runners-queue-check-nvidia will be updated in-place
!~ resource "datadog_synthetics_test" "pytorch-gha-runners-queue-check-nvidia" {
id = "sxd-d72-36u"
name = "GHA Runner Queue Check - Nvidia Runners"
tags = [
"env:project",
"project:pytorch",
"service:gha-runners",
]
# (10 unchanged attributes hidden)
!~ options_list {
# (16 unchanged attributes hidden)
+ retry {
+ count = 3
+ interval = 60000
}
}
# (2 unchanged blocks hidden)
}
Plan: 0 to add, 7 to change, 0 to destroy. ✅ Plan applied in Tofu Apply #37 |
I was also thinking, in an effort to reduce flapping can we check how long a queue has been in a long waiting state? |
jordanconway
approved these changes
Sep 4, 2025
That's what the main check is already doing isn't it? checks for queues > 3hrs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PyTorch HUD recently has been occassionally responding slowly. Let's add a retry function so that we avoid alerting due to HUD issues. This change will retry up to 3 times waiting 1 minute each before declaring an alert.