-
Notifications
You must be signed in to change notification settings - Fork 7
fix(enrichment): restore validated flex launchd profile #271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,23 +6,20 @@ | |
| <string>com.brainlayer.enrichment</string> | ||
|
|
||
| <!-- Realtime Gemini enrichment LaunchAgent. | ||
| Runs once at login/load and then every 10 minutes. --> | ||
| Runs a supervised shell loop so the one-shot enrich command stays continuous. --> | ||
|
|
||
| <key>ProgramArguments</key> | ||
| <array> | ||
| <string>__BRAINLAYER_BIN__</string> | ||
| <string>enrich</string> | ||
| <string>--mode</string> | ||
| <string>realtime</string> | ||
| <string>--limit</string> | ||
| <string>50</string> | ||
| <string>/bin/zsh</string> | ||
| <string>-lc</string> | ||
| <string>cd "__BRAINLAYER_DIR__" || exit 1; while true; do "__BRAINLAYER_BIN__" enrich --mode realtime --limit 200000 --since-hours 87600; sleep 5; done</string> | ||
| </array> | ||
|
|
||
| <key>WorkingDirectory</key> | ||
| <string>__BRAINLAYER_DIR__</string> | ||
|
|
||
| <key>StartInterval</key> | ||
| <integer>600</integer> | ||
| <key>KeepAlive</key> | ||
| <true/> | ||
|
|
||
| <key>StandardOutPath</key> | ||
| <string>__HOME__/Library/Logs/brainlayer-enrichment.log</string> | ||
|
|
@@ -40,9 +37,9 @@ | |
| <key>BRAINLAYER_STALL_TIMEOUT</key> | ||
| <string>300</string> | ||
| <key>BRAINLAYER_ENRICH_RATE</key> | ||
| <string>50</string> | ||
| <string>15</string> | ||
| <key>BRAINLAYER_ENRICH_CONCURRENCY</key> | ||
| <string>10</string> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Missing BRAINLAYER_ENRICH_BACKEND=gemini environment variable in plistHigh Severity The PR description explicitly identifies Additional Locations (1)Reviewed by Cursor Bugbot for commit 40c0388. Configure here. |
||
| <string>18</string> | ||
| <key>BRAINLAYER_GEMINI_SERVICE_TIER</key> | ||
| <string>flex</string> | ||
| <key>GOOGLE_API_KEY</key> | ||
|
|
||


There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Switching this LaunchAgent to
KeepAlivecauses a restart loop becausebrainlayer enrich --mode realtimeis a one-pass command (it returns afterenrich_realtime(...)finishes, including the common no-candidates path). In that steady-state case the process exits quickly, launchd repeatedly respawns it, and macOS can classify it as “respawning too fast” and stop relaunching, which means realtime enrichment can silently stall until manual intervention while also churning logs/CPU. A timed trigger (or an internal sleep loop in the process) is needed for this command shape.Useful? React with 👍 / 👎.