feat: 系统优化和功能完善
主要更新: - 调整并发配置为50人(数据库连接池30,Tomcat线程150,异步线程池5/20) - 实现无界阻塞队列(LinkedBlockingQueue)任务处理 - 实现分镜视频保存功能(保存到uploads目录) - 统一管理页面导航栏和右上角样式 - 添加日活用户统计功能 - 优化视频拼接和保存逻辑 - 添加部署文档和快速部署指南 - 更新.gitignore排除敏感配置文件
This commit is contained in:
@@ -1,26 +1,20 @@
|
||||
-- 清理失败任务的SQL脚本
|
||||
-- 清除失败任务的SQL脚本
|
||||
-- 数据库:aigc_platform
|
||||
|
||||
-- 删除失败的任务队列记录
|
||||
-- 1. 清除任务队列中的失败任务
|
||||
DELETE FROM task_queue WHERE status = 'FAILED';
|
||||
|
||||
-- 删除失败的图生视频任务
|
||||
DELETE FROM image_to_video_tasks WHERE status = 'FAILED';
|
||||
|
||||
-- 删除失败的文生视频任务
|
||||
-- 2. 清除文生视频任务中的失败任务
|
||||
DELETE FROM text_to_video_tasks WHERE status = 'FAILED';
|
||||
|
||||
-- 删除相关的积分冻结记录
|
||||
DELETE FROM points_freeze_records WHERE status IN ('FROZEN', 'RETURNED', 'DEDUCTED')
|
||||
AND task_id IN (
|
||||
SELECT task_id FROM task_queue WHERE status = 'FAILED'
|
||||
);
|
||||
-- 3. 清除图生视频任务中的失败任务
|
||||
DELETE FROM image_to_video_tasks WHERE status = 'FAILED';
|
||||
|
||||
-- 显示清理结果
|
||||
SELECT 'task_queue' as table_name, COUNT(*) as remaining_count FROM task_queue
|
||||
UNION ALL
|
||||
SELECT 'image_to_video_tasks' as table_name, COUNT(*) as remaining_count FROM image_to_video_tasks
|
||||
UNION ALL
|
||||
SELECT 'text_to_video_tasks' as table_name, COUNT(*) as remaining_count FROM text_to_video_tasks
|
||||
UNION ALL
|
||||
SELECT 'points_freeze_records' as table_name, COUNT(*) as remaining_count FROM points_freeze_records;
|
||||
-- 4. 清除分镜视频任务中的失败任务
|
||||
DELETE FROM storyboard_video_tasks WHERE status = 'FAILED';
|
||||
|
||||
-- 查看删除结果(可选)
|
||||
-- SELECT COUNT(*) as failed_queue_tasks FROM task_queue WHERE status = 'FAILED';
|
||||
-- SELECT COUNT(*) as failed_text_tasks FROM text_to_video_tasks WHERE status = 'FAILED';
|
||||
-- SELECT COUNT(*) as failed_image_tasks FROM image_to_video_tasks WHERE status = 'FAILED';
|
||||
-- SELECT COUNT(*) as failed_storyboard_tasks FROM storyboard_video_tasks WHERE status = 'FAILED';
|
||||
|
||||
Reference in New Issue
Block a user