Skip to content

fix: reuse the production task event publisher - #312

Merged
Joncallim merged 3 commits into
codex/pr198-f3-atomic-protected-answersfrom
codex/pr198-f4-task-event-publisher-reuse
Jul 30, 2026
Merged

fix: reuse the production task event publisher#312
Joncallim merged 3 commits into
codex/pr198-f3-atomic-protected-answersfrom
codex/pr198-f4-task-event-publisher-reuse

Conversation

@Joncallim

@Joncallim Joncallim commented Jul 30, 2026

Copy link
Copy Markdown
Owner

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

  • Base branch: codex/pr198-f3-atomic-protected-answers
  • Exact base SHA: 9340ccc01af671f1b02effd683a7d8f74078d267
  • Exact head SHA: 5f18dee092c956f84c2a6b97767e89d2dea54271
  • Files: web/lib/task-event-redis.ts and its focused configuration test

Validation

  • Task-event configuration/publisher focus: 18 passed
  • Changed-file ESLint: passed
  • TypeScript: passed
  • Production build: passed
  • git diff --check: passed
  • Hosted Web CI run 30560023688, job 90930334117: passed
  • Hosted Contract run 30560023530, job 90930333899: passed
  • GitGuardian: passed

Stack

This child remains draft and is stacked between F5 and F3 in the required progressive merge order.

@Joncallim
Joncallim force-pushed the codex/pr198-f4-task-event-publisher-reuse branch from 5248f3c to 5f18dee Compare July 30, 2026 16:07
@Joncallim
Joncallim marked this pull request as ready for review July 30, 2026 16:43
@Joncallim
Joncallim merged commit 8c1bd93 into codex/pr198-f3-atomic-protected-answers Jul 30, 2026
4 checks passed
@Joncallim
Joncallim deleted the codex/pr198-f4-task-event-publisher-reuse branch August 2, 2026 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant