Files
MemoryBear/api/app
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-01-12 15:59:10 +08:00
2026-02-28 18:58:33 +08:00
2026-03-13 14:36:54 +08:00
2026-03-11 10:45:07 +08:00
2026-03-27 19:13:51 +08:00
2026-01-26 11:53:34 +08:00
2025-12-24 20:35:04 +08:00
2026-03-30 18:14:31 +08:00
2026-03-20 19:52:28 +08:00