save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06667280197143555 time spend to save output : 0.016027212142944336 total time spend for step 2 : 0.08270001411437988 step3:velours_tree Tue Apr 1 15:10:56 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {21946690: [{'flou': 21946710, 'autre_refus': 21946711, 'Teint_Dans_La_Masse': 21946712, 'cartonnette': 21946713, 'metal': 21946714, 'papier': 21946715, 'plastique': 21946716, 'environnement': 21946717, 'mal_croppe': 21946718, 'Carton_brun': 21946719, 'Carton_gris': 21946720, 'kraft': 21946721}]} input_args_next_step : {21946690: ()} output_args : {21946690: [{'flou': 21946710, 'autre_refus': 21946711, 'Teint_Dans_La_Masse': 21946712, 'cartonnette': 21946713, 'metal': 21946714, 'papier': 21946715, 'plastique': 21946716, 'environnement': 21946717, 'mal_croppe': 21946718, 'Carton_brun': 21946719, 'Carton_gris': 21946720, 'kraft': 21946721}]} args : 21946690 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'flou': 21946710, 'autre_refus': 21946711, 'Teint_Dans_La_Masse': 21946712, 'cartonnette': 21946713, 'metal': 21946714, 'papier': 21946715, 'plastique': 21946716, 'environnement': 21946717, 'mal_croppe': 21946718, 'Carton_brun': 21946719, 'Carton_gris': 21946720, 'kraft': 21946721},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21946690) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} can't find the photo_desc_type After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21946690]) Inside saveOutput : final : False verbose : True ouput is None No outpout to save, returning out of save general time spend for datou_step_exec : 0.767200231552124 time spend to save output : 9.226799011230469e-05 total time spend for step 3 : 0.7672924995422363 step4:send_mail_cod Tue Apr 1 15:10:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1349291816: ('0.02416861832101285',), 1349291813: ('0.02416861832101285',), 1349291810: ('0.02416861832101285',), 1349291806: ('0.02416861832101285',), 1349291778: ('0.02416861832101285',), 1349291774: ('0.02416861832101285',), 1349291771: ('0.02416861832101285',), 1349291751: ('0.02416861832101285',), 1349291749: ('0.02416861832101285',), 1349291745: ('0.02416861832101285',)} input_args_next_step : {1349291816: ()} output_args : {1349291816: ('0.02416861832101285',), 1349291813: ('0.02416861832101285',), 1349291810: ('0.02416861832101285',), 1349291806: ('0.02416861832101285',), 1349291778: ('0.02416861832101285',), 1349291774: ('0.02416861832101285',), 1349291771: ('0.02416861832101285',), 1349291751: ('0.02416861832101285',), 1349291749: ('0.02416861832101285',), 1349291745: ('0.02416861832101285',)} args : 1349291816 depend.output_id : 0 input_args_next_step : {1349291816: ('0.02416861832101285',), 1349291813: ()} output_args : {1349291816: ('0.02416861832101285',), 1349291813: ('0.02416861832101285',), 1349291810: ('0.02416861832101285',), 1349291806: ('0.02416861832101285',), 1349291778: ('0.02416861832101285',), 1349291774: ('0.02416861832101285',), 1349291771: ('0.02416861832101285',), 1349291751: ('0.02416861832101285',), 1349291749: ('0.02416861832101285',), 1349291745: ('0.02416861832101285',)} args : 1349291813 depend.output_id : 0 input_args_next_step : {1349291816: ('0.02416861832101285',), 1349291813: ('0.02416861832101285',), 1349291810: ()} output_args : {1349291816: ('0.02416861832101285',), 1349291813: ('0.02416861832101285',), 1349291810: ('0.02416861832101285',), 1349291806: ('0.02416861832101285',), 1349291778: ('0.02416861832101285',), 1349291774: ('0.02416861832101285',), 1349291771: ('0.02416861832101285',), 1349291751: ('0.02416861832101285',), 1349291749: ('0.02416861832101285',), 1349291745: ('0.02416861832101285',)} args : 1349291810 depend.output_id : 0 input_args_next_step : {1349291816: ('0.02416861832101285',), 1349291813: ('0.02416861832101285',), 1349291810: ('0.02416861832101285',), 1349291806: ()} output_args : {1349291816: ('0.02416861832101285',), 1349291813: ('0.02416861832101285',), 1349291810: ('0.02416861832101285',), 1349291806: ('0.02416861832101285',), 1349291778: ('0.02416861832101285',), 1349291774: ('0.02416861832101285',), 1349291771: ('0.02416861832101285',), 1349291751: ('0.02416861832101285',), 1349291749: ('0.02416861832101285',), 1349291745: ('0.02416861832101285',)} args : 1349291806 depend.output_id : 0 input_args_next_step : {1349291816: ('0.02416861832101285',), 1349291813: ('0.02416861832101285',), 1349291810: ('0.02416861832101285',), 1349291806: ('0.02416861832101285',), 1349291778: ()} output_args : {1349291816: ('0.02416861832101285',), 1349291813: ('0.02416861832101285',), 1349291810: ('0.02416861832101285',), 1349291806: ('0.02416861832101285',), 1349291778: ('0.02416861832101285',), 1349291774: ('0.02416861832101285',), 1349291771: ('0.02416861832101285',), 1349291751: ('0.02416861832101285',), 1349291749: ('0.02416861832101285',), 1349291745: ('0.02416861832101285',)} args : 1349291778 depend.output_id : 0 input_args_next_step : {1349291816: ('0.02416861832101285',), 1349291813: ('0.02416861832101285',), 1349291810: ('0.02416861832101285',), 1349291806: ('0.02416861832101285',), 1349291778: ('0.02416861832101285',), 1349291774: ()} output_args : {1349291816: ('0.02416861832101285',), 1349291813: ('0.02416861832101285',), 1349291810: ('0.02416861832101285',), 1349291806: ('0.02416861832101285',), 1349291778: ('0.02416861832101285',), 1349291774: ('0.02416861832101285',), 1349291771: ('0.02416861832101285',), 1349291751: ('0.02416861832101285',), 1349291749: ('0.02416861832101285',), 1349291745: ('0.02416861832101285',)} args : 1349291774 depend.output_id : 0 input_args_next_step : {1349291816: ('0.02416861832101285',), 1349291813: ('0.02416861832101285',), 1349291810: ('0.02416861832101285',), 1349291806: ('0.02416861832101285',), 1349291778: ('0.02416861832101285',), 1349291774: ('0.02416861832101285',), 1349291771: ()} output_args : {1349291816: ('0.02416861832101285',), 1349291813: ('0.02416861832101285',), 1349291810: ('0.02416861832101285',), 1349291806: ('0.02416861832101285',), 1349291778: ('0.02416861832101285',), 1349291774: ('0.02416861832101285',), 1349291771: ('0.02416861832101285',), 1349291751: ('0.02416861832101285',), 1349291749: ('0.02416861832101285',), 1349291745: ('0.02416861832101285',)} args : 1349291771 depend.output_id : 0 input_args_next_step : {1349291816: ('0.02416861832101285',), 1349291813: ('0.02416861832101285',), 1349291810: ('0.02416861832101285',), 1349291806: ('0.02416861832101285',), 1349291778: ('0.02416861832101285',), 1349291774: ('0.02416861832101285',), 1349291771: ('0.02416861832101285',), 1349291751: ()} output_args : {1349291816: ('0.02416861832101285',), 1349291813: ('0.02416861832101285',), 1349291810: ('0.02416861832101285',), 1349291806: ('0.02416861832101285',), 1349291778: ('0.02416861832101285',), 1349291774: ('0.02416861832101285',), 1349291771: ('0.02416861832101285',), 1349291751: ('0.02416861832101285',), 1349291749: ('0.02416861832101285',), 1349291745: ('0.02416861832101285',)} args : 1349291751 depend.output_id : 0 input_args_next_step : {1349291816: ('0.02416861832101285',), 1349291813: ('0.02416861832101285',), 1349291810: ('0.02416861832101285',), 1349291806: ('0.02416861832101285',), 1349291778: ('0.02416861832101285',), 1349291774: ('0.02416861832101285',), 1349291771: ('0.02416861832101285',), 1349291751: ('0.02416861832101285',), 1349291749: ()} output_args : {1349291816: ('0.02416861832101285',), 1349291813: ('0.02416861832101285',), 1349291810: ('0.02416861832101285',), 1349291806: ('0.02416861832101285',), 1349291778: ('0.02416861832101285',), 1349291774: ('0.02416861832101285',), 1349291771: ('0.02416861832101285',), 1349291751: ('0.02416861832101285',), 1349291749: ('0.02416861832101285',), 1349291745: ('0.02416861832101285',)} args : 1349291749 depend.output_id : 0 input_args_next_step : {1349291816: ('0.02416861832101285',), 1349291813: ('0.02416861832101285',), 1349291810: ('0.02416861832101285',), 1349291806: ('0.02416861832101285',), 1349291778: ('0.02416861832101285',), 1349291774: ('0.02416861832101285',), 1349291771: ('0.02416861832101285',), 1349291751: ('0.02416861832101285',), 1349291749: ('0.02416861832101285',), 1349291745: ()} output_args : {1349291816: ('0.02416861832101285',), 1349291813: ('0.02416861832101285',), 1349291810: ('0.02416861832101285',), 1349291806: ('0.02416861832101285',), 1349291778: ('0.02416861832101285',), 1349291774: ('0.02416861832101285',), 1349291771: ('0.02416861832101285',), 1349291751: ('0.02416861832101285',), 1349291749: ('0.02416861832101285',), 1349291745: ('0.02416861832101285',)} args : 1349291745 depend.output_id : 0 Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 3 : {21946690: [{'flou': 21946710, 'autre_refus': 21946711, 'Teint_Dans_La_Masse': 21946712, 'cartonnette': 21946713, 'metal': 21946714, 'papier': 21946715, 'plastique': 21946716, 'environnement': 21946717, 'mal_croppe': 21946718, 'Carton_brun': 21946719, 'Carton_gris': 21946720, 'kraft': 21946721}]} input_args_next_step : {1349291816: ('0.02416861832101285',), 1349291813: ('0.02416861832101285',), 1349291810: ('0.02416861832101285',), 1349291806: ('0.02416861832101285',), 1349291778: ('0.02416861832101285',), 1349291774: ('0.02416861832101285',), 1349291771: ('0.02416861832101285',), 1349291751: ('0.02416861832101285',), 1349291749: ('0.02416861832101285',), 1349291745: ('0.02416861832101285',), 21946690: ()} output_args : {21946690: [{'flou': 21946710, 'autre_refus': 21946711, 'Teint_Dans_La_Masse': 21946712, 'cartonnette': 21946713, 'metal': 21946714, 'papier': 21946715, 'plastique': 21946716, 'environnement': 21946717, 'mal_croppe': 21946718, 'Carton_brun': 21946719, 'Carton_gris': 21946720, 'kraft': 21946721}]} args : 21946690 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :11, first value : ('0.02416861832101285',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21946690) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1349291816,1349291813,1349291810,1349291806,1349291778,1349291774,1349291771,1349291751,1349291749,1349291745) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1349291745 begin to download photo : 1349291771 begin to download photo : 1349291806 begin to download photo : 1349291816 download finish for photo 1349291771 begin to download photo : 1349291774 download finish for photo 1349291745 begin to download photo : 1349291749 download finish for photo 1349291816 download finish for photo 1349291806 begin to download photo : 1349291810 download finish for photo 1349291749 begin to download photo : 1349291751 download finish for photo 1349291774 begin to download photo : 1349291778 download finish for photo 1349291810 begin to download photo : 1349291813 download finish for photo 1349291751 download finish for photo 1349291778 download finish for photo 1349291813 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette219467101743513057/ length of list_filenames : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P21946690_01-04-2025_15_10_57.pdf 21946710 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21946710 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219467101743513057 21946711 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21946711 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349291612: '1743512811_303061_1349291427_80f4286279d83d950b70c6c297cbbec7_rle_crop_3742809832_0.png', 1349291613: '1743512811_303061_1349291397_741d3ae31fe0fa56ee85aafd847068f4_rle_crop_3742809875_0.png', 1349291789: '1743512940_304098_1349291515_bb1ef65fa9a174ba45d0a63a9d532fc7_rle_crop_3742812207_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/89266abe93de7d454bec963e032211de_34806837.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/b04b5b09175399c637f4539a3f5e9d40_50072715.png change filename to text .imagette219467111743513057/ imagette219467111743513057/1743512811_303061_1349291397_741d3ae31fe0fa56ee85aafd847068f4_rle_crop_3742809875_0.png.png imagette219467111743513057/1743512940_304098_1349291515_bb1ef65fa9a174ba45d0a63a9d532fc7_rle_crop_3742812207_0.png.png imagette219467111743513057/1743512811_303061_1349291427_80f4286279d83d950b70c6c297cbbec7_rle_crop_3742809832_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/4c624cf8eb9264a14f650c72e4676c3f_97193528.png imagette219467111743513057 21946713 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21946713 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349291618: '1743512811_303061_1349291393_1233f17618e9f3089de35a1c12c53bdd_rle_crop_3742809888_0.png', 1349291791: '1743512940_304098_1349291522_1b1cad482f7fa98be5ccabae4de7d3ec_rle_crop_3742812188_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/720cef760a41013fc52ac4d2c3b63491_65927720.png change filename to text .imagette219467131743513058/ imagette219467131743513058/1743512940_304098_1349291522_1b1cad482f7fa98be5ccabae4de7d3ec_rle_crop_3742812188_0.png.png imagette219467131743513058/1743512811_303061_1349291393_1233f17618e9f3089de35a1c12c53bdd_rle_crop_3742809888_0.png.png imagette219467141743513058/ imagette219467161743513058/ imagette219467181743513058/ imagette219467211743513058/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/e7301ed1e9b32d0f762edfea0edf3033_53690453.png imagette219467131743513058 21946714 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21946714 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219467141743513058 21946716 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21946716 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219467161743513058 21946718 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21946718 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219467181743513058 21946721 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21946721 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219467211743513058 21946712 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21946712 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349291603: '1743512811_303061_1349291400_c2c0d6bd1872e026c6a6449e684c4c83_rle_crop_3742809865_0.png', 1349291786: '1743512940_304098_1349291579_eb9e6e9b4cc6b589a9c3bc5cee2c559b_rle_crop_3742812176_0.png', 1349291787: '1743512940_304098_1349291522_1b1cad482f7fa98be5ccabae4de7d3ec_rle_crop_3742812187_0.png', 1349291788: '1743512940_304098_1349291512_5a82983d14389723574b220c7fa1ec64_rle_crop_3742812217_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/8c6cbc26e77da8a0a1727c26751f44a9_43284024.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/da03a009f596cb0b77bcb76da2f7d22b_724515.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/73d59e2ad53dce1734ade87f77b19a64_33277748.png change filename to text .imagette219467121743513058/ imagette219467121743513058/1743512940_304098_1349291522_1b1cad482f7fa98be5ccabae4de7d3ec_rle_crop_3742812187_0.png.png imagette219467121743513058/1743512811_303061_1349291400_c2c0d6bd1872e026c6a6449e684c4c83_rle_crop_3742809865_0.png.png imagette219467121743513058/1743512940_304098_1349291512_5a82983d14389723574b220c7fa1ec64_rle_crop_3742812217_0.png.png imagette219467121743513058/1743512940_304098_1349291579_eb9e6e9b4cc6b589a9c3bc5cee2c559b_rle_crop_3742812176_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/f15c97d8b539a7836596fafb27572bd5_52727170.png imagette219467121743513058 21946719 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21946719 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349291623: '1743512811_303061_1349291393_1233f17618e9f3089de35a1c12c53bdd_rle_crop_3742809887_0.png'} change filename to text .imagette219467191743513058/ imagette219467191743513058/1743512811_303061_1349291393_1233f17618e9f3089de35a1c12c53bdd_rle_crop_3742809887_0.png.png imagette219467201743513058/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/3c7ca885c4b5bce27ce678fe24d787c7_1821988.png imagette219467191743513058 21946720 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21946720 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219467201743513058 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21946690 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21946722,21946723,21946724,21946725,21946726,21946727,21946728,21946729,21946730,21946731,21946732,21946733?tags=flou,autre_refus,Teint_Dans_La_Masse,cartonnette,metal,papier,plastique,environnement,mal_croppe,Carton_brun,Carton_gris,kraft your option no_mail is active, we will not send the real mail to your client args[1349291816] : ('0.02416861832101285',) no score found for photo 1349291816 We are sending mail with results at report@fotonower.com args[1349291813] : ('0.02416861832101285',) no score found for photo 1349291813 We are sending mail with results at report@fotonower.com args[1349291810] : ('0.02416861832101285',) no score found for photo 1349291810 We are sending mail with results at report@fotonower.com args[1349291806] : ('0.02416861832101285',) no score found for photo 1349291806 We are sending mail with results at report@fotonower.com args[1349291778] : ('0.02416861832101285',) no score found for photo 1349291778 We are sending mail with results at report@fotonower.com args[1349291774] : ('0.02416861832101285',) no score found for photo 1349291774 We are sending mail with results at report@fotonower.com args[1349291771] : ('0.02416861832101285',) no score found for photo 1349291771 We are sending mail with results at report@fotonower.com args[1349291751] : ('0.02416861832101285',) no score found for photo 1349291751 We are sending mail with results at report@fotonower.com args[1349291749] : ('0.02416861832101285',) no score found for photo 1349291749 We are sending mail with results at report@fotonower.com args[1349291745] : ('0.02416861832101285',) no score found for photo 1349291745 We are sending mail with results at report@fotonower.com refus_total : 0.02416861832101285 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21946690 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 1000 start upload file to ovh https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21946690_01-04-2025_15_10_57.pdf results_Auto_P21946690_01-04-2025_15_10_57.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21946690_01-04-2025_15_10_57.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','21946690','results_Auto_P21946690_01-04-2025_15_10_57.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21946690_01-04-2025_15_10_57.pdf','pdf','','0.12','0.02416861832101285') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21946690]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1349291816, 1349291813, 1349291810, 1349291806, 1349291778, 1349291774, 1349291771, 1349291751, 1349291749, 1349291745] map_info['map_portfolio_photo'] : {21946690: [1349291816, 1349291813, 1349291810, 1349291806, 1349291778, 1349291774, 1349291771, 1349291751, 1349291749, 1349291745, 1349291737, 1349291579, 1349291576, 1349291526, 1349291522, 1349291515, 1349291512, 1349291427, 1349291408, 1349291404, 1349291400, 1349291397, 1349291393, 1349291388, 1349291339]} final : False mtd_id 4302 list_pids : [1349291816, 1349291813, 1349291810, 1349291806, 1349291778, 1349291774, 1349291771, 1349291751, 1349291749, 1349291745] Looping around the photos to save general results len do output : 0 before output type Used above Managing all output in save final without adding information in the mtr_datou_result ('4302', None, None, None, None, None, None, None, '2713283') ('4302', '21946690', '1349291816', None, None, None, None, None, '2713283') ('4302', None, None, None, None, None, None, None, '2713283') ('4302', '21946690', '1349291813', None, None, None, None, None, '2713283') ('4302', None, None, None, None, None, None, None, '2713283') ('4302', '21946690', '1349291810', None, None, None, None, None, '2713283') ('4302', None, None, None, None, None, None, None, '2713283') ('4302', '21946690', '1349291806', None, None, None, None, None, '2713283') ('4302', None, None, None, None, None, None, None, '2713283') ('4302', '21946690', '1349291778', None, None, None, None, None, '2713283') ('4302', None, None, None, None, None, None, None, '2713283') ('4302', '21946690', '1349291774', None, None, None, None, None, '2713283') ('4302', None, None, None, None, None, None, None, '2713283') ('4302', '21946690', '1349291771', None, None, None, None, None, '2713283') ('4302', None, None, None, None, None, None, None, '2713283') ('4302', '21946690', '1349291751', None, None, None, None, None, '2713283') ('4302', None, None, None, None, None, None, None, '2713283') ('4302', '21946690', '1349291749', None, None, None, None, None, '2713283') ('4302', None, None, None, None, None, None, None, '2713283') ('4302', '21946690', '1349291745', None, None, None, None, None, '2713283') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21946690', '1349291816', None, None, None, None, None, '2713283'), ('4302', '21946690', '1349291813', None, None, None, None, None, '2713283'), ('4302', '21946690', '1349291810', None, None, None, None, None, '2713283'), ('4302', '21946690', '1349291806', None, None, None, None, None, '2713283'), ('4302', '21946690', '1349291778', None, None, None, None, None, '2713283'), ('4302', '21946690', '1349291774', None, None, None, None, None, '2713283'), ('4302', '21946690', '1349291771', None, None, None, None, None, '2713283'), ('4302', '21946690', '1349291751', None, None, None, None, None, '2713283'), ('4302', '21946690', '1349291749', None, None, None, None, None, '2713283'), ('4302', '21946690', '1349291745', None, None, None, None, None, '2713283')] time used for this insertion : 0.01368403434753418 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.406663179397583 time spend to save output : 0.013832330703735352 total time spend for step 4 : 2.4204955101013184 step5:split_time_score Tue Apr 1 15:10:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['21946690'] We expect there is only one output and this part is used while all output are not tuple or array Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 1 : VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : [('21946690',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21946690) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1349291816: {'path': 'temp/1743513057_1234746_1349291816_ac7e9ac59dbdf0f781d3bf94a667b73d.jpg', 'extension': 'jpg'}, 1349291745: {'path': 'temp/1743513057_1234746_1349291745_1f1fbe05a987a34be86cd7e2c3b7d4a7.jpg', 'extension': 'jpg'}, 1349291749: {'path': 'temp/1743513057_1234746_1349291749_eafee9ff6e3a5b3bafffb5d208aeb43c.jpg', 'extension': 'jpg'}, 1349291751: {'path': 'temp/1743513057_1234746_1349291751_ed7bca46803c9e36104b5e2cab96a682.jpg', 'extension': 'jpg'}, 1349291771: {'path': 'temp/1743513057_1234746_1349291771_72c1ab29cd4449fd66cd4a070aaa01c5.jpg', 'extension': 'jpg'}, 1349291774: {'path': 'temp/1743513057_1234746_1349291774_c8562ebbb806cd17971f57425bef229f.jpg', 'extension': 'jpg'}, 1349291778: {'path': 'temp/1743513057_1234746_1349291778_49c2fcd04a9c60ac9e1209588474c63d.jpg', 'extension': 'jpg'}, 1349291806: {'path': 'temp/1743513057_1234746_1349291806_eb4fe26214e6d873696d45ff0546e648.jpg', 'extension': 'jpg'}, 1349291810: {'path': 'temp/1743513057_1234746_1349291810_f5ba8ca4b770c29c7e4b459ed2e790eb.jpg', 'extension': 'jpg'}, 1349291813: {'path': 'temp/1743513057_1234746_1349291813_e496f379a9c491df239afc6143201dc4.jpg', 'extension': 'jpg'}} map_subphoto_mainphoto : {} begin split time score SELECT app_name, token FROM MTRUser.mtr_app_api_token WHERE mtr_user_id=979 AND app_name="token_split_time_score" AND expire_at > NOW() select distinct dp.name from MTRPhoto.dashboard_entry_day ded, MTRPhoto.dashboard_places dp, MTRPhoto.dashboard_results dr where ded.dashboard_place_id = dp.id and ded.last_run_id = dr.dashboard_run_id and dp.id = ded.dashboard_place_id and dr.mtr_portfolio_id = 21946690; (('arc_en_ciel_jrm',),) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 21946690 group by h (('15', 25),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21946690 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 100000 SELECT cps.photo_id, cps.score, h.hashtag, cps.hashtag_id, mpp1.mtr_portfolio_id FROM MTRPhoto.class_photo_score cps, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp1 where mpp1.mtr_photo_id=cps.photo_id AND h.hashtag_id=cps.hashtag_id AND mpp1.hide_status=0 AND mpp1.mtr_portfolio_id in (21946690) AND cps.thcl in (861) order by cps.score desc LIMIT 0, 100000 SELECT cps.photo_id, cps.score, h.hashtag, cps.hashtag_id, mpp1.mtr_portfolio_id FROM MTRPhoto.class_photo_score cps, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp1 where mpp1.mtr_photo_id=cps.photo_id AND h.hashtag_id=cps.hashtag_id AND mpp1.hide_status=0 AND mpp1.mtr_portfolio_id in (21946690) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 01042025 21946690 Nombre de photos uploadées : 25 / 23040 (0%) 01042025 21946690 Nombre de photos taguées (types de déchets): 0 / 25 (0%) 01042025 21946690 Nombre de photos taguées (volume) : 0 / 25 (0%) [{'photo_id': 1349291339, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/5e93f6e0c095be1af66093996e3201c5.jpg', 'username': None, 'uploaded_at': 1743512588, 'text': 'image_01042025_15_02_14_010137m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1349291408, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/d81528148373af5800a78c0a8af13733.jpg', 'username': None, 'uploaded_at': 1743512647, 'text': 'image_01042025_15_02_34_010141m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1349291404, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/ef3c2c1a97b879d1d60b6db19dae2f98.jpg', 'username': None, 'uploaded_at': 1743512647, 'text': 'image_01042025_15_03_04_010154m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1349291400, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/c2c0d6bd1872e026c6a6449e684c4c83.jpg', 'username': None, 'uploaded_at': 1743512647, 'text': 'image_01042025_15_03_14_010137m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.1457672119140625e-06 elapsed_time : order_list_meta_photo_and_scores 6.198883056640625e-06 ????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0013167858123779297 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21946690, '2025-04-01' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1705632,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.023625850677490234 We will return after consolidate but for now we need the day, how to get it, for now depending on the previous heavy steps SELECT dri.dashboard_entry_day, dr.dashboard_run_id, dr.mtr_portfolio_id, dr.id, dr.hashtag, dr.completion_json FROM MTRPhoto.dashboard_results dr, MTRPhoto.dashboard_run_ids dri, MTRPhoto.dashboard_entry_day ded WHERE ded.id= 1705632 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1705632, 'dashboard_run_id': 1715313, 'mtr_portfolio_id': 21945658, 'dashboard_result_id': 9786845, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21945658_01-04-2025_14_33_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21945662, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21945663, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21945664, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21945665, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21945666, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21945667, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21945668, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21945669, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21945670, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21945671, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21945672, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21945673, 'pht': 3726}}"}, {'dashboat_entry_day': 1705632, 'dashboard_run_id': 1715313, 'mtr_portfolio_id': 21945960, 'dashboard_result_id': 9786846, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21945960_01-04-2025_14_49_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21945963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21945964, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21945965, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21945966, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21945967, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21945968, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21945969, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21945970, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21945971, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21945972, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21945973, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21945974, 'pht': 3726}}"}, {'dashboat_entry_day': 1705632, 'dashboard_run_id': 1715313, 'mtr_portfolio_id': 21946263, 'dashboard_result_id': 9786847, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21946263_01-04-2025_15_05_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21946269, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21946270, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21946271, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21946272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21946273, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21946274, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21946275, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21946276, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21946277, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21946278, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21946279, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21946280, 'pht': 3726}}"}, {'dashboat_entry_day': 1705632, 'dashboard_run_id': 1715313, 'mtr_portfolio_id': 21946690, 'dashboard_result_id': 9786848, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21946690_01-04-2025_15_08_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21946710, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21946711, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21946712, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21946713, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21946714, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21946715, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21946716, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21946717, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21946718, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21946719, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21946720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21946721, 'pht': 3726}}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21945658 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2713139, 'mtr_portfolio_id': 21945658, 'created_at': datetime.datetime(2025, 4, 1, 14, 33, 1), 'result': '0.039204723560648885', 'result_long': None, 'result_double': None}] Qualite : 0.039204723560648885 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21945658 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21945658_01-04-2025_14_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21945658 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21945658_01-04-2025_14_33_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21945662, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21945663, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21945664, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21945665, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21945666, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21945667, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21945668, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21945669, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21945670, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21945671, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21945672, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21945673, 'pht': 3726}}" where mtr_portfolio_id = 21945658 and dashboard_run_id = 1715313 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21945658 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9786845, 0.039204723560648885, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21945658_01-04-2025_14_33_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21945662, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21945663, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21945664, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21945665, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21945666, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21945667, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21945668, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21945669, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21945670, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21945671, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21945672, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21945673, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21945960 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2713190, 'mtr_portfolio_id': 21945960, 'created_at': datetime.datetime(2025, 4, 1, 14, 48, 59), 'result': '0.07152602491044605', 'result_long': None, 'result_double': None}] Qualite : 0.07152602491044605 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21945960 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21945960_01-04-2025_14_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21945960 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21945960_01-04-2025_14_49_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21945963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21945964, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21945965, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21945966, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21945967, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21945968, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21945969, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21945970, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21945971, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21945972, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21945973, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21945974, 'pht': 3726}}" where mtr_portfolio_id = 21945960 and dashboard_run_id = 1715313 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21945960 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9786846, 0.07152602491044605, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21945960_01-04-2025_14_49_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21945963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21945964, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21945965, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21945966, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21945967, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21945968, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21945969, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21945970, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21945971, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21945972, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21945973, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21945974, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21946263 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2713229, 'mtr_portfolio_id': 21946263, 'created_at': datetime.datetime(2025, 4, 1, 15, 5), 'result': '0.046229559805410304', 'result_long': None, 'result_double': None}] Qualite : 0.046229559805410304 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21946263 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21946263_01-04-2025_15_05_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21946263 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21946263_01-04-2025_15_05_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21946269, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21946270, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21946271, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21946272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21946273, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21946274, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21946275, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21946276, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21946277, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21946278, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21946279, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21946280, 'pht': 3726}}" where mtr_portfolio_id = 21946263 and dashboard_run_id = 1715313 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21946263 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9786847, 0.046229559805410304, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21946263_01-04-2025_15_05_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21946269, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21946270, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21946271, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21946272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21946273, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21946274, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21946275, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21946276, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21946277, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21946278, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21946279, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21946280, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21946690 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2713283, 'mtr_portfolio_id': 21946690, 'created_at': datetime.datetime(2025, 4, 1, 15, 10, 56), 'result': '0.02416861832101285', 'result_long': None, 'result_double': None}] Qualite : 0.02416861832101285 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21946690 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21946690_01-04-2025_15_10_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21946690 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21946690_01-04-2025_15_10_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21946710, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21946711, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21946712, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21946713, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21946714, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21946715, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21946716, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21946717, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21946718, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21946719, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21946720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21946721, 'pht': 3726}}" where mtr_portfolio_id = 21946690 and dashboard_run_id = 1715313 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21946690 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9786848, 0.02416861832101285, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21946690_01-04-2025_15_10_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21946710, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21946711, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21946712, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21946713, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21946714, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21946715, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21946716, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21946717, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21946718, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21946719, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21946720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21946721, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21945658,21945960,21946263,21946690) result : ((1349285641,), (1349285667,), (1349285688,), (1349285967,), (1349285984,), (1349285995,), (1349286007,), (1349286012,), (1349286072,), (1349286074,), (1349286077,), (1349286081,), (1349286234,), (1349286239,), (1349286244,), (1349286247,), (1349286283,), (1349286291,), (1349286296,), (1349286302,), (1349286306,), (1349286311,), (1349286352,), (1349286355,), (1349286361,), (1349286365,), (1349286371,), (1349286377,), (1349286404,), (1349286407,), (1349286409,), (1349286443,), (1349286449,), (1349286454,), (1349286459,), (1349286498,), (1349286503,), (1349286777,), (1349286781,), (1349286883,), (1349286826,), (1349286877,), (1349286902,), (1349286905,), (1349286909,), (1349286914,), (1349286945,), (1349286949,), (1349286956,), (1349286968,), (1349287004,), (1349287008,), (1349287016,), (1349287023,), (1349288220,), (1349288224,), (1349288913,), (1349288896,), (1349288901,), (1349288905,), (1349288910,), (1349288931,), (1349288937,), (1349288941,), (1349288945,), (1349288948,), (1349288970,), (1349288974,), (1349288977,), (1349289011,), (1349289015,), (1349289020,), (1349289024,), (1349289115,), (1349289378,), (1349289548,), (1349289552,), (1349289557,), (1349289561,), (1349289564,), (1349289567,), (1349289588,), (1349289592,), (1349289596,), (1349289601,), (1349289606,), (1349289610,), (1349289644,), (1349289661,), (1349289818,), (1349289822,), (1349289827,), (1349289832,), (1349291352,), (1349291339,), (1349291388,), (1349291393,), (1349291397,), (1349291400,), (1349291404,), (1349291408,), (1349291427,), (1349291512,), (1349291515,), (1349291522,), (1349291526,), (1349291576,), (1349291579,), (1349291737,), (1349291745,), (1349291749,), (1349291751,), (1349291771,), (1349291774,), (1349291778,), (1349291806,), (1349291810,), (1349291813,), (1349291816,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'01042025': {'nb_upload': 25, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21946690]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1349291816, 1349291813, 1349291810, 1349291806, 1349291778, 1349291774, 1349291771, 1349291751, 1349291749, 1349291745] map_info['map_portfolio_photo'] : {21946690: [1349291816, 1349291813, 1349291810, 1349291806, 1349291778, 1349291774, 1349291771, 1349291751, 1349291749, 1349291745, 1349291737, 1349291579, 1349291576, 1349291526, 1349291522, 1349291515, 1349291512, 1349291427, 1349291408, 1349291404, 1349291400, 1349291397, 1349291393, 1349291388, 1349291339]} final : True mtd_id 4302 list_pids : [1349291816, 1349291813, 1349291810, 1349291806, 1349291778, 1349291774, 1349291771, 1349291751, 1349291749, 1349291745] Looping around the photos to save general results len do output : 1 /21946690Didn't retrieve data . before output type Here is an output not treated by saveGeneral : Managing all output in save final without adding information in the mtr_datou_result ('4302', None, None, None, None, None, None, None, '2713283') ('4302', '21946690', '1349291816', None, None, None, None, None, '2713283') ('4302', None, None, None, None, None, None, None, '2713283') ('4302', '21946690', '1349291813', None, None, None, None, None, '2713283') ('4302', None, None, None, None, None, None, None, '2713283') ('4302', '21946690', '1349291810', None, None, None, None, None, '2713283') ('4302', None, None, None, None, None, None, None, '2713283') ('4302', '21946690', '1349291806', None, None, None, None, None, '2713283') ('4302', None, None, None, None, None, None, None, '2713283') ('4302', '21946690', '1349291778', None, None, None, None, None, '2713283') ('4302', None, None, None, None, None, None, None, '2713283') ('4302', '21946690', '1349291774', None, None, None, None, None, '2713283') ('4302', None, None, None, None, None, None, None, '2713283') ('4302', '21946690', '1349291771', None, None, None, None, None, '2713283') ('4302', None, None, None, None, None, None, None, '2713283') ('4302', '21946690', '1349291751', None, None, None, None, None, '2713283') ('4302', None, None, None, None, None, None, None, '2713283') ('4302', '21946690', '1349291749', None, None, None, None, None, '2713283') ('4302', None, None, None, None, None, None, None, '2713283') ('4302', '21946690', '1349291745', None, None, None, None, None, '2713283') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21946690', 'None', None, None, None, None, '2713283'), ('4302', '21946690', '1349291816', None, None, None, None, None, '2713283'), ('4302', '21946690', '1349291813', None, None, None, None, None, '2713283'), ('4302', '21946690', '1349291810', None, None, None, None, None, '2713283'), ('4302', '21946690', '1349291806', None, None, None, None, None, '2713283'), ('4302', '21946690', '1349291778', None, None, None, None, None, '2713283'), ('4302', '21946690', '1349291774', None, None, None, None, None, '2713283'), ('4302', '21946690', '1349291771', None, None, None, None, None, '2713283'), ('4302', '21946690', '1349291751', None, None, None, None, None, '2713283'), ('4302', '21946690', '1349291749', None, None, None, None, None, '2713283'), ('4302', '21946690', '1349291745', None, None, None, None, None, '2713283')] time used for this insertion : 0.015010595321655273 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3478424549102783 time spend to save output : 0.01531076431274414 total time spend for step 5 : 0.36315321922302246 caffe_path_current : About to save ! 2 After save, about to update current ! ret : 2 len(input) + len(total_photo_id_missing) : 1 set_done_treatment DELETE from MTRPhoto.mtr_datou_current where id in (2713283) 2.51user 2.69system 0:05.96elapsed 87%CPU (0avgtext+0avgdata 158744maxresident)k 33392inputs+6448outputs (154major+74556minor)pagefaults 0swaps