|
71 | 71 | ## � What's New in v2.8.0 |
72 | 72 |
|
73 | 73 | ### 🔧 Critical Bug Fixes |
| 74 | + |
74 | 75 | - **Fixed Timestamp Overflow** - Resolved negative timestamp issue (`ts: -1477412146`) by converting milliseconds to seconds for SQLite compatibility |
75 | 76 | - **Memory Leak Prevention** - Fixed timer cleanup issues in task management with proper AbortController signal propagation |
76 | 77 | - **UUID Consistency** - Corrected data retrieval inconsistency in task system by fixing object merging precedence |
77 | 78 |
|
78 | 79 | ### 🚀 New Features |
| 80 | + |
79 | 81 | - **Task Management System** - Complete task orchestration with CRUD operations, retry logic, and queue execution |
80 | 82 | - **Queue API** - Background task processing with real-time trace subscription and status monitoring |
81 | 83 | - **Enhanced API Documentation** - Updated OpenAPI specification with comprehensive task management endpoint documentation |
82 | 84 |
|
83 | 85 | ### ✅ Quality Improvements |
| 86 | + |
84 | 87 | - **Comprehensive Testing** - Added 15+ new integration tests covering task API operations, validation, and error handling |
85 | 88 | - **Enhanced Admin API Tests** - Extended test coverage for host-frontend functionality and authorization scenarios |
86 | 89 | - **117 Passing Tests** - Complete test suite coverage ensuring system reliability and performance |
87 | 90 |
|
88 | | -## �🏗️ Architecture Overview |
| 91 | +## 🏗️ Architecture Overview |
89 | 92 |
|
90 | 93 | ```mermaid |
91 | 94 | graph TB |
@@ -164,7 +167,7 @@ graph TB |
164 | 167 |
|
165 | 168 | 2. **Start the server:** |
166 | 169 | ```bash |
167 | | - deno task start |
| 170 | + deno task cli start |
168 | 171 | ``` |
169 | 172 |
|
170 | 173 | The server will automatically: |
@@ -237,16 +240,16 @@ export JWT_TOKEN="your-admin-jwt-token" |
237 | 240 |
|
238 | 241 | #### Task Management |
239 | 242 |
|
240 | | -| Endpoint | Method | Description | Example | |
241 | | -| ----------------------------- | ------ | ------------------------ | ----------------------------------------------------------------------------------------------------------------- | |
242 | | -| `/admin-api/v2/tasks` | GET | List all tasks | `curl -H "Authorization: Bearer $JWT_TOKEN" http://localhost:8000/admin-api/v2/tasks` | |
243 | | -| `/admin-api/v2/tasks` | POST | Create new task | See [Task Creation](#-task-creation) | |
244 | | -| `/admin-api/v2/tasks/{id}` | GET | Get specific task | `curl -H "Authorization: Bearer $JWT_TOKEN" http://localhost:8000/admin-api/v2/tasks/task-uuid` | |
245 | | -| `/admin-api/v2/tasks/{id}` | PUT | Update task | See [Task Updates](#-task-updates) | |
246 | | -| `/admin-api/v2/tasks/{id}` | DELETE | Delete task | `curl -X DELETE -H "Authorization: Bearer $JWT_TOKEN" http://localhost:8000/admin-api/v2/tasks/task-uuid` | |
247 | | -| `/admin-api/v2/tasks?name=X` | GET | Filter tasks by name | `curl -H "Authorization: Bearer $JWT_TOKEN" http://localhost:8000/admin-api/v2/tasks?name=my-task` | |
248 | | -| `/queue/v2/enqueue` | POST | Enqueue task for execution | `curl -X POST -H "Content-Type: application/json" -d '{"taskId":"task-uuid","params":{}}' http://localhost:8000/queue/v2/enqueue` | |
249 | | -| `/queue/v2/subscribe` | POST | Subscribe to task traces | `curl -X POST -H "Content-Type: application/json" -d '{"queueId":"queue-uuid"}' http://localhost:8000/queue/v2/subscribe` | |
| 243 | +| Endpoint | Method | Description | Example | |
| 244 | +| ---------------------------- | ------ | -------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | |
| 245 | +| `/admin-api/v2/tasks` | GET | List all tasks | `curl -H "Authorization: Bearer $JWT_TOKEN" http://localhost:8000/admin-api/v2/tasks` | |
| 246 | +| `/admin-api/v2/tasks` | POST | Create new task | See [Task Creation](#-task-creation) | |
| 247 | +| `/admin-api/v2/tasks/{id}` | GET | Get specific task | `curl -H "Authorization: Bearer $JWT_TOKEN" http://localhost:8000/admin-api/v2/tasks/task-uuid` | |
| 248 | +| `/admin-api/v2/tasks/{id}` | PUT | Update task | See [Task Updates](#-task-updates) | |
| 249 | +| `/admin-api/v2/tasks/{id}` | DELETE | Delete task | `curl -X DELETE -H "Authorization: Bearer $JWT_TOKEN" http://localhost:8000/admin-api/v2/tasks/task-uuid` | |
| 250 | +| `/admin-api/v2/tasks?name=X` | GET | Filter tasks by name | `curl -H "Authorization: Bearer $JWT_TOKEN" http://localhost:8000/admin-api/v2/tasks?name=my-task` | |
| 251 | +| `/queue/v2/enqueue` | POST | Enqueue task for execution | `curl -X POST -H "Content-Type: application/json" -d '{"taskId":"task-uuid","params":{}}' http://localhost:8000/queue/v2/enqueue` | |
| 252 | +| `/queue/v2/subscribe` | POST | Subscribe to task traces | `curl -X POST -H "Content-Type: application/json" -d '{"queueId":"queue-uuid"}' http://localhost:8000/queue/v2/subscribe` | |
250 | 253 |
|
251 | 254 | #### Configuration Management |
252 | 255 |
|
@@ -815,7 +818,7 @@ deno test --coverage=coverage --allow-all |
815 | 818 |
|
816 | 819 | ```bash |
817 | 820 | # Start development server |
818 | | -deno task start |
| 821 | +deno task cli start |
819 | 822 |
|
820 | 823 | # Format code |
821 | 824 | deno task fmt |
|
0 commit comments