insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21747222,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21747210 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21747223,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21747211 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21747224,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21747212 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21747225,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21747213 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21747226,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21747214 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21747227,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21747215 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21747228,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21747216 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21747229,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21747217 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21747230,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21747218 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21747231,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21747219 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21747232,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21747220 lien utilise dans velours : https://www.fotonower.com/velours/21747221,21747222,21747223,21747224,21747225,21747226,21747227,21747228,21747229,21747230,21747231,21747232?tags=environnement,flou,papier,Teint_Dans_La_Masse,cartonnette,Carton_gris,plastique,kraft,mal_croppe,Carton_brun,metal,autre_refus After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21747195]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1347605836] map_info['map_portfolio_photo'] : {21747195: [1347605836, 1347605498, 1347605472, 1347605446, 1347605415, 1347605393, 1347605383, 1347605363, 1347605351, 1347605349, 1347605343, 1347605115, 1347605079, 1347605000, 1347604621, 1347604593, 1347604591, 1347604426, 1347604413, 1347604393, 1347604377, 1347604071, 1347604044, 1347604040, 1347604029, 1347604010, 1347603990, 1347603843, 1347603807, 1347603748]} final : False mtd_id 4302 list_pids : [1347605836] Looping around the photos to save general results len do output : 1 /21747195. 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, '2694196') ('4302', '21747195', '1347605836', None, None, None, None, None, '2694196') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 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, '21747195', "{'environnement': 21747209, 'flou': 21747210, 'papier': 21747211, 'Teint_Dans_La_Masse': 21747212, 'cartonnette': 21747213, 'Carton_gris': 21747214, 'plastique': 21747215, 'kraft': 21747216, 'mal_croppe': 21747217, 'Carton_brun': 21747218, 'metal': 21747219, 'autre_refus': 21747220}", None, None, None, None, '2694196'), ('4302', '21747195', '1347605836', None, None, None, None, None, '2694196')] time used for this insertion : 0.013776063919067383 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5383214950561523 time spend to save output : 0.014026403427124023 total time spend for step 1 : 1.5523478984832764 step2:final Wed Mar 26 20:43: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 ! 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 :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21747195) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} Beginning of datou step final ! query to retrieve results for portfolio 21747195 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1347603843,1347603807,1347603748,1347604071,1347604044,1347604040,1347604029,1347604010,1347603990,1347604426,1347604413,1347604393,1347604377,1347604621,1347604593,1347604591,1347605115,1347605079,1347605000,1347605393,1347605383,1347605363,1347605351,1347605349,1347605343,1347605498,1347605472,1347605446,1347605415,1347605836); insert ignore into MTRUser.portfolio_carac_ratio (portfolio_id, hashtag_type, hashtag_id, value) values (%s,%s,%s,%s) on DUPLICATE KEY UPDATE value=VALUES(value) After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21747195]) Inside saveOutput : final : False verbose : True original output for save of step final : {1347605836: ('0.03878565029007631',)} new output for save of step final : {1347605836: ('0.03878565029007631',)} [1347605836] map_info['map_portfolio_photo'] : {21747195: [1347605836, 1347605498, 1347605472, 1347605446, 1347605415, 1347605393, 1347605383, 1347605363, 1347605351, 1347605349, 1347605343, 1347605115, 1347605079, 1347605000, 1347604621, 1347604593, 1347604591, 1347604426, 1347604413, 1347604393, 1347604377, 1347604071, 1347604044, 1347604040, 1347604029, 1347604010, 1347603990, 1347603843, 1347603807, 1347603748]} final : False mtd_id 4302 list_pids : [1347605836] Looping around the photos to save general results len do output : 1 /1347605836.Didn't retrieve data . before output type Used above Used above Managing all output in save final without adding information in the mtr_datou_result ('4302', None, None, None, None, None, None, None, '2694196') ('4302', '21747195', '1347605836', None, None, None, None, None, '2694196') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 3 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', '21747195', '1347605836', '0.03878565029007631', None, None, None, None, '2694196')] time used for this insertion : 0.015973329544067383 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07094478607177734 time spend to save output : 0.016150474548339844 total time spend for step 2 : 0.08709526062011719 step3:velours_tree Wed Mar 26 20:43: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 complete output_args for input 0 : {21747195: [{'environnement': 21747209, 'flou': 21747210, 'papier': 21747211, 'Teint_Dans_La_Masse': 21747212, 'cartonnette': 21747213, 'Carton_gris': 21747214, 'plastique': 21747215, 'kraft': 21747216, 'mal_croppe': 21747217, 'Carton_brun': 21747218, 'metal': 21747219, 'autre_refus': 21747220}]} input_args_next_step : {21747195: ()} output_args : {21747195: [{'environnement': 21747209, 'flou': 21747210, 'papier': 21747211, 'Teint_Dans_La_Masse': 21747212, 'cartonnette': 21747213, 'Carton_gris': 21747214, 'plastique': 21747215, 'kraft': 21747216, 'mal_croppe': 21747217, 'Carton_brun': 21747218, 'metal': 21747219, 'autre_refus': 21747220}]} args : 21747195 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 : ({'environnement': 21747209, 'flou': 21747210, 'papier': 21747211, 'Teint_Dans_La_Masse': 21747212, 'cartonnette': 21747213, 'Carton_gris': 21747214, 'plastique': 21747215, 'kraft': 21747216, 'mal_croppe': 21747217, 'Carton_brun': 21747218, 'metal': 21747219, 'autre_refus': 21747220},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21747195) 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([21747195]) 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.3835022449493408 time spend to save output : 4.267692565917969e-05 total time spend for step 3 : 0.383544921875 step4:send_mail_cod Wed Mar 26 20:43:58 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 : {1347605836: ('0.03878565029007631',)} input_args_next_step : {1347605836: ()} output_args : {1347605836: ('0.03878565029007631',)} args : 1347605836 depend.output_id : 0 complete output_args for input 3 : {21747195: [{'environnement': 21747209, 'flou': 21747210, 'papier': 21747211, 'Teint_Dans_La_Masse': 21747212, 'cartonnette': 21747213, 'Carton_gris': 21747214, 'plastique': 21747215, 'kraft': 21747216, 'mal_croppe': 21747217, 'Carton_brun': 21747218, 'metal': 21747219, 'autre_refus': 21747220}]} input_args_next_step : {1347605836: ('0.03878565029007631',), 21747195: ()} output_args : {21747195: [{'environnement': 21747209, 'flou': 21747210, 'papier': 21747211, 'Teint_Dans_La_Masse': 21747212, 'cartonnette': 21747213, 'Carton_gris': 21747214, 'plastique': 21747215, 'kraft': 21747216, 'mal_croppe': 21747217, 'Carton_brun': 21747218, 'metal': 21747219, 'autre_refus': 21747220}]} args : 21747195 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 :2, first value : ('0.03878565029007631',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21747195) 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 (1347605836) Found this number of photos: 1 ##### Call download_photos : nb_thread : 5 begin to download photo : 1347605836 download finish for photo 1347605836 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette217472101743018238/ length of list_filenames : 1 ; length of list_pids : 1 ; length of list_args : 1 results_Auto_P21747195_26-03-2025_20_43_58.pdf 21747210 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=21747210 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217472101743018238 21747213 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=21747213 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347604635: '1743017689_2226073_1347604040_46ae578da2acec7408778921445bba4a_rle_crop_3731822703_0.png', 1347604636: '1743017689_2226073_1347604029_650184015eaa4eae9fd5de337119a9be_rle_crop_3731822718_0.png', 1347604654: '1743017712_2226293_1347604071_ae21e84d55ed4a61fa970485070590aa_rle_crop_3731822886_0.png', 1347604709: '1743017772_2227165_1347604413_5377253ea7d12b0339c3be313e90567d_rle_crop_3731825480_0.png', 1347605066: '1743017932_2228843_1347604593_ab9f2111294ed51c34f93c1a138e31c0_rle_crop_3731829681_0.png', 1347605816: '1743018133_2230903_1347605363_f07f2b28a1dc53b7b2cce3f649e766c6_rle_crop_3731833449_0.png', 1347605817: '1743018133_2230903_1347605349_456ef1229c763f999b7b17893e4d7a15_rle_crop_3731833472_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/86913c15ca96ad4cbc4ebf77f5984e34_59320038.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/1b511bcb59296a28239ba4c0a19a50fb_11451913.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/f963861b27ce4ec4b24a612800f6e619_92015348.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/298c771ab10bb8e674325a385155da65_21578413.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/3afae52b1e07c4f257cacc0d1e43f43d_82140.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/ed1e26ae3ed4f9c473cb2c89f1173345_76399607.png change filename to text .imagette217472131743018238/ imagette217472131743018238/1743018133_2230903_1347605349_456ef1229c763f999b7b17893e4d7a15_rle_crop_3731833472_0.png.png imagette217472131743018238/1743017712_2226293_1347604071_ae21e84d55ed4a61fa970485070590aa_rle_crop_3731822886_0.png.png imagette217472131743018238/1743018133_2230903_1347605363_f07f2b28a1dc53b7b2cce3f649e766c6_rle_crop_3731833449_0.png.png imagette217472131743018238/1743017772_2227165_1347604413_5377253ea7d12b0339c3be313e90567d_rle_crop_3731825480_0.png.png imagette217472131743018238/1743017932_2228843_1347604593_ab9f2111294ed51c34f93c1a138e31c0_rle_crop_3731829681_0.png.png imagette217472131743018238/1743017689_2226073_1347604040_46ae578da2acec7408778921445bba4a_rle_crop_3731822703_0.png.png imagette217472131743018238/1743017689_2226073_1347604029_650184015eaa4eae9fd5de337119a9be_rle_crop_3731822718_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/7c9d5c39c5b87f5db4ccbbbee152b264_71118229.png imagette217472131743018238 21747215 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=21747215 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347604637: '1743017689_2226073_1347604044_4263e8422df7481b7eb7814df9b5c8b9_rle_crop_3731822696_0.png', 1347605835: '1743018133_2230903_1347605351_db9132b34197849697867ee8d352e17d_rle_crop_3731833469_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/e35eb6c3a61dd3d2663db0261edce750_40380241.png change filename to text .imagette217472151743018238/ imagette217472151743018238/1743017689_2226073_1347604044_4263e8422df7481b7eb7814df9b5c8b9_rle_crop_3731822696_0.png.png imagette217472151743018238/1743018133_2230903_1347605351_db9132b34197849697867ee8d352e17d_rle_crop_3731833469_0.png.png imagette217472161743018238/ imagette217472171743018238/ imagette217472191743018238/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/e7f923f3aa300243c777fd1d3d45e7ed_33076933.png imagette217472151743018238 21747216 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=21747216 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217472161743018238 21747217 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=21747217 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217472171743018238 21747219 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=21747219 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217472191743018238 21747220 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=21747220 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347604650: '1743017712_2226293_1347603843_98a38a8797f200bb5913687042b2b28c_rle_crop_3731822897_0.png'} change filename to text .imagette217472201743018238/ imagette217472201743018238/1743017712_2226293_1347603843_98a38a8797f200bb5913687042b2b28c_rle_crop_3731822897_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/58b4833094fe3b86b9e89c12302a5520_67124109.png imagette217472201743018238 21747212 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=21747212 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347604619: '1743017689_2226073_1347604029_650184015eaa4eae9fd5de337119a9be_rle_crop_3731822724_0.png', 1347604707: '1743017772_2227165_1347604413_5377253ea7d12b0339c3be313e90567d_rle_crop_3731825488_0.png', 1347604708: '1743017772_2227165_1347604413_5377253ea7d12b0339c3be313e90567d_rle_crop_3731825484_0.png', 1347605488: '1743018051_2230126_1347605079_4236556a970f8ab897ddabfd8e92507e_rle_crop_3731831835_0.png', 1347605814: '1743018133_2230903_1347605383_eb08ee1dc135dd4c03f54c77c8f296dd_rle_crop_3731833380_0.png', 1347605815: '1743018133_2230903_1347605343_f27770235428c59a9899340c1b9fa546_rle_crop_3731833496_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/35576d8e6150f28a3a34db3040a6fb66_23754283.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/950cbb932e04c57c42fc52ebfc732af6_21288766.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/d01046e7ef20052357e853b4da4510be_93188273.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/bb0634bcdf38726d4fc9319e688f7aec_23204447.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/92142fb5b4c743fb5079b887bfd0d159_97105067.png change filename to text .imagette217472121743018238/ imagette217472121743018238/1743018133_2230903_1347605383_eb08ee1dc135dd4c03f54c77c8f296dd_rle_crop_3731833380_0.png.png imagette217472121743018238/1743018133_2230903_1347605343_f27770235428c59a9899340c1b9fa546_rle_crop_3731833496_0.png.png imagette217472121743018238/1743017772_2227165_1347604413_5377253ea7d12b0339c3be313e90567d_rle_crop_3731825484_0.png.png imagette217472121743018238/1743017689_2226073_1347604029_650184015eaa4eae9fd5de337119a9be_rle_crop_3731822724_0.png.png imagette217472121743018238/1743017772_2227165_1347604413_5377253ea7d12b0339c3be313e90567d_rle_crop_3731825488_0.png.png imagette217472121743018238/1743018051_2230126_1347605079_4236556a970f8ab897ddabfd8e92507e_rle_crop_3731831835_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/41d3023f2427a90c33bb4164cbd12c35_23830661.png imagette217472121743018238 21747214 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=21747214 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347604634: '1743017689_2226073_1347604010_8eb0533d5030e01efb6e883069969ba4_rle_crop_3731822732_0.png', 1347604651: '1743017712_2226293_1347603843_98a38a8797f200bb5913687042b2b28c_rle_crop_3731822900_0.png', 1347605495: '1743018051_2230126_1347605079_4236556a970f8ab897ddabfd8e92507e_rle_crop_3731831837_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/c10853893b9e3da9179d059960079ffe_29921185.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/8fa1a03669b34c3a11dca5942c738c49_8359907.png change filename to text .imagette217472141743018239/ imagette217472141743018239/1743018051_2230126_1347605079_4236556a970f8ab897ddabfd8e92507e_rle_crop_3731831837_0.png.png imagette217472141743018239/1743017712_2226293_1347603843_98a38a8797f200bb5913687042b2b28c_rle_crop_3731822900_0.png.png imagette217472141743018239/1743017689_2226073_1347604010_8eb0533d5030e01efb6e883069969ba4_rle_crop_3731822732_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/11829e50970fbc9fd052a24cbde065c9_95568926.png imagette217472141743018239 21747218 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=21747218 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347604710: '1743017772_2227165_1347604413_5377253ea7d12b0339c3be313e90567d_rle_crop_3731825485_0.png', 1347605833: '1743018133_2230903_1347605351_db9132b34197849697867ee8d352e17d_rle_crop_3731833466_0.png', 1347605834: '1743018133_2230903_1347605349_456ef1229c763f999b7b17893e4d7a15_rle_crop_3731833474_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/f02c60af693ecd50839b0fece9d8fe13_44991687.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/6c8283f993f95fd6c917c0b22c4dc7b0_43962649.png change filename to text .imagette217472181743018239/ imagette217472181743018239/1743017772_2227165_1347604413_5377253ea7d12b0339c3be313e90567d_rle_crop_3731825485_0.png.png imagette217472181743018239/1743018133_2230903_1347605351_db9132b34197849697867ee8d352e17d_rle_crop_3731833466_0.png.png imagette217472181743018239/1743018133_2230903_1347605349_456ef1229c763f999b7b17893e4d7a15_rle_crop_3731833474_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/cb148aaf1bc1d6abd585c052b50b7cf5_85499439.png imagette217472181743018239 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21747195 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21747221,21747222,21747223,21747224,21747225,21747226,21747227,21747228,21747229,21747230,21747231,21747232?tags=environnement,flou,papier,Teint_Dans_La_Masse,cartonnette,Carton_gris,plastique,kraft,mal_croppe,Carton_brun,metal,autre_refus your option no_mail is active, we will not send the real mail to your client args[1347605836] : ('0.03878565029007631',) no score found for photo 1347605836 We are sending mail with results at report@fotonower.com refus_total : 0.03878565029007631 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=21747195 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_P21747195_26-03-2025_20_43_58.pdf results_Auto_P21747195_26-03-2025_20_43_58.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21747195_26-03-2025_20_43_58.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','21747195','results_Auto_P21747195_26-03-2025_20_43_58.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21747195_26-03-2025_20_43_58.pdf','pdf','','0.09','0.03878565029007631') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21747195]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1347605836] map_info['map_portfolio_photo'] : {21747195: [1347605836, 1347605498, 1347605472, 1347605446, 1347605415, 1347605393, 1347605383, 1347605363, 1347605351, 1347605349, 1347605343, 1347605115, 1347605079, 1347605000, 1347604621, 1347604593, 1347604591, 1347604426, 1347604413, 1347604393, 1347604377, 1347604071, 1347604044, 1347604040, 1347604029, 1347604010, 1347603990, 1347603843, 1347603807, 1347603748]} final : False mtd_id 4302 list_pids : [1347605836] 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, '2694196') ('4302', '21747195', '1347605836', None, None, None, None, None, '2694196') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 1 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', '21747195', '1347605836', None, None, None, None, None, '2694196')] time used for this insertion : 0.013130426406860352 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.197157859802246 time spend to save output : 0.013417720794677734 total time spend for step 4 : 2.210575580596924 step5:split_time_score Wed Mar 26 20:44:00 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 : ['21747195'] 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 : [('21747195',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21747195) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1347605836: {'path': 'temp/1743018238_379760_1347605836_d2cd7caca818d92c7bac6959d518d2d2.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 = 21747195; (('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 = 21747195 group by h (('20', 30),) 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=21747195 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 (21747195) 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 (21747195) 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 21747195 Nombre de photos uploadées : 30 / 23040 (0%) 26032025 21747195 Nombre de photos taguées (types de déchets): 0 / 30 (0%) 26032025 21747195 Nombre de photos taguées (volume) : 0 / 30 (0%) [{'photo_id': 1347603843, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/98a38a8797f200bb5913687042b2b28c.jpg', 'username': None, 'uploaded_at': 1743017535, 'text': 'image_26032025_20_30_05_010153m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1347603807, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/8c9db42f7ad24fe793e835d7e4686280.jpg', 'username': None, 'uploaded_at': 1743017535, 'text': 'image_26032025_20_30_14_009125m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1347603748, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/019e19137a196b2bcf253a56c8719e72.jpg', 'username': None, 'uploaded_at': 1743017535, 'text': 'image_26032025_20_30_45_010133m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1347604071, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/ae21e84d55ed4a61fa970485070590aa.jpg', 'username': None, 'uploaded_at': 1743017595, 'text': 'image_26032025_20_30_55_010137m0.jpg 4e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 3.5762786865234375e-06 elapsed_time : order_list_meta_photo_and_scores 1.1682510375976562e-05 ?????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0019123554229736328 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21747195, '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.026926517486572266 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': 1698926, 'mtr_portfolio_id': 21744306, 'dashboard_result_id': 9647995, '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_P21744306_26-03-2025_20_05_07.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21744311, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21744312, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21744313, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21744314, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21744315, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21744316, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21744317, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21744318, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21744319, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21744320, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21744321, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21744322, 'pht': 3726}}"}, {'dashboat_entry_day': 1689284, 'dashboard_run_id': 1698926, 'mtr_portfolio_id': 21745274, 'dashboard_result_id': 9647996, '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_P21745274_26-03-2025_20_17_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21745338, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21745339, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21745340, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21745341, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21745342, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21745343, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21745344, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21745345, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21745346, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21745347, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21745348, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21745349, 'pht': 3726}}"}, {'dashboat_entry_day': 1689284, 'dashboard_run_id': 1698926, 'mtr_portfolio_id': 21746490, 'dashboard_result_id': 9647997, '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_P21746490_26-03-2025_20_35_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21746493, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21746494, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21746495, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21746496, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21746497, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21746498, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21746499, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21746500, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21746501, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21746502, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21746503, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21746504, 'pht': 3726}}"}, {'dashboat_entry_day': 1689284, 'dashboard_run_id': 1698926, 'mtr_portfolio_id': 21747195, 'dashboard_result_id': 9647998, '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_P21747195_26-03-2025_20_42_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21747209, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21747210, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21747211, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21747212, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21747213, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21747214, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21747215, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21747216, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21747217, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21747218, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21747219, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21747220, '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 = 21744306 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': 2694004, 'mtr_portfolio_id': 21744306, 'created_at': datetime.datetime(2025, 3, 26, 20, 5, 7), 'result': '0.03898608054257095', 'result_long': None, 'result_double': None}] Qualite : 0.03898608054257095 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21744306 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21744306_26-03-2025_20_05_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21744306 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_P21744306_26-03-2025_20_05_07.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21744311, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21744312, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21744313, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21744314, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21744315, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21744316, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21744317, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21744318, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21744319, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21744320, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21744321, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21744322, 'pht': 3726}}" where mtr_portfolio_id = 21744306 and dashboard_run_id = 1698926 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`=21744306 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9647995, 0.03898608054257095, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21744306_26-03-2025_20_05_07.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21744311, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21744312, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21744313, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21744314, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21744315, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21744316, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21744317, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21744318, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21744319, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21744320, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21744321, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21744322, '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 = 21745274 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': 2694088, 'mtr_portfolio_id': 21745274, 'created_at': datetime.datetime(2025, 3, 26, 20, 17, 58), 'result': '0.03231956823172853', 'result_long': None, 'result_double': None}] Qualite : 0.03231956823172853 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21745274 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21745274_26-03-2025_20_17_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21745274 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_P21745274_26-03-2025_20_17_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21745338, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21745339, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21745340, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21745341, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21745342, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21745343, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21745344, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21745345, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21745346, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21745347, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21745348, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21745349, 'pht': 3726}}" where mtr_portfolio_id = 21745274 and dashboard_run_id = 1698926 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`=21745274 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9647996, 0.03231956823172853, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21745274_26-03-2025_20_17_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21745338, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21745339, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21745340, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21745341, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21745342, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21745343, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21745344, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21745345, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21745346, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21745347, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21745348, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21745349, '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 = 21746490 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': 2694152, 'mtr_portfolio_id': 21746490, 'created_at': datetime.datetime(2025, 3, 26, 20, 35, 30), 'result': '0.04643630610602775', 'result_long': None, 'result_double': None}] Qualite : 0.04643630610602775 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21746490 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21746490_26-03-2025_20_35_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21746490 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_P21746490_26-03-2025_20_35_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21746493, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21746494, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21746495, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21746496, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21746497, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21746498, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21746499, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21746500, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21746501, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21746502, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21746503, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21746504, 'pht': 3726}}" where mtr_portfolio_id = 21746490 and dashboard_run_id = 1698926 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`=21746490 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9647997, 0.04643630610602775, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21746490_26-03-2025_20_35_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21746493, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21746494, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21746495, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21746496, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21746497, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21746498, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21746499, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21746500, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21746501, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21746502, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21746503, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21746504, '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 = 21747195 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': 2694196, 'mtr_portfolio_id': 21747195, 'created_at': datetime.datetime(2025, 3, 26, 20, 43, 57), 'result': '0.03878565029007631', 'result_long': None, 'result_double': None}] Qualite : 0.03878565029007631 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21747195 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21747195_26-03-2025_20_43_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21747195 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_P21747195_26-03-2025_20_43_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21747209, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21747210, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21747211, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21747212, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21747213, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21747214, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21747215, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21747216, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21747217, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21747218, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21747219, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21747220, 'pht': 3726}}" where mtr_portfolio_id = 21747195 and dashboard_run_id = 1698926 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`=21747195 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9647998, 0.03878565029007631, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21747195_26-03-2025_20_43_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21747209, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21747210, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21747211, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21747212, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21747213, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21747214, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21747215, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21747216, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21747217, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21747218, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21747219, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21747220, '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 (21744306,21745274,21746490,21747195) result : ((1347586926,), (1347586932,), (1347586935,), (1347586938,), (1347586941,), (1347587195,), (1347587345,), (1347587437,), (1347587474,), (1347587597,), (1347588003,), (1347588026,), (1347588034,), (1347588046,), (1347588064,), (1347588313,), (1347588349,), (1347588385,), (1347588431,), (1347588459,), (1347588505,), (1347588861,), (1347588910,), (1347588945,), (1347588961,), (1347588990,), (1347589295,), (1347589324,), (1347589397,), (1347589452,), (1347589797,), (1347589836,), (1347589866,), (1347589891,), (1347589933,), (1347589957,), (1347590407,), (1347590469,), (1347590524,), (1347590556,), (1347590899,), (1347590944,), (1347591006,), (1347591050,), (1347591077,), (1347591114,), (1347591246,), (1347591250,), (1347591258,), (1347591613,), (1347591751,), (1347591803,), (1347591848,), (1347591877,), (1347591898,), (1347592029,), (1347592065,), (1347592111,), (1347592125,), (1347592148,), (1347592747,), (1347592791,), (1347592849,), (1347592886,), (1347594016,), (1347594060,), (1347594086,), (1347594095,), (1347594100,), (1347594136,), (1347594749,), (1347594572,), (1347594618,), (1347594655,), (1347595286,), (1347595311,), (1347595342,), (1347595358,), (1347595380,), (1347595661,), (1347595690,), (1347595715,), (1347595732,), (1347595779,), (1347595949,), (1347595955,), (1347595966,), (1347595987,), (1347596000,), (1347596013,), (1347596139,), (1347596167,), (1347596199,), (1347596229,), (1347596527,), (1347596774,), (1347596805,), (1347596828,), (1347596833,), (1347596857,), (1347596994,), (1347597043,), (1347597099,), (1347597127,), (1347597568,), (1347597616,), (1347597638,), (1347597657,), (1347597688,), (1347597710,), (1347597844,), (1347597850,), (1347597853,), (1347597867,), (1347598153,), (1347598177,), (1347598187,), (1347598225,), (1347598251,), (1347598282,), (1347598534,), (1347598578,), (1347598622,), (1347598654,), (1347598953,), (1347598986,), (1347599034,), (1347599077,), (1347599123,), (1347599468,), (1347599494,), (1347599520,), (1347599546,), (1347599597,), (1347599635,), (1347599922,), (1347599969,), (1347600000,), (1347600338,), (1347600359,), (1347600380,), (1347600403,), (1347600431,), (1347600447,), (1347600811,), (1347600722,), (1347600759,), (1347601460,), (1347601471,), (1347601476,), (1347601502,), (1347601531,), (1347601647,), (1347602000,), (1347602003,), (1347602006,), (1347602034,), (1347602184,), (1347602187,), (1347602191,), (1347602198,), (1347602199,), (1347602243,), (1347602478,), (1347602504,), (1347602552,), (1347602561,), (1347602749,), (1347602780,), (1347602796,), (1347602805,), (1347602812,), (1347602833,), (1347602928,), (1347602932,), (1347602935,), (1347603079,), (1347603083,), (1347603089,), (1347603093,), (1347603097,), (1347603102,), (1347603124,), (1347603147,), (1347603158,), (1347603162,), (1347603166,), (1347603193,), (1347603204,), (1347603213,), (1347603218,), (1347603223,), (1347603227,), (1347603254,), (1347603270,), (1347603276,), (1347603280,), (1347603332,), (1347603338,), (1347603344,), (1347603346,), (1347603350,), (1347603491,), (1347603494,), (1347603500,), (1347603506,), (1347603510,), (1347603515,), (1347603547,), (1347603554,), (1347603563,), (1347603569,), (1347603632,), (1347603642,), (1347603647,), (1347603652,), (1347603658,), (1347603664,), (1347603856,), (1347603748,), (1347603807,), (1347603843,), (1347603990,), (1347604010,), (1347604029,), (1347604040,), (1347604044,), (1347604071,), (1347604377,), (1347604393,), (1347604413,), (1347604426,), (1347604591,), (1347604593,), (1347604621,), (1347605000,), (1347605079,), (1347605115,), (1347605343,), (1347605349,), (1347605351,), (1347605363,), (1347605383,), (1347605393,), (1347605415,), (1347605446,), (1347605472,), (1347605498,), (1347605836,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'26032025': {'nb_upload': 30, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21747195]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1347605836] map_info['map_portfolio_photo'] : {21747195: [1347605836, 1347605498, 1347605472, 1347605446, 1347605415, 1347605393, 1347605383, 1347605363, 1347605351, 1347605349, 1347605343, 1347605115, 1347605079, 1347605000, 1347604621, 1347604593, 1347604591, 1347604426, 1347604413, 1347604393, 1347604377, 1347604071, 1347604044, 1347604040, 1347604029, 1347604010, 1347603990, 1347603843, 1347603807, 1347603748]} final : True mtd_id 4302 list_pids : [1347605836] Looping around the photos to save general results len do output : 1 /21747195Didn'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, '2694196') ('4302', '21747195', '1347605836', None, None, None, None, None, '2694196') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 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, '21747195', 'None', None, None, None, None, '2694196'), ('4302', '21747195', '1347605836', None, None, None, None, None, '2694196')] time used for this insertion : 0.015188455581665039 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4532756805419922 time spend to save output : 0.015386581420898438 total time spend for step 5 : 1.4686622619628906 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 (2694196) 1.94user 2.21system 0:07.21elapsed 57%CPU (0avgtext+0avgdata 155364maxresident)k 1960inputs+3920outputs (25major+62825minor)pagefaults 0swaps