소스 검색

修改线程数

zhangyong 10 달 전
부모
커밋
5551c34101
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      video_rewriting/video_prep.py

+ 1 - 1
video_rewriting/video_prep.py

@@ -215,7 +215,7 @@ class getVideo:
                     cls.remove_files(video_path_url)
                     Common.logger("warning").warning(f"{name}的{task_mark}任务处理失败:{e}\n")
 
-        batch_size = 3
+        batch_size = 2
         with concurrent.futures.ThreadPoolExecutor(max_workers=batch_size) as executor:
             index = 0
             while index < len(task_data):