luojunhui 2 weeks ago
parent
commit
b75be0de04
1 changed files with 1 additions and 1 deletions
  1. 1 1
      coldStartTasks/ai_pipeline/extract_video_best_frame.py

+ 1 - 1
coldStartTasks/ai_pipeline/extract_video_best_frame.py

@@ -65,7 +65,7 @@ class ExtractVideoBestFrame:
         """
         fetch_query = f"""
             select count(1) as pool_size from {table_name}
-            where upload_status = 2 and file_state = 'PROCESSING';
+            where upload_status = 2 and file_state = 'PROCESSING' and extract_status = 0;
         """
         fetch_response = self.db_client.fetch(query=fetch_query, cursor_type=DictCursor)
         processing_task_pool_size = (