Repository navigation
Conversation
A rescheduled email dropped its queue metadata, so the run returned to the hogflow queue at the email class priority instead of its own. Carry the metadata through SES throttles, workflow pacing, team caps and consecutive inline sends. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A push notification that fails transiently while its run is on the email queue now keeps the origin queue and priority that the email routing stashed. The run returns to its origin queue at its origin priority when it leaves the email queue. The retry waits at its own message category's email queue priority instead of its retry count. Each push action still starts its own retry budget. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Merging to
After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here |
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.
Problem
A workflow run whose push notification fails transiently after an email resumes at the wrong place: it leaves the email queue at the email priority instead of its own.
queueMetadatawhen it takes the email.Note
Depends on #112850. The branch carries its commit, so review only the top commit (
6febf8b). A native stack is not possible because #112850 comes from a fork.Note
🔵 Merge risk: low · two-way door (merge-risk rubric)
Changes
PushNotificationServicedoes not change. Push retries off the email queue keep the retry-count priority.How did you test this code?
Test rationale: extends the existing email round trip in
hogflow-executor.service.test.ts, the only test that drives a run onto the email queue and back. No new standalone test.HogFlowExecutorService.execute, through the queue, priority and metadata of each result.originQueue: hogflow,originPriority: 2,tries: 1at priority 0, and that the run returns tohogflowat priority 2.PushNotificationService, with only the FCM fetch stubbed.{ tries: 1 }.tries: 2on the second push and priorities 1 and 2.hogflow-executor.service.test.ts,push-notification.service.test.ts,hog-executor.service.test.tsandemail.service.test.ts, all green.Release status
Docs update
docs/internal/workflows-email-sending-tiers.mdstates that a push retry on the email queue restores the origin and uses its own category's priority.🤖 Agent context
Autonomy: Human-driven (agent-assisted)
Agent: Claude Code, Claude Opus 5.5 (
claude-opus-5-5)/tdd,/writing-tests,/stacking-prs,/pr,/writing-pr-descriptions,/merge-risk.triesleaking. The test failed each time.🤖 Generated with Claude Code