douxu
4d5fcbc376
Refactor async task system with unified task interfaces and add test task type
...
- Create task/types_v2.go with unified task type definitions and interfaces
* Add UnifiedTaskType and UnifiedTaskStatus constants
* Define Task:Params interface for parameter validation and serialization
* Define UnifiedTask interface as base for all task implementations
* Add BaseTask for common task functionality
2026-04-14 17:00:30 +08:00
douxu
f8c0951a13
Extend async task system with database integration and retry management
...
- Add AsyncTaskConfig to config structure
- Create database operations for task state management (async_task_extended.go)
- Add configuration middleware for Gin context
- Extract task worker initialization to separate file (initializer.go)
- Implement retry strategies with exponential backoff (retry_manager.go)
- Add retry queue for failed task scheduling (retry_queue.go)
- Enhance worker metrics with detailed per-task-type tracking
- Integrate database operations into task worker for status updates
- Add comprehensive metrics logging system
2026-04-03 10:07:43 +08:00
douxu
7ea66e48af
add code of async task system
2026-03-20 15:00:04 +08:00
douxu
6e0d2186d8
optimize code of async task system
2026-03-12 16:37:06 +08:00
douxu
a94abdb479
initialize the asynchronous task system's initial structure
2026-03-05 17:15:51 +08:00