Repository navigation
fix(certificates): stop reporting a retryable certificate failure as a worker error - #14125
Merged
Merged
Conversation
…a worker error A delayed provider's failure that keeps the rule generating for another attempt was still rethrown, so every interval retry of a domain waiting on its owner's DNS records reached the error tracker. Log it and let the interval retry; only the final failure, which marks the rule unverified and mails, is rethrown.
🟢 Tier S · Ready to mergeThe certificate worker now logs retryable delayed-provider failures as warnings instead of rethrowing them. Terminal failures still mark the rule failed, send the security notification, and throw; persistence remains in the existing finally block.
📂 Walkthrough · 1
Reviewed |
ghost
approved these changes
Oct 5, 2026
✨ Benchmark resultsComparing
Per-scenario breakdown & investigation detailsMetrics below reflect the current branch (after). Δ P95 compares against the base.
Top API waits (after)
|
abnegate
added a commit
that referenced
this pull request
Oct 5, 2026
Merges main a2cca78 (#14009, #14106, #14117, #14115, #14119, #14114, #14101, #14125, #14129, #14127) so cloud#5410 can require a train head that contains main at or after 0ed7232. Conflicts: none. Database 8.0 port: none needed. Main's new code only uses Document getAttribute/setAttribute and Query::equal/lessThan/orderAsc/limit (Tasks/Interval.php), all unchanged in database 8.0; no removed Database::* constants, config collections, or model magic reads. composer.json and composer.lock are untouched by main, so the train's database and migration pins stay as they are. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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
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.
What does this PR do?
Since #14009 and #14117, the certificate worker checks a delayed provider's status when it revisits a rule that is still generating. When the provider is waiting on the domain owner, for example a Fastly authorization that needs a DNS record the owner has not added,
getCertificateStatus()throws. The worker then correctly keeps the rule generating for another attempt, but it still rethrows. So every interval retry of such a domain is reported as a worker error: one error per domain roughly every 5–7 minutes, until the fifth attempt.That is an expected wait, not a failure of the worker. This PR logs it with
Console::warningand lets the interval retry, the same way the domain-verification step in this worker already handles its own retryable failure. Only the terminal case is still rethrown: when the rule goes tounverifiedand the security mail is sent.Nothing else changes. The rule's logs still carry the provider's message, including the DNS records the owner has to add, attempts still count, and the fifth failure still marks the rule unverified and mails.
Test Plan
php -land Pint on the changed file.tests/unit/Workers/CertificatesDomainValidationTestis unaffected: it catches whatever the worker throws and asserts only the records written.Related PRs and Issues
Checklist