Repository navigation
fix(service): avoid background throttling on macOS - #1694
Merged
Merged
Conversation
Use Standard scheduling for LaunchAgents and reconcile existing native settings while preserving install idempotency. Add regression coverage for compatible upgrades and the real launchd lifecycle. Refs oceanbase#1571
This was referenced Sep 21, 2026
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.
Which issue or RFC does this PR close?
Closes #1571.
Rationale for this change
The macOS native service intermittently exceeds its 30-second startup deadline. Failure snapshots show a running LaunchAgent with no listener, while process samples show Python imports and filesystem I/O still in progress.
The evidence points to resource throttling from
ProcessType=Background. The personal Server handles user requests and should use standard scheduling.What changes are included in this PR?
ProcessType=Standardfor macOS LaunchAgents.Are there any user-facing changes?
macOS personal services use standard scheduling. Running
powercontext service installupgrades an existing Background definition and reloads the service.The 30-second startup timeout remains unchanged. No public API or persisted metadata format changes.
How was this change tested?
make check— passed.uv run --locked prek run -a— passed.Validation was performed locally. CI for this change has not run yet.
AI usage statement
OpenAI Codex assisted