feat: 完成代码逻辑错误修复和任务清理系统实现
主要更新: - 修复了所有主要的代码逻辑错误 - 实现了完整的任务清理系统 - 添加了系统设置页面的任务清理管理功能 - 修复了API调用认证问题 - 优化了密码加密和验证机制 - 统一了错误处理模式 - 添加了详细的文档和测试工具 新增功能: - 任务清理管理界面 - 任务归档和清理日志 - API监控和诊断工具 - 完整的测试套件 技术改进: - 修复了Repository方法调用错误 - 统一了模型方法调用 - 改进了类型安全性 - 优化了代码结构和可维护性
This commit is contained in:
61
demo/check_queue_status.sql
Normal file
61
demo/check_queue_status.sql
Normal file
@@ -0,0 +1,61 @@
|
||||
-- 检查任务队列状态
|
||||
SELECT
|
||||
'task_queue' as table_name,
|
||||
status,
|
||||
COUNT(*) as count
|
||||
FROM task_queue
|
||||
GROUP BY status
|
||||
UNION ALL
|
||||
SELECT
|
||||
'image_to_video_tasks' as table_name,
|
||||
status,
|
||||
COUNT(*) as count
|
||||
FROM image_to_video_tasks
|
||||
GROUP BY status;
|
||||
|
||||
-- 查看最近的任务
|
||||
SELECT
|
||||
'Recent Task Queue' as info,
|
||||
task_id,
|
||||
username,
|
||||
task_type,
|
||||
status,
|
||||
real_task_id,
|
||||
check_count,
|
||||
error_message,
|
||||
created_at
|
||||
FROM task_queue
|
||||
ORDER BY created_at DESC
|
||||
LIMIT 10;
|
||||
|
||||
-- 查看最近的图生视频任务
|
||||
SELECT
|
||||
'Recent Image Tasks' as info,
|
||||
task_id,
|
||||
username,
|
||||
status,
|
||||
progress,
|
||||
real_task_id,
|
||||
error_message,
|
||||
first_frame_url,
|
||||
created_at
|
||||
FROM image_to_video_tasks
|
||||
ORDER BY created_at DESC
|
||||
LIMIT 10;
|
||||
|
||||
-- 查看失败的任务详情
|
||||
SELECT
|
||||
'Failed Tasks' as info,
|
||||
tq.task_id,
|
||||
tq.username,
|
||||
tq.status as queue_status,
|
||||
tq.error_message as queue_error,
|
||||
it.status as task_status,
|
||||
it.error_message as task_error,
|
||||
it.first_frame_url,
|
||||
tq.created_at
|
||||
FROM task_queue tq
|
||||
LEFT JOIN image_to_video_tasks it ON tq.task_id = it.task_id
|
||||
WHERE tq.status = 'FAILED' OR it.status = 'FAILED'
|
||||
ORDER BY tq.created_at DESC;
|
||||
|
||||
Reference in New Issue
Block a user