feat(app): background collection frame for sites, search words and RSS feeds
Targets (none by default), interval and keep days on a new 백그라운드 수집 screen with the results; the worker collects on its own thread through the web search's address check and writes only to the data folder's collect/ (logs carry target names and counts). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -67,6 +67,13 @@ def main() -> int:
|
||||
brain = JarvisBrain(language=args.tool_language or None, reply_language=args.reply_language or None,
|
||||
mcp_env=mcp_env)
|
||||
|
||||
# Background collection runs apart from the voice and the brain (voice_worker.spec.md).
|
||||
collector = None
|
||||
if os.environ.get("JARVIS_COLLECT_PATH"):
|
||||
from .collect import Collector, load_config
|
||||
collector = Collector(load_config(os.environ["JARVIS_COLLECT_PATH"]))
|
||||
collector.start()
|
||||
|
||||
async def run() -> None:
|
||||
worker = VoiceWorker(token, transcriber, vad.stream, tts, history=history, brain=brain)
|
||||
server = await worker.serve(args.host, args.port)
|
||||
@@ -81,6 +88,8 @@ def main() -> int:
|
||||
except KeyboardInterrupt:
|
||||
pass
|
||||
finally:
|
||||
if collector:
|
||||
collector.stop()
|
||||
if tts:
|
||||
tts.close()
|
||||
if history:
|
||||
|
||||
Reference in New Issue
Block a user