ragflow/api
hsparks.codes 4c6eecaa46 feat: Add API endpoints and comprehensive tests (Phase 3 & 4)
Phase 3 - API Endpoints:
- Create task_app.py with 5 REST API endpoints
  - POST /api/v1/task/{task_id}/pause - Pause running task
  - POST /api/v1/task/{task_id}/resume - Resume paused task
  - POST /api/v1/task/{task_id}/cancel - Cancel task
  - GET /api/v1/task/{task_id}/checkpoint-status - Get detailed status
  - POST /api/v1/task/{task_id}/retry-failed - Retry failed documents
- Full error handling and validation
- Proper authentication with @login_required
- Comprehensive logging

Phase 4 - Testing:
- Create test_checkpoint_service.py with 22 unit tests
- Test coverage:
   Checkpoint creation (2 tests)
   Document state management (4 tests)
   Pause/resume/cancel operations (5 tests)
   Retry logic (3 tests)
   Progress tracking (2 tests)
   Integration scenarios (3 tests)
   Edge cases (3 tests)
- All 22 tests passing 

Documentation:
- Usage examples and API documentation
- Performance impact analysis
2025-12-03 09:19:26 +01:00
..
apps feat: Add API endpoints and comprehensive tests (Phase 3 & 4) 2025-12-03 09:19:26 +01:00
common Feat:admin api (#10642) 2025-10-18 16:09:48 +08:00
db feat: Implement checkpoint/resume for RAPTOR tasks (Phase 1 & 2) 2025-12-03 09:13:47 +01:00
utils feat: Implement checkpoint/resume for RAPTOR tasks (Phase 1 & 2) 2025-12-03 09:13:47 +01:00
__init__.py Update comments (#4569) 2025-01-21 20:52:28 +08:00
constants.py Introduce common/constants.py (#10965) 2025-11-03 16:32:37 +08:00
ragflow_server.py Refa: make RAGFlow more asynchronous (#11601) 2025-12-01 14:24:06 +08:00
settings.py Move api.settings to common.settings (#11036) 2025-11-06 09:36:38 +08:00
validation.py Fix errors detected by Ruff (#3918) 2024-12-08 14:21:12 +08:00