ragflow/api/db
hsparks.codes be7f0ce46c feat: Add checkpoint/resume support for long-running tasks
- Add CheckpointService with full CRUD capabilities for task checkpoints
- Support document-level progress tracking and state management
- Implement pause/resume/cancel functionality
- Add retry logic with configurable limits for failed documents
- Track token usage and overall progress
- Include comprehensive unit tests (22 tests)
- Include integration tests with real database (8 tests)
- Add working demo with 4 real-world scenarios
- Add TaskCheckpoint model to database schema

This feature enables RAPTOR and GraphRAG tasks to:
- Recover from crashes without losing progress
- Pause and resume processing
- Automatically retry failed documents
- Track detailed progress and token usage

All tests passing (30/30)
2025-12-04 10:58:37 +01:00
..
joint_services Move api.settings to common.settings (#11036) 2025-11-06 09:36:38 +08:00
services feat: Add checkpoint/resume support for long-running tasks 2025-12-04 10:58:37 +01:00
__init__.py Fix: GraphRAG and RAPTOR tasks do not affect document status (#11194) 2025-11-12 12:03:41 +08:00
db_models.py fix: Add missing except block in database migrations 2025-12-03 10:34:55 +01:00
db_utils.py Add time utils (#10849) 2025-10-28 19:09:14 +08:00
init_data.py Allow create super user when start rag server. (#10634) 2025-11-24 19:02:08 +08:00
reload_config_base.py Format file format from Windows/dos to Unix (#1949) 2024-08-15 09:17:36 +08:00
runtime_config.py Admin: add 'show version' (#11079) 2025-11-06 19:24:46 +08:00