fix: reuse the production task event publisher - #312
Merged
Joncallim merged 3 commits intoJul 30, 2026
Merged
Conversation
Joncallim
force-pushed
the
codex/pr198-f4-task-event-publisher-reuse
branch
from
July 30, 2026 16:07
5248f3c to
5f18dee
Compare
…covery fix: recover timestamp-only legacy claims
Joncallim
marked this pull request as ready for review
July 30, 2026 16:43
Joncallim
merged commit Jul 30, 2026
8c1bd93
into
codex/pr198-f3-atomic-protected-answers
4 checks passed
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.
Source Issue
Issue: #179
What changed
The dedicated task-event publisher is now cached for the lifetime of every production process, not only in test and development. A closed client or changed publisher URL retires the old instance before replacement, and a test-only reset releases listeners and the client deterministically.
This closes PR #198 finding
PRRT_kwDOS9dWe86VJqjy. Shared legacy Redis behavior and the database-authoritative protected-mode credential decision are unchanged.Why it matters
Repeated task-event writes no longer create one unclosed Redis connection per event in production.
Base and scope
codex/pr198-f3-atomic-protected-answers9340ccc01af671f1b02effd683a7d8f74078d2675f18dee092c956f84c2a6b97767e89d2dea54271web/lib/task-event-redis.tsand its focused configuration testValidation
git diff --check: passed30560023688, job90930334117: passed30560023530, job90930333899: passedStack
This child remains draft and is stacked between F5 and F3 in the required progressive merge order.