save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4884915351867676 time spend to save output : 3.0703067779541016 total time spend for step 1 : 3.558798313140869 step2:final Wed Apr 9 23:39:01 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 (22189118) 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 22189118 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1350929044,1350929710,1350929607,1350929483,1350929349,1350929325,1350929297,1350930402,1350930368,1350930294,1350930229,1350930153,1350930074,1350930820,1350930797,1350930751,1350930707,1350931296,1350931285,1350931278,1350931270,1350931240,1350931366,1350931358,1350931355,1350931700,1350931684,1350931647,1350931625,1350931605,1350931867,1350931851); 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([22189118]) Inside saveOutput : final : False verbose : True original output for save of step final : {1350931867: ('0.05468203444158902',), 1350931851: ('0.05468203444158902',), 1350931700: ('0.05468203444158902',), 1350931684: ('0.05468203444158902',), 1350931647: ('0.05468203444158902',), 1350931625: ('0.05468203444158902',), 1350931605: ('0.05468203444158902',)} new output for save of step final : {1350931867: ('0.05468203444158902',), 1350931851: ('0.05468203444158902',), 1350931700: ('0.05468203444158902',), 1350931684: ('0.05468203444158902',), 1350931647: ('0.05468203444158902',), 1350931625: ('0.05468203444158902',), 1350931605: ('0.05468203444158902',)} [1350931867, 1350931851, 1350931700, 1350931684, 1350931647, 1350931625, 1350931605] map_info['map_portfolio_photo'] : {22189118: [1350931867, 1350931851, 1350931700, 1350931684, 1350931647, 1350931625, 1350931605, 1350931366, 1350931358, 1350931355, 1350931296, 1350931285, 1350931278, 1350931270, 1350931240, 1350930820, 1350930797, 1350930751, 1350930707, 1350930402, 1350930368, 1350930294, 1350930229, 1350930153, 1350930074, 1350929710, 1350929607, 1350929483, 1350929349, 1350929325, 1350929297, 1350929044]} final : False mtd_id 4302 list_pids : [1350931867, 1350931851, 1350931700, 1350931684, 1350931647, 1350931625, 1350931605] Looping around the photos to save general results len do output : 7 /1350931867.Didn't retrieve data . /1350931851.Didn't retrieve data . /1350931700.Didn't retrieve data . /1350931684.Didn't retrieve data . /1350931647.Didn't retrieve data . /1350931625.Didn't retrieve data . /1350931605.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, '2736806') ('4302', '22189118', '1350931867', None, None, None, None, None, '2736806') ('4302', None, None, None, None, None, None, None, '2736806') ('4302', '22189118', '1350931851', None, None, None, None, None, '2736806') ('4302', None, None, None, None, None, None, None, '2736806') ('4302', '22189118', '1350931700', None, None, None, None, None, '2736806') ('4302', None, None, None, None, None, None, None, '2736806') ('4302', '22189118', '1350931684', None, None, None, None, None, '2736806') ('4302', None, None, None, None, None, None, None, '2736806') ('4302', '22189118', '1350931647', None, None, None, None, None, '2736806') ('4302', None, None, None, None, None, None, None, '2736806') ('4302', '22189118', '1350931625', None, None, None, None, None, '2736806') ('4302', None, None, None, None, None, None, None, '2736806') ('4302', '22189118', '1350931605', None, None, None, None, None, '2736806') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 21 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', '22189118', '1350931867', '0.05468203444158902', None, None, None, None, '2736806'), ('4302', '22189118', '1350931851', '0.05468203444158902', None, None, None, None, '2736806'), ('4302', '22189118', '1350931700', '0.05468203444158902', None, None, None, None, '2736806'), ('4302', '22189118', '1350931684', '0.05468203444158902', None, None, None, None, '2736806'), ('4302', '22189118', '1350931647', '0.05468203444158902', None, None, None, None, '2736806'), ('4302', '22189118', '1350931625', '0.05468203444158902', None, None, None, None, '2736806'), ('4302', '22189118', '1350931605', '0.05468203444158902', None, None, None, None, '2736806')] time used for this insertion : 0.015639066696166992 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06790804862976074 time spend to save output : 0.01595902442932129 total time spend for step 2 : 0.08386707305908203 step3:velours_tree Wed Apr 9 23:39:01 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 : {22189118: [{'flou': 22189139, 'Carton_gris': 22189140, 'Carton_brun': 22189141, 'kraft': 22189142, 'autre_refus': 22189143, 'metal': 22189144, 'mal_croppe': 22189145, 'plastique': 22189146, 'Teint_Dans_La_Masse': 22189147, 'environnement': 22189148, 'papier': 22189149, 'cartonnette': 22189150}]} input_args_next_step : {22189118: ()} output_args : {22189118: [{'flou': 22189139, 'Carton_gris': 22189140, 'Carton_brun': 22189141, 'kraft': 22189142, 'autre_refus': 22189143, 'metal': 22189144, 'mal_croppe': 22189145, 'plastique': 22189146, 'Teint_Dans_La_Masse': 22189147, 'environnement': 22189148, 'papier': 22189149, 'cartonnette': 22189150}]} args : 22189118 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 : ({'flou': 22189139, 'Carton_gris': 22189140, 'Carton_brun': 22189141, 'kraft': 22189142, 'autre_refus': 22189143, 'metal': 22189144, 'mal_croppe': 22189145, 'plastique': 22189146, 'Teint_Dans_La_Masse': 22189147, 'environnement': 22189148, 'papier': 22189149, 'cartonnette': 22189150},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22189118) 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([22189118]) 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.28043031692504883 time spend to save output : 4.124641418457031e-05 total time spend for step 3 : 0.2804715633392334 step4:send_mail_cod Wed Apr 9 23:39:01 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 : {1350931867: ('0.05468203444158902',), 1350931851: ('0.05468203444158902',), 1350931700: ('0.05468203444158902',), 1350931684: ('0.05468203444158902',), 1350931647: ('0.05468203444158902',), 1350931625: ('0.05468203444158902',), 1350931605: ('0.05468203444158902',)} input_args_next_step : {1350931867: ()} output_args : {1350931867: ('0.05468203444158902',), 1350931851: ('0.05468203444158902',), 1350931700: ('0.05468203444158902',), 1350931684: ('0.05468203444158902',), 1350931647: ('0.05468203444158902',), 1350931625: ('0.05468203444158902',), 1350931605: ('0.05468203444158902',)} args : 1350931867 depend.output_id : 0 input_args_next_step : {1350931867: ('0.05468203444158902',), 1350931851: ()} output_args : {1350931867: ('0.05468203444158902',), 1350931851: ('0.05468203444158902',), 1350931700: ('0.05468203444158902',), 1350931684: ('0.05468203444158902',), 1350931647: ('0.05468203444158902',), 1350931625: ('0.05468203444158902',), 1350931605: ('0.05468203444158902',)} args : 1350931851 depend.output_id : 0 input_args_next_step : {1350931867: ('0.05468203444158902',), 1350931851: ('0.05468203444158902',), 1350931700: ()} output_args : {1350931867: ('0.05468203444158902',), 1350931851: ('0.05468203444158902',), 1350931700: ('0.05468203444158902',), 1350931684: ('0.05468203444158902',), 1350931647: ('0.05468203444158902',), 1350931625: ('0.05468203444158902',), 1350931605: ('0.05468203444158902',)} args : 1350931700 depend.output_id : 0 input_args_next_step : {1350931867: ('0.05468203444158902',), 1350931851: ('0.05468203444158902',), 1350931700: ('0.05468203444158902',), 1350931684: ()} output_args : {1350931867: ('0.05468203444158902',), 1350931851: ('0.05468203444158902',), 1350931700: ('0.05468203444158902',), 1350931684: ('0.05468203444158902',), 1350931647: ('0.05468203444158902',), 1350931625: ('0.05468203444158902',), 1350931605: ('0.05468203444158902',)} args : 1350931684 depend.output_id : 0 input_args_next_step : {1350931867: ('0.05468203444158902',), 1350931851: ('0.05468203444158902',), 1350931700: ('0.05468203444158902',), 1350931684: ('0.05468203444158902',), 1350931647: ()} output_args : {1350931867: ('0.05468203444158902',), 1350931851: ('0.05468203444158902',), 1350931700: ('0.05468203444158902',), 1350931684: ('0.05468203444158902',), 1350931647: ('0.05468203444158902',), 1350931625: ('0.05468203444158902',), 1350931605: ('0.05468203444158902',)} args : 1350931647 depend.output_id : 0 input_args_next_step : {1350931867: ('0.05468203444158902',), 1350931851: ('0.05468203444158902',), 1350931700: ('0.05468203444158902',), 1350931684: ('0.05468203444158902',), 1350931647: ('0.05468203444158902',), 1350931625: ()} output_args : {1350931867: ('0.05468203444158902',), 1350931851: ('0.05468203444158902',), 1350931700: ('0.05468203444158902',), 1350931684: ('0.05468203444158902',), 1350931647: ('0.05468203444158902',), 1350931625: ('0.05468203444158902',), 1350931605: ('0.05468203444158902',)} args : 1350931625 depend.output_id : 0 input_args_next_step : {1350931867: ('0.05468203444158902',), 1350931851: ('0.05468203444158902',), 1350931700: ('0.05468203444158902',), 1350931684: ('0.05468203444158902',), 1350931647: ('0.05468203444158902',), 1350931625: ('0.05468203444158902',), 1350931605: ()} output_args : {1350931867: ('0.05468203444158902',), 1350931851: ('0.05468203444158902',), 1350931700: ('0.05468203444158902',), 1350931684: ('0.05468203444158902',), 1350931647: ('0.05468203444158902',), 1350931625: ('0.05468203444158902',), 1350931605: ('0.05468203444158902',)} args : 1350931605 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 : {22189118: [{'flou': 22189139, 'Carton_gris': 22189140, 'Carton_brun': 22189141, 'kraft': 22189142, 'autre_refus': 22189143, 'metal': 22189144, 'mal_croppe': 22189145, 'plastique': 22189146, 'Teint_Dans_La_Masse': 22189147, 'environnement': 22189148, 'papier': 22189149, 'cartonnette': 22189150}]} input_args_next_step : {1350931867: ('0.05468203444158902',), 1350931851: ('0.05468203444158902',), 1350931700: ('0.05468203444158902',), 1350931684: ('0.05468203444158902',), 1350931647: ('0.05468203444158902',), 1350931625: ('0.05468203444158902',), 1350931605: ('0.05468203444158902',), 22189118: ()} output_args : {22189118: [{'flou': 22189139, 'Carton_gris': 22189140, 'Carton_brun': 22189141, 'kraft': 22189142, 'autre_refus': 22189143, 'metal': 22189144, 'mal_croppe': 22189145, 'plastique': 22189146, 'Teint_Dans_La_Masse': 22189147, 'environnement': 22189148, 'papier': 22189149, 'cartonnette': 22189150}]} args : 22189118 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 :8, first value : ('0.05468203444158902',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22189118) 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 (1350931867,1350931851,1350931700,1350931684,1350931647,1350931625,1350931605) Found this number of photos: 7 ##### Call download_photos : nb_thread : 5 begin to download photo : 1350931605 begin to download photo : 1350931647 begin to download photo : 1350931700 begin to download photo : 1350931867 download finish for photo 1350931867 download finish for photo 1350931605 begin to download photo : 1350931625 download finish for photo 1350931700 begin to download photo : 1350931851 download finish for photo 1350931647 begin to download photo : 1350931684 download finish for photo 1350931851 download finish for photo 1350931625 download finish for photo 1350931684 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette221891391744234742/ length of list_filenames : 7 ; length of list_pids : 7 ; length of list_args : 7 results_Auto_P22189118_09-04-2025_23_39_02.pdf 22189139 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=22189139 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221891391744234742 22189142 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=22189142 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350931384: '1744234532_3359004_1350930707_5d748d33a8c615ece27842a6cdd299ba_rle_crop_3752622987_0.png', 1350931560: '1744234551_3359291_1350930153_5d6c5c004027031052c59481b6def8dc_rle_crop_3752623400_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/dc5f5fa4ed854a62bfeb396543211185_50638017.png change filename to text .imagette221891421744234742/ imagette221891421744234742/1744234551_3359291_1350930153_5d6c5c004027031052c59481b6def8dc_rle_crop_3752623400_0.png.png imagette221891421744234742/1744234532_3359004_1350930707_5d748d33a8c615ece27842a6cdd299ba_rle_crop_3752622987_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/c045e539fbda5b8c04bad5748c3a05ae_22932954.png imagette221891421744234742 22189143 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=22189143 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350931368: '1744234532_3359004_1350930707_5d748d33a8c615ece27842a6cdd299ba_rle_crop_3752622981_0.png', 1350931530: '1744234551_3359291_1350930294_176c7a5e563a745a91ce3aa63afa34ca_rle_crop_3752623362_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/6370d1c24eeea15f22f53cfe5740af10_47575414.png change filename to text .imagette221891431744234742/ imagette221891431744234742/1744234551_3359291_1350930294_176c7a5e563a745a91ce3aa63afa34ca_rle_crop_3752623362_0.png.png imagette221891431744234742/1744234532_3359004_1350930707_5d748d33a8c615ece27842a6cdd299ba_rle_crop_3752622981_0.png.png imagette221891441744234742/ imagette221891451744234742/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/b197e27c0a14a5e19045bca13222d171_57154648.png imagette221891431744234742 22189144 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=22189144 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221891441744234742 22189145 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=22189145 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221891451744234742 22189146 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=22189146 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350931553: '1744234551_3359291_1350930294_176c7a5e563a745a91ce3aa63afa34ca_rle_crop_3752623368_0.png', 1350931676: '1744234572_3359647_1350929483_c93971dfabe40b39b57f9244abdf780e_rle_crop_3752623493_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/b6100275802aebf4caa6906a65539e7e_50259498.png change filename to text .imagette221891461744234742/ imagette221891461744234742/1744234551_3359291_1350930294_176c7a5e563a745a91ce3aa63afa34ca_rle_crop_3752623368_0.png.png imagette221891461744234742/1744234572_3359647_1350929483_c93971dfabe40b39b57f9244abdf780e_rle_crop_3752623493_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/f6b7c7b509956301709e783ba302dded_2233175.png imagette221891461744234742 22189150 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=22189150 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350931540: '1744234551_3359291_1350930153_5d6c5c004027031052c59481b6def8dc_rle_crop_3752623401_0.png'} change filename to text .imagette221891501744234742/ imagette221891501744234742/1744234551_3359291_1350930153_5d6c5c004027031052c59481b6def8dc_rle_crop_3752623401_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/7358c6dbe9765b70eb6b48120fdd331f_74795713.png imagette221891501744234742 22189140 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=22189140 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350931375: '1744234532_3359004_1350930751_d7e0b3a3375394ee632904271571c251_rle_crop_3752622955_0.png', 1350931376: '1744234532_3359004_1350930751_d7e0b3a3375394ee632904271571c251_rle_crop_3752622965_0.png', 1350931377: '1744234532_3359004_1350930707_5d748d33a8c615ece27842a6cdd299ba_rle_crop_3752622980_0.png', 1350931378: '1744234532_3359004_1350930707_5d748d33a8c615ece27842a6cdd299ba_rle_crop_3752622985_0.png', 1350931379: '1744234532_3359004_1350930707_5d748d33a8c615ece27842a6cdd299ba_rle_crop_3752622979_0.png', 1350931535: '1744234551_3359291_1350930368_3b26bddb1d4d2b7c0f2a484a031b4943_rle_crop_3752623198_0.png', 1350931648: '1744234572_3359647_1350930402_75bd4b2429124ecf4e24a34a1666147d_rle_crop_3752623461_0.png', 1350931649: '1744234572_3359647_1350929349_2ce6179fd48cf6050065f7ce8c126083_rle_crop_3752623510_0.png', 1350931650: '1744234572_3359647_1350929325_ef61170891c370cda7fc106f0265b854_rle_crop_3752624024_0.png', 1350931651: '1744234572_3359647_1350929325_ef61170891c370cda7fc106f0265b854_rle_crop_3752624017_0.png', 1350931652: '1744234572_3359647_1350929297_edb8dd2943250af9e71c01c7c9d379fa_rle_crop_3752624814_0.png', 1350931871: '1744234676_3360981_1350931355_fe4b4a24093b41057b675eca04794643_rle_crop_3752626602_0.png', 1350931872: '1744234676_3360981_1350931355_fe4b4a24093b41057b675eca04794643_rle_crop_3752626601_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/b7157ed94585e9cbc12f721115fbf1d3_29239086.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/709b7e8e44d62938db8bef2a98099e2a_61824349.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/1c94f974aa8ed040c235bff941c600ea_27140017.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/6174101802cf0e9bae4ef1b3012fcef3_10344846.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/705012a3256d0916e29e553d90d48314_64865854.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/ee968849af48cadf8df32c1c383e0ef4_35389760.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/8311f55956ec8883b6ae924f75d05532_75470906.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/6510053ce80305c3d4593d9c63743669_41392028.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/1f02ca518461c4d6154db5c114d137d5_58017821.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/0fb795b27e19ecae983f82410fb0a6cf_54393473.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/f44379539df698d0ada5ff9e3162f6cb_90050303.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/dd861a23cc6c448e313aaaca58d1c987_1396164.png change filename to text .imagette221891401744234742/ imagette221891401744234742/1744234532_3359004_1350930751_d7e0b3a3375394ee632904271571c251_rle_crop_3752622955_0.png.png imagette221891401744234742/1744234572_3359647_1350929349_2ce6179fd48cf6050065f7ce8c126083_rle_crop_3752623510_0.png.png imagette221891401744234742/1744234532_3359004_1350930707_5d748d33a8c615ece27842a6cdd299ba_rle_crop_3752622979_0.png.png imagette221891401744234742/1744234572_3359647_1350929297_edb8dd2943250af9e71c01c7c9d379fa_rle_crop_3752624814_0.png.png imagette221891401744234742/1744234572_3359647_1350929325_ef61170891c370cda7fc106f0265b854_rle_crop_3752624024_0.png.png imagette221891401744234742/1744234532_3359004_1350930707_5d748d33a8c615ece27842a6cdd299ba_rle_crop_3752622980_0.png.png imagette221891401744234742/1744234572_3359647_1350930402_75bd4b2429124ecf4e24a34a1666147d_rle_crop_3752623461_0.png.png imagette221891401744234742/1744234532_3359004_1350930707_5d748d33a8c615ece27842a6cdd299ba_rle_crop_3752622985_0.png.png imagette221891401744234742/1744234551_3359291_1350930368_3b26bddb1d4d2b7c0f2a484a031b4943_rle_crop_3752623198_0.png.png imagette221891401744234742/1744234676_3360981_1350931355_fe4b4a24093b41057b675eca04794643_rle_crop_3752626602_0.png.png imagette221891401744234742/1744234676_3360981_1350931355_fe4b4a24093b41057b675eca04794643_rle_crop_3752626601_0.png.png imagette221891401744234742/1744234532_3359004_1350930751_d7e0b3a3375394ee632904271571c251_rle_crop_3752622965_0.png.png imagette221891401744234742/1744234572_3359647_1350929325_ef61170891c370cda7fc106f0265b854_rle_crop_3752624017_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/4c29655ed7520c538644744c3e781984_76057405.png imagette221891401744234742 22189141 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=22189141 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350931381: '1744234532_3359004_1350930751_d7e0b3a3375394ee632904271571c251_rle_crop_3752622966_0.png', 1350931382: '1744234532_3359004_1350930751_d7e0b3a3375394ee632904271571c251_rle_crop_3752622959_0.png', 1350931549: '1744234551_3359291_1350930294_176c7a5e563a745a91ce3aa63afa34ca_rle_crop_3752623365_0.png', 1350931550: '1744234551_3359291_1350930074_0ac307be76fd8da87641cae25beac425_rle_crop_3752623418_0.png', 1350931666: '1744234572_3359647_1350929483_c93971dfabe40b39b57f9244abdf780e_rle_crop_3752623495_0.png', 1350931667: '1744234572_3359647_1350929349_2ce6179fd48cf6050065f7ce8c126083_rle_crop_3752623507_0.png', 1350931669: '1744234572_3359647_1350929325_ef61170891c370cda7fc106f0265b854_rle_crop_3752624021_0.png', 1350931670: '1744234572_3359647_1350929325_ef61170891c370cda7fc106f0265b854_rle_crop_3752624023_0.png', 1350931671: '1744234572_3359647_1350929297_edb8dd2943250af9e71c01c7c9d379fa_rle_crop_3752624821_0.png', 1350931672: '1744234572_3359647_1350929297_edb8dd2943250af9e71c01c7c9d379fa_rle_crop_3752624820_0.png', 1350931876: '1744234676_3360981_1350931355_fe4b4a24093b41057b675eca04794643_rle_crop_3752626607_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/44e29418804b31b867c99f11bd86d017_18776599.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/a4a35645b2e2ad9484600839062f99f4_44001353.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/444f6387ec999ad85e1609fdf9cb31a4_61156625.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/8d0c38bb34a5d98fd4de67e27aad809d_67392073.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/08cbdb0073009ecf92f3434c089d466e_58860490.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/6901d386b583044a6091c2903e901c88_73950914.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/d9d9eb7b80670f3e5be6ec78d10a1f7a_60925396.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/cd65f0577012e334f865ccd5e4dfcebd_21054993.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/a069128ad52ba521b7100822fad561f9_38912577.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/59e1112615f2233861696227f2195099_11613606.png change filename to text .imagette221891411744234743/ imagette221891411744234743/1744234572_3359647_1350929297_edb8dd2943250af9e71c01c7c9d379fa_rle_crop_3752624820_0.png.png imagette221891411744234743/1744234572_3359647_1350929297_edb8dd2943250af9e71c01c7c9d379fa_rle_crop_3752624821_0.png.png imagette221891411744234743/1744234551_3359291_1350930294_176c7a5e563a745a91ce3aa63afa34ca_rle_crop_3752623365_0.png.png imagette221891411744234743/1744234551_3359291_1350930074_0ac307be76fd8da87641cae25beac425_rle_crop_3752623418_0.png.png imagette221891411744234743/1744234572_3359647_1350929349_2ce6179fd48cf6050065f7ce8c126083_rle_crop_3752623507_0.png.png imagette221891411744234743/1744234572_3359647_1350929483_c93971dfabe40b39b57f9244abdf780e_rle_crop_3752623495_0.png.png imagette221891411744234743/1744234532_3359004_1350930751_d7e0b3a3375394ee632904271571c251_rle_crop_3752622959_0.png.png imagette221891411744234743/1744234572_3359647_1350929325_ef61170891c370cda7fc106f0265b854_rle_crop_3752624021_0.png.png imagette221891411744234743/1744234676_3360981_1350931355_fe4b4a24093b41057b675eca04794643_rle_crop_3752626607_0.png.png imagette221891411744234743/1744234532_3359004_1350930751_d7e0b3a3375394ee632904271571c251_rle_crop_3752622966_0.png.png imagette221891411744234743/1744234572_3359647_1350929325_ef61170891c370cda7fc106f0265b854_rle_crop_3752624023_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/c3bfcf5fbfaf6a6df73c32bdcab454e0_68271914.png imagette221891411744234743 22189147 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=22189147 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350931367: '1744234532_3359004_1350930751_d7e0b3a3375394ee632904271571c251_rle_crop_3752622964_0.png', 1350931524: '1744234551_3359291_1350930368_3b26bddb1d4d2b7c0f2a484a031b4943_rle_crop_3752623202_0.png', 1350931525: '1744234551_3359291_1350930229_ad9ec88d9bf767e99ee772eaf239bfb7_rle_crop_3752623383_0.png', 1350931526: '1744234551_3359291_1350930229_ad9ec88d9bf767e99ee772eaf239bfb7_rle_crop_3752623381_0.png', 1350931870: '1744234676_3360981_1350931355_fe4b4a24093b41057b675eca04794643_rle_crop_3752626608_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/73dc3b6eb86fab39b05884dc80efdaca_79929268.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/df2e0d4f1d0b1db3fbe5f0be3802fc80_90885929.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/ba3d8512e6969315fbda474a978e42c2_75593894.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/2bf6fc1054047560c933ffc84d329cc8_81542234.png change filename to text .imagette221891471744234744/ imagette221891471744234744/1744234676_3360981_1350931355_fe4b4a24093b41057b675eca04794643_rle_crop_3752626608_0.png.png imagette221891471744234744/1744234551_3359291_1350930229_ad9ec88d9bf767e99ee772eaf239bfb7_rle_crop_3752623383_0.png.png imagette221891471744234744/1744234532_3359004_1350930751_d7e0b3a3375394ee632904271571c251_rle_crop_3752622964_0.png.png imagette221891471744234744/1744234551_3359291_1350930368_3b26bddb1d4d2b7c0f2a484a031b4943_rle_crop_3752623202_0.png.png imagette221891471744234744/1744234551_3359291_1350930229_ad9ec88d9bf767e99ee772eaf239bfb7_rle_crop_3752623381_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/b5e1ce6fdba920843a60917625fdd083_99614336.png imagette221891471744234744 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22189118 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22189175,22189176,22189177,22189178,22189179,22189180,22189181,22189182,22189183,22189184,22189185,22189186?tags=flou,Carton_gris,Carton_brun,kraft,autre_refus,metal,mal_croppe,plastique,Teint_Dans_La_Masse,environnement,papier,cartonnette your option no_mail is active, we will not send the real mail to your client args[1350931867] : ('0.05468203444158902',) no score found for photo 1350931867 We are sending mail with results at report@fotonower.com args[1350931851] : ('0.05468203444158902',) no score found for photo 1350931851 We are sending mail with results at report@fotonower.com args[1350931700] : ('0.05468203444158902',) no score found for photo 1350931700 We are sending mail with results at report@fotonower.com args[1350931684] : ('0.05468203444158902',) no score found for photo 1350931684 We are sending mail with results at report@fotonower.com args[1350931647] : ('0.05468203444158902',) no score found for photo 1350931647 We are sending mail with results at report@fotonower.com args[1350931625] : ('0.05468203444158902',) no score found for photo 1350931625 We are sending mail with results at report@fotonower.com args[1350931605] : ('0.05468203444158902',) no score found for photo 1350931605 We are sending mail with results at report@fotonower.com refus_total : 0.05468203444158902 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=22189118 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_P22189118_09-04-2025_23_39_02.pdf results_Auto_P22189118_09-04-2025_23_39_02.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22189118_09-04-2025_23_39_02.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','22189118','results_Auto_P22189118_09-04-2025_23_39_02.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22189118_09-04-2025_23_39_02.pdf','pdf','','0.18','0.05468203444158902') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22189118]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1350931867, 1350931851, 1350931700, 1350931684, 1350931647, 1350931625, 1350931605] map_info['map_portfolio_photo'] : {22189118: [1350931867, 1350931851, 1350931700, 1350931684, 1350931647, 1350931625, 1350931605, 1350931366, 1350931358, 1350931355, 1350931296, 1350931285, 1350931278, 1350931270, 1350931240, 1350930820, 1350930797, 1350930751, 1350930707, 1350930402, 1350930368, 1350930294, 1350930229, 1350930153, 1350930074, 1350929710, 1350929607, 1350929483, 1350929349, 1350929325, 1350929297, 1350929044]} final : False mtd_id 4302 list_pids : [1350931867, 1350931851, 1350931700, 1350931684, 1350931647, 1350931625, 1350931605] 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, '2736806') ('4302', '22189118', '1350931867', None, None, None, None, None, '2736806') ('4302', None, None, None, None, None, None, None, '2736806') ('4302', '22189118', '1350931851', None, None, None, None, None, '2736806') ('4302', None, None, None, None, None, None, None, '2736806') ('4302', '22189118', '1350931700', None, None, None, None, None, '2736806') ('4302', None, None, None, None, None, None, None, '2736806') ('4302', '22189118', '1350931684', None, None, None, None, None, '2736806') ('4302', None, None, None, None, None, None, None, '2736806') ('4302', '22189118', '1350931647', None, None, None, None, None, '2736806') ('4302', None, None, None, None, None, None, None, '2736806') ('4302', '22189118', '1350931625', None, None, None, None, None, '2736806') ('4302', None, None, None, None, None, None, None, '2736806') ('4302', '22189118', '1350931605', None, None, None, None, None, '2736806') 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', '22189118', '1350931867', None, None, None, None, None, '2736806'), ('4302', '22189118', '1350931851', None, None, None, None, None, '2736806'), ('4302', '22189118', '1350931700', None, None, None, None, None, '2736806'), ('4302', '22189118', '1350931684', None, None, None, None, None, '2736806'), ('4302', '22189118', '1350931647', None, None, None, None, None, '2736806'), ('4302', '22189118', '1350931625', None, None, None, None, None, '2736806'), ('4302', '22189118', '1350931605', None, None, None, None, None, '2736806')] time used for this insertion : 0.016757726669311523 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.406214952468872 time spend to save output : 0.01697707176208496 total time spend for step 4 : 3.423192024230957 step5:split_time_score Wed Apr 9 23:39:05 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 : ['22189118'] 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 : [('22189118',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22189118) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1350931867: {'path': 'temp/1744234741_3554847_1350931867_d0fcf21aac4b71724cbf0dfe0e488458.jpg', 'extension': 'jpg'}, 1350931700: {'path': 'temp/1744234741_3554847_1350931700_072f7f6ff1aa7deeb21f7a11a13fab91.jpg', 'extension': 'jpg'}, 1350931851: {'path': 'temp/1744234741_3554847_1350931851_af483db40b42b4003a142168033cc957.jpg', 'extension': 'jpg'}, 1350931605: {'path': 'temp/1744234741_3554847_1350931605_ab1cdb0d4c0418e4d723a2ec8204f4a5.jpg', 'extension': 'jpg'}, 1350931625: {'path': 'temp/1744234741_3554847_1350931625_7c2041caccbea48091cd1be1d315234f.jpg', 'extension': 'jpg'}, 1350931647: {'path': 'temp/1744234741_3554847_1350931647_2037fd6c0bb1a02d8c6226ac995002e9.jpg', 'extension': 'jpg'}, 1350931684: {'path': 'temp/1744234741_3554847_1350931684_d960258c36118b72974ed6cd43cb3772.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 = 22189118; (('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 = 22189118 group by h (('23', 32),) 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=22189118 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 (22189118) 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 (22189118) 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 22189118 Nombre de photos uploadées : 32 / 23040 (0%) 09042025 22189118 Nombre de photos taguées (types de déchets): 0 / 32 (0%) 09042025 22189118 Nombre de photos taguées (volume) : 0 / 32 (0%) [{'photo_id': 1350929044, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/ae6970d86c6460f95c5514cb83cff02e.jpg', 'username': None, 'uploaded_at': 1744234268, 'text': 'image_09042025_23_30_04_10136.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1350929710, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/087a5428720b00aa9c697e15f7a28258.jpg', 'username': None, 'uploaded_at': 1744234327, 'text': 'image_09042025_23_30_53_10135.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1350929607, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/4369ec2aa8cd7863bd96e107f68ba4d1.jpg', 'username': None, 'uploaded_at': 1744234327, 'text': 'image_09042025_23_31_04_10164.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1350929483, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/c93971dfabe40b39b57f9244abdf780e.jpg', 'username': None, 'uploaded_at': 1744234327, 'text': 'image_09042025_23_31_14_10137.jpg 2e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.384185791015625e-06 elapsed_time : order_list_meta_photo_and_scores 5.7220458984375e-06 ???????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.001447439193725586 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22189118, '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.027042627334594727 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': 1735808, 'mtr_portfolio_id': 22185668, 'dashboard_result_id': 9964207, '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_P22185668_09-04-2025_23_02_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22185710, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22185711, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22185712, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22185713, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22185714, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22185715, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22185716, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22185717, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22185718, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22185719, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22185720, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22185721, 'pht': 3726}}"}, {'dashboat_entry_day': 1725367, 'dashboard_run_id': 1735808, 'mtr_portfolio_id': 22187287, 'dashboard_result_id': 9964208, '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_P22187287_09-04-2025_23_17_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22187314, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22187315, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22187316, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22187317, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22187318, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22187319, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22187320, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22187321, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22187322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22187323, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22187324, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22187325, 'pht': 3726}}"}, {'dashboat_entry_day': 1725367, 'dashboard_run_id': 1735808, 'mtr_portfolio_id': 22188222, 'dashboard_result_id': 9964209, '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_P22188222_09-04-2025_23_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22188252, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22188254, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22188255, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22188256, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22188258, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22188259, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22188261, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22188262, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22188263, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22188265, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22188266, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22188267, 'pht': 3726}}"}, {'dashboat_entry_day': 1725367, 'dashboard_run_id': 1735808, 'mtr_portfolio_id': 22189118, 'dashboard_result_id': 9964210, '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_P22189118_09-04-2025_23_37_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22189139, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22189140, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22189141, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22189142, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22189143, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22189144, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22189145, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22189146, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22189147, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22189148, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22189149, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22189150, '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 = 22185668 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': 2736666, 'mtr_portfolio_id': 22185668, 'created_at': datetime.datetime(2025, 4, 9, 23, 2, 57), 'result': '0.04279523989388568', 'result_long': None, 'result_double': None}] Qualite : 0.04279523989388568 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22185668 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22185668_09-04-2025_23_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22185668 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_P22185668_09-04-2025_23_02_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22185710, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22185711, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22185712, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22185713, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22185714, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22185715, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22185716, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22185717, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22185718, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22185719, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22185720, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22185721, 'pht': 3726}}" where mtr_portfolio_id = 22185668 and dashboard_run_id = 1735808 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`=22185668 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9964207, 0.04279523989388568, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22185668_09-04-2025_23_02_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22185710, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22185711, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22185712, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22185713, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22185714, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22185715, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22185716, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22185717, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22185718, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22185719, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22185720, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22185721, '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 = 22187287 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': 2736726, 'mtr_portfolio_id': 22187287, 'created_at': datetime.datetime(2025, 4, 9, 23, 17), 'result': '0.05059518419050184', 'result_long': None, 'result_double': None}] Qualite : 0.05059518419050184 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22187287 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22187287_09-04-2025_23_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22187287 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_P22187287_09-04-2025_23_17_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22187314, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22187315, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22187316, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22187317, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22187318, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22187319, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22187320, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22187321, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22187322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22187323, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22187324, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22187325, 'pht': 3726}}" where mtr_portfolio_id = 22187287 and dashboard_run_id = 1735808 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`=22187287 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9964208, 0.05059518419050184, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22187287_09-04-2025_23_17_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22187314, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22187315, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22187316, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22187317, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22187318, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22187319, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22187320, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22187321, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22187322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22187323, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22187324, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22187325, '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 = 22188222 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': 2736771, 'mtr_portfolio_id': 22188222, 'created_at': datetime.datetime(2025, 4, 9, 23, 32, 59), 'result': '0.056069396585396114', 'result_long': None, 'result_double': None}] Qualite : 0.056069396585396114 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22188222 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22188222_09-04-2025_23_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22188222 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_P22188222_09-04-2025_23_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22188252, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22188254, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22188255, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22188256, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22188258, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22188259, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22188261, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22188262, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22188263, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22188265, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22188266, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22188267, 'pht': 3726}}" where mtr_portfolio_id = 22188222 and dashboard_run_id = 1735808 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`=22188222 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9964209, 0.056069396585396114, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22188222_09-04-2025_23_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22188252, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22188254, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22188255, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22188256, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22188258, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22188259, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22188261, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22188262, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22188263, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22188265, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22188266, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22188267, '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 = 22189118 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': 2736806, 'mtr_portfolio_id': 22189118, 'created_at': datetime.datetime(2025, 4, 9, 23, 39, 1), 'result': '0.05468203444158902', 'result_long': None, 'result_double': None}] Qualite : 0.05468203444158902 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22189118 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22189118_09-04-2025_23_39_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22189118 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_P22189118_09-04-2025_23_39_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22189139, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22189140, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22189141, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22189142, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22189143, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22189144, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22189145, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22189146, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22189147, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22189148, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22189149, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22189150, 'pht': 3726}}" where mtr_portfolio_id = 22189118 and dashboard_run_id = 1735808 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`=22189118 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9964210, 0.05468203444158902, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22189118_09-04-2025_23_39_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22189139, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22189140, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22189141, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22189142, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22189143, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22189144, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22189145, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22189146, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22189147, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22189148, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22189149, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22189150, '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 (22185668,22187287,22188222,22189118) result : ((1350904113,), (1350904166,), (1350904217,), (1350904865,), (1350904925,), (1350904968,), (1350904990,), (1350905001,), (1350905010,), (1350905244,), (1350905272,), (1350905317,), (1350905358,), (1350905674,), (1350905699,), (1350905724,), (1350905753,), (1350905809,), (1350905847,), (1350906124,), (1350906232,), (1350906266,), (1350906464,), (1350907067,), (1350907327,), (1350907828,), (1350908038,), (1350908097,), (1350908194,), (1350908291,), (1350908338,), (1350908601,), (1350908752,), (1350908879,), (1350909161,), (1350909294,), (1350909444,), (1350909646,), (1350909714,), (1350909823,), (1350909858,), (1350909956,), (1350910042,), (1350910094,), (1350910492,), (1350910515,), (1350910568,), (1350910614,), (1350910647,), (1350910699,), (1350911048,), (1350911121,), (1350911147,), (1350911181,), (1350911481,), (1350911485,), (1350911489,), (1350911512,), (1350911532,), (1350911992,), (1350912015,), (1350912054,), (1350912084,), (1350912443,), (1350912468,), (1350912491,), (1350912516,), (1350912536,), (1350912560,), (1350913204,), (1350913234,), (1350913260,), (1350913281,), (1350913354,), (1350913358,), (1350913374,), (1350913377,), (1350913400,), (1350913406,), (1350913427,), (1350913434,), (1350913454,), (1350913461,), (1350913650,), (1350913556,), (1350913579,), (1350913602,), (1350913627,), (1350913811,), (1350913829,), (1350913853,), (1350914502,), (1350914544,), (1350914614,), (1350914655,), (1350914748,), (1350915665,), (1350915693,), (1350915845,), (1350915966,), (1350916033,), (1350916176,), (1350916554,), (1350916603,), (1350916643,), (1350917262,), (1350917312,), (1350917436,), (1350917465,), (1350917532,), (1350917615,), (1350917803,), (1350917860,), (1350917904,), (1350917955,), (1350918027,), (1350918125,), (1350919005,), (1350919080,), (1350919153,), (1350919252,), (1350919314,), (1350919367,), (1350919979,), (1350920007,), (1350920036,), (1350920345,), (1350920367,), (1350920435,), (1350920499,), (1350920542,), (1350920553,), (1350920868,), (1350920895,), (1350920907,), (1350920982,), (1350921020,), (1350921231,), (1350921236,), (1350921247,), (1350921278,), (1350921339,), (1350921342,), (1350921344,), (1350921348,), (1350921355,), (1350921861,), (1350921931,), (1350921966,), (1350922162,), (1350922205,), (1350922238,), (1350922395,), (1350922421,), (1350922650,), (1350922582,), (1350922628,), (1350922648,), (1350922728,), (1350923044,), (1350923111,), (1350923133,), (1350923190,), (1350923217,), (1350923242,), (1350923288,), (1350923299,), (1350923323,), (1350923334,), (1350923365,), (1350923614,), (1350923662,), (1350923713,), (1350923786,), (1350924402,), (1350924433,), (1350925600,), (1350926838,), (1350926911,), (1350927442,), (1350927460,), (1350927504,), (1350928010,), (1350928014,), (1350928018,), (1350928019,), (1350928029,), (1350928050,), (1350928248,), (1350928291,), (1350928317,), (1350928343,), (1350928355,), (1350928537,), (1350928540,), (1350928673,), (1350928721,), (1350928731,), (1350928801,), (1350928981,), (1350928985,), (1350928989,), (1350929048,), (1350929044,), (1350929297,), (1350929325,), (1350929349,), (1350929483,), (1350929607,), (1350929710,), (1350930074,), (1350930153,), (1350930229,), (1350930294,), (1350930368,), (1350930402,), (1350930707,), (1350930751,), (1350930797,), (1350930820,), (1350931240,), (1350931270,), (1350931278,), (1350931285,), (1350931296,), (1350931355,), (1350931358,), (1350931366,), (1350931605,), (1350931625,), (1350931647,), (1350931684,), (1350931700,), (1350931851,), (1350931867,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'09042025': {'nb_upload': 32, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22189118]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1350931867, 1350931851, 1350931700, 1350931684, 1350931647, 1350931625, 1350931605] map_info['map_portfolio_photo'] : {22189118: [1350931867, 1350931851, 1350931700, 1350931684, 1350931647, 1350931625, 1350931605, 1350931366, 1350931358, 1350931355, 1350931296, 1350931285, 1350931278, 1350931270, 1350931240, 1350930820, 1350930797, 1350930751, 1350930707, 1350930402, 1350930368, 1350930294, 1350930229, 1350930153, 1350930074, 1350929710, 1350929607, 1350929483, 1350929349, 1350929325, 1350929297, 1350929044]} final : True mtd_id 4302 list_pids : [1350931867, 1350931851, 1350931700, 1350931684, 1350931647, 1350931625, 1350931605] Looping around the photos to save general results len do output : 1 /22189118Didn'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, '2736806') ('4302', '22189118', '1350931867', None, None, None, None, None, '2736806') ('4302', None, None, None, None, None, None, None, '2736806') ('4302', '22189118', '1350931851', None, None, None, None, None, '2736806') ('4302', None, None, None, None, None, None, None, '2736806') ('4302', '22189118', '1350931700', None, None, None, None, None, '2736806') ('4302', None, None, None, None, None, None, None, '2736806') ('4302', '22189118', '1350931684', None, None, None, None, None, '2736806') ('4302', None, None, None, None, None, None, None, '2736806') ('4302', '22189118', '1350931647', None, None, None, None, None, '2736806') ('4302', None, None, None, None, None, None, None, '2736806') ('4302', '22189118', '1350931625', None, None, None, None, None, '2736806') ('4302', None, None, None, None, None, None, None, '2736806') ('4302', '22189118', '1350931605', None, None, None, None, None, '2736806') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 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, '22189118', 'None', None, None, None, None, '2736806'), ('4302', '22189118', '1350931867', None, None, None, None, None, '2736806'), ('4302', '22189118', '1350931851', None, None, None, None, None, '2736806'), ('4302', '22189118', '1350931700', None, None, None, None, None, '2736806'), ('4302', '22189118', '1350931684', None, None, None, None, None, '2736806'), ('4302', '22189118', '1350931647', None, None, None, None, None, '2736806'), ('4302', '22189118', '1350931625', None, None, None, None, None, '2736806'), ('4302', '22189118', '1350931605', None, None, None, None, None, '2736806')] time used for this insertion : 0.01597285270690918 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3619680404663086 time spend to save output : 0.016148090362548828 total time spend for step 5 : 0.3781161308288574 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 (2736806) 2.00user 2.43system 0:10.81elapsed 41%CPU (0avgtext+0avgdata 159092maxresident)k 320inputs+8704outputs (5major+63906minor)pagefaults 0swaps