save_final save missing photos in datou_result : time spend for datou_step_exec : 0.10035061836242676 time spend to save output : 0.01686263084411621 total time spend for step 2 : 0.11721324920654297 step3:velours_tree Thu Apr 17 10:38:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {22128489: [{'Teint_Dans_La_Masse': 22128493, 'plastique': 22128494, 'mal_croppe': 22128495, 'autre_refus': 22128496, 'metal': 22128497, 'environnement': 22128498, 'cartonnette': 22128499, 'kraft': 22128500, 'flou': 22128501, 'Carton_gris': 22128502, 'papier': 22128503, 'Carton_brun': 22128504}]} input_args_next_step : {22128489: ()} output_args : {22128489: [{'Teint_Dans_La_Masse': 22128493, 'plastique': 22128494, 'mal_croppe': 22128495, 'autre_refus': 22128496, 'metal': 22128497, 'environnement': 22128498, 'cartonnette': 22128499, 'kraft': 22128500, 'flou': 22128501, 'Carton_gris': 22128502, 'papier': 22128503, 'Carton_brun': 22128504}]} args : 22128489 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 : ({'Teint_Dans_La_Masse': 22128493, 'plastique': 22128494, 'mal_croppe': 22128495, 'autre_refus': 22128496, 'metal': 22128497, 'environnement': 22128498, 'cartonnette': 22128499, 'kraft': 22128500, 'flou': 22128501, 'Carton_gris': 22128502, 'papier': 22128503, 'Carton_brun': 22128504},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22128489) 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([22128489]) 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.3556327819824219 time spend to save output : 6.222724914550781e-05 total time spend for step 3 : 0.3556950092315674 step4:send_mail_cod Thu Apr 17 10:38:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed 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 : {1350669987: ('0.03198993655707003',), 1350669984: ('0.03198993655707003',), 1350669981: ('0.03198993655707003',), 1350669931: ('0.03198993655707003',), 1350669929: ('0.03198993655707003',), 1350669924: ('0.03198993655707003',), 1350669920: ('0.03198993655707003',), 1350669916: ('0.03198993655707003',), 1350669911: ('0.03198993655707003',)} input_args_next_step : {1350669987: ()} output_args : {1350669987: ('0.03198993655707003',), 1350669984: ('0.03198993655707003',), 1350669981: ('0.03198993655707003',), 1350669931: ('0.03198993655707003',), 1350669929: ('0.03198993655707003',), 1350669924: ('0.03198993655707003',), 1350669920: ('0.03198993655707003',), 1350669916: ('0.03198993655707003',), 1350669911: ('0.03198993655707003',)} args : 1350669987 depend.output_id : 0 input_args_next_step : {1350669987: ('0.03198993655707003',), 1350669984: ()} output_args : {1350669987: ('0.03198993655707003',), 1350669984: ('0.03198993655707003',), 1350669981: ('0.03198993655707003',), 1350669931: ('0.03198993655707003',), 1350669929: ('0.03198993655707003',), 1350669924: ('0.03198993655707003',), 1350669920: ('0.03198993655707003',), 1350669916: ('0.03198993655707003',), 1350669911: ('0.03198993655707003',)} args : 1350669984 depend.output_id : 0 input_args_next_step : {1350669987: ('0.03198993655707003',), 1350669984: ('0.03198993655707003',), 1350669981: ()} output_args : {1350669987: ('0.03198993655707003',), 1350669984: ('0.03198993655707003',), 1350669981: ('0.03198993655707003',), 1350669931: ('0.03198993655707003',), 1350669929: ('0.03198993655707003',), 1350669924: ('0.03198993655707003',), 1350669920: ('0.03198993655707003',), 1350669916: ('0.03198993655707003',), 1350669911: ('0.03198993655707003',)} args : 1350669981 depend.output_id : 0 input_args_next_step : {1350669987: ('0.03198993655707003',), 1350669984: ('0.03198993655707003',), 1350669981: ('0.03198993655707003',), 1350669931: ()} output_args : {1350669987: ('0.03198993655707003',), 1350669984: ('0.03198993655707003',), 1350669981: ('0.03198993655707003',), 1350669931: ('0.03198993655707003',), 1350669929: ('0.03198993655707003',), 1350669924: ('0.03198993655707003',), 1350669920: ('0.03198993655707003',), 1350669916: ('0.03198993655707003',), 1350669911: ('0.03198993655707003',)} args : 1350669931 depend.output_id : 0 input_args_next_step : {1350669987: ('0.03198993655707003',), 1350669984: ('0.03198993655707003',), 1350669981: ('0.03198993655707003',), 1350669931: ('0.03198993655707003',), 1350669929: ()} output_args : {1350669987: ('0.03198993655707003',), 1350669984: ('0.03198993655707003',), 1350669981: ('0.03198993655707003',), 1350669931: ('0.03198993655707003',), 1350669929: ('0.03198993655707003',), 1350669924: ('0.03198993655707003',), 1350669920: ('0.03198993655707003',), 1350669916: ('0.03198993655707003',), 1350669911: ('0.03198993655707003',)} args : 1350669929 depend.output_id : 0 input_args_next_step : {1350669987: ('0.03198993655707003',), 1350669984: ('0.03198993655707003',), 1350669981: ('0.03198993655707003',), 1350669931: ('0.03198993655707003',), 1350669929: ('0.03198993655707003',), 1350669924: ()} output_args : {1350669987: ('0.03198993655707003',), 1350669984: ('0.03198993655707003',), 1350669981: ('0.03198993655707003',), 1350669931: ('0.03198993655707003',), 1350669929: ('0.03198993655707003',), 1350669924: ('0.03198993655707003',), 1350669920: ('0.03198993655707003',), 1350669916: ('0.03198993655707003',), 1350669911: ('0.03198993655707003',)} args : 1350669924 depend.output_id : 0 input_args_next_step : {1350669987: ('0.03198993655707003',), 1350669984: ('0.03198993655707003',), 1350669981: ('0.03198993655707003',), 1350669931: ('0.03198993655707003',), 1350669929: ('0.03198993655707003',), 1350669924: ('0.03198993655707003',), 1350669920: ()} output_args : {1350669987: ('0.03198993655707003',), 1350669984: ('0.03198993655707003',), 1350669981: ('0.03198993655707003',), 1350669931: ('0.03198993655707003',), 1350669929: ('0.03198993655707003',), 1350669924: ('0.03198993655707003',), 1350669920: ('0.03198993655707003',), 1350669916: ('0.03198993655707003',), 1350669911: ('0.03198993655707003',)} args : 1350669920 depend.output_id : 0 input_args_next_step : {1350669987: ('0.03198993655707003',), 1350669984: ('0.03198993655707003',), 1350669981: ('0.03198993655707003',), 1350669931: ('0.03198993655707003',), 1350669929: ('0.03198993655707003',), 1350669924: ('0.03198993655707003',), 1350669920: ('0.03198993655707003',), 1350669916: ()} output_args : {1350669987: ('0.03198993655707003',), 1350669984: ('0.03198993655707003',), 1350669981: ('0.03198993655707003',), 1350669931: ('0.03198993655707003',), 1350669929: ('0.03198993655707003',), 1350669924: ('0.03198993655707003',), 1350669920: ('0.03198993655707003',), 1350669916: ('0.03198993655707003',), 1350669911: ('0.03198993655707003',)} args : 1350669916 depend.output_id : 0 input_args_next_step : {1350669987: ('0.03198993655707003',), 1350669984: ('0.03198993655707003',), 1350669981: ('0.03198993655707003',), 1350669931: ('0.03198993655707003',), 1350669929: ('0.03198993655707003',), 1350669924: ('0.03198993655707003',), 1350669920: ('0.03198993655707003',), 1350669916: ('0.03198993655707003',), 1350669911: ()} output_args : {1350669987: ('0.03198993655707003',), 1350669984: ('0.03198993655707003',), 1350669981: ('0.03198993655707003',), 1350669931: ('0.03198993655707003',), 1350669929: ('0.03198993655707003',), 1350669924: ('0.03198993655707003',), 1350669920: ('0.03198993655707003',), 1350669916: ('0.03198993655707003',), 1350669911: ('0.03198993655707003',)} args : 1350669911 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 : {22128489: [{'Teint_Dans_La_Masse': 22128493, 'plastique': 22128494, 'mal_croppe': 22128495, 'autre_refus': 22128496, 'metal': 22128497, 'environnement': 22128498, 'cartonnette': 22128499, 'kraft': 22128500, 'flou': 22128501, 'Carton_gris': 22128502, 'papier': 22128503, 'Carton_brun': 22128504}]} input_args_next_step : {1350669987: ('0.03198993655707003',), 1350669984: ('0.03198993655707003',), 1350669981: ('0.03198993655707003',), 1350669931: ('0.03198993655707003',), 1350669929: ('0.03198993655707003',), 1350669924: ('0.03198993655707003',), 1350669920: ('0.03198993655707003',), 1350669916: ('0.03198993655707003',), 1350669911: ('0.03198993655707003',), 22128489: ()} output_args : {22128489: [{'Teint_Dans_La_Masse': 22128493, 'plastique': 22128494, 'mal_croppe': 22128495, 'autre_refus': 22128496, 'metal': 22128497, 'environnement': 22128498, 'cartonnette': 22128499, 'kraft': 22128500, 'flou': 22128501, 'Carton_gris': 22128502, 'papier': 22128503, 'Carton_brun': 22128504}]} args : 22128489 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 :10, first value : ('0.03198993655707003',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22128489) 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 (1350669987,1350669984,1350669981,1350669931,1350669929,1350669924,1350669920,1350669916,1350669911) Found this number of photos: 9 ##### Call download_photos : nb_thread : 5 begin to download photo : 1350669911 begin to download photo : 1350669920 begin to download photo : 1350669929 begin to download photo : 1350669981 begin to download photo : 1350669987 download finish for photo 1350669981 begin to download photo : 1350669984 download finish for photo 1350669929 begin to download photo : 1350669931 download finish for photo 1350669987 download finish for photo 1350669911 begin to download photo : 1350669916 download finish for photo 1350669920 begin to download photo : 1350669924 download finish for photo 1350669931 download finish for photo 1350669924 download finish for photo 1350669916 download finish for photo 1350669984 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 : 9 ; length of list_pids : 9 ; length of list_args : 9 results_Auto_P22128489_17-04-2025_10_39_00.pdf 22128494 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=22128494 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350669970: '1744879032_2806806_1350669806_b336ecb969aeebe5c36ba504ece16cbc_rle_crop_3751457713_0.png', 1350669971: '1744879032_2806806_1350669803_d6ebe37a5d511512d249dc680dfb1ab5_rle_crop_3751457723_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/507d2fe16130c4fa23125805afca4396_44389125.png change filename to text .imagette221284941744879140/ imagette221284941744879140/1744879032_2806806_1350669803_d6ebe37a5d511512d249dc680dfb1ab5_rle_crop_3751457723_0.png.png imagette221284941744879140/1744879032_2806806_1350669806_b336ecb969aeebe5c36ba504ece16cbc_rle_crop_3751457713_0.png.png imagette221284951744879140/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/9b385884bd91f6c3ae9b822d12df91ac_41882557.png imagette221284941744879140 22128495 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=22128495 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221284951744879140 22128496 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=22128496 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350669962: '1744879032_2806806_1350669810_073b6c232c1b09b25611daa0a9000798_rle_crop_3751457696_0.png', 1350669963: '1744879032_2806806_1350669803_d6ebe37a5d511512d249dc680dfb1ab5_rle_crop_3751457726_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/6cdd5a5985add2febcfdc1295a68efd5_37246119.png change filename to text .imagette221284961744879140/ imagette221284961744879140/1744879032_2806806_1350669803_d6ebe37a5d511512d249dc680dfb1ab5_rle_crop_3751457726_0.png.png imagette221284961744879140/1744879032_2806806_1350669810_073b6c232c1b09b25611daa0a9000798_rle_crop_3751457696_0.png.png imagette221284971744879140/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/b0be67988f98a45c2ca2312b0707547e_24787578.png imagette221284961744879140 22128497 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=22128497 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221284971744879140 22128499 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=22128499 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350669901: '1744878973_2806144_1350669669_eaa09314e996ff35843a42d1cdf9ba52_rle_crop_3751457099_0.png', 1350669902: '1744878973_2806144_1350669669_eaa09314e996ff35843a42d1cdf9ba52_rle_crop_3751457101_0.png', 1350669964: '1744879032_2806806_1350669862_22009167ea54c199371baf28074bc10a_rle_crop_3751457680_0.png', 1350669965: '1744879032_2806806_1350669810_073b6c232c1b09b25611daa0a9000798_rle_crop_3751457695_0.png', 1350669966: '1744879032_2806806_1350669806_b336ecb969aeebe5c36ba504ece16cbc_rle_crop_3751457715_0.png', 1350670046: '1744879091_2807370_1350669669_eaa09314e996ff35843a42d1cdf9ba52_rle_crop_3751457099_0.png', 1350670047: '1744879091_2807370_1350669669_eaa09314e996ff35843a42d1cdf9ba52_rle_crop_3751457101_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/ca3d1e8c852f7627688c1673b058fd3c_21897814.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/780e92618baf8b8f7cf80409094b9950_33113655.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/6c19d5c82e42512cc49190f0680410c7_59355650.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/853bf50a8823f0a7a40621dd1e1e060b_63698950.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/50eeab452323146d5666e15c5b53accf_89991487.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/ca3d1e8c852f7627688c1673b058fd3c_94211009.png change filename to text .imagette221284991744879140/ imagette221284991744879140/1744879091_2807370_1350669669_eaa09314e996ff35843a42d1cdf9ba52_rle_crop_3751457101_0.png.png imagette221284991744879140/1744879032_2806806_1350669862_22009167ea54c199371baf28074bc10a_rle_crop_3751457680_0.png.png imagette221284991744879140/1744879032_2806806_1350669806_b336ecb969aeebe5c36ba504ece16cbc_rle_crop_3751457715_0.png.png imagette221284991744879140/1744878973_2806144_1350669669_eaa09314e996ff35843a42d1cdf9ba52_rle_crop_3751457099_0.png.png imagette221284991744879140/1744879032_2806806_1350669810_073b6c232c1b09b25611daa0a9000798_rle_crop_3751457695_0.png.png imagette221284991744879140/1744878973_2806144_1350669669_eaa09314e996ff35843a42d1cdf9ba52_rle_crop_3751457101_0.png.png imagette221284991744879140/1744879091_2807370_1350669669_eaa09314e996ff35843a42d1cdf9ba52_rle_crop_3751457099_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/780e92618baf8b8f7cf80409094b9950_91667048.png imagette221284991744879140 22128500 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=22128500 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350669833: '1744878912_2805499_1350669738_af3fdacf87c378176d1bae4cb1cdcd57_rle_crop_3751456722_0.png'} change filename to text .imagette221285001744879140/ imagette221285001744879140/1744878912_2805499_1350669738_af3fdacf87c378176d1bae4cb1cdcd57_rle_crop_3751456722_0.png.png imagette221285011744879140/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/d755a3bee5443fbdc0139f169abc8d74_16268481.png imagette221285001744879140 22128501 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=22128501 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221285011744879140 22128493 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=22128493 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350669953: '1744879032_2806806_1350669862_22009167ea54c199371baf28074bc10a_rle_crop_3751457688_0.png', 1350670045: '1744879091_2807370_1350669653_bc2096e8bc8f6fea067c9b0b677fc256_rle_crop_3751457115_0.png', 1350670044: '1744879091_2807370_1350669653_bc2096e8bc8f6fea067c9b0b677fc256_rle_crop_3751457116_0.png', 1350670043: '1744879091_2807370_1350669669_eaa09314e996ff35843a42d1cdf9ba52_rle_crop_3751457102_0.png', 1350670042: '1744879091_2807370_1350669669_eaa09314e996ff35843a42d1cdf9ba52_rle_crop_3751457103_0.png', 1350670041: '1744879091_2807370_1350669672_12063302e943b5abaa52ccbd8cb9c0b9_rle_crop_3751457094_0.png', 1350670040: '1744879091_2807370_1350669672_12063302e943b5abaa52ccbd8cb9c0b9_rle_crop_3751457087_0.png', 1350670039: '1744879091_2807370_1350669672_12063302e943b5abaa52ccbd8cb9c0b9_rle_crop_3751457088_0.png', 1350670038: '1744879091_2807370_1350669672_12063302e943b5abaa52ccbd8cb9c0b9_rle_crop_3751457096_0.png', 1350670037: '1744879091_2807370_1350669748_eb91b0e15283a0f2cd734901f7b9bc64_rle_crop_3751457074_0.png', 1350670036: '1744879091_2807370_1350669748_eb91b0e15283a0f2cd734901f7b9bc64_rle_crop_3751457073_0.png', 1350670035: '1744879091_2807370_1350669748_eb91b0e15283a0f2cd734901f7b9bc64_rle_crop_3751457070_0.png', 1350669957: '1744879032_2806806_1350669803_d6ebe37a5d511512d249dc680dfb1ab5_rle_crop_3751457724_0.png', 1350669956: '1744879032_2806806_1350669803_d6ebe37a5d511512d249dc680dfb1ab5_rle_crop_3751457727_0.png', 1350669955: '1744879032_2806806_1350669803_d6ebe37a5d511512d249dc680dfb1ab5_rle_crop_3751457728_0.png', 1350669954: '1744879032_2806806_1350669806_b336ecb969aeebe5c36ba504ece16cbc_rle_crop_3751457717_0.png', 1350669707: '1744878791_2804252_1350669566_110823ac8990b68808c9b50701e6934d_rle_crop_3751456246_0.png', 1350669952: '1744879032_2806806_1350669862_22009167ea54c199371baf28074bc10a_rle_crop_3751457690_0.png', 1350669951: '1744879032_2806806_1350669862_22009167ea54c199371baf28074bc10a_rle_crop_3751457686_0.png', 1350669900: '1744878973_2806144_1350669653_bc2096e8bc8f6fea067c9b0b677fc256_rle_crop_3751457115_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/e3d612fa56da56ee12773651f43182b0_44527070.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/038075b4fa767faacc0b93c7c855568d_28544764.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/c5103d5caa2534270ef46c934c509d6a_11892172.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/ee72bd786daff9495e5877d9da23c28d_29062878.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/9860c440170e4ac94a1725ade6e35d06_61890147.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/99b1967bc99081fbbad83dbc558a3717_9469791.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/2cb2d1a2b80b8c7bf03094257854dd06_48295716.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/cb27071e1085029073041bea02e16b38_96385995.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/259ae55e5c3ae543360803bf1f5cf94d_28328183.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/7d477a5e897843e48656ce2bb55b1661_40208437.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/abcef9fd2677b78ba8c6d4a80675e595_35206743.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/c9d9848c91de5bbb08329eca7fcf8c76_83655670.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/ffc59ab7e5b664dbbcd764851a4beb5a_83145045.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/c24789c2e6a9228194e6792e2faca1e8_47020074.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/cf3b222dbad6c788202d976c54dff827_33839057.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/e4f597d0c299db4aac637b3cbc343b59_63446928.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/8fe4eb3851fb15cd8ee4a7df8dedeacb_37640688.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/161775a426b2bf028fe2c890c0c89c92_2950650.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/3365ae58f4cb580d56bf2d3db6275369_39312013.png change filename to text .imagette221284931744879140/ imagette221284931744879140/1744879091_2807370_1350669653_bc2096e8bc8f6fea067c9b0b677fc256_rle_crop_3751457115_0.png.png imagette221284931744879140/1744879091_2807370_1350669672_12063302e943b5abaa52ccbd8cb9c0b9_rle_crop_3751457088_0.png.png imagette221284931744879140/1744879032_2806806_1350669803_d6ebe37a5d511512d249dc680dfb1ab5_rle_crop_3751457728_0.png.png imagette221284931744879140/1744879091_2807370_1350669672_12063302e943b5abaa52ccbd8cb9c0b9_rle_crop_3751457087_0.png.png imagette221284931744879140/1744879091_2807370_1350669653_bc2096e8bc8f6fea067c9b0b677fc256_rle_crop_3751457116_0.png.png imagette221284931744879140/1744879032_2806806_1350669806_b336ecb969aeebe5c36ba504ece16cbc_rle_crop_3751457717_0.png.png imagette221284931744879140/1744879032_2806806_1350669862_22009167ea54c199371baf28074bc10a_rle_crop_3751457686_0.png.png imagette221284931744879140/1744879091_2807370_1350669672_12063302e943b5abaa52ccbd8cb9c0b9_rle_crop_3751457094_0.png.png imagette221284931744879140/1744878973_2806144_1350669653_bc2096e8bc8f6fea067c9b0b677fc256_rle_crop_3751457115_0.png.png imagette221284931744879140/1744879091_2807370_1350669748_eb91b0e15283a0f2cd734901f7b9bc64_rle_crop_3751457074_0.png.png imagette221284931744879140/1744879032_2806806_1350669803_d6ebe37a5d511512d249dc680dfb1ab5_rle_crop_3751457727_0.png.png imagette221284931744879140/1744878791_2804252_1350669566_110823ac8990b68808c9b50701e6934d_rle_crop_3751456246_0.png.png imagette221284931744879140/1744879032_2806806_1350669862_22009167ea54c199371baf28074bc10a_rle_crop_3751457688_0.png.png imagette221284931744879140/1744879091_2807370_1350669672_12063302e943b5abaa52ccbd8cb9c0b9_rle_crop_3751457096_0.png.png imagette221284931744879140/1744879091_2807370_1350669669_eaa09314e996ff35843a42d1cdf9ba52_rle_crop_3751457102_0.png.png imagette221284931744879140/1744879091_2807370_1350669669_eaa09314e996ff35843a42d1cdf9ba52_rle_crop_3751457103_0.png.png imagette221284931744879140/1744879032_2806806_1350669862_22009167ea54c199371baf28074bc10a_rle_crop_3751457690_0.png.png imagette221284931744879140/1744879091_2807370_1350669748_eb91b0e15283a0f2cd734901f7b9bc64_rle_crop_3751457073_0.png.png imagette221284931744879140/1744879032_2806806_1350669803_d6ebe37a5d511512d249dc680dfb1ab5_rle_crop_3751457724_0.png.png imagette221284931744879140/1744879091_2807370_1350669748_eb91b0e15283a0f2cd734901f7b9bc64_rle_crop_3751457070_0.png.png imagette221285021744879141/ wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/038075b4fa767faacc0b93c7c855568d_84377945.png imagette221284931744879140 22128502 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=22128502 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221285021744879141 22128504 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=22128504 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350669832: '1744878912_2805499_1350669738_af3fdacf87c378176d1bae4cb1cdcd57_rle_crop_3751456725_0.png', 1350669904: '1744878973_2806144_1350669672_12063302e943b5abaa52ccbd8cb9c0b9_rle_crop_3751457085_0.png', 1350669945: '1744879047_1006016_1350669814_212011812b1d466692b65afe8c5325d2_rle_crop_3751457705_0.png', 1350669968: '1744879032_2806806_1350669862_22009167ea54c199371baf28074bc10a_rle_crop_3751457683_0.png', 1350670051: '1744879091_2807370_1350669672_12063302e943b5abaa52ccbd8cb9c0b9_rle_crop_3751457085_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/9f26a9a28982b7c8d42bd8449afd8d70_20794038.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/edd67c90b51bea6ee38c71577c0b3070_67596860.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/7da47e18514116c2f4eb6c14f30417c6_35066196.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/3ceb092dce563bf25b2e49aa3402a9b6_50190185.png change filename to text .imagette221285041744879142/ imagette221285041744879142/1744878912_2805499_1350669738_af3fdacf87c378176d1bae4cb1cdcd57_rle_crop_3751456725_0.png.png imagette221285041744879142/1744879091_2807370_1350669672_12063302e943b5abaa52ccbd8cb9c0b9_rle_crop_3751457085_0.png.png imagette221285041744879142/1744879047_1006016_1350669814_212011812b1d466692b65afe8c5325d2_rle_crop_3751457705_0.png.png imagette221285041744879142/1744879032_2806806_1350669862_22009167ea54c199371baf28074bc10a_rle_crop_3751457683_0.png.png imagette221285041744879142/1744878973_2806144_1350669672_12063302e943b5abaa52ccbd8cb9c0b9_rle_crop_3751457085_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/edd67c90b51bea6ee38c71577c0b3070_72170963.png imagette221285041744879142 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22128489 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22128505,22128506,22128507,22128508,22128509,22128510,22128511,22128512,22128513,22128514,22128515,22128516?tags=Teint_Dans_La_Masse,plastique,mal_croppe,autre_refus,metal,environnement,cartonnette,kraft,flou,Carton_gris,papier,Carton_brun your option no_mail is active, we will not send the real mail to your client args[1350669987] : ('0.03198993655707003',) no score found for photo 1350669987 We are sending mail with results at report@fotonower.com args[1350669984] : ('0.03198993655707003',) no score found for photo 1350669984 We are sending mail with results at report@fotonower.com args[1350669981] : ('0.03198993655707003',) no score found for photo 1350669981 We are sending mail with results at report@fotonower.com args[1350669931] : ('0.03198993655707003',) no score found for photo 1350669931 We are sending mail with results at report@fotonower.com args[1350669929] : ('0.03198993655707003',) no score found for photo 1350669929 We are sending mail with results at report@fotonower.com args[1350669924] : ('0.03198993655707003',) no score found for photo 1350669924 We are sending mail with results at report@fotonower.com args[1350669920] : ('0.03198993655707003',) no score found for photo 1350669920 We are sending mail with results at report@fotonower.com args[1350669916] : ('0.03198993655707003',) no score found for photo 1350669916 We are sending mail with results at report@fotonower.com args[1350669911] : ('0.03198993655707003',) no score found for photo 1350669911 We are sending mail with results at report@fotonower.com refus_total : 0.03198993655707003 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=22128489 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_P22128489_17-04-2025_10_39_00.pdf results_Auto_P22128489_17-04-2025_10_39_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22128489_17-04-2025_10_39_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','22128489','results_Auto_P22128489_17-04-2025_10_39_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22128489_17-04-2025_10_39_00.pdf','pdf','','0.17','0.03198993655707003') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22128489]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1350669987, 1350669984, 1350669981, 1350669931, 1350669929, 1350669924, 1350669920, 1350669916, 1350669911] map_info['map_portfolio_photo'] : {22128489: [1350669987, 1350669984, 1350669981, 1350669931, 1350669929, 1350669924, 1350669920, 1350669916, 1350669911, 1350669862, 1350669859, 1350669814, 1350669810, 1350669806, 1350669803, 1350669748, 1350669743, 1350669738, 1350669727, 1350669678, 1350669672, 1350669669, 1350669653, 1350669583, 1350669580, 1350669573, 1350669566]} final : False mtd_id 4302 list_pids : [1350669987, 1350669984, 1350669981, 1350669931, 1350669929, 1350669924, 1350669920, 1350669916, 1350669911] 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, '2730186') ('4302', '22128489', '1350669987', None, None, None, None, None, '2730186') ('4302', None, None, None, None, None, None, None, '2730186') ('4302', '22128489', '1350669984', None, None, None, None, None, '2730186') ('4302', None, None, None, None, None, None, None, '2730186') ('4302', '22128489', '1350669981', None, None, None, None, None, '2730186') ('4302', None, None, None, None, None, None, None, '2730186') ('4302', '22128489', '1350669931', None, None, None, None, None, '2730186') ('4302', None, None, None, None, None, None, None, '2730186') ('4302', '22128489', '1350669929', None, None, None, None, None, '2730186') ('4302', None, None, None, None, None, None, None, '2730186') ('4302', '22128489', '1350669924', None, None, None, None, None, '2730186') ('4302', None, None, None, None, None, None, None, '2730186') ('4302', '22128489', '1350669920', None, None, None, None, None, '2730186') ('4302', None, None, None, None, None, None, None, '2730186') ('4302', '22128489', '1350669916', None, None, None, None, None, '2730186') ('4302', None, None, None, None, None, None, None, '2730186') ('4302', '22128489', '1350669911', None, None, None, None, None, '2730186') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 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', '22128489', '1350669987', None, None, None, None, None, '2730186'), ('4302', '22128489', '1350669984', None, None, None, None, None, '2730186'), ('4302', '22128489', '1350669981', None, None, None, None, None, '2730186'), ('4302', '22128489', '1350669931', None, None, None, None, None, '2730186'), ('4302', '22128489', '1350669929', None, None, None, None, None, '2730186'), ('4302', '22128489', '1350669924', None, None, None, None, None, '2730186'), ('4302', '22128489', '1350669920', None, None, None, None, None, '2730186'), ('4302', '22128489', '1350669916', None, None, None, None, None, '2730186'), ('4302', '22128489', '1350669911', None, None, None, None, None, '2730186')] time used for this insertion : 0.020416736602783203 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.5136945247650146 time spend to save output : 0.020646333694458008 total time spend for step 4 : 3.5343408584594727 step5:split_time_score Thu Apr 17 10:39:03 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 : ['22128489'] 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 : [('22128489',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22128489) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1350669987: {'path': 'temp/1744879139_3719214_1350669987_e2c31aa7a98d373bc048dd8bc3b495fe.jpg', 'extension': 'jpg'}, 1350669929: {'path': 'temp/1744879139_3719214_1350669929_70387e3dac13267d4694c88bfb5d7c9a.jpg', 'extension': 'jpg'}, 1350669931: {'path': 'temp/1744879139_3719214_1350669931_7dedce63f895fdd3dd07b35392b00314.jpg', 'extension': 'jpg'}, 1350669920: {'path': 'temp/1744879139_3719214_1350669920_4211a7908305950a485edc0e6798c284.jpg', 'extension': 'jpg'}, 1350669924: {'path': 'temp/1744879139_3719214_1350669924_c5ed1acc0ac729afc7b088482e6d43eb.jpg', 'extension': 'jpg'}, 1350669911: {'path': 'temp/1744879139_3719214_1350669911_be47cf1eb0a1906c61b0db2877e1b284.jpg', 'extension': 'jpg'}, 1350669916: {'path': 'temp/1744879139_3719214_1350669916_025b1c39baa76abecf2eff56f748d859.jpg', 'extension': 'jpg'}, 1350669981: {'path': 'temp/1744879139_3719214_1350669981_336bcbe8a0a9a48b896b5de27eef6c7d.jpg', 'extension': 'jpg'}, 1350669984: {'path': 'temp/1744879139_3719214_1350669984_db7d04b95897a1419fb9e12ff27b66bf.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 = 22128489; (('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 = 22128489 group by h (('10', 27),) 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=22128489 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 (22128489) 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 (22128489) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 17042025 22128489 Nombre de photos uploadées : 27 / 23040 (0%) 17042025 22128489 Nombre de photos taguées (types de déchets): 0 / 27 (0%) 17042025 22128489 Nombre de photos taguées (volume) : 0 / 27 (0%) [{'photo_id': 1350669583, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/ac947e4c7b383658b914c83d50b277d6.jpg', 'username': None, 'uploaded_at': 1744878728, 'text': 'image_17042025_10_30_04_10138.jpg'}, {'photo_id': 1350669580, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/edcd8ff38a1adc42bda3194a3df85907.jpg', 'username': None, 'uploaded_at': 1744878728, 'text': 'image_17042025_10_31_03_009148m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1350669573, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/ad479a022c041d3b819767af73142661.jpg', 'username': None, 'uploaded_at': 1744878728, 'text': 'image_17042025_10_31_14_010135m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1350669566, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/110823ac8990b68808c9b50701e6934d.jpg', 'username': None, 'uploaded_at': 1744878728, 'text': 'image_17042025_10_31_34_010149m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.1457672119140625e-06 elapsed_time : order_list_meta_photo_and_scores 6.67572021484375e-06 ??????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0023381710052490234 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22128489, '2025-04-17' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1721208,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.029637813568115234 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= 1721208 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1721208, 'dashboard_run_id': 1730233, 'mtr_portfolio_id': 22126585, 'dashboard_result_id': 9928336, '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_P22126585_17-04-2025_10_03_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22126623, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22126624, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22126625, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22126626, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22126627, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22126628, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22126629, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22126630, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22126631, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22126632, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22126633, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22126634, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1730233, 'mtr_portfolio_id': 22127126, 'dashboard_result_id': 9928337, '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_P22127126_17-04-2025_10_17_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22127127, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22127128, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22127129, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22127130, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22127131, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22127132, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22127133, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22127134, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22127135, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22127136, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22127137, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22127138, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1730233, 'mtr_portfolio_id': 22127830, 'dashboard_result_id': 9928338, '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_P22127830_17-04-2025_10_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22127831, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22127832, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22127833, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22127834, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22127835, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22127836, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22127837, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22127838, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22127839, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22127840, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22127841, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22127842, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1730233, 'mtr_portfolio_id': 22128489, 'dashboard_result_id': 9928339, '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_P22128489_17-04-2025_10_37_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22128493, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22128494, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22128495, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22128496, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22128497, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22128498, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22128499, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22128500, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22128501, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22128502, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22128503, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22128504, '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 = 22126585 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': 2730017, 'mtr_portfolio_id': 22126585, 'created_at': datetime.datetime(2025, 4, 17, 10, 3), 'result': '0.039803100705294046', 'result_long': None, 'result_double': None}] Qualite : 0.039803100705294046 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22126585 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22126585_17-04-2025_10_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22126585 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_P22126585_17-04-2025_10_03_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22126623, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22126624, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22126625, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22126626, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22126627, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22126628, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22126629, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22126630, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22126631, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22126632, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22126633, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22126634, 'pht': 3726}}" where mtr_portfolio_id = 22126585 and dashboard_run_id = 1730233 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`=22126585 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9928336, 0.039803100705294046, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22126585_17-04-2025_10_03_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22126623, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22126624, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22126625, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22126626, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22126627, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22126628, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22126629, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22126630, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22126631, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22126632, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22126633, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22126634, '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 = 22127126 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': 2730080, 'mtr_portfolio_id': 22127126, 'created_at': datetime.datetime(2025, 4, 17, 10, 16, 59), 'result': '0.04161163822967295', 'result_long': None, 'result_double': None}] Qualite : 0.04161163822967295 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22127126 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22127126_17-04-2025_10_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22127126 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_P22127126_17-04-2025_10_17_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22127127, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22127128, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22127129, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22127130, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22127131, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22127132, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22127133, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22127134, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22127135, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22127136, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22127137, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22127138, 'pht': 3726}}" where mtr_portfolio_id = 22127126 and dashboard_run_id = 1730233 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`=22127126 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9928337, 0.04161163822967295, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22127126_17-04-2025_10_17_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22127127, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22127128, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22127129, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22127130, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22127131, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22127132, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22127133, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22127134, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22127135, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22127136, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22127137, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22127138, '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 = 22127830 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': 2730130, 'mtr_portfolio_id': 22127830, 'created_at': datetime.datetime(2025, 4, 17, 10, 32, 59), 'result': '0.05113692324651091', 'result_long': None, 'result_double': None}] Qualite : 0.05113692324651091 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22127830 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22127830_17-04-2025_10_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22127830 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_P22127830_17-04-2025_10_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22127831, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22127832, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22127833, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22127834, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22127835, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22127836, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22127837, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22127838, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22127839, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22127840, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22127841, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22127842, 'pht': 3726}}" where mtr_portfolio_id = 22127830 and dashboard_run_id = 1730233 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`=22127830 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9928338, 0.05113692324651091, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22127830_17-04-2025_10_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22127831, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22127832, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22127833, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22127834, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22127835, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22127836, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22127837, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22127838, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22127839, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22127840, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22127841, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22127842, '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 = 22128489 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': 2730186, 'mtr_portfolio_id': 22128489, 'created_at': datetime.datetime(2025, 4, 17, 10, 38, 59), 'result': '0.03198993655707003', 'result_long': None, 'result_double': None}] Qualite : 0.03198993655707003 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22128489 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22128489_17-04-2025_10_39_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22128489 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_P22128489_17-04-2025_10_39_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22128493, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22128494, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22128495, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22128496, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22128497, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22128498, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22128499, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22128500, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22128501, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22128502, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22128503, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22128504, 'pht': 3726}}" where mtr_portfolio_id = 22128489 and dashboard_run_id = 1730233 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`=22128489 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9928339, 0.03198993655707003, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22128489_17-04-2025_10_39_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22128493, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22128494, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22128495, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22128496, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22128497, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22128498, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22128499, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22128500, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22128501, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22128502, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22128503, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22128504, '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 (22126585,22127126,22127830,22128489) result : ((1350660450,), (1350660456,), (1350660462,), (1350660539,), (1350660545,), (1350660549,), (1350660696,), (1350660701,), (1350660705,), (1350660749,), (1350660755,), (1350660759,), (1350660798,), (1350660802,), (1350660806,), (1350660810,), (1350660814,), (1350660862,), (1350660869,), (1350660875,), (1350660886,), (1350661486,), (1350661494,), (1350661523,), (1350661549,), (1350661578,), (1350661589,), (1350661724,), (1350661730,), (1350661734,), (1350661739,), (1350661742,), (1350661897,), (1350661901,), (1350661909,), (1350661916,), (1350661919,), (1350661923,), (1350661961,), (1350661966,), (1350661973,), (1350661983,), (1350662289,), (1350662296,), (1350662298,), (1350662301,), (1350662306,), (1350662344,), (1350662348,), (1350662353,), (1350662356,), (1350662361,), (1350662368,), (1350662409,), (1350662411,), (1350662413,), (1350662415,), (1350662596,), (1350662647,), (1350662676,), (1350662714,), (1350663174,), (1350663201,), (1350663217,), (1350663225,), (1350663234,), (1350663407,), (1350663290,), (1350663318,), (1350663348,), (1350663377,), (1350663724,), (1350663764,), (1350663805,), (1350664242,), (1350664270,), (1350664300,), (1350664341,), (1350664517,), (1350664523,), (1350664528,), (1350664533,), (1350664538,), (1350664542,), (1350664815,), (1350664840,), (1350664849,), (1350665039,), (1350665049,), (1350665062,), (1350665067,), (1350665546,), (1350665562,), (1350665572,), (1350665590,), (1350665602,), (1350665620,), (1350665729,), (1350665750,), (1350665758,), (1350665762,), (1350665920,), (1350665924,), (1350665980,), (1350666129,), (1350666139,), (1350666143,), (1350666150,), (1350666162,), (1350666167,), (1350666393,), (1350666407,), (1350666412,), (1350666416,), (1350666540,), (1350666563,), (1350666567,), (1350666571,), (1350666598,), (1350666797,), (1350666830,), (1350667474,), (1350667482,), (1350667511,), (1350667589,), (1350667597,), (1350667793,), (1350667846,), (1350667851,), (1350667856,), (1350667952,), (1350667907,), (1350667913,), (1350667946,), (1350668010,), (1350668020,), (1350668039,), (1350668060,), (1350668210,), (1350668225,), (1350668355,), (1350668359,), (1350668436,), (1350668572,), (1350668576,), (1350668631,), (1350668637,), (1350668643,), (1350668648,), (1350668651,), (1350668657,), (1350668696,), (1350668701,), (1350668706,), (1350668711,), (1350668746,), (1350668752,), (1350668757,), (1350668762,), (1350668814,), (1350668818,), (1350668822,), (1350668826,), (1350668839,), (1350668843,), (1350668910,), (1350668948,), (1350669030,), (1350669063,), (1350669078,), (1350669091,), (1350669139,), (1350669145,), (1350669149,), (1350669208,), (1350669213,), (1350669218,), (1350669222,), (1350669303,), (1350669306,), (1350669314,), (1350669318,), (1350669322,), (1350669370,), (1350669375,), (1350669380,), (1350669385,), (1350669449,), (1350669566,), (1350669573,), (1350669580,), (1350669583,), (1350669653,), (1350669669,), (1350669672,), (1350669678,), (1350669727,), (1350669738,), (1350669743,), (1350669748,), (1350669803,), (1350669806,), (1350669810,), (1350669814,), (1350669859,), (1350669862,), (1350669911,), (1350669916,), (1350669920,), (1350669924,), (1350669929,), (1350669931,), (1350669981,), (1350669984,), (1350669987,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'17042025': {'nb_upload': 27, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22128489]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1350669987, 1350669984, 1350669981, 1350669931, 1350669929, 1350669924, 1350669920, 1350669916, 1350669911] map_info['map_portfolio_photo'] : {22128489: [1350669987, 1350669984, 1350669981, 1350669931, 1350669929, 1350669924, 1350669920, 1350669916, 1350669911, 1350669862, 1350669859, 1350669814, 1350669810, 1350669806, 1350669803, 1350669748, 1350669743, 1350669738, 1350669727, 1350669678, 1350669672, 1350669669, 1350669653, 1350669583, 1350669580, 1350669573, 1350669566]} final : True mtd_id 4302 list_pids : [1350669987, 1350669984, 1350669981, 1350669931, 1350669929, 1350669924, 1350669920, 1350669916, 1350669911] Looping around the photos to save general results len do output : 1 /22128489Didn'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, '2730186') ('4302', '22128489', '1350669987', None, None, None, None, None, '2730186') ('4302', None, None, None, None, None, None, None, '2730186') ('4302', '22128489', '1350669984', None, None, None, None, None, '2730186') ('4302', None, None, None, None, None, None, None, '2730186') ('4302', '22128489', '1350669981', None, None, None, None, None, '2730186') ('4302', None, None, None, None, None, None, None, '2730186') ('4302', '22128489', '1350669931', None, None, None, None, None, '2730186') ('4302', None, None, None, None, None, None, None, '2730186') ('4302', '22128489', '1350669929', None, None, None, None, None, '2730186') ('4302', None, None, None, None, None, None, None, '2730186') ('4302', '22128489', '1350669924', None, None, None, None, None, '2730186') ('4302', None, None, None, None, None, None, None, '2730186') ('4302', '22128489', '1350669920', None, None, None, None, None, '2730186') ('4302', None, None, None, None, None, None, None, '2730186') ('4302', '22128489', '1350669916', None, None, None, None, None, '2730186') ('4302', None, None, None, None, None, None, None, '2730186') ('4302', '22128489', '1350669911', None, None, None, None, None, '2730186') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22128489', 'None', None, None, None, None, '2730186'), ('4302', '22128489', '1350669987', None, None, None, None, None, '2730186'), ('4302', '22128489', '1350669984', None, None, None, None, None, '2730186'), ('4302', '22128489', '1350669981', None, None, None, None, None, '2730186'), ('4302', '22128489', '1350669931', None, None, None, None, None, '2730186'), ('4302', '22128489', '1350669929', None, None, None, None, None, '2730186'), ('4302', '22128489', '1350669924', None, None, None, None, None, '2730186'), ('4302', '22128489', '1350669920', None, None, None, None, None, '2730186'), ('4302', '22128489', '1350669916', None, None, None, None, None, '2730186'), ('4302', '22128489', '1350669911', None, None, None, None, None, '2730186')] time used for this insertion : 0.01669788360595703 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3560609817504883 time spend to save output : 0.016907215118408203 total time spend for step 5 : 0.3729681968688965 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 (2730186) 2.19user 2.50system 0:09.10elapsed 51%CPU (0avgtext+0avgdata 158448maxresident)k 20600inputs+8832outputs (100major+70159minor)pagefaults 0swaps