Files

Job & Scheduler

Cherry Studio unified background job + time-scheduling system. Phase 1 (basic infrastructure) is implemented; business migrations (agent task, FileProcessing, Knowledge) are scheduled for Phase 2-4.

Doc What it covers Audience
overview.md Architecture, two-service separation, DB-driven dispatch New contributors
scheduler-usage.md Decision tree: SchedulerService vs registerInterval vs raw setInterval All consumers
concurrency-and-locks.md Four-layer lock model + business-level resource locks Handler authors
handler-authoring.md How to write a JobHandler (recovery / retry / catchUp / progress) Handler authors
migration-checklist.md Step-by-step checklist for migrating existing services Phase 2-4 migrators

Quick navigation