Files
MemoryBear/api/app/services
Ke Sun 010eff17cf feat(memory): Refactor memory API to support async task-based and sync operations
- Rename endpoints from write_api_service/read_api_service to write/read for clarity
- Add async task-based endpoints (/write, /read) that dispatch to Celery with fair locking
- Add task status polling endpoints (/write/status, /read/status) to check async operation results
- Add synchronous endpoints (/write/sync, /read/sync) for blocking operations with direct results
- Introduce TaskStatusResponse schema for task status polling responses
- Add MemoryWriteSyncResponse and MemoryReadSyncResponse schemas for sync operations
- Implement write_memory_sync and read_memory_sync methods in MemoryAPIService
- Remove await from async service calls in task-based endpoints (now handled by Celery)
- Add Query parameter import for task_id in status endpoints
- Update docstrings to clarify async vs sync behavior and task polling workflow
- Integrate task_service for retrieving Celery task results
2026-04-02 14:47:36 +08:00
..
2026-03-16 18:00:09 +08:00
2025-12-29 14:51:23 +08:00
2026-01-23 10:50:24 +08:00
2026-03-11 10:45:07 +08:00
2026-03-27 19:13:51 +08:00
2026-01-28 16:07:53 +08:00
2026-03-25 17:54:27 +08:00
2026-03-25 18:06:01 +08:00
2026-03-05 09:55:54 +08:00
2026-03-05 09:55:54 +08:00
2026-03-05 09:55:54 +08:00
2026-03-05 09:55:54 +08:00
2025-12-24 20:35:04 +08:00
2025-12-15 14:09:43 +08:00
2026-03-27 14:36:19 +08:00
2026-03-16 18:00:09 +08:00