Run relationship worker only for queued work - #89
Draft
RANGROO wants to merge 1 commit into
Draft
Conversation
RANGROO
marked this pull request as ready for review
August 24, 2026 06:55
RANGROO
marked this pull request as draft
August 24, 2026 06:56
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.
Summary
RELATIONSHIP_UPDATE_CHANCEbefore listener and database context workWhy
context_pre.phpchecked or launched the worker on every relationship-enabled prompt. The daemon also appended two raw trace lines every two seconds while idle, and prompt context could read the same relationship map twice.Dialectic compatibility
_relProcessInitQueue(5)in every worker batchValidation
git diff --checkPerformance
The prompt hot path no longer performs process/PID checks and now reads relationship state once. The worker no longer writes roughly 3,600 idle trace lines per hour. The reviewable diff is 296 changed lines across five files; most of the movement relocates the existing cross-platform launcher from prompt context to the queue.
Local deployment
Deployed exact commit
10224efb6b2d6528dca88fc736e54f3e520ca6b0from the feature worktree toDwemerAI4Skyrim3:/var/www/html/DialecticServer. Configuration, logs, caches, backups, uploads, databases, voice samples, and the unchanged game client were preserved.Limits