save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06747984886169434 time spend to save output : 0.012342214584350586 total time spend for step 2 : 0.07982206344604492 step3:velours_tree Wed Mar 26 18:37:28 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 : {21739892: [{'metal': 21739958, 'autre_refus': 21739959, 'environnement': 21739960, 'plastique': 21739961, 'Carton_gris': 21739962, 'flou': 21739963, 'Carton_brun': 21739964, 'cartonnette': 21739965, 'kraft': 21739966, 'mal_croppe': 21739967, 'Teint_Dans_La_Masse': 21739968, 'papier': 21739969}]} input_args_next_step : {21739892: ()} output_args : {21739892: [{'metal': 21739958, 'autre_refus': 21739959, 'environnement': 21739960, 'plastique': 21739961, 'Carton_gris': 21739962, 'flou': 21739963, 'Carton_brun': 21739964, 'cartonnette': 21739965, 'kraft': 21739966, 'mal_croppe': 21739967, 'Teint_Dans_La_Masse': 21739968, 'papier': 21739969}]} args : 21739892 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 : ({'metal': 21739958, 'autre_refus': 21739959, 'environnement': 21739960, 'plastique': 21739961, 'Carton_gris': 21739962, 'flou': 21739963, 'Carton_brun': 21739964, 'cartonnette': 21739965, 'kraft': 21739966, 'mal_croppe': 21739967, 'Teint_Dans_La_Masse': 21739968, 'papier': 21739969},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21739892) 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([21739892]) 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.4890427589416504 time spend to save output : 9.369850158691406e-05 total time spend for step 3 : 0.4891364574432373 step4:send_mail_cod Wed Mar 26 18:37:29 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 : {1347561695: ('0.039946573309391185',), 1347561690: ('0.039946573309391185',), 1347561686: ('0.039946573309391185',), 1347561682: ('0.039946573309391185',)} input_args_next_step : {1347561695: ()} output_args : {1347561695: ('0.039946573309391185',), 1347561690: ('0.039946573309391185',), 1347561686: ('0.039946573309391185',), 1347561682: ('0.039946573309391185',)} args : 1347561695 depend.output_id : 0 input_args_next_step : {1347561695: ('0.039946573309391185',), 1347561690: ()} output_args : {1347561695: ('0.039946573309391185',), 1347561690: ('0.039946573309391185',), 1347561686: ('0.039946573309391185',), 1347561682: ('0.039946573309391185',)} args : 1347561690 depend.output_id : 0 input_args_next_step : {1347561695: ('0.039946573309391185',), 1347561690: ('0.039946573309391185',), 1347561686: ()} output_args : {1347561695: ('0.039946573309391185',), 1347561690: ('0.039946573309391185',), 1347561686: ('0.039946573309391185',), 1347561682: ('0.039946573309391185',)} args : 1347561686 depend.output_id : 0 input_args_next_step : {1347561695: ('0.039946573309391185',), 1347561690: ('0.039946573309391185',), 1347561686: ('0.039946573309391185',), 1347561682: ()} output_args : {1347561695: ('0.039946573309391185',), 1347561690: ('0.039946573309391185',), 1347561686: ('0.039946573309391185',), 1347561682: ('0.039946573309391185',)} args : 1347561682 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 : {21739892: [{'metal': 21739958, 'autre_refus': 21739959, 'environnement': 21739960, 'plastique': 21739961, 'Carton_gris': 21739962, 'flou': 21739963, 'Carton_brun': 21739964, 'cartonnette': 21739965, 'kraft': 21739966, 'mal_croppe': 21739967, 'Teint_Dans_La_Masse': 21739968, 'papier': 21739969}]} input_args_next_step : {1347561695: ('0.039946573309391185',), 1347561690: ('0.039946573309391185',), 1347561686: ('0.039946573309391185',), 1347561682: ('0.039946573309391185',), 21739892: ()} output_args : {21739892: [{'metal': 21739958, 'autre_refus': 21739959, 'environnement': 21739960, 'plastique': 21739961, 'Carton_gris': 21739962, 'flou': 21739963, 'Carton_brun': 21739964, 'cartonnette': 21739965, 'kraft': 21739966, 'mal_croppe': 21739967, 'Teint_Dans_La_Masse': 21739968, 'papier': 21739969}]} args : 21739892 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 :5, first value : ('0.039946573309391185',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21739892) 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 (1347561695,1347561690,1347561686,1347561682) Found this number of photos: 4 ##### Call download_photos : nb_thread : 5 begin to download photo : 1347561682 begin to download photo : 1347561686 begin to download photo : 1347561690 begin to download photo : 1347561695 download finish for photo 1347561686 download finish for photo 1347561682 download finish for photo 1347561695 download finish for photo 1347561690 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette217399581743010649/ length of list_filenames : 4 ; length of list_pids : 4 ; length of list_args : 4 results_Auto_P21739892_26-03-2025_18_37_29.pdf 21739958 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=21739958 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217399581743010649 21739959 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=21739959 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347561626: '1743010452_2023537_1347561172_917a37e18bcbb3c37daaf1400ff4ce50_rle_crop_3731566498_0.png', 1347561712: '1743010553_2024046_1347561599_00a4e3472601d668043cf0bc2ee79fbe_rle_crop_3731567826_0.png', 1347561713: '1743010553_2024046_1347561595_535260c0a2dd5c588b20da079e486ba6_rle_crop_3731567848_0.png', 1347561714: '1743010553_2024046_1347561587_88702f490e64df3bc4b576455f81241f_rle_crop_3731567945_0.png', 1347561734: '1743010575_2024271_1347561605_19f009e14cc1ef172cd7119bab764dd2_rle_crop_3731568183_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/af96b9890267e21cdf8ec0192b1988b4_21185752.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/4f01a0cd02e226e4871e4391bfc78871_73476362.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/f50b2f3820eeaa87aaaceeafd541e00c_81216175.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/c18cd8046e6609af78bf40cb3c0293cc_65348639.png change filename to text .imagette217399591743010649/ imagette217399591743010649/1743010452_2023537_1347561172_917a37e18bcbb3c37daaf1400ff4ce50_rle_crop_3731566498_0.png.png imagette217399591743010649/1743010553_2024046_1347561587_88702f490e64df3bc4b576455f81241f_rle_crop_3731567945_0.png.png imagette217399591743010649/1743010553_2024046_1347561595_535260c0a2dd5c588b20da079e486ba6_rle_crop_3731567848_0.png.png imagette217399591743010649/1743010575_2024271_1347561605_19f009e14cc1ef172cd7119bab764dd2_rle_crop_3731568183_0.png.png imagette217399591743010649/1743010553_2024046_1347561599_00a4e3472601d668043cf0bc2ee79fbe_rle_crop_3731567826_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/811a99f0d986413526fc2d1a27198725_85155058.png imagette217399591743010649 21739961 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=21739961 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347561631: '1743010452_2023537_1347561110_e20650b22e7a8017afa79f904ceda7e2_rle_crop_3731566563_0.png', 1347561632: '1743010452_2023537_1347561110_e20650b22e7a8017afa79f904ceda7e2_rle_crop_3731566567_0.png', 1347561721: '1743010553_2024046_1347561595_535260c0a2dd5c588b20da079e486ba6_rle_crop_3731567843_0.png', 1347561722: '1743010553_2024046_1347561585_06e4a36251b47b8d4cbcebbd6e3fd881_rle_crop_3731567981_0.png', 1347561741: '1743010575_2024271_1347561605_19f009e14cc1ef172cd7119bab764dd2_rle_crop_3731568174_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/74162b2a62ea69d09f9e780b4968ccbf_34619082.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/fe22e576e8a38128bba3f004e89f2f50_8295203.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/f0c7d55ae3e144001b34e035f6e78bbc_13018649.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/3af0a29fc67c9f61f577673619ceb045_85423827.png change filename to text .imagette217399611743010649/ imagette217399611743010649/1743010452_2023537_1347561110_e20650b22e7a8017afa79f904ceda7e2_rle_crop_3731566567_0.png.png imagette217399611743010649/1743010575_2024271_1347561605_19f009e14cc1ef172cd7119bab764dd2_rle_crop_3731568174_0.png.png imagette217399611743010649/1743010553_2024046_1347561585_06e4a36251b47b8d4cbcebbd6e3fd881_rle_crop_3731567981_0.png.png imagette217399611743010649/1743010553_2024046_1347561595_535260c0a2dd5c588b20da079e486ba6_rle_crop_3731567843_0.png.png imagette217399611743010649/1743010452_2023537_1347561110_e20650b22e7a8017afa79f904ceda7e2_rle_crop_3731566563_0.png.png imagette217399631743010650/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/a8bc20f2566fb7404511d3951df25902_76728688.png imagette217399611743010649 21739963 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=21739963 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217399631743010650 21739965 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=21739965 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347561717: '1743010553_2024046_1347561599_00a4e3472601d668043cf0bc2ee79fbe_rle_crop_3731567831_0.png', 1347561737: '1743010575_2024271_1347561445_d9d9a78ac1068f10751ff8a0c5936f53_rle_crop_3731568210_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/884d391c9fc3584e975435f0ffe8817a_54701239.png change filename to text .imagette217399651743010650/ imagette217399651743010650/1743010553_2024046_1347561599_00a4e3472601d668043cf0bc2ee79fbe_rle_crop_3731567831_0.png.png imagette217399651743010650/1743010575_2024271_1347561445_d9d9a78ac1068f10751ff8a0c5936f53_rle_crop_3731568210_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/45ca98ea78994119bee0c4d42eb7a805_8103160.png imagette217399651743010650 21739966 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=21739966 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347561723: '1743010553_2024046_1347561592_569b11ac360af6f123bd0efc5c3f2de9_rle_crop_3731567858_0.png', 1347561724: '1743010553_2024046_1347561587_88702f490e64df3bc4b576455f81241f_rle_crop_3731567944_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/7159416216e1e3c95eec3fdc11f5c7c9_50645746.png change filename to text .imagette217399661743010650/ imagette217399661743010650/1743010553_2024046_1347561587_88702f490e64df3bc4b576455f81241f_rle_crop_3731567944_0.png.png imagette217399661743010650/1743010553_2024046_1347561592_569b11ac360af6f123bd0efc5c3f2de9_rle_crop_3731567858_0.png.png imagette217399671743010650/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/c6cacdf3836c3070b2d51b76ea43a39c_79578546.png imagette217399661743010650 21739967 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=21739967 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217399671743010650 21739962 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=21739962 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347561627: '1743010452_2023537_1347561094_78bca824360a0461dfc5275a39da4fc9_rle_crop_3731566579_0.png', 1347561628: '1743010452_2023537_1347561081_49963956f01b0f25017f77ad42773837_rle_crop_3731566594_0.png', 1347561715: '1743010553_2024046_1347561599_00a4e3472601d668043cf0bc2ee79fbe_rle_crop_3731567833_0.png', 1347561716: '1743010553_2024046_1347561585_06e4a36251b47b8d4cbcebbd6e3fd881_rle_crop_3731567970_0.png', 1347561736: '1743010575_2024271_1347561605_19f009e14cc1ef172cd7119bab764dd2_rle_crop_3731568184_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/cdb1e8d1fb960e2a6e605b69db19fe31_14251741.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/688dec3680da556458bd58937d12f481_42161314.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/4a8e855fa932f57f2a814c463788f075_55817081.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/389374c0fc895fef520849bc302cee44_79141236.png change filename to text .imagette217399621743010650/ imagette217399621743010650/1743010553_2024046_1347561599_00a4e3472601d668043cf0bc2ee79fbe_rle_crop_3731567833_0.png.png imagette217399621743010650/1743010575_2024271_1347561605_19f009e14cc1ef172cd7119bab764dd2_rle_crop_3731568184_0.png.png imagette217399621743010650/1743010553_2024046_1347561585_06e4a36251b47b8d4cbcebbd6e3fd881_rle_crop_3731567970_0.png.png imagette217399621743010650/1743010452_2023537_1347561094_78bca824360a0461dfc5275a39da4fc9_rle_crop_3731566579_0.png.png imagette217399621743010650/1743010452_2023537_1347561081_49963956f01b0f25017f77ad42773837_rle_crop_3731566594_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/0943ec90a3c031844ab1a150cb67bd6d_9719544.png imagette217399621743010650 21739964 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=21739964 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347561630: '1743010452_2023537_1347561190_0bb582831424b14d5eaaefa03a1c5cfe_rle_crop_3731566491_0.png', 1347561718: '1743010553_2024046_1347561587_88702f490e64df3bc4b576455f81241f_rle_crop_3731567951_0.png', 1347561719: '1743010553_2024046_1347561585_06e4a36251b47b8d4cbcebbd6e3fd881_rle_crop_3731567973_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/92260f2e0b0136adeb9ab7e9325dd77b_97620023.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/849d01adeeefe86ddbe10a610d43290a_75958174.png change filename to text .imagette217399641743010650/ imagette217399641743010650/1743010553_2024046_1347561587_88702f490e64df3bc4b576455f81241f_rle_crop_3731567951_0.png.png imagette217399641743010650/1743010452_2023537_1347561190_0bb582831424b14d5eaaefa03a1c5cfe_rle_crop_3731566491_0.png.png imagette217399641743010650/1743010553_2024046_1347561585_06e4a36251b47b8d4cbcebbd6e3fd881_rle_crop_3731567973_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/fa18d157e80e24c6351536de7d406fa6_16964065.png imagette217399641743010650 21739968 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=21739968 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347561623: '1743010452_2023537_1347561172_917a37e18bcbb3c37daaf1400ff4ce50_rle_crop_3731566503_0.png', 1347561709: '1743010553_2024046_1347561595_535260c0a2dd5c588b20da079e486ba6_rle_crop_3731567849_0.png', 1347561731: '1743010575_2024271_1347561445_d9d9a78ac1068f10751ff8a0c5936f53_rle_crop_3731568213_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/c5a4e58331421b0f0bd0f4a7087ba89e_75976272.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/ba57842b2454bdba757652dada30dff5_78872895.png change filename to text .imagette217399681743010650/ imagette217399681743010650/1743010553_2024046_1347561595_535260c0a2dd5c588b20da079e486ba6_rle_crop_3731567849_0.png.png imagette217399681743010650/1743010452_2023537_1347561172_917a37e18bcbb3c37daaf1400ff4ce50_rle_crop_3731566503_0.png.png imagette217399681743010650/1743010575_2024271_1347561445_d9d9a78ac1068f10751ff8a0c5936f53_rle_crop_3731568213_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/6841fed288205d458c1d8b70762dd356_91454379.png imagette217399681743010650 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21739892 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21739970,21739971,21739972,21739973,21739974,21739975,21739976,21739977,21739978,21739979,21739980,21739981?tags=metal,autre_refus,environnement,plastique,Carton_gris,flou,Carton_brun,cartonnette,kraft,mal_croppe,Teint_Dans_La_Masse,papier your option no_mail is active, we will not send the real mail to your client args[1347561695] : ('0.039946573309391185',) no score found for photo 1347561695 We are sending mail with results at report@fotonower.com args[1347561690] : ('0.039946573309391185',) no score found for photo 1347561690 We are sending mail with results at report@fotonower.com args[1347561686] : ('0.039946573309391185',) no score found for photo 1347561686 We are sending mail with results at report@fotonower.com args[1347561682] : ('0.039946573309391185',) no score found for photo 1347561682 We are sending mail with results at report@fotonower.com refus_total : 0.039946573309391185 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=21739892 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_P21739892_26-03-2025_18_37_29.pdf results_Auto_P21739892_26-03-2025_18_37_29.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21739892_26-03-2025_18_37_29.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','21739892','results_Auto_P21739892_26-03-2025_18_37_29.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21739892_26-03-2025_18_37_29.pdf','pdf','','0.12','0.039946573309391185') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21739892]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1347561695, 1347561690, 1347561686, 1347561682] map_info['map_portfolio_photo'] : {21739892: [1347561695, 1347561690, 1347561686, 1347561682, 1347561651, 1347561649, 1347561646, 1347561644, 1347561641, 1347561605, 1347561599, 1347561595, 1347561592, 1347561587, 1347561585, 1347561537, 1347561520, 1347561485, 1347561445, 1347561190, 1347561172, 1347561110, 1347561094, 1347561081]} final : False mtd_id 4302 list_pids : [1347561695, 1347561690, 1347561686, 1347561682] 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, '2693706') ('4302', '21739892', '1347561695', None, None, None, None, None, '2693706') ('4302', None, None, None, None, None, None, None, '2693706') ('4302', '21739892', '1347561690', None, None, None, None, None, '2693706') ('4302', None, None, None, None, None, None, None, '2693706') ('4302', '21739892', '1347561686', None, None, None, None, None, '2693706') ('4302', None, None, None, None, None, None, None, '2693706') ('4302', '21739892', '1347561682', None, None, None, None, None, '2693706') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 4 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', '21739892', '1347561695', None, None, None, None, None, '2693706'), ('4302', '21739892', '1347561690', None, None, None, None, None, '2693706'), ('4302', '21739892', '1347561686', None, None, None, None, None, '2693706'), ('4302', '21739892', '1347561682', None, None, None, None, None, '2693706')] time used for this insertion : 0.014877557754516602 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.723459005355835 time spend to save output : 0.015048503875732422 total time spend for step 4 : 2.7385075092315674 step5:split_time_score Wed Mar 26 18:37:31 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 : ['21739892'] 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 : [('21739892',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21739892) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1347561686: {'path': 'temp/1743010649_4033101_1347561686_598869131bab746e24d76644824a34b1.jpg', 'extension': 'jpg'}, 1347561682: {'path': 'temp/1743010649_4033101_1347561682_f4ea213200cd57a9187e8563e14337f8.jpg', 'extension': 'jpg'}, 1347561695: {'path': 'temp/1743010649_4033101_1347561695_7d435d9470680cbabd93431488067923.jpg', 'extension': 'jpg'}, 1347561690: {'path': 'temp/1743010649_4033101_1347561690_3a328703cedf2af7940baca857f8b352.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 = 21739892; (('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 = 21739892 group by h (('18', 24),) 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=21739892 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 (21739892) 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 (21739892) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 26032025 21739892 Nombre de photos uploadées : 24 / 23040 (0%) 26032025 21739892 Nombre de photos taguées (types de déchets): 0 / 24 (0%) 26032025 21739892 Nombre de photos taguées (volume) : 0 / 24 (0%) [{'photo_id': 1347561190, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/0bb582831424b14d5eaaefa03a1c5cfe.jpg', 'username': None, 'uploaded_at': 1743010335, 'text': 'image_26032025_18_30_04_10140.jpg'}, {'photo_id': 1347561172, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/917a37e18bcbb3c37daaf1400ff4ce50.jpg', 'username': None, 'uploaded_at': 1743010335, 'text': 'image_26032025_18_30_14_9127.jpg'}, {'photo_id': 1347561110, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/e20650b22e7a8017afa79f904ceda7e2.jpg', 'username': None, 'uploaded_at': 1743010335, 'text': 'image_26032025_18_30_24_10134.jpg'}, {'photo_id': 1347561094, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/78bca824360a0461dfc5275a39da4fc9.jpg', 'username': None, 'uploaded_at': 1743010335, 'text': 'image_26032025_18_30_34_10136.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.1920928955078125e-06 elapsed_time : order_list_meta_photo_and_scores 3.5762786865234375e-06 ???????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.001001119613647461 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21739892, '2025-03-26' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1689284,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.025974750518798828 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= 1689284 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1689284, 'dashboard_run_id': 1698550, 'mtr_portfolio_id': 21738482, 'dashboard_result_id': 9642815, '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_P21738482_26-03-2025_18_20_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21738507, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21738508, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21738509, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21738510, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21738511, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21738512, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21738513, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21738514, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21738515, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21738516, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21738517, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21738518, 'pht': 3726}}"}, {'dashboat_entry_day': 1689284, 'dashboard_run_id': 1698550, 'mtr_portfolio_id': 21739307, 'dashboard_result_id': 9642816, '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_P21739307_26-03-2025_18_35_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21739341, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21739342, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21739343, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21739344, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21739345, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21739346, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21739347, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21739348, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21739349, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21739350, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21739351, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21739352, 'pht': 3726}}"}, {'dashboat_entry_day': 1689284, 'dashboard_run_id': 1698550, 'mtr_portfolio_id': 21739892, 'dashboard_result_id': 9642817, '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_P21739892_26-03-2025_18_36_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21739958, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21739959, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21739960, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21739961, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21739962, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21739963, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21739964, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21739965, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21739966, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21739967, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21739968, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21739969, '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 = 21738482 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': 2693629, 'mtr_portfolio_id': 21738482, 'created_at': datetime.datetime(2025, 3, 26, 18, 20), 'result': '0.046361595799186264', 'result_long': None, 'result_double': None}] Qualite : 0.046361595799186264 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21738482 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21738482_26-03-2025_18_20_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21738482 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_P21738482_26-03-2025_18_20_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21738507, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21738508, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21738509, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21738510, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21738511, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21738512, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21738513, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21738514, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21738515, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21738516, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21738517, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21738518, 'pht': 3726}}" where mtr_portfolio_id = 21738482 and dashboard_run_id = 1698550 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`=21738482 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9642815, 0.046361595799186264, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21738482_26-03-2025_18_20_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21738507, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21738508, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21738509, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21738510, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21738511, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21738512, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21738513, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21738514, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21738515, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21738516, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21738517, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21738518, '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 = 21739307 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': 2693665, 'mtr_portfolio_id': 21739307, 'created_at': datetime.datetime(2025, 3, 26, 18, 35), 'result': '0.0362267520998383', 'result_long': None, 'result_double': None}] Qualite : 0.0362267520998383 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21739307 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21739307_26-03-2025_18_35_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21739307 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_P21739307_26-03-2025_18_35_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21739341, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21739342, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21739343, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21739344, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21739345, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21739346, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21739347, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21739348, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21739349, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21739350, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21739351, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21739352, 'pht': 3726}}" where mtr_portfolio_id = 21739307 and dashboard_run_id = 1698550 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`=21739307 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9642816, 0.0362267520998383, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21739307_26-03-2025_18_35_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21739341, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21739342, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21739343, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21739344, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21739345, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21739346, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21739347, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21739348, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21739349, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21739350, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21739351, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21739352, '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 = 21739892 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': 2693706, 'mtr_portfolio_id': 21739892, 'created_at': datetime.datetime(2025, 3, 26, 18, 37, 28), 'result': '0.039946573309391185', 'result_long': None, 'result_double': None}] Qualite : 0.039946573309391185 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21739892 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21739892_26-03-2025_18_37_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21739892 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_P21739892_26-03-2025_18_37_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21739958, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21739959, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21739960, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21739961, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21739962, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21739963, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21739964, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21739965, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21739966, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21739967, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21739968, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21739969, 'pht': 3726}}" where mtr_portfolio_id = 21739892 and dashboard_run_id = 1698550 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`=21739892 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9642817, 0.039946573309391185, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21739892_26-03-2025_18_37_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21739958, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21739959, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21739960, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21739961, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21739962, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21739963, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21739964, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21739965, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21739966, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21739967, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21739968, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21739969, '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 (21738482,21739307,21739892) result : ((1347553533,), (1347553557,), (1347553572,), (1347553911,), (1347553965,), (1347554020,), (1347554912,), (1347554959,), (1347555008,), (1347555057,), (1347555089,), (1347555201,), (1347555688,), (1347555761,), (1347555799,), (1347556156,), (1347556180,), (1347556203,), (1347556241,), (1347556263,), (1347556293,), (1347556524,), (1347556541,), (1347556545,), (1347556554,), (1347556823,), (1347556919,), (1347556939,), (1347556958,), (1347556988,), (1347557043,), (1347557209,), (1347557293,), (1347557324,), (1347557356,), (1347557577,), (1347557580,), (1347557584,), (1347557589,), (1347557617,), (1347557649,), (1347557770,), (1347557798,), (1347557824,), (1347557851,), (1347557866,), (1347558008,), (1347558010,), (1347558014,), (1347558016,), (1347558021,), (1347558107,), (1347558142,), (1347558169,), (1347558204,), (1347558230,), (1347558257,), (1347558555,), (1347558624,), (1347558675,), (1347558717,), (1347559034,), (1347559061,), (1347559089,), (1347559120,), (1347559146,), (1347559170,), (1347559309,), (1347559332,), (1347559340,), (1347559344,), (1347559508,), (1347559454,), (1347559458,), (1347559468,), (1347559497,), (1347559504,), (1347559577,), (1347559601,), (1347559648,), (1347559720,), (1347559916,), (1347559934,), (1347559943,), (1347559957,), (1347559970,), (1347559982,), (1347560201,), (1347560212,), (1347560217,), (1347560223,), (1347560264,), (1347560267,), (1347560272,), (1347560280,), (1347560282,), (1347560311,), (1347560314,), (1347560316,), (1347560321,), (1347560370,), (1347560373,), (1347560376,), (1347560379,), (1347560381,), (1347560420,), (1347560434,), (1347560438,), (1347560442,), (1347560490,), (1347560495,), (1347560498,), (1347560501,), (1347560515,), (1347560518,), (1347560544,), (1347560601,), (1347560607,), (1347560613,), (1347560616,), (1347560652,), (1347560654,), (1347560657,), (1347560660,), (1347560691,), (1347560695,), (1347560697,), (1347560700,), (1347560702,), (1347560706,), (1347560743,), (1347560744,), (1347560745,), (1347560750,), (1347560819,), (1347560821,), (1347560823,), (1347560827,), (1347560830,), (1347560833,), (1347560902,), (1347560920,), (1347560925,), (1347560928,), (1347561211,), (1347561081,), (1347561094,), (1347561110,), (1347561172,), (1347561190,), (1347561445,), (1347561485,), (1347561520,), (1347561537,), (1347561585,), (1347561587,), (1347561592,), (1347561595,), (1347561599,), (1347561605,), (1347561641,), (1347561644,), (1347561646,), (1347561649,), (1347561651,), (1347561682,), (1347561686,), (1347561690,), (1347561695,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'26032025': {'nb_upload': 24, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21739892]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1347561695, 1347561690, 1347561686, 1347561682] map_info['map_portfolio_photo'] : {21739892: [1347561695, 1347561690, 1347561686, 1347561682, 1347561651, 1347561649, 1347561646, 1347561644, 1347561641, 1347561605, 1347561599, 1347561595, 1347561592, 1347561587, 1347561585, 1347561537, 1347561520, 1347561485, 1347561445, 1347561190, 1347561172, 1347561110, 1347561094, 1347561081]} final : True mtd_id 4302 list_pids : [1347561695, 1347561690, 1347561686, 1347561682] Looping around the photos to save general results len do output : 1 /21739892Didn'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, '2693706') ('4302', '21739892', '1347561695', None, None, None, None, None, '2693706') ('4302', None, None, None, None, None, None, None, '2693706') ('4302', '21739892', '1347561690', None, None, None, None, None, '2693706') ('4302', None, None, None, None, None, None, None, '2693706') ('4302', '21739892', '1347561686', None, None, None, None, None, '2693706') ('4302', None, None, None, None, None, None, None, '2693706') ('4302', '21739892', '1347561682', None, None, None, None, None, '2693706') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 5 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, '21739892', 'None', None, None, None, None, '2693706'), ('4302', '21739892', '1347561695', None, None, None, None, None, '2693706'), ('4302', '21739892', '1347561690', None, None, None, None, None, '2693706'), ('4302', '21739892', '1347561686', None, None, None, None, None, '2693706'), ('4302', '21739892', '1347561682', None, None, None, None, None, '2693706')] time used for this insertion : 0.024804353713989258 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3034050464630127 time spend to save output : 0.02506542205810547 total time spend for step 5 : 0.32847046852111816 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 (2693706) 2.03user 2.02system 0:07.19elapsed 56%CPU (0avgtext+0avgdata 157120maxresident)k 44112inputs+5864outputs (171major+63613minor)pagefaults 0swaps