insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23051675,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23051663 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23051676,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23051664 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23051677,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23051665 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23051678,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23051666 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23051679,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23051667 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23051680,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23051668 lien utilise dans velours : https://www.fotonower.com/velours/23051669,23051670,23051671,23051672,23051673,23051674,23051675,23051676,23051677,23051678,23051679,23051680?tags=mal_croppe,flou,Teint_Dans_La_Masse,Carton_brun,metal,autre_refus,papier,environnement,plastique,kraft,cartonnette,Carton_gris After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23051628]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1358858445, 1358858236, 1358858232, 1358858228] map_info['map_portfolio_photo'] : {23051628: [1358858445, 1358858236, 1358858232, 1358858228, 1358857926, 1358857603, 1358857543, 1358857488, 1358857433, 1358857356, 1358856815, 1358856808, 1358856805, 1358856802, 1358856641, 1358856589, 1358856547, 1358856520, 1358856491, 1358856462, 1358855949, 1358855881, 1358855812, 1358855730, 1358855253, 1358855075, 1358854886, 1358854710, 1358854158, 1358854068, 1358853943, 1358853596, 1358853570, 1358853535, 1358853506, 1358853476, 1358853176, 1358853146, 1358853116, 1358853085, 1358853055, 1358852942, 1358852908, 1358852863, 1358852853, 1358852832, 1358852602, 1358852598, 1358852593, 1358852587, 1358852380, 1358852349, 1358852323, 1358852222]} final : False mtd_id 4302 list_pids : [1358858445, 1358858236, 1358858232, 1358858228] Looping around the photos to save general results len do output : 1 /23051628. 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, '2874087') ('4302', '23051628', '1358858445', None, None, None, None, None, '2874087') ('4302', None, None, None, None, None, None, None, '2874087') ('4302', '23051628', '1358858236', None, None, None, None, None, '2874087') ('4302', None, None, None, None, None, None, None, '2874087') ('4302', '23051628', '1358858232', None, None, None, None, None, '2874087') ('4302', None, None, None, None, None, None, None, '2874087') ('4302', '23051628', '1358858228', None, None, None, None, None, '2874087') 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, '23051628', "{'mal_croppe': 23051657, 'flou': 23051658, 'Teint_Dans_La_Masse': 23051659, 'Carton_brun': 23051660, 'metal': 23051661, 'autre_refus': 23051662, 'papier': 23051663, 'environnement': 23051664, 'plastique': 23051665, 'kraft': 23051666, 'cartonnette': 23051667, 'Carton_gris': 23051668}", None, None, None, None, '2874087'), ('4302', '23051628', '1358858445', None, None, None, None, None, '2874087'), ('4302', '23051628', '1358858236', None, None, None, None, None, '2874087'), ('4302', '23051628', '1358858232', None, None, None, None, None, '2874087'), ('4302', '23051628', '1358858228', None, None, None, None, None, '2874087')] time used for this insertion : 0.047300100326538086 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.6617507934570312 time spend to save output : 0.047559499740600586 total time spend for step 1 : 1.7093102931976318 step2:final Fri May 16 08:19: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 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 (23051628) 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 23051628 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1358852380,1358852349,1358852323,1358852222,1358852602,1358852598,1358852593,1358852587,1358852942,1358852908,1358852863,1358852853,1358852832,1358853176,1358853146,1358853116,1358853085,1358853055,1358853596,1358853570,1358853535,1358853506,1358853476,1358854158,1358854068,1358853943,1358855253,1358855075,1358854886,1358854710,1358855949,1358855881,1358855812,1358855730,1358856641,1358856589,1358856547,1358856520,1358856491,1358856462,1358856815,1358856808,1358856805,1358857603,1358856802,1358857543,1358857488,1358857433,1358857356,1358857926,1358858236,1358858232,1358858228,1358858445); 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([23051628]) Inside saveOutput : final : False verbose : True original output for save of step final : {1358858445: ('0.00868857069769462',), 1358858236: ('0.00868857069769462',), 1358858232: ('0.00868857069769462',), 1358858228: ('0.00868857069769462',)} new output for save of step final : {1358858445: ('0.00868857069769462',), 1358858236: ('0.00868857069769462',), 1358858232: ('0.00868857069769462',), 1358858228: ('0.00868857069769462',)} [1358858445, 1358858236, 1358858232, 1358858228] map_info['map_portfolio_photo'] : {23051628: [1358858445, 1358858236, 1358858232, 1358858228, 1358857926, 1358857603, 1358857543, 1358857488, 1358857433, 1358857356, 1358856815, 1358856808, 1358856805, 1358856802, 1358856641, 1358856589, 1358856547, 1358856520, 1358856491, 1358856462, 1358855949, 1358855881, 1358855812, 1358855730, 1358855253, 1358855075, 1358854886, 1358854710, 1358854158, 1358854068, 1358853943, 1358853596, 1358853570, 1358853535, 1358853506, 1358853476, 1358853176, 1358853146, 1358853116, 1358853085, 1358853055, 1358852942, 1358852908, 1358852863, 1358852853, 1358852832, 1358852602, 1358852598, 1358852593, 1358852587, 1358852380, 1358852349, 1358852323, 1358852222]} final : False mtd_id 4302 list_pids : [1358858445, 1358858236, 1358858232, 1358858228] Looping around the photos to save general results len do output : 4 /1358858445.Didn't retrieve data . /1358858236.Didn't retrieve data . /1358858232.Didn't retrieve data . /1358858228.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, '2874087') ('4302', '23051628', '1358858445', None, None, None, None, None, '2874087') ('4302', None, None, None, None, None, None, None, '2874087') ('4302', '23051628', '1358858236', None, None, None, None, None, '2874087') ('4302', None, None, None, None, None, None, None, '2874087') ('4302', '23051628', '1358858232', None, None, None, None, None, '2874087') ('4302', None, None, None, None, None, None, None, '2874087') ('4302', '23051628', '1358858228', None, None, None, None, None, '2874087') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 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', '23051628', '1358858445', '0.00868857069769462', None, None, None, None, '2874087'), ('4302', '23051628', '1358858236', '0.00868857069769462', None, None, None, None, '2874087'), ('4302', '23051628', '1358858232', '0.00868857069769462', None, None, None, None, '2874087'), ('4302', '23051628', '1358858228', '0.00868857069769462', None, None, None, None, '2874087')] time used for this insertion : 0.033263444900512695 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.16508913040161133 time spend to save output : 0.033660888671875 total time spend for step 2 : 0.19875001907348633 step3:velours_tree Fri May 16 08:19: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 : {23051628: [{'mal_croppe': 23051657, 'flou': 23051658, 'Teint_Dans_La_Masse': 23051659, 'Carton_brun': 23051660, 'metal': 23051661, 'autre_refus': 23051662, 'papier': 23051663, 'environnement': 23051664, 'plastique': 23051665, 'kraft': 23051666, 'cartonnette': 23051667, 'Carton_gris': 23051668}]} input_args_next_step : {23051628: ()} output_args : {23051628: [{'mal_croppe': 23051657, 'flou': 23051658, 'Teint_Dans_La_Masse': 23051659, 'Carton_brun': 23051660, 'metal': 23051661, 'autre_refus': 23051662, 'papier': 23051663, 'environnement': 23051664, 'plastique': 23051665, 'kraft': 23051666, 'cartonnette': 23051667, 'Carton_gris': 23051668}]} args : 23051628 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 : ({'mal_croppe': 23051657, 'flou': 23051658, 'Teint_Dans_La_Masse': 23051659, 'Carton_brun': 23051660, 'metal': 23051661, 'autre_refus': 23051662, 'papier': 23051663, 'environnement': 23051664, 'plastique': 23051665, 'kraft': 23051666, 'cartonnette': 23051667, 'Carton_gris': 23051668},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23051628) 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([23051628]) 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.43042635917663574 time spend to save output : 5.7220458984375e-05 total time spend for step 3 : 0.4304835796356201 step4:send_mail_cod Fri May 16 08:19: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 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 : {1358858445: ('0.00868857069769462',), 1358858236: ('0.00868857069769462',), 1358858232: ('0.00868857069769462',), 1358858228: ('0.00868857069769462',)} input_args_next_step : {1358858445: ()} output_args : {1358858445: ('0.00868857069769462',), 1358858236: ('0.00868857069769462',), 1358858232: ('0.00868857069769462',), 1358858228: ('0.00868857069769462',)} args : 1358858445 depend.output_id : 0 input_args_next_step : {1358858445: ('0.00868857069769462',), 1358858236: ()} output_args : {1358858445: ('0.00868857069769462',), 1358858236: ('0.00868857069769462',), 1358858232: ('0.00868857069769462',), 1358858228: ('0.00868857069769462',)} args : 1358858236 depend.output_id : 0 input_args_next_step : {1358858445: ('0.00868857069769462',), 1358858236: ('0.00868857069769462',), 1358858232: ()} output_args : {1358858445: ('0.00868857069769462',), 1358858236: ('0.00868857069769462',), 1358858232: ('0.00868857069769462',), 1358858228: ('0.00868857069769462',)} args : 1358858232 depend.output_id : 0 input_args_next_step : {1358858445: ('0.00868857069769462',), 1358858236: ('0.00868857069769462',), 1358858232: ('0.00868857069769462',), 1358858228: ()} output_args : {1358858445: ('0.00868857069769462',), 1358858236: ('0.00868857069769462',), 1358858232: ('0.00868857069769462',), 1358858228: ('0.00868857069769462',)} args : 1358858228 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 : {23051628: [{'mal_croppe': 23051657, 'flou': 23051658, 'Teint_Dans_La_Masse': 23051659, 'Carton_brun': 23051660, 'metal': 23051661, 'autre_refus': 23051662, 'papier': 23051663, 'environnement': 23051664, 'plastique': 23051665, 'kraft': 23051666, 'cartonnette': 23051667, 'Carton_gris': 23051668}]} input_args_next_step : {1358858445: ('0.00868857069769462',), 1358858236: ('0.00868857069769462',), 1358858232: ('0.00868857069769462',), 1358858228: ('0.00868857069769462',), 23051628: ()} output_args : {23051628: [{'mal_croppe': 23051657, 'flou': 23051658, 'Teint_Dans_La_Masse': 23051659, 'Carton_brun': 23051660, 'metal': 23051661, 'autre_refus': 23051662, 'papier': 23051663, 'environnement': 23051664, 'plastique': 23051665, 'kraft': 23051666, 'cartonnette': 23051667, 'Carton_gris': 23051668}]} args : 23051628 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.00868857069769462',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23051628) 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 (1358858445,1358858236,1358858232,1358858228) Found this number of photos: 4 ##### Call download_photos : nb_thread : 5 begin to download photo : 1358858228 begin to download photo : 1358858232 begin to download photo : 1358858236 begin to download photo : 1358858445 download finish for photo 1358858228 download finish for photo 1358858232 download finish for photo 1358858445 download finish for photo 1358858236 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette230516571747376340/ imagette230516581747376340/ imagette230516611747376340/ imagette230516621747376340/ length of list_filenames : 4 ; length of list_pids : 4 ; length of list_args : 4 results_Auto_P23051628_16-05-2025_08_19_00.pdf 23051657 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=23051657 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette230516571747376340 23051658 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=23051658 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette230516581747376340 23051661 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=23051661 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette230516611747376340 23051662 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=23051662 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette230516621747376340 23051665 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=23051665 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1358858582: '1747376125_210286_1358852853_96b50dbfe6074fe3835d52c59a9d269b_rle_crop_3801133609_0.png'} change filename to text .imagette230516651747376340/ imagette230516651747376340/1747376125_210286_1358852853_96b50dbfe6074fe3835d52c59a9d269b_rle_crop_3801133609_0.png.png imagette230516661747376341/ imagette230516671747376341/ imagette230516591747376341/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/16/56ce9824512eeac2574d28120d011e53_28381474.png imagette230516651747376340 23051666 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=23051666 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette230516661747376341 23051667 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=23051667 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette230516671747376341 23051659 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=23051659 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette230516591747376341 23051660 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=23051660 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1358858575: '1747376125_210286_1358852863_3e0477bbe84db632afc76e090ab27412_rle_crop_3801133371_0.png', 1358858576: '1747376125_210286_1358852863_3e0477bbe84db632afc76e090ab27412_rle_crop_3801133370_0.png', 1358858577: '1747376125_210286_1358852853_96b50dbfe6074fe3835d52c59a9d269b_rle_crop_3801133607_0.png', 1358858578: '1747376125_210286_1358852832_68b1a8e3ff773cb4079781b0141b42f2_rle_crop_3801133628_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/16/4846b7f432b5c9f876072399834bb382_28326669.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/16/33d8f470216afb317c30bff3e0e93be2_76708094.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/16/67a4cb71ebb2ef8cbd940777b8553e26_11494288.png change filename to text .imagette230516601747376341/ imagette230516601747376341/1747376125_210286_1358852832_68b1a8e3ff773cb4079781b0141b42f2_rle_crop_3801133628_0.png.png imagette230516601747376341/1747376125_210286_1358852863_3e0477bbe84db632afc76e090ab27412_rle_crop_3801133370_0.png.png imagette230516601747376341/1747376125_210286_1358852853_96b50dbfe6074fe3835d52c59a9d269b_rle_crop_3801133607_0.png.png imagette230516601747376341/1747376125_210286_1358852863_3e0477bbe84db632afc76e090ab27412_rle_crop_3801133371_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/16/def25db1ab6c75a08d32184b653a74fa_88543240.png imagette230516601747376341 23051668 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=23051668 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1358858574: '1747376125_210286_1358852832_68b1a8e3ff773cb4079781b0141b42f2_rle_crop_3801133619_0.png'} change filename to text .imagette230516681747376341/ imagette230516681747376341/1747376125_210286_1358852832_68b1a8e3ff773cb4079781b0141b42f2_rle_crop_3801133619_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/16/e032c8a5e773d391cb39849f3b6fa101_47318507.png imagette230516681747376341 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=23051628 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/23051669,23051670,23051671,23051672,23051673,23051674,23051675,23051676,23051677,23051678,23051679,23051680?tags=mal_croppe,flou,Teint_Dans_La_Masse,Carton_brun,metal,autre_refus,papier,environnement,plastique,kraft,cartonnette,Carton_gris your option no_mail is active, we will not send the real mail to your client args[1358858445] : ('0.00868857069769462',) no score found for photo 1358858445 We are sending mail with results at report@fotonower.com args[1358858236] : ('0.00868857069769462',) no score found for photo 1358858236 We are sending mail with results at report@fotonower.com args[1358858232] : ('0.00868857069769462',) no score found for photo 1358858232 We are sending mail with results at report@fotonower.com args[1358858228] : ('0.00868857069769462',) no score found for photo 1358858228 We are sending mail with results at report@fotonower.com refus_total : 0.00868857069769462 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=23051628 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_P23051628_16-05-2025_08_19_00.pdf results_Auto_P23051628_16-05-2025_08_19_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23051628_16-05-2025_08_19_00.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','23051628','results_Auto_P23051628_16-05-2025_08_19_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23051628_16-05-2025_08_19_00.pdf','pdf','','0.07','0.00868857069769462') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23051628]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1358858445, 1358858236, 1358858232, 1358858228] map_info['map_portfolio_photo'] : {23051628: [1358858445, 1358858236, 1358858232, 1358858228, 1358857926, 1358857603, 1358857543, 1358857488, 1358857433, 1358857356, 1358856815, 1358856808, 1358856805, 1358856802, 1358856641, 1358856589, 1358856547, 1358856520, 1358856491, 1358856462, 1358855949, 1358855881, 1358855812, 1358855730, 1358855253, 1358855075, 1358854886, 1358854710, 1358854158, 1358854068, 1358853943, 1358853596, 1358853570, 1358853535, 1358853506, 1358853476, 1358853176, 1358853146, 1358853116, 1358853085, 1358853055, 1358852942, 1358852908, 1358852863, 1358852853, 1358852832, 1358852602, 1358852598, 1358852593, 1358852587, 1358852380, 1358852349, 1358852323, 1358852222]} final : False mtd_id 4302 list_pids : [1358858445, 1358858236, 1358858232, 1358858228] 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, '2874087') ('4302', '23051628', '1358858445', None, None, None, None, None, '2874087') ('4302', None, None, None, None, None, None, None, '2874087') ('4302', '23051628', '1358858236', None, None, None, None, None, '2874087') ('4302', None, None, None, None, None, None, None, '2874087') ('4302', '23051628', '1358858232', None, None, None, None, None, '2874087') ('4302', None, None, None, None, None, None, None, '2874087') ('4302', '23051628', '1358858228', None, None, None, None, None, '2874087') 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', '23051628', '1358858445', None, None, None, None, None, '2874087'), ('4302', '23051628', '1358858236', None, None, None, None, None, '2874087'), ('4302', '23051628', '1358858232', None, None, None, None, None, '2874087'), ('4302', '23051628', '1358858228', None, None, None, None, None, '2874087')] time used for this insertion : 0.04034924507141113 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5276415348052979 time spend to save output : 0.04053831100463867 total time spend for step 4 : 1.5681798458099365 step5:split_time_score Fri May 16 08:19:02 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 : ['23051628'] 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 : [('23051628',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23051628) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1358858228: {'path': 'temp/1747376340_2777098_1358858228_6d04829eb8ffb0fd6919bc2c78e3deb5.jpg', 'extension': 'jpg'}, 1358858232: {'path': 'temp/1747376340_2777098_1358858232_1cab44c02c8186f34c3bf54d9878f27d.jpg', 'extension': 'jpg'}, 1358858445: {'path': 'temp/1747376340_2777098_1358858445_39407cf1b230c6428aa706ee1010ba83.jpg', 'extension': 'jpg'}, 1358858236: {'path': 'temp/1747376340_2777098_1358858236_53f31a2e25fa48dbab5cfc6047bdfde2.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 = 23051628; (('arc_en_ciel_jrm_live',), ('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 = 23051628 group by h (('08', 54),) 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=23051628 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 (23051628) 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 (23051628) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 16052025 23051628 Nombre de photos uploadées : 54 / 23040 (0%) 16052025 23051628 Nombre de photos taguées (types de déchets): 0 / 54 (0%) 16052025 23051628 Nombre de photos taguées (volume) : 0 / 54 (0%) [{'photo_id': 1358852380, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/16/a531d8d874f194c6925ac6e1ef8b8928.jpg', 'username': None, 'uploaded_at': 1747375397, 'text': 'image_16052025_08_00_34_10135.jpg'}, {'photo_id': 1358852349, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/16/0b34055afcc496ba83710b8b0b07557b.jpg', 'username': None, 'uploaded_at': 1747375397, 'text': 'image_16052025_08_02_04_10158.jpg'}, {'photo_id': 1358852323, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/16/ba808a43e8272d25a433076aa8be707d.jpg', 'username': None, 'uploaded_at': 1747375397, 'text': 'image_16052025_08_02_34_10145.jpg'}, {'photo_id': 1358852222, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/16/6f6b06109b1e3180fd5766b23e9c53ba.jpg', 'username': None, 'uploaded_at': 1747375382, 'text': 'image_16052025_08_02_44_10139.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 5.245208740234375e-06 ?????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.003412008285522461 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 23051628, '2025-05-16' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1811648,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.030676603317260742 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= 1811648 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1811648, 'dashboard_run_id': 1820209, 'mtr_portfolio_id': 23049841, 'dashboard_result_id': 10619178, '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_P23049841_16-05-2025_07_33_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23049888, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23049889, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23049890, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23049891, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23049892, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23049893, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23049894, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23049895, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23049896, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23049897, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23049898, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23049899, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1820209, 'mtr_portfolio_id': 23050420, 'dashboard_result_id': 10619179, '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_P23050420_16-05-2025_07_56_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23050486, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23050487, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23050488, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23050489, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23050490, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23050491, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23050492, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23050493, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23050494, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23050495, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23050496, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23050497, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1820209, 'mtr_portfolio_id': 23051264, 'dashboard_result_id': 10619180, '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_P23051264_16-05-2025_08_03_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23051287, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23051288, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23051289, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23051290, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23051291, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23051292, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23051293, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23051294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23051295, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23051296, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23051297, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23051298, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1820209, 'mtr_portfolio_id': 23051628, 'dashboard_result_id': 10619181, '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_P23051628_16-05-2025_08_11_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23051657, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23051658, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23051659, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23051660, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23051661, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23051662, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23051663, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23051664, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23051665, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23051666, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23051667, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23051668, '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 = 23049841 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 23049841 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 23049841 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23049841 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23049841 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23049841 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23049841_16-05-2025_07_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23049841 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_P23049841_16-05-2025_07_33_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23049888, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23049889, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23049890, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23049891, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23049892, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23049893, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23049894, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23049895, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23049896, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23049897, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23049898, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23049899, 'pht': 3726}}" where mtr_portfolio_id = 23049841 and dashboard_run_id = 1820209 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 = 23050420 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': 2873501, 'mtr_portfolio_id': 23050420, 'created_at': datetime.datetime(2025, 5, 16, 7, 56, 59), 'result': '0.06760941444153168', 'result_long': None, 'result_double': None}] Qualite : 0.06760941444153168 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23050420 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23050420_16-05-2025_07_56_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23050420 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_P23050420_16-05-2025_07_56_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23050486, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23050487, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23050488, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23050489, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23050490, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23050491, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23050492, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23050493, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23050494, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23050495, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23050496, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23050497, 'pht': 3726}}" where mtr_portfolio_id = 23050420 and dashboard_run_id = 1820210 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`=23050420 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10619179, 0.06760941444153168, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23050420_16-05-2025_07_56_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23050486, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23050487, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23050488, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23050489, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23050490, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23050491, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23050492, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23050493, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23050494, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23050495, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23050496, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23050497, '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 = 23051264 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': 2873901, 'mtr_portfolio_id': 23051264, 'created_at': datetime.datetime(2025, 5, 16, 8, 2, 59), 'result': '0.037281951702605766', 'result_long': None, 'result_double': None}] Qualite : 0.037281951702605766 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23051264 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23051264_16-05-2025_08_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23051264 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_P23051264_16-05-2025_08_03_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23051287, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23051288, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23051289, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23051290, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23051291, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23051292, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23051293, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23051294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23051295, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23051296, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23051297, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23051298, 'pht': 3726}}" where mtr_portfolio_id = 23051264 and dashboard_run_id = 1820210 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`=23051264 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10619180, 0.037281951702605766, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23051264_16-05-2025_08_03_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23051287, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23051288, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23051289, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23051290, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23051291, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23051292, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23051293, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23051294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23051295, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23051296, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23051297, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23051298, '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 = 23051628 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': 2874087, 'mtr_portfolio_id': 23051628, 'created_at': datetime.datetime(2025, 5, 16, 8, 19), 'result': '0.00868857069769462', 'result_long': None, 'result_double': None}] Qualite : 0.00868857069769462 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23051628 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23051628_16-05-2025_08_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23051628 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_P23051628_16-05-2025_08_19_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23051657, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23051658, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23051659, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23051660, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23051661, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23051662, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23051663, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23051664, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23051665, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23051666, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23051667, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23051668, 'pht': 3726}}" where mtr_portfolio_id = 23051628 and dashboard_run_id = 1820210 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`=23051628 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10619181, 0.00868857069769462, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23051628_16-05-2025_08_19_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23051657, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23051658, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23051659, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23051660, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23051661, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23051662, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23051663, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23051664, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23051665, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23051666, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23051667, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23051668, '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 (23049841,23050420,23051264,23051628) result : ((1358840732,), (1358840739,), (1358840741,), (1358840743,), (1358841096,), (1358841127,), (1358841162,), (1358841195,), (1358841223,), (1358841251,), (1358841502,), (1358841531,), (1358841560,), (1358841586,), (1358841793,), (1358841798,), (1358841816,), (1358841819,), (1358842187,), (1358842224,), (1358842258,), (1358842291,), (1358842302,), (1358842317,), (1358842618,), (1358842630,), (1358842663,), (1358842698,), (1358842849,), (1358843259,), (1358843297,), (1358843816,), (1358843836,), (1358843869,), (1358843971,), (1358844054,), (1358844062,), (1358844065,), (1358844067,), (1358844097,), (1358844102,), (1358844107,), (1358844111,), (1358844222,), (1358844244,), (1358844248,), (1358844336,), (1358844342,), (1358844348,), (1358844351,), (1358844356,), (1358844361,), (1358844399,), (1358844404,), (1358844413,), (1358844416,), (1358844421,), (1358844424,), (1358844452,), (1358844460,), (1358844469,), (1358844568,), (1358844530,), (1358844534,), (1358844540,), (1358844545,), (1358844555,), (1358844625,), (1358844630,), (1358844634,), (1358844638,), (1358844643,), (1358844688,), (1358844693,), (1358844705,), (1358844710,), (1358844716,), (1358844749,), (1358844753,), (1358844757,), (1358844761,), (1358844765,), (1358844798,), (1358844804,), (1358844810,), (1358844815,), (1358844820,), (1358844858,), (1358844864,), (1358844869,), (1358844874,), (1358844924,), (1358844928,), (1358844933,), (1358844937,), (1358844942,), (1358844947,), (1358844978,), (1358844984,), (1358844988,), (1358845054,), (1358845058,), (1358845063,), (1358845067,), (1358845070,), (1358845075,), (1358845123,), (1358845127,), (1358845132,), (1358845136,), (1358845159,), (1358845163,), (1358845205,), (1358845209,), (1358845214,), (1358845296,), (1358845301,), (1358845307,), (1358845310,), (1358845314,), (1358845319,), (1358845352,), (1358845357,), (1358845361,), (1358845365,), (1358845604,), (1358845632,), (1358845659,), (1358845686,), (1358845716,), (1358845963,), (1358846058,), (1358846081,), (1358846086,), (1358846092,), (1358846095,), (1358850186,), (1358850058,), (1358850106,), (1358850652,), (1358850681,), (1358850772,), (1358850885,), (1358850995,), (1358851104,), (1358851142,), (1358851145,), (1358851198,), (1358851266,), (1358851304,), (1358851309,), (1358851325,), (1358851354,), (1358851383,), (1358851409,), (1358851569,), (1358851572,), (1358851576,), (1358851579,), (1358851582,), (1358851586,), (1358851616,), (1358851622,), (1358851628,), (1358851632,), (1358851689,), (1358851697,), (1358851704,), (1358851733,), (1358852222,), (1358852323,), (1358852349,), (1358852380,), (1358852587,), (1358852593,), (1358852598,), (1358852602,), (1358852832,), (1358852853,), (1358852863,), (1358852908,), (1358852942,), (1358853055,), (1358853085,), (1358853116,), (1358853146,), (1358853176,), (1358853476,), (1358853506,), (1358853535,), (1358853570,), (1358853596,), (1358853943,), (1358854068,), (1358854158,), (1358854710,), (1358854886,), (1358855075,), (1358855253,), (1358855730,), (1358855812,), (1358855881,), (1358855949,), (1358856462,), (1358856491,), (1358856520,), (1358856547,), (1358856589,), (1358856641,), (1358856802,), (1358856805,), (1358856808,), (1358856815,), (1358857356,), (1358857433,), (1358857488,), (1358857543,), (1358857603,), (1358857926,), (1358858228,), (1358858232,), (1358858236,), (1358858445,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'16052025': {'nb_upload': 54, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23051628]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1358858445, 1358858236, 1358858232, 1358858228] map_info['map_portfolio_photo'] : {23051628: [1358858445, 1358858236, 1358858232, 1358858228, 1358857926, 1358857603, 1358857543, 1358857488, 1358857433, 1358857356, 1358856815, 1358856808, 1358856805, 1358856802, 1358856641, 1358856589, 1358856547, 1358856520, 1358856491, 1358856462, 1358855949, 1358855881, 1358855812, 1358855730, 1358855253, 1358855075, 1358854886, 1358854710, 1358854158, 1358854068, 1358853943, 1358853596, 1358853570, 1358853535, 1358853506, 1358853476, 1358853176, 1358853146, 1358853116, 1358853085, 1358853055, 1358852942, 1358852908, 1358852863, 1358852853, 1358852832, 1358852602, 1358852598, 1358852593, 1358852587, 1358852380, 1358852349, 1358852323, 1358852222]} final : True mtd_id 4302 list_pids : [1358858445, 1358858236, 1358858232, 1358858228] Looping around the photos to save general results len do output : 1 /23051628Didn'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, '2874087') ('4302', '23051628', '1358858445', None, None, None, None, None, '2874087') ('4302', None, None, None, None, None, None, None, '2874087') ('4302', '23051628', '1358858236', None, None, None, None, None, '2874087') ('4302', None, None, None, None, None, None, None, '2874087') ('4302', '23051628', '1358858232', None, None, None, None, None, '2874087') ('4302', None, None, None, None, None, None, None, '2874087') ('4302', '23051628', '1358858228', None, None, None, None, None, '2874087') 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, '23051628', 'None', None, None, None, None, '2874087'), ('4302', '23051628', '1358858445', None, None, None, None, None, '2874087'), ('4302', '23051628', '1358858236', None, None, None, None, None, '2874087'), ('4302', '23051628', '1358858232', None, None, None, None, None, '2874087'), ('4302', '23051628', '1358858228', None, None, None, None, None, '2874087')] time used for this insertion : 0.021216154098510742 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.36278772354125977 time spend to save output : 0.021416425704956055 total time spend for step 5 : 0.3842041492462158 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 (2874087) 1.83user 2.35system 0:06.73elapsed 62%CPU (0avgtext+0avgdata 157440maxresident)k 42448inputs+2376outputs (172major+64420minor)pagefaults 0swaps