save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5948805809020996 time spend to save output : 0.017291784286499023 total time spend for step 1 : 1.6121723651885986 step2:final Wed Apr 9 14:58: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 (22164380) 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 22164380 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1350786043,1350786038,1350786028,1350786122,1350786119,1350786113,1350786107,1350786096,1350786174,1350786169,1350786165,1350786155,1350786149,1350786268,1350786263,1350786259,1350786255,1350786252,1350786422,1350786417,1350786408,1350786587,1350786584,1350786581,1350786578,1350786626,1350786623,1350786620,1350786698,1350786692,1350786688,1350786684,1350786680,1350786674,1350786788,1350786772,1350786756,1350786749,1350786746,1350786979,1350786957,1350786953,1350786940,1350787029,1350787026,1350787022,1350787019,1350787515,1350787493,1350787450,1350787426,1350787409,1350787372); 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([22164380]) Inside saveOutput : final : False verbose : True original output for save of step final : {1350787515: ('0.026930630974863774',), 1350787493: ('0.026930630974863774',), 1350787450: ('0.026930630974863774',), 1350787426: ('0.026930630974863774',), 1350787409: ('0.026930630974863774',), 1350787372: ('0.026930630974863774',)} new output for save of step final : {1350787515: ('0.026930630974863774',), 1350787493: ('0.026930630974863774',), 1350787450: ('0.026930630974863774',), 1350787426: ('0.026930630974863774',), 1350787409: ('0.026930630974863774',), 1350787372: ('0.026930630974863774',)} [1350787515, 1350787493, 1350787450, 1350787426, 1350787409, 1350787372] map_info['map_portfolio_photo'] : {22164380: [1350787515, 1350787493, 1350787450, 1350787426, 1350787409, 1350787372, 1350787029, 1350787026, 1350787022, 1350787019, 1350786979, 1350786957, 1350786953, 1350786940, 1350786788, 1350786772, 1350786756, 1350786749, 1350786746, 1350786698, 1350786692, 1350786688, 1350786684, 1350786680, 1350786674, 1350786626, 1350786623, 1350786620, 1350786587, 1350786584, 1350786581, 1350786578, 1350786422, 1350786417, 1350786408, 1350786268, 1350786263, 1350786259, 1350786255, 1350786252, 1350786174, 1350786169, 1350786165, 1350786155, 1350786149, 1350786122, 1350786119, 1350786113, 1350786107, 1350786096, 1350786043, 1350786038, 1350786028]} final : False mtd_id 4302 list_pids : [1350787515, 1350787493, 1350787450, 1350787426, 1350787409, 1350787372] Looping around the photos to save general results len do output : 6 /1350787515.Didn't retrieve data . /1350787493.Didn't retrieve data . /1350787450.Didn't retrieve data . /1350787426.Didn't retrieve data . /1350787409.Didn't retrieve data . /1350787372.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, '2734707') ('4302', '22164380', '1350787515', None, None, None, None, None, '2734707') ('4302', None, None, None, None, None, None, None, '2734707') ('4302', '22164380', '1350787493', None, None, None, None, None, '2734707') ('4302', None, None, None, None, None, None, None, '2734707') ('4302', '22164380', '1350787450', None, None, None, None, None, '2734707') ('4302', None, None, None, None, None, None, None, '2734707') ('4302', '22164380', '1350787426', None, None, None, None, None, '2734707') ('4302', None, None, None, None, None, None, None, '2734707') ('4302', '22164380', '1350787409', None, None, None, None, None, '2734707') ('4302', None, None, None, None, None, None, None, '2734707') ('4302', '22164380', '1350787372', None, None, None, None, None, '2734707') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 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', '22164380', '1350787515', '0.026930630974863774', None, None, None, None, '2734707'), ('4302', '22164380', '1350787493', '0.026930630974863774', None, None, None, None, '2734707'), ('4302', '22164380', '1350787450', '0.026930630974863774', None, None, None, None, '2734707'), ('4302', '22164380', '1350787426', '0.026930630974863774', None, None, None, None, '2734707'), ('4302', '22164380', '1350787409', '0.026930630974863774', None, None, None, None, '2734707'), ('4302', '22164380', '1350787372', '0.026930630974863774', None, None, None, None, '2734707')] time used for this insertion : 0.0152740478515625 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.45719099044799805 time spend to save output : 0.015705585479736328 total time spend for step 2 : 0.4728965759277344 step3:velours_tree Wed Apr 9 14:58: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 complete output_args for input 0 : {22164380: [{'environnement': 22164383, 'autre_refus': 22164384, 'cartonnette': 22164385, 'metal': 22164386, 'papier': 22164387, 'Teint_Dans_La_Masse': 22164388, 'kraft': 22164389, 'Carton_gris': 22164390, 'plastique': 22164391, 'Carton_brun': 22164392, 'flou': 22164393, 'mal_croppe': 22164394}]} input_args_next_step : {22164380: ()} output_args : {22164380: [{'environnement': 22164383, 'autre_refus': 22164384, 'cartonnette': 22164385, 'metal': 22164386, 'papier': 22164387, 'Teint_Dans_La_Masse': 22164388, 'kraft': 22164389, 'Carton_gris': 22164390, 'plastique': 22164391, 'Carton_brun': 22164392, 'flou': 22164393, 'mal_croppe': 22164394}]} args : 22164380 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': 22164383, 'autre_refus': 22164384, 'cartonnette': 22164385, 'metal': 22164386, 'papier': 22164387, 'Teint_Dans_La_Masse': 22164388, 'kraft': 22164389, 'Carton_gris': 22164390, 'plastique': 22164391, 'Carton_brun': 22164392, 'flou': 22164393, 'mal_croppe': 22164394},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22164380) 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([22164380]) 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.3503401279449463 time spend to save output : 5.936622619628906e-05 total time spend for step 3 : 0.3503994941711426 step4:send_mail_cod Wed Apr 9 14:58: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 : {1350787515: ('0.026930630974863774',), 1350787493: ('0.026930630974863774',), 1350787450: ('0.026930630974863774',), 1350787426: ('0.026930630974863774',), 1350787409: ('0.026930630974863774',), 1350787372: ('0.026930630974863774',)} input_args_next_step : {1350787515: ()} output_args : {1350787515: ('0.026930630974863774',), 1350787493: ('0.026930630974863774',), 1350787450: ('0.026930630974863774',), 1350787426: ('0.026930630974863774',), 1350787409: ('0.026930630974863774',), 1350787372: ('0.026930630974863774',)} args : 1350787515 depend.output_id : 0 input_args_next_step : {1350787515: ('0.026930630974863774',), 1350787493: ()} output_args : {1350787515: ('0.026930630974863774',), 1350787493: ('0.026930630974863774',), 1350787450: ('0.026930630974863774',), 1350787426: ('0.026930630974863774',), 1350787409: ('0.026930630974863774',), 1350787372: ('0.026930630974863774',)} args : 1350787493 depend.output_id : 0 input_args_next_step : {1350787515: ('0.026930630974863774',), 1350787493: ('0.026930630974863774',), 1350787450: ()} output_args : {1350787515: ('0.026930630974863774',), 1350787493: ('0.026930630974863774',), 1350787450: ('0.026930630974863774',), 1350787426: ('0.026930630974863774',), 1350787409: ('0.026930630974863774',), 1350787372: ('0.026930630974863774',)} args : 1350787450 depend.output_id : 0 input_args_next_step : {1350787515: ('0.026930630974863774',), 1350787493: ('0.026930630974863774',), 1350787450: ('0.026930630974863774',), 1350787426: ()} output_args : {1350787515: ('0.026930630974863774',), 1350787493: ('0.026930630974863774',), 1350787450: ('0.026930630974863774',), 1350787426: ('0.026930630974863774',), 1350787409: ('0.026930630974863774',), 1350787372: ('0.026930630974863774',)} args : 1350787426 depend.output_id : 0 input_args_next_step : {1350787515: ('0.026930630974863774',), 1350787493: ('0.026930630974863774',), 1350787450: ('0.026930630974863774',), 1350787426: ('0.026930630974863774',), 1350787409: ()} output_args : {1350787515: ('0.026930630974863774',), 1350787493: ('0.026930630974863774',), 1350787450: ('0.026930630974863774',), 1350787426: ('0.026930630974863774',), 1350787409: ('0.026930630974863774',), 1350787372: ('0.026930630974863774',)} args : 1350787409 depend.output_id : 0 input_args_next_step : {1350787515: ('0.026930630974863774',), 1350787493: ('0.026930630974863774',), 1350787450: ('0.026930630974863774',), 1350787426: ('0.026930630974863774',), 1350787409: ('0.026930630974863774',), 1350787372: ()} output_args : {1350787515: ('0.026930630974863774',), 1350787493: ('0.026930630974863774',), 1350787450: ('0.026930630974863774',), 1350787426: ('0.026930630974863774',), 1350787409: ('0.026930630974863774',), 1350787372: ('0.026930630974863774',)} args : 1350787372 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 : {22164380: [{'environnement': 22164383, 'autre_refus': 22164384, 'cartonnette': 22164385, 'metal': 22164386, 'papier': 22164387, 'Teint_Dans_La_Masse': 22164388, 'kraft': 22164389, 'Carton_gris': 22164390, 'plastique': 22164391, 'Carton_brun': 22164392, 'flou': 22164393, 'mal_croppe': 22164394}]} input_args_next_step : {1350787515: ('0.026930630974863774',), 1350787493: ('0.026930630974863774',), 1350787450: ('0.026930630974863774',), 1350787426: ('0.026930630974863774',), 1350787409: ('0.026930630974863774',), 1350787372: ('0.026930630974863774',), 22164380: ()} output_args : {22164380: [{'environnement': 22164383, 'autre_refus': 22164384, 'cartonnette': 22164385, 'metal': 22164386, 'papier': 22164387, 'Teint_Dans_La_Masse': 22164388, 'kraft': 22164389, 'Carton_gris': 22164390, 'plastique': 22164391, 'Carton_brun': 22164392, 'flou': 22164393, 'mal_croppe': 22164394}]} args : 22164380 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 :7, first value : ('0.026930630974863774',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22164380) 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 (1350787515,1350787493,1350787450,1350787426,1350787409,1350787372) Found this number of photos: 6 ##### Call download_photos : nb_thread : 5 begin to download photo : 1350787372 begin to download photo : 1350787426 begin to download photo : 1350787493 download finish for photo 1350787372 begin to download photo : 1350787409 download finish for photo 1350787426 begin to download photo : 1350787450 download finish for photo 1350787493 begin to download photo : 1350787515 download finish for photo 1350787450 download finish for photo 1350787515 download finish for photo 1350787409 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 6 ; length of list_pids : 6 ; length of list_args : 6 results_Auto_P22164380_09-04-2025_14_58_58.pdf 22164384 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=22164384 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350786599: '1744203072_2796282_1350786417_83c66ebc640bb767c2c3ad194fb243e4_rle_crop_3751600188_0.png', 1350786631: '1744203091_2796504_1350786422_f546d5a8a4efb5c7a04b3fb492f5f75f_rle_crop_3751600452_0.png', 1350786632: '1744203091_2796504_1350786263_fc6a76f96c11489300e4e248b0c3e986_rle_crop_3751600522_0.png', 1350786651: '1744203113_2796786_1350786149_cadce2f0a31cb9fc7985b996189dc495_rle_crop_3751600915_0.png', 1350786757: '1744203212_2798127_1350786626_f7e02ee760b12146c74f7d629d006667_rle_crop_3751602010_0.png', 1350786758: '1744203212_2798127_1350786626_f7e02ee760b12146c74f7d629d006667_rle_crop_3751602012_0.png', 1350786759: '1744203212_2798127_1350786584_b19fad1fec4a3eda9582541efe3d02eb_rle_crop_3751602024_0.png', 1350787518: '1744203431_2800675_1350787026_13421f8d90bd1253d1aa4b12b7e8d732_rle_crop_3751606178_0.png', 1350787519: '1744203431_2800675_1350787019_58a58eff3d914be8d693cfe8a3c23603_rle_crop_3751606251_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/e472f2093736aadd8973f991e42fff84_77949576.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/2c8cda731236c9a91d1d02067394dbb4_487110.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/29213847c012ee02970b70b29267100a_78011644.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/c5817e088013f4a2382f1559c274c8b8_6680240.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/1a6e3a62924d0a27aa5aef54bd28b06d_72229891.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/b28845acf7572907ed957060fb67dfb1_26709438.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/d1785117cab866b396178f3c33e23e8c_99319194.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/f5e8dff410a3870dc74eace96bb73b4d_86994559.png change filename to text .imagette221643841744203538/ imagette221643841744203538/1744203212_2798127_1350786584_b19fad1fec4a3eda9582541efe3d02eb_rle_crop_3751602024_0.png.png imagette221643841744203538/1744203091_2796504_1350786263_fc6a76f96c11489300e4e248b0c3e986_rle_crop_3751600522_0.png.png imagette221643841744203538/1744203113_2796786_1350786149_cadce2f0a31cb9fc7985b996189dc495_rle_crop_3751600915_0.png.png imagette221643841744203538/1744203091_2796504_1350786422_f546d5a8a4efb5c7a04b3fb492f5f75f_rle_crop_3751600452_0.png.png imagette221643841744203538/1744203431_2800675_1350787019_58a58eff3d914be8d693cfe8a3c23603_rle_crop_3751606251_0.png.png imagette221643841744203538/1744203431_2800675_1350787026_13421f8d90bd1253d1aa4b12b7e8d732_rle_crop_3751606178_0.png.png imagette221643841744203538/1744203212_2798127_1350786626_f7e02ee760b12146c74f7d629d006667_rle_crop_3751602010_0.png.png imagette221643841744203538/1744203072_2796282_1350786417_83c66ebc640bb767c2c3ad194fb243e4_rle_crop_3751600188_0.png.png imagette221643841744203538/1744203212_2798127_1350786626_f7e02ee760b12146c74f7d629d006667_rle_crop_3751602012_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/b23c010c9fbc846f670fbf073afbf942_31529770.png imagette221643841744203538 22164385 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=22164385 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350786316: '1744202933_2794475_1350786119_fedd603a7906a8ea3b64c125e43a354e_rle_crop_3751599502_0.png', 1350786760: '1744203212_2798127_1350786626_f7e02ee760b12146c74f7d629d006667_rle_crop_3751602013_0.png', 1350786999: '1744203294_2799207_1350786680_809d08083289e727931385b30136fcf4_rle_crop_3751604401_0.png', 1350787526: '1744203431_2800675_1350787026_13421f8d90bd1253d1aa4b12b7e8d732_rle_crop_3751606180_0.png', 1350787660: '1744203472_2801265_1350786756_24991e2507fe6cb5d0743aab3fa4d766_rle_crop_3751606443_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/0942a4d42bd0c5ba20d06fbf106aadc3_46629435.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/99dac03e5cd526f31601b7e7be561719_71845900.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/6fb4af4864543487085d29f58b2eb533_58343127.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/fc479dfbd8450a0684d76fa530c10d78_95310804.png change filename to text .imagette221643851744203539/ imagette221643851744203539/1744203431_2800675_1350787026_13421f8d90bd1253d1aa4b12b7e8d732_rle_crop_3751606180_0.png.png imagette221643851744203539/1744203472_2801265_1350786756_24991e2507fe6cb5d0743aab3fa4d766_rle_crop_3751606443_0.png.png imagette221643851744203539/1744202933_2794475_1350786119_fedd603a7906a8ea3b64c125e43a354e_rle_crop_3751599502_0.png.png imagette221643851744203539/1744203294_2799207_1350786680_809d08083289e727931385b30136fcf4_rle_crop_3751604401_0.png.png imagette221643851744203539/1744203212_2798127_1350786626_f7e02ee760b12146c74f7d629d006667_rle_crop_3751602013_0.png.png imagette221643861744203539/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/4c090b082dd3b7a6e6b9b24fbbd270bf_66877133.png imagette221643851744203539 22164386 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=22164386 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221643861744203539 22164389 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=22164389 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350787600: '1744203446_2394052_1350787029_92fa2f6e43273775c7cc8e0700629bf4_rle_crop_3751606288_0.png'} change filename to text .imagette221643891744203539/ imagette221643891744203539/1744203446_2394052_1350787029_92fa2f6e43273775c7cc8e0700629bf4_rle_crop_3751606288_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/921e131711326db8230b704471288fd7_85738674.png imagette221643891744203539 22164391 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=22164391 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350786633: '1744203091_2796504_1350786255_b9ef9446411026c044f7b99ff1afb2cb_rle_crop_3751600672_0.png', 1350786655: '1744203113_2796786_1350786268_d9d3fc033f01bf7a6969d290f2ee2f59_rle_crop_3751600768_0.png', 1350787003: '1744203294_2799207_1350786674_f933de66fef78200bfd00b4d9fdcd6c7_rle_crop_3751604411_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/7a98158e0296ab2d3d9448d345dd3eca_13167149.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/07589e72a67265808390ec7b699ce38c_39456581.png change filename to text .imagette221643911744203539/ imagette221643911744203539/1744203113_2796786_1350786268_d9d3fc033f01bf7a6969d290f2ee2f59_rle_crop_3751600768_0.png.png imagette221643911744203539/1744203294_2799207_1350786674_f933de66fef78200bfd00b4d9fdcd6c7_rle_crop_3751604411_0.png.png imagette221643911744203539/1744203091_2796504_1350786255_b9ef9446411026c044f7b99ff1afb2cb_rle_crop_3751600672_0.png.png imagette221643931744203539/ imagette221643941744203539/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/e94fb624083a59f2ee7a61c5dbce8e0d_19910098.png imagette221643911744203539 22164393 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=22164393 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221643931744203539 22164394 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=22164394 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221643941744203539 22164388 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=22164388 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350786647: '1744203113_2796786_1350786268_d9d3fc033f01bf7a6969d290f2ee2f59_rle_crop_3751600765_0.png', 1350787659: '1744203472_2801265_1350786772_dda8b69c78f3103b033e865f9a47088c_rle_crop_3751606433_0.png', 1350786845: '1744203231_2798437_1350786122_fd5ef8f9efcee0627b2b57b9a7d25c48_rle_crop_3751601051_0.png', 1350786844: '1744203231_2798437_1350786122_fd5ef8f9efcee0627b2b57b9a7d25c48_rle_crop_3751601044_0.png', 1350786754: '1744203212_2798127_1350786578_408660bb10862c08fa1aaaa8ab2ccfe1_rle_crop_3751602215_0.png', 1350786753: '1744203212_2798127_1350786581_271531eb1255d4a9dcbcdad91632d54b_rle_crop_3751602137_0.png', 1350786752: '1744203212_2798127_1350786584_b19fad1fec4a3eda9582541efe3d02eb_rle_crop_3751602028_0.png', 1350786650: '1744203113_2796786_1350786149_cadce2f0a31cb9fc7985b996189dc495_rle_crop_3751600919_0.png', 1350786649: '1744203113_2796786_1350786155_9d5f3a1f746d4b4b03eb804d1fba5978_rle_crop_3751600911_0.png', 1350786648: '1744203113_2796786_1350786165_9c8ac921678638d41cf4f2edb70f3ded_rle_crop_3751600890_0.png', 1350786301: '1744202933_2794475_1350786119_fedd603a7906a8ea3b64c125e43a354e_rle_crop_3751599504_0.png', 1350786646: '1744203113_2796786_1350786268_d9d3fc033f01bf7a6969d290f2ee2f59_rle_crop_3751600766_0.png', 1350786645: '1744203113_2796786_1350786268_d9d3fc033f01bf7a6969d290f2ee2f59_rle_crop_3751600769_0.png', 1350786629: '1744203091_2796504_1350786255_b9ef9446411026c044f7b99ff1afb2cb_rle_crop_3751600676_0.png', 1350786308: '1744202933_2794475_1350786096_3ca6c13a0c097725eef3d96caea54dd7_rle_crop_3751599542_0.png', 1350786307: '1744202933_2794475_1350786107_e6457e907d52e9f67b9d1e2d9d08f595_rle_crop_3751599530_0.png', 1350786305: '1744202933_2794475_1350786113_b23f970258829524d0df473afb9a1942_rle_crop_3751599516_0.png', 1350786304: '1744202933_2794475_1350786113_b23f970258829524d0df473afb9a1942_rle_crop_3751599514_0.png', 1350786303: '1744202933_2794475_1350786119_fedd603a7906a8ea3b64c125e43a354e_rle_crop_3751599509_0.png', 1350786302: '1744202933_2794475_1350786119_fedd603a7906a8ea3b64c125e43a354e_rle_crop_3751599506_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/174ed6491bd45129f608d830ad8afa35_3584437.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/d01452cb0e779225bde340707dc80b36_64786801.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/b20b7f390d5cbd65b0605b2644aec5a2_83456765.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/b73b4429b58ec12eeb93ec47be727720_23720258.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/eeb2ceb14c777e6881f5533f1fd75c03_40434896.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/45f553015511ec1646a983fe26e5f600_40699950.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/ce287c269ee56dbb07e9c92fb59bb95a_29005225.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/cd6c4199a16de5e69b9220d76ff13ea0_30128610.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/830fa71e7c155d0477675dbebab6f9d1_8925440.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/4e055e4ac10265241308b75aa4e3348f_24839345.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/4fc92336fbb55bcddbab5598daa879fc_44687219.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/faeb61f88c043776f40d9005dc2313d7_69991309.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/27f08efd6c36061ca46647c0a7e4dc34_75639224.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/b253abe6c688e4364060f4e216b25f42_99777869.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/d58f573b01711c1960f3eeaf390f1d51_91957576.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/0d751186a36352f2a522f47ffd77e79c_26087767.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/6ca39f89da98a4686978b0d28d880d83_28230047.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/227920ccb1e669afb375b0416d0e8088_77171723.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/362bce8e095db4c678da3cf42a076174_10993111.png change filename to text .imagette221643881744203539/ imagette221643881744203539/1744203091_2796504_1350786255_b9ef9446411026c044f7b99ff1afb2cb_rle_crop_3751600676_0.png.png imagette221643881744203539/1744203472_2801265_1350786772_dda8b69c78f3103b033e865f9a47088c_rle_crop_3751606433_0.png.png imagette221643881744203539/1744202933_2794475_1350786119_fedd603a7906a8ea3b64c125e43a354e_rle_crop_3751599506_0.png.png imagette221643881744203539/1744202933_2794475_1350786113_b23f970258829524d0df473afb9a1942_rle_crop_3751599514_0.png.png imagette221643881744203539/1744203113_2796786_1350786268_d9d3fc033f01bf7a6969d290f2ee2f59_rle_crop_3751600765_0.png.png imagette221643881744203539/1744203212_2798127_1350786581_271531eb1255d4a9dcbcdad91632d54b_rle_crop_3751602137_0.png.png imagette221643881744203539/1744202933_2794475_1350786107_e6457e907d52e9f67b9d1e2d9d08f595_rle_crop_3751599530_0.png.png imagette221643881744203539/1744203212_2798127_1350786584_b19fad1fec4a3eda9582541efe3d02eb_rle_crop_3751602028_0.png.png imagette221643881744203539/1744203212_2798127_1350786578_408660bb10862c08fa1aaaa8ab2ccfe1_rle_crop_3751602215_0.png.png imagette221643881744203539/1744203113_2796786_1350786155_9d5f3a1f746d4b4b03eb804d1fba5978_rle_crop_3751600911_0.png.png imagette221643881744203539/1744203231_2798437_1350786122_fd5ef8f9efcee0627b2b57b9a7d25c48_rle_crop_3751601044_0.png.png imagette221643881744203539/1744203113_2796786_1350786149_cadce2f0a31cb9fc7985b996189dc495_rle_crop_3751600919_0.png.png imagette221643881744203539/1744203113_2796786_1350786268_d9d3fc033f01bf7a6969d290f2ee2f59_rle_crop_3751600766_0.png.png imagette221643881744203539/1744203113_2796786_1350786268_d9d3fc033f01bf7a6969d290f2ee2f59_rle_crop_3751600769_0.png.png imagette221643881744203539/1744202933_2794475_1350786119_fedd603a7906a8ea3b64c125e43a354e_rle_crop_3751599509_0.png.png imagette221643881744203539/1744203113_2796786_1350786165_9c8ac921678638d41cf4f2edb70f3ded_rle_crop_3751600890_0.png.png imagette221643881744203539/1744202933_2794475_1350786113_b23f970258829524d0df473afb9a1942_rle_crop_3751599516_0.png.png imagette221643881744203539/1744202933_2794475_1350786119_fedd603a7906a8ea3b64c125e43a354e_rle_crop_3751599504_0.png.png imagette221643881744203539/1744202933_2794475_1350786096_3ca6c13a0c097725eef3d96caea54dd7_rle_crop_3751599542_0.png.png imagette221643881744203539/1744203231_2798437_1350786122_fd5ef8f9efcee0627b2b57b9a7d25c48_rle_crop_3751601051_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/d8df156b621fd1ab07880ee56cfe64e0_58415086.png imagette221643881744203539 22164390 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=22164390 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350786998: '1744203294_2799207_1350786688_90ddf53a4d006830f3998d2120c5c3ad_rle_crop_3751603442_0.png', 1350787521: '1744203431_2800675_1350787026_13421f8d90bd1253d1aa4b12b7e8d732_rle_crop_3751606179_0.png', 1350787522: '1744203431_2800675_1350787022_a453e4822e0de530278a701500734882_rle_crop_3751606191_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/32c2e0a3b8ba82e3f7da1b9a2cbdbec7_38770288.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/234e44b20250f109b48c46c2b833d2cd_31599934.png change filename to text .imagette221643901744203540/ imagette221643901744203540/1744203294_2799207_1350786688_90ddf53a4d006830f3998d2120c5c3ad_rle_crop_3751603442_0.png.png imagette221643901744203540/1744203431_2800675_1350787022_a453e4822e0de530278a701500734882_rle_crop_3751606191_0.png.png imagette221643901744203540/1744203431_2800675_1350787026_13421f8d90bd1253d1aa4b12b7e8d732_rle_crop_3751606179_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/5ff620ddc2bba567a4bd1473d0be8be5_24938471.png imagette221643901744203540 22164392 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=22164392 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350786653: '1744203113_2796786_1350786155_9d5f3a1f746d4b4b03eb804d1fba5978_rle_crop_3751600907_0.png', 1350786654: '1744203113_2796786_1350786155_9d5f3a1f746d4b4b03eb804d1fba5978_rle_crop_3751600908_0.png', 1350786852: '1744203231_2798437_1350786028_9be757d55ad75667cdcaf947d5003828_rle_crop_3751601180_0.png', 1350787599: '1744203446_2394052_1350787029_92fa2f6e43273775c7cc8e0700629bf4_rle_crop_3751606291_0.png', 1350787604: '1744203450_2800964_1350786788_5dc1fea705c88320210379283b48e84e_rle_crop_3751606317_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/7c0c4348026070bf22bdd5ccbfa6c872_7805381.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/5c75c62f94ed910ba5ac288d6659bb2c_85947958.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/204cf5800fa6418fb5189cdbfd2ede6d_77042755.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/708c19acaddb0a9253c345953764a5cc_50005042.png change filename to text .imagette221643921744203541/ imagette221643921744203541/1744203231_2798437_1350786028_9be757d55ad75667cdcaf947d5003828_rle_crop_3751601180_0.png.png imagette221643921744203541/1744203113_2796786_1350786155_9d5f3a1f746d4b4b03eb804d1fba5978_rle_crop_3751600908_0.png.png imagette221643921744203541/1744203446_2394052_1350787029_92fa2f6e43273775c7cc8e0700629bf4_rle_crop_3751606291_0.png.png imagette221643921744203541/1744203450_2800964_1350786788_5dc1fea705c88320210379283b48e84e_rle_crop_3751606317_0.png.png imagette221643921744203541/1744203113_2796786_1350786155_9d5f3a1f746d4b4b03eb804d1fba5978_rle_crop_3751600907_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/9f7ea492b7a311c6a916975fb704610c_56862607.png imagette221643921744203541 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22164380 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22164395,22164396,22164397,22164398,22164399,22164400,22164401,22164402,22164403,22164404,22164405,22164406?tags=environnement,autre_refus,cartonnette,metal,papier,Teint_Dans_La_Masse,kraft,Carton_gris,plastique,Carton_brun,flou,mal_croppe your option no_mail is active, we will not send the real mail to your client args[1350787515] : ('0.026930630974863774',) no score found for photo 1350787515 We are sending mail with results at report@fotonower.com args[1350787493] : ('0.026930630974863774',) no score found for photo 1350787493 We are sending mail with results at report@fotonower.com args[1350787450] : ('0.026930630974863774',) no score found for photo 1350787450 We are sending mail with results at report@fotonower.com args[1350787426] : ('0.026930630974863774',) no score found for photo 1350787426 We are sending mail with results at report@fotonower.com args[1350787409] : ('0.026930630974863774',) no score found for photo 1350787409 We are sending mail with results at report@fotonower.com args[1350787372] : ('0.026930630974863774',) no score found for photo 1350787372 We are sending mail with results at report@fotonower.com refus_total : 0.026930630974863774 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=22164380 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_P22164380_09-04-2025_14_58_58.pdf results_Auto_P22164380_09-04-2025_14_58_58.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22164380_09-04-2025_14_58_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','22164380','results_Auto_P22164380_09-04-2025_14_58_58.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22164380_09-04-2025_14_58_58.pdf','pdf','','0.18','0.026930630974863774') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22164380]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1350787515, 1350787493, 1350787450, 1350787426, 1350787409, 1350787372] map_info['map_portfolio_photo'] : {22164380: [1350787515, 1350787493, 1350787450, 1350787426, 1350787409, 1350787372, 1350787029, 1350787026, 1350787022, 1350787019, 1350786979, 1350786957, 1350786953, 1350786940, 1350786788, 1350786772, 1350786756, 1350786749, 1350786746, 1350786698, 1350786692, 1350786688, 1350786684, 1350786680, 1350786674, 1350786626, 1350786623, 1350786620, 1350786587, 1350786584, 1350786581, 1350786578, 1350786422, 1350786417, 1350786408, 1350786268, 1350786263, 1350786259, 1350786255, 1350786252, 1350786174, 1350786169, 1350786165, 1350786155, 1350786149, 1350786122, 1350786119, 1350786113, 1350786107, 1350786096, 1350786043, 1350786038, 1350786028]} final : False mtd_id 4302 list_pids : [1350787515, 1350787493, 1350787450, 1350787426, 1350787409, 1350787372] 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, '2734707') ('4302', '22164380', '1350787515', None, None, None, None, None, '2734707') ('4302', None, None, None, None, None, None, None, '2734707') ('4302', '22164380', '1350787493', None, None, None, None, None, '2734707') ('4302', None, None, None, None, None, None, None, '2734707') ('4302', '22164380', '1350787450', None, None, None, None, None, '2734707') ('4302', None, None, None, None, None, None, None, '2734707') ('4302', '22164380', '1350787426', None, None, None, None, None, '2734707') ('4302', None, None, None, None, None, None, None, '2734707') ('4302', '22164380', '1350787409', None, None, None, None, None, '2734707') ('4302', None, None, None, None, None, None, None, '2734707') ('4302', '22164380', '1350787372', None, None, None, None, None, '2734707') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 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', '22164380', '1350787515', None, None, None, None, None, '2734707'), ('4302', '22164380', '1350787493', None, None, None, None, None, '2734707'), ('4302', '22164380', '1350787450', None, None, None, None, None, '2734707'), ('4302', '22164380', '1350787426', None, None, None, None, None, '2734707'), ('4302', '22164380', '1350787409', None, None, None, None, None, '2734707'), ('4302', '22164380', '1350787372', None, None, None, None, None, '2734707')] time used for this insertion : 0.014836311340332031 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.8633172512054443 time spend to save output : 0.015024185180664062 total time spend for step 4 : 3.8783414363861084 step5:split_time_score Wed Apr 9 14:59: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 : ['22164380'] 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 : [('22164380',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22164380) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1350787426: {'path': 'temp/1744203538_1546875_1350787426_831759b046247a8ab63a64ff2a30ce0e.jpg', 'extension': 'jpg'}, 1350787450: {'path': 'temp/1744203538_1546875_1350787450_1a17dc6f45ce7ca25156f498c924a273.jpg', 'extension': 'jpg'}, 1350787493: {'path': 'temp/1744203538_1546875_1350787493_b0ac01b5577c399ed6119e7119480cca.jpg', 'extension': 'jpg'}, 1350787515: {'path': 'temp/1744203538_1546875_1350787515_add4d547aa9fc6daea7dbc9c41aa7025.jpg', 'extension': 'jpg'}, 1350787372: {'path': 'temp/1744203538_1546875_1350787372_d88e8054d81b528edb5c4e1073818ee3.jpg', 'extension': 'jpg'}, 1350787409: {'path': 'temp/1744203538_1546875_1350787409_32f680f271fb57649ff466a4ee8f357f.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 = 22164380; (('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 = 22164380 group by h (('14', 53),) 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=22164380 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 (22164380) 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 (22164380) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 09042025 22164380 Nombre de photos uploadées : 53 / 23040 (0%) 09042025 22164380 Nombre de photos taguées (types de déchets): 0 / 53 (0%) 09042025 22164380 Nombre de photos taguées (volume) : 0 / 53 (0%) [{'photo_id': 1350786043, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/3ed2bcab580495e09529ac76e4917c5f.jpg', 'username': None, 'uploaded_at': 1744202767, 'text': 'image_09042025_14_45_04_010156m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1350786038, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/ba84c3a6d77dd8f1e23fd7ac21207a17.jpg', 'username': None, 'uploaded_at': 1744202767, 'text': 'image_09042025_14_45_24_010142m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1350786028, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/9be757d55ad75667cdcaf947d5003828.jpg', 'username': None, 'uploaded_at': 1744202767, 'text': 'image_09042025_14_45_34_010139m0.jpg 3.0000000000000004e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1350786122, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/fd5ef8f9efcee0627b2b57b9a7d25c48.jpg', 'username': None, 'uploaded_at': 1744202828, 'text': 'image_09042025_14_45_44_010142m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 5.0067901611328125e-06 ????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002340555191040039 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22164380, '2025-04-09' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1725367,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.027782440185546875 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= 1725367 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1725367, 'dashboard_run_id': 1733967, 'mtr_portfolio_id': 22163476, 'dashboard_result_id': 9944656, '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_P22163476_09-04-2025_14_33_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22163507, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22163508, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22163509, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22163510, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22163511, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22163512, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22163513, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22163514, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22163515, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22163516, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22163517, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22163518, 'pht': 3726}}"}, {'dashboat_entry_day': 1725367, 'dashboard_run_id': 1733967, 'mtr_portfolio_id': 22163702, 'dashboard_result_id': 9944657, '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_P22163702_09-04-2025_14_48_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22163718, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22163719, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22163720, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22163721, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22163722, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22163723, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22163724, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22163725, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22163726, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22163727, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22163728, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22163729, 'pht': 3726}}"}, {'dashboat_entry_day': 1725367, 'dashboard_run_id': 1733967, 'mtr_portfolio_id': 22164380, 'dashboard_result_id': 9944658, '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_P22164380_09-04-2025_14_57_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22164383, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22164384, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22164385, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22164386, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22164387, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22164388, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22164389, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22164390, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22164391, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22164392, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22164393, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22164394, '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 = 22163476 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': 2734639, 'mtr_portfolio_id': 22163476, 'created_at': datetime.datetime(2025, 4, 9, 14, 33), 'result': '0.046109096852341824', 'result_long': None, 'result_double': None}] Qualite : 0.046109096852341824 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22163476 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22163476_09-04-2025_14_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22163476 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_P22163476_09-04-2025_14_33_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22163507, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22163508, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22163509, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22163510, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22163511, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22163512, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22163513, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22163514, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22163515, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22163516, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22163517, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22163518, 'pht': 3726}}" where mtr_portfolio_id = 22163476 and dashboard_run_id = 1733967 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`=22163476 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9944656, 0.046109096852341824, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22163476_09-04-2025_14_33_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22163507, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22163508, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22163509, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22163510, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22163511, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22163512, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22163513, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22163514, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22163515, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22163516, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22163517, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22163518, '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 = 22163702 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': 2734657, 'mtr_portfolio_id': 22163702, 'created_at': datetime.datetime(2025, 4, 9, 14, 48, 59), 'result': '0.02782719971823703', 'result_long': None, 'result_double': None}] Qualite : 0.02782719971823703 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22163702 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22163702_09-04-2025_14_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22163702 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_P22163702_09-04-2025_14_48_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22163718, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22163719, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22163720, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22163721, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22163722, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22163723, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22163724, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22163725, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22163726, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22163727, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22163728, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22163729, 'pht': 3726}}" where mtr_portfolio_id = 22163702 and dashboard_run_id = 1733967 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`=22163702 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9944657, 0.02782719971823703, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22163702_09-04-2025_14_48_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22163718, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22163719, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22163720, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22163721, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22163722, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22163723, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22163724, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22163725, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22163726, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22163727, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22163728, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22163729, '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 = 22164380 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': 2734707, 'mtr_portfolio_id': 22164380, 'created_at': datetime.datetime(2025, 4, 9, 14, 58, 58), 'result': '0.026930630974863774', 'result_long': None, 'result_double': None}] Qualite : 0.026930630974863774 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22164380 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22164380_09-04-2025_14_58_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22164380 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_P22164380_09-04-2025_14_58_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22164383, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22164384, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22164385, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22164386, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22164387, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22164388, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22164389, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22164390, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22164391, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22164392, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22164393, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22164394, 'pht': 3726}}" where mtr_portfolio_id = 22164380 and dashboard_run_id = 1733967 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`=22164380 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9944658, 0.026930630974863774, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22164380_09-04-2025_14_58_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22164383, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22164384, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22164385, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22164386, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22164387, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22164388, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22164389, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22164390, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22164391, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22164392, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22164393, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22164394, '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 (22163476,22163702,22164380) result : ((1350781255,), (1350781286,), (1350782949,), (1350783068,), (1350783186,), (1350783253,), (1350783339,), (1350783405,), (1350783734,), (1350783773,), (1350783904,), (1350783896,), (1350783900,), (1350783952,), (1350784102,), (1350784129,), (1350784150,), (1350784177,), (1350784258,), (1350784415,), (1350784458,), (1350784549,), (1350784762,), (1350784775,), (1350784778,), (1350784781,), (1350784810,), (1350784813,), (1350784817,), (1350784821,), (1350784894,), (1350784899,), (1350784903,), (1350784942,), (1350784947,), (1350785013,), (1350785017,), (1350785090,), (1350785098,), (1350785102,), (1350785105,), (1350785228,), (1350785268,), (1350785274,), (1350785280,), (1350785323,), (1350785329,), (1350785339,), (1350785353,), (1350785431,), (1350785447,), (1350785458,), (1350785468,), (1350785562,), (1350785670,), (1350785679,), (1350785691,), (1350785728,), (1350785763,), (1350785907,), (1350785913,), (1350785930,), (1350786049,), (1350786028,), (1350786038,), (1350786043,), (1350786096,), (1350786107,), (1350786113,), (1350786119,), (1350786122,), (1350786149,), (1350786155,), (1350786165,), (1350786169,), (1350786174,), (1350786252,), (1350786255,), (1350786259,), (1350786263,), (1350786268,), (1350786408,), (1350786417,), (1350786422,), (1350786578,), (1350786581,), (1350786584,), (1350786587,), (1350786620,), (1350786623,), (1350786626,), (1350786674,), (1350786680,), (1350786684,), (1350786688,), (1350786692,), (1350786698,), (1350786746,), (1350786749,), (1350786756,), (1350786772,), (1350786788,), (1350786940,), (1350786953,), (1350786957,), (1350786979,), (1350787019,), (1350787022,), (1350787026,), (1350787029,), (1350787372,), (1350787409,), (1350787426,), (1350787450,), (1350787493,), (1350787515,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'09042025': {'nb_upload': 53, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22164380]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1350787515, 1350787493, 1350787450, 1350787426, 1350787409, 1350787372] map_info['map_portfolio_photo'] : {22164380: [1350787515, 1350787493, 1350787450, 1350787426, 1350787409, 1350787372, 1350787029, 1350787026, 1350787022, 1350787019, 1350786979, 1350786957, 1350786953, 1350786940, 1350786788, 1350786772, 1350786756, 1350786749, 1350786746, 1350786698, 1350786692, 1350786688, 1350786684, 1350786680, 1350786674, 1350786626, 1350786623, 1350786620, 1350786587, 1350786584, 1350786581, 1350786578, 1350786422, 1350786417, 1350786408, 1350786268, 1350786263, 1350786259, 1350786255, 1350786252, 1350786174, 1350786169, 1350786165, 1350786155, 1350786149, 1350786122, 1350786119, 1350786113, 1350786107, 1350786096, 1350786043, 1350786038, 1350786028]} final : True mtd_id 4302 list_pids : [1350787515, 1350787493, 1350787450, 1350787426, 1350787409, 1350787372] Looping around the photos to save general results len do output : 1 /22164380Didn'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, '2734707') ('4302', '22164380', '1350787515', None, None, None, None, None, '2734707') ('4302', None, None, None, None, None, None, None, '2734707') ('4302', '22164380', '1350787493', None, None, None, None, None, '2734707') ('4302', None, None, None, None, None, None, None, '2734707') ('4302', '22164380', '1350787450', None, None, None, None, None, '2734707') ('4302', None, None, None, None, None, None, None, '2734707') ('4302', '22164380', '1350787426', None, None, None, None, None, '2734707') ('4302', None, None, None, None, None, None, None, '2734707') ('4302', '22164380', '1350787409', None, None, None, None, None, '2734707') ('4302', None, None, None, None, None, None, None, '2734707') ('4302', '22164380', '1350787372', None, None, None, None, None, '2734707') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 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, '22164380', 'None', None, None, None, None, '2734707'), ('4302', '22164380', '1350787515', None, None, None, None, None, '2734707'), ('4302', '22164380', '1350787493', None, None, None, None, None, '2734707'), ('4302', '22164380', '1350787450', None, None, None, None, None, '2734707'), ('4302', '22164380', '1350787426', None, None, None, None, None, '2734707'), ('4302', '22164380', '1350787409', None, None, None, None, None, '2734707'), ('4302', '22164380', '1350787372', None, None, None, None, None, '2734707')] time used for this insertion : 0.0164029598236084 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.38491201400756836 time spend to save output : 0.0165860652923584 total time spend for step 5 : 0.40149807929992676 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 (2734707) 2.02user 2.39system 0:08.43elapsed 52%CPU (0avgtext+0avgdata 158684maxresident)k 7176inputs+9288outputs (107major+63756minor)pagefaults 0swaps