Browse Source

处理失败问题

rambo 1 month ago
parent
commit
8a8ab1aa5d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      python/api.py

+ 2 - 2
python/api.py

@@ -641,7 +641,7 @@ async def _process_scene_images(aigc_clazz, run_main, return_data_check_before_d
                 new_goods_dict[goods_art_no_info]["货号资料"][idx_key] = goods_art_dict_info_item
                 print("场景图处理异常",e)
                 os.remove(save_image_path)
-                product_scene_finish_progress -= 1
+                # product_scene_finish_progress -= 1
                 product_scene_error_progress += 1
                 
                 product_scene_progress = {
@@ -789,7 +789,7 @@ async def _process_model_images(aigc_clazz, run_main, return_data_check_before_d
                 
             except (concurrent.futures.TimeoutError, Exception) as e:
                 os.remove(save_image_path)
-                upper_footer_finish_progress-=1
+                # upper_footer_finish_progress-=1
                 upper_footer_error_progress += 1
                 goods_art_dict_info_item["模特图"] = ""
                 new_goods_dict[goods_art_no_info]["货号资料"][idx_key] = goods_art_dict_info_item