Pause scheduled LLM work while Skyrim is inactive - #702
Merged
RANGROO merged 2 commits intoAug 15, 2026
Conversation
RANGROO
marked this pull request as ready for review
August 14, 2026 15:45
RANGROO
marked this pull request as draft
August 15, 2026 16:29
RANGROO
marked this pull request as ready for review
August 15, 2026 16:31
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
HerikaServer's scheduled middle-term service keeps running after Skyrim stops sending game traffic. Its global summary and middle-term connector defaults can use DeepSeek V4 Pro independently of every profile, so the background loop can continue consuming OpenRouter credits while the game is closed.
Discord source: Open Discord thread
Changes
lib/game_activity.phpchimMarkGameActivity()andchimHasRecentGameActivity()APIs from the request path and scheduled middle-term gateThe timing and scheduler behavior are unchanged. No schema or configuration migration is required.
Validation
lib/game_activity.php,lib/player2_health.php,main.php, andservice/processors/middleterm/entrypoint.phpPlayer2HealthTest: 2 tests, 7 assertions passedgit diff --checkDeployment and limits
The original two-file implementation was deployed locally and verified through two inactive scheduler cycles. This naming/ownership refactor adds a new shared module and has not been redeployed, so the local WSL runtime does not yet represent this commit.
Active-game resume and in-game behavior remain untested. Draft PR #690 touches the same scheduler file and draft PR #704 touches
main.php; GitHub currently reports this branch as cleanly mergeable, but either PR may require rechecking if its branch changes.