save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0780329704284668 time spend to save output : 0.017000675201416016 total time spend for step 2 : 0.09503364562988281 step3:velours_tree Thu Apr 10 03:21: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 : {22199233: [{'autre_refus': 22199236, 'kraft': 22199237, 'Carton_gris': 22199238, 'mal_croppe': 22199239, 'metal': 22199240, 'Carton_brun': 22199241, 'cartonnette': 22199242, 'papier': 22199243, 'plastique': 22199244, 'flou': 22199245, 'Teint_Dans_La_Masse': 22199246, 'environnement': 22199247}]} input_args_next_step : {22199233: ()} output_args : {22199233: [{'autre_refus': 22199236, 'kraft': 22199237, 'Carton_gris': 22199238, 'mal_croppe': 22199239, 'metal': 22199240, 'Carton_brun': 22199241, 'cartonnette': 22199242, 'papier': 22199243, 'plastique': 22199244, 'flou': 22199245, 'Teint_Dans_La_Masse': 22199246, 'environnement': 22199247}]} args : 22199233 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 : ({'autre_refus': 22199236, 'kraft': 22199237, 'Carton_gris': 22199238, 'mal_croppe': 22199239, 'metal': 22199240, 'Carton_brun': 22199241, 'cartonnette': 22199242, 'papier': 22199243, 'plastique': 22199244, 'flou': 22199245, 'Teint_Dans_La_Masse': 22199246, 'environnement': 22199247},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22199233) 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([22199233]) 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.4396054744720459 time spend to save output : 0.00011658668518066406 total time spend for step 3 : 0.43972206115722656 step4:send_mail_cod Thu Apr 10 03:21:02 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed 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 : {1351002472: ('0.10381572675062772',), 1351002400: ('0.10381572675062772',), 1351002398: ('0.10381572675062772',), 1351002395: ('0.10381572675062772',), 1351002390: ('0.10381572675062772',), 1351002281: ('0.10381572675062772',), 1351002278: ('0.10381572675062772',), 1351002275: ('0.10381572675062772',), 1351002260: ('0.10381572675062772',), 1351002230: ('0.10381572675062772',)} input_args_next_step : {1351002472: ()} output_args : {1351002472: ('0.10381572675062772',), 1351002400: ('0.10381572675062772',), 1351002398: ('0.10381572675062772',), 1351002395: ('0.10381572675062772',), 1351002390: ('0.10381572675062772',), 1351002281: ('0.10381572675062772',), 1351002278: ('0.10381572675062772',), 1351002275: ('0.10381572675062772',), 1351002260: ('0.10381572675062772',), 1351002230: ('0.10381572675062772',)} args : 1351002472 depend.output_id : 0 input_args_next_step : {1351002472: ('0.10381572675062772',), 1351002400: ()} output_args : {1351002472: ('0.10381572675062772',), 1351002400: ('0.10381572675062772',), 1351002398: ('0.10381572675062772',), 1351002395: ('0.10381572675062772',), 1351002390: ('0.10381572675062772',), 1351002281: ('0.10381572675062772',), 1351002278: ('0.10381572675062772',), 1351002275: ('0.10381572675062772',), 1351002260: ('0.10381572675062772',), 1351002230: ('0.10381572675062772',)} args : 1351002400 depend.output_id : 0 input_args_next_step : {1351002472: ('0.10381572675062772',), 1351002400: ('0.10381572675062772',), 1351002398: ()} output_args : {1351002472: ('0.10381572675062772',), 1351002400: ('0.10381572675062772',), 1351002398: ('0.10381572675062772',), 1351002395: ('0.10381572675062772',), 1351002390: ('0.10381572675062772',), 1351002281: ('0.10381572675062772',), 1351002278: ('0.10381572675062772',), 1351002275: ('0.10381572675062772',), 1351002260: ('0.10381572675062772',), 1351002230: ('0.10381572675062772',)} args : 1351002398 depend.output_id : 0 input_args_next_step : {1351002472: ('0.10381572675062772',), 1351002400: ('0.10381572675062772',), 1351002398: ('0.10381572675062772',), 1351002395: ()} output_args : {1351002472: ('0.10381572675062772',), 1351002400: ('0.10381572675062772',), 1351002398: ('0.10381572675062772',), 1351002395: ('0.10381572675062772',), 1351002390: ('0.10381572675062772',), 1351002281: ('0.10381572675062772',), 1351002278: ('0.10381572675062772',), 1351002275: ('0.10381572675062772',), 1351002260: ('0.10381572675062772',), 1351002230: ('0.10381572675062772',)} args : 1351002395 depend.output_id : 0 input_args_next_step : {1351002472: ('0.10381572675062772',), 1351002400: ('0.10381572675062772',), 1351002398: ('0.10381572675062772',), 1351002395: ('0.10381572675062772',), 1351002390: ()} output_args : {1351002472: ('0.10381572675062772',), 1351002400: ('0.10381572675062772',), 1351002398: ('0.10381572675062772',), 1351002395: ('0.10381572675062772',), 1351002390: ('0.10381572675062772',), 1351002281: ('0.10381572675062772',), 1351002278: ('0.10381572675062772',), 1351002275: ('0.10381572675062772',), 1351002260: ('0.10381572675062772',), 1351002230: ('0.10381572675062772',)} args : 1351002390 depend.output_id : 0 input_args_next_step : {1351002472: ('0.10381572675062772',), 1351002400: ('0.10381572675062772',), 1351002398: ('0.10381572675062772',), 1351002395: ('0.10381572675062772',), 1351002390: ('0.10381572675062772',), 1351002281: ()} output_args : {1351002472: ('0.10381572675062772',), 1351002400: ('0.10381572675062772',), 1351002398: ('0.10381572675062772',), 1351002395: ('0.10381572675062772',), 1351002390: ('0.10381572675062772',), 1351002281: ('0.10381572675062772',), 1351002278: ('0.10381572675062772',), 1351002275: ('0.10381572675062772',), 1351002260: ('0.10381572675062772',), 1351002230: ('0.10381572675062772',)} args : 1351002281 depend.output_id : 0 input_args_next_step : {1351002472: ('0.10381572675062772',), 1351002400: ('0.10381572675062772',), 1351002398: ('0.10381572675062772',), 1351002395: ('0.10381572675062772',), 1351002390: ('0.10381572675062772',), 1351002281: ('0.10381572675062772',), 1351002278: ()} output_args : {1351002472: ('0.10381572675062772',), 1351002400: ('0.10381572675062772',), 1351002398: ('0.10381572675062772',), 1351002395: ('0.10381572675062772',), 1351002390: ('0.10381572675062772',), 1351002281: ('0.10381572675062772',), 1351002278: ('0.10381572675062772',), 1351002275: ('0.10381572675062772',), 1351002260: ('0.10381572675062772',), 1351002230: ('0.10381572675062772',)} args : 1351002278 depend.output_id : 0 input_args_next_step : {1351002472: ('0.10381572675062772',), 1351002400: ('0.10381572675062772',), 1351002398: ('0.10381572675062772',), 1351002395: ('0.10381572675062772',), 1351002390: ('0.10381572675062772',), 1351002281: ('0.10381572675062772',), 1351002278: ('0.10381572675062772',), 1351002275: ()} output_args : {1351002472: ('0.10381572675062772',), 1351002400: ('0.10381572675062772',), 1351002398: ('0.10381572675062772',), 1351002395: ('0.10381572675062772',), 1351002390: ('0.10381572675062772',), 1351002281: ('0.10381572675062772',), 1351002278: ('0.10381572675062772',), 1351002275: ('0.10381572675062772',), 1351002260: ('0.10381572675062772',), 1351002230: ('0.10381572675062772',)} args : 1351002275 depend.output_id : 0 input_args_next_step : {1351002472: ('0.10381572675062772',), 1351002400: ('0.10381572675062772',), 1351002398: ('0.10381572675062772',), 1351002395: ('0.10381572675062772',), 1351002390: ('0.10381572675062772',), 1351002281: ('0.10381572675062772',), 1351002278: ('0.10381572675062772',), 1351002275: ('0.10381572675062772',), 1351002260: ()} output_args : {1351002472: ('0.10381572675062772',), 1351002400: ('0.10381572675062772',), 1351002398: ('0.10381572675062772',), 1351002395: ('0.10381572675062772',), 1351002390: ('0.10381572675062772',), 1351002281: ('0.10381572675062772',), 1351002278: ('0.10381572675062772',), 1351002275: ('0.10381572675062772',), 1351002260: ('0.10381572675062772',), 1351002230: ('0.10381572675062772',)} args : 1351002260 depend.output_id : 0 input_args_next_step : {1351002472: ('0.10381572675062772',), 1351002400: ('0.10381572675062772',), 1351002398: ('0.10381572675062772',), 1351002395: ('0.10381572675062772',), 1351002390: ('0.10381572675062772',), 1351002281: ('0.10381572675062772',), 1351002278: ('0.10381572675062772',), 1351002275: ('0.10381572675062772',), 1351002260: ('0.10381572675062772',), 1351002230: ()} output_args : {1351002472: ('0.10381572675062772',), 1351002400: ('0.10381572675062772',), 1351002398: ('0.10381572675062772',), 1351002395: ('0.10381572675062772',), 1351002390: ('0.10381572675062772',), 1351002281: ('0.10381572675062772',), 1351002278: ('0.10381572675062772',), 1351002275: ('0.10381572675062772',), 1351002260: ('0.10381572675062772',), 1351002230: ('0.10381572675062772',)} args : 1351002230 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 : {22199233: [{'autre_refus': 22199236, 'kraft': 22199237, 'Carton_gris': 22199238, 'mal_croppe': 22199239, 'metal': 22199240, 'Carton_brun': 22199241, 'cartonnette': 22199242, 'papier': 22199243, 'plastique': 22199244, 'flou': 22199245, 'Teint_Dans_La_Masse': 22199246, 'environnement': 22199247}]} input_args_next_step : {1351002472: ('0.10381572675062772',), 1351002400: ('0.10381572675062772',), 1351002398: ('0.10381572675062772',), 1351002395: ('0.10381572675062772',), 1351002390: ('0.10381572675062772',), 1351002281: ('0.10381572675062772',), 1351002278: ('0.10381572675062772',), 1351002275: ('0.10381572675062772',), 1351002260: ('0.10381572675062772',), 1351002230: ('0.10381572675062772',), 22199233: ()} output_args : {22199233: [{'autre_refus': 22199236, 'kraft': 22199237, 'Carton_gris': 22199238, 'mal_croppe': 22199239, 'metal': 22199240, 'Carton_brun': 22199241, 'cartonnette': 22199242, 'papier': 22199243, 'plastique': 22199244, 'flou': 22199245, 'Teint_Dans_La_Masse': 22199246, 'environnement': 22199247}]} args : 22199233 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 :11, first value : ('0.10381572675062772',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22199233) 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 (1351002472,1351002400,1351002398,1351002395,1351002390,1351002281,1351002278,1351002275,1351002260,1351002230) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1351002230 begin to download photo : 1351002278 begin to download photo : 1351002395 begin to download photo : 1351002472 download finish for photo 1351002230 begin to download photo : 1351002260 download finish for photo 1351002395 begin to download photo : 1351002398 download finish for photo 1351002278 begin to download photo : 1351002281 download finish for photo 1351002472 download finish for photo 1351002398 begin to download photo : 1351002400 download finish for photo 1351002260 begin to download photo : 1351002275 download finish for photo 1351002281 begin to download photo : 1351002390 download finish for photo 1351002400 download finish for photo 1351002275 download finish for photo 1351002390 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 : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P22199233_10-04-2025_03_21_02.pdf 22199236 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=22199236 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351002227: '1744247847_3408680_1351001933_904db9fb7c177874fbe040931b3607df_rle_crop_3753042178_0.png', 1351002509: '1744247953_3624164_1351002121_1a8f41a4dba0bf593fae6a215844096c_rle_crop_3753046984_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/76c10361c1bd34d34d236e0cd9a6145a_83068461.png change filename to text .imagette221992361744248062/ imagette221992361744248062/1744247847_3408680_1351001933_904db9fb7c177874fbe040931b3607df_rle_crop_3753042178_0.png.png imagette221992361744248062/1744247953_3624164_1351002121_1a8f41a4dba0bf593fae6a215844096c_rle_crop_3753046984_0.png.png imagette221992371744248062/ imagette221992391744248062/ imagette221992401744248062/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/2a645fa46a940afa0e15718be030a6be_53140336.png imagette221992361744248062 22199237 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=22199237 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221992371744248062 22199239 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=22199239 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221992391744248062 22199240 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=22199240 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221992401744248062 22199242 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=22199242 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351002232: '1744247847_3408680_1351001933_904db9fb7c177874fbe040931b3607df_rle_crop_3753042184_0.png', 1351002233: '1744247847_3408680_1351001931_45aa70fe51527437e689e36c270adb56_rle_crop_3753042201_0.png', 1351002511: '1744247953_3624164_1351002130_87668ac33d83b1bc5f81b1472b22d048_rle_crop_3753046955_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/b1c878bb94c00622dc003c89bf4b59a2_34795096.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/4d52fbc072016414be51ae1601d6b3e9_82244808.png change filename to text .imagette221992421744248062/ imagette221992421744248062/1744247953_3624164_1351002130_87668ac33d83b1bc5f81b1472b22d048_rle_crop_3753046955_0.png.png imagette221992421744248062/1744247847_3408680_1351001933_904db9fb7c177874fbe040931b3607df_rle_crop_3753042184_0.png.png imagette221992421744248062/1744247847_3408680_1351001931_45aa70fe51527437e689e36c270adb56_rle_crop_3753042201_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/f3b970defb5f5a8bf88683a35e437cc9_34971664.png imagette221992421744248062 22199244 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=22199244 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351002264: '1744247847_3408680_1351001928_16f8466e0eda809a0f28f081245d9f07_rle_crop_3753042289_0.png', 1351002518: '1744247953_3624164_1351002136_d3e7aa2ea2e46d4d4ebba5e59b5c320c_rle_crop_3753046914_0.png', 1351002519: '1744247953_3624164_1351002136_d3e7aa2ea2e46d4d4ebba5e59b5c320c_rle_crop_3753046915_0.png', 1351002520: '1744247953_3624164_1351002136_d3e7aa2ea2e46d4d4ebba5e59b5c320c_rle_crop_3753046916_0.png', 1351002521: '1744247953_3624164_1351002130_87668ac33d83b1bc5f81b1472b22d048_rle_crop_3753046960_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/6e8bdf1e5a48b567844950e033504392_85793400.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/9fc96a258160f9cffd93585a12cf15f9_26499776.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/8a672832cb7c0a71304d095ae5bf4301_42659987.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/2cbfc6c6aca8231d14c977ccc59769f5_21012872.png change filename to text .imagette221992441744248062/ imagette221992441744248062/1744247847_3408680_1351001928_16f8466e0eda809a0f28f081245d9f07_rle_crop_3753042289_0.png.png imagette221992441744248062/1744247953_3624164_1351002136_d3e7aa2ea2e46d4d4ebba5e59b5c320c_rle_crop_3753046914_0.png.png imagette221992441744248062/1744247953_3624164_1351002136_d3e7aa2ea2e46d4d4ebba5e59b5c320c_rle_crop_3753046916_0.png.png imagette221992441744248062/1744247953_3624164_1351002130_87668ac33d83b1bc5f81b1472b22d048_rle_crop_3753046960_0.png.png imagette221992441744248062/1744247953_3624164_1351002136_d3e7aa2ea2e46d4d4ebba5e59b5c320c_rle_crop_3753046915_0.png.png imagette221992451744248063/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/44fd1cafea7e97b8f7c5904433253956_8185383.png imagette221992441744248062 22199245 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=22199245 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221992451744248063 22199238 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=22199238 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351002228: '1744247847_3408680_1351001933_904db9fb7c177874fbe040931b3607df_rle_crop_3753042182_0.png', 1351002229: '1744247847_3408680_1351001933_904db9fb7c177874fbe040931b3607df_rle_crop_3753042180_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/9c8bbe88ed7ef1d25bb03e94342492dc_22103587.png change filename to text .imagette221992381744248063/ imagette221992381744248063/1744247847_3408680_1351001933_904db9fb7c177874fbe040931b3607df_rle_crop_3753042180_0.png.png imagette221992381744248063/1744247847_3408680_1351001933_904db9fb7c177874fbe040931b3607df_rle_crop_3753042182_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/ca56674d95abd2c9fbecab7ebdc93bbe_38511335.png imagette221992381744248063 22199241 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=22199241 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351002242: '1744247847_3408680_1351001931_45aa70fe51527437e689e36c270adb56_rle_crop_3753042199_0.png', 1351002246: '1744247847_3408680_1351001931_45aa70fe51527437e689e36c270adb56_rle_crop_3753042203_0.png', 1351002512: '1744247953_3624164_1351002134_3397084e4c63443f28cdb46d26f01eb4_rle_crop_3753046923_0.png', 1351002513: '1744247953_3624164_1351002134_3397084e4c63443f28cdb46d26f01eb4_rle_crop_3753046925_0.png', 1351002514: '1744247953_3624164_1351002134_3397084e4c63443f28cdb46d26f01eb4_rle_crop_3753046928_0.png', 1351002515: '1744247953_3624164_1351002121_1a8f41a4dba0bf593fae6a215844096c_rle_crop_3753046988_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/b385c53032f23b23d92fa17406e00ea8_4549273.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/fb8975cbb786272bcb39e9e21e9a0ee1_53877586.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/913d300f29ca5ad7fc3d795f02b96a22_53734493.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/4c766ffc07f099138ca4ef0f1b33490e_55708460.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/6de1aea19a45b8d1bac14a5f26970ef5_22033673.png change filename to text .imagette221992411744248063/ imagette221992411744248063/1744247847_3408680_1351001931_45aa70fe51527437e689e36c270adb56_rle_crop_3753042203_0.png.png imagette221992411744248063/1744247953_3624164_1351002134_3397084e4c63443f28cdb46d26f01eb4_rle_crop_3753046923_0.png.png imagette221992411744248063/1744247953_3624164_1351002121_1a8f41a4dba0bf593fae6a215844096c_rle_crop_3753046988_0.png.png imagette221992411744248063/1744247953_3624164_1351002134_3397084e4c63443f28cdb46d26f01eb4_rle_crop_3753046928_0.png.png imagette221992411744248063/1744247953_3624164_1351002134_3397084e4c63443f28cdb46d26f01eb4_rle_crop_3753046925_0.png.png imagette221992411744248063/1744247847_3408680_1351001931_45aa70fe51527437e689e36c270adb56_rle_crop_3753042199_0.png.png imagette221992461744248063/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/27ffaccb3a6a08c37003d702816effa1_15766785.png imagette221992411744248063 22199246 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=22199246 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221992461744248063 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22199233 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22199248,22199249,22199250,22199251,22199252,22199253,22199254,22199255,22199256,22199257,22199258,22199259?tags=autre_refus,kraft,Carton_gris,mal_croppe,metal,Carton_brun,cartonnette,papier,plastique,flou,Teint_Dans_La_Masse,environnement your option no_mail is active, we will not send the real mail to your client args[1351002472] : ('0.10381572675062772',) no score found for photo 1351002472 We are sending mail with results at report@fotonower.com args[1351002400] : ('0.10381572675062772',) no score found for photo 1351002400 We are sending mail with results at report@fotonower.com args[1351002398] : ('0.10381572675062772',) no score found for photo 1351002398 We are sending mail with results at report@fotonower.com args[1351002395] : ('0.10381572675062772',) no score found for photo 1351002395 We are sending mail with results at report@fotonower.com args[1351002390] : ('0.10381572675062772',) no score found for photo 1351002390 We are sending mail with results at report@fotonower.com args[1351002281] : ('0.10381572675062772',) no score found for photo 1351002281 We are sending mail with results at report@fotonower.com args[1351002278] : ('0.10381572675062772',) no score found for photo 1351002278 We are sending mail with results at report@fotonower.com args[1351002275] : ('0.10381572675062772',) no score found for photo 1351002275 We are sending mail with results at report@fotonower.com args[1351002260] : ('0.10381572675062772',) no score found for photo 1351002260 We are sending mail with results at report@fotonower.com args[1351002230] : ('0.10381572675062772',) no score found for photo 1351002230 We are sending mail with results at report@fotonower.com refus_total : 0.10381572675062772 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=22199233 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_P22199233_10-04-2025_03_21_02.pdf results_Auto_P22199233_10-04-2025_03_21_02.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22199233_10-04-2025_03_21_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','22199233','results_Auto_P22199233_10-04-2025_03_21_02.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22199233_10-04-2025_03_21_02.pdf','pdf','','0.15','0.10381572675062772') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22199233]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1351002472, 1351002400, 1351002398, 1351002395, 1351002390, 1351002281, 1351002278, 1351002275, 1351002260, 1351002230] map_info['map_portfolio_photo'] : {22199233: [1351002472, 1351002400, 1351002398, 1351002395, 1351002390, 1351002281, 1351002278, 1351002275, 1351002260, 1351002230, 1351002146, 1351002139, 1351002136, 1351002134, 1351002130, 1351002121, 1351001933, 1351001931, 1351001928]} final : False mtd_id 4302 list_pids : [1351002472, 1351002400, 1351002398, 1351002395, 1351002390, 1351002281, 1351002278, 1351002275, 1351002260, 1351002230] 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, '2737482') ('4302', '22199233', '1351002472', None, None, None, None, None, '2737482') ('4302', None, None, None, None, None, None, None, '2737482') ('4302', '22199233', '1351002400', None, None, None, None, None, '2737482') ('4302', None, None, None, None, None, None, None, '2737482') ('4302', '22199233', '1351002398', None, None, None, None, None, '2737482') ('4302', None, None, None, None, None, None, None, '2737482') ('4302', '22199233', '1351002395', None, None, None, None, None, '2737482') ('4302', None, None, None, None, None, None, None, '2737482') ('4302', '22199233', '1351002390', None, None, None, None, None, '2737482') ('4302', None, None, None, None, None, None, None, '2737482') ('4302', '22199233', '1351002281', None, None, None, None, None, '2737482') ('4302', None, None, None, None, None, None, None, '2737482') ('4302', '22199233', '1351002278', None, None, None, None, None, '2737482') ('4302', None, None, None, None, None, None, None, '2737482') ('4302', '22199233', '1351002275', None, None, None, None, None, '2737482') ('4302', None, None, None, None, None, None, None, '2737482') ('4302', '22199233', '1351002260', None, None, None, None, None, '2737482') ('4302', None, None, None, None, None, None, None, '2737482') ('4302', '22199233', '1351002230', None, None, None, None, None, '2737482') 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', '22199233', '1351002472', None, None, None, None, None, '2737482'), ('4302', '22199233', '1351002400', None, None, None, None, None, '2737482'), ('4302', '22199233', '1351002398', None, None, None, None, None, '2737482'), ('4302', '22199233', '1351002395', None, None, None, None, None, '2737482'), ('4302', '22199233', '1351002390', None, None, None, None, None, '2737482'), ('4302', '22199233', '1351002281', None, None, None, None, None, '2737482'), ('4302', '22199233', '1351002278', None, None, None, None, None, '2737482'), ('4302', '22199233', '1351002275', None, None, None, None, None, '2737482'), ('4302', '22199233', '1351002260', None, None, None, None, None, '2737482'), ('4302', '22199233', '1351002230', None, None, None, None, None, '2737482')] time used for this insertion : 0.021687030792236328 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.9521210193634033 time spend to save output : 0.02211451530456543 total time spend for step 4 : 2.9742355346679688 step5:split_time_score Thu Apr 10 03:21: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 : ['22199233'] 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 : [('22199233',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22199233) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1351002472: {'path': 'temp/1744248062_297674_1351002472_0b896c07acebb65c14b420edc01ffa9d.jpg', 'extension': 'jpg'}, 1351002395: {'path': 'temp/1744248062_297674_1351002395_56fa0c3aa8095c9c1aa619eb5fc6b4de.jpg', 'extension': 'jpg'}, 1351002398: {'path': 'temp/1744248062_297674_1351002398_d74a97bda406193f9962b093055482c2.jpg', 'extension': 'jpg'}, 1351002400: {'path': 'temp/1744248062_297674_1351002400_8d98bbb526227f3da1e227a4a2f2afb1.jpg', 'extension': 'jpg'}, 1351002230: {'path': 'temp/1744248062_297674_1351002230_e4c4db32918abdb83b52a11e97eb412c.jpg', 'extension': 'jpg'}, 1351002260: {'path': 'temp/1744248062_297674_1351002260_b7d80765fbf3aae0d0a244ce2120edb5.jpg', 'extension': 'jpg'}, 1351002275: {'path': 'temp/1744248062_297674_1351002275_5f844375d5a762960c87d7fe5c6cbc18.jpg', 'extension': 'jpg'}, 1351002278: {'path': 'temp/1744248062_297674_1351002278_e3967ef509264119ba41a7b4100e2b94.jpg', 'extension': 'jpg'}, 1351002281: {'path': 'temp/1744248062_297674_1351002281_5a03c46178151092dbce050819aa5a88.jpg', 'extension': 'jpg'}, 1351002390: {'path': 'temp/1744248062_297674_1351002390_e670a2a27febaad9cc3fda7e7a56c6fb.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 = 22199233; (('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 = 22199233 group by h (('03', 19),) 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=22199233 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 (22199233) 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 (22199233) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 10042025 22199233 Nombre de photos uploadées : 19 / 23040 (0%) 10042025 22199233 Nombre de photos taguées (types de déchets): 0 / 19 (0%) 10042025 22199233 Nombre de photos taguées (volume) : 0 / 19 (0%) [{'photo_id': 1351001933, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/904db9fb7c177874fbe040931b3607df.jpg', 'username': None, 'uploaded_at': 1744247767, 'text': 'image_10042025_03_15_03_9139.jpg'}, {'photo_id': 1351001931, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/45aa70fe51527437e689e36c270adb56.jpg', 'username': None, 'uploaded_at': 1744247767, 'text': 'image_10042025_03_15_13_10139.jpg'}, {'photo_id': 1351001928, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/16f8466e0eda809a0f28f081245d9f07.jpg', 'username': None, 'uploaded_at': 1744247767, 'text': 'image_10042025_03_15_24_10135.jpg'}, {'photo_id': 1351002146, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/f23b3fcb11cdcb3864ac743c6cfac5d2.jpg', 'username': None, 'uploaded_at': 1744247827, 'text': 'image_10042025_03_15_34_10134.jpg'}] 0 [] elapsed_time : load_data_split_time_score 8.344650268554688e-06 elapsed_time : order_list_meta_photo_and_scores 2.1696090698242188e-05 ??????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0013492107391357422 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22199233, '2025-04-10' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1728450,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02867412567138672 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= 1728450 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1728450, 'dashboard_run_id': 1736509, 'mtr_portfolio_id': 22197495, 'dashboard_result_id': 9970353, '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_P22197495_10-04-2025_02_48_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22197500, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22197501, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22197502, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22197503, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22197504, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22197505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22197506, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22197507, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22197508, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22197509, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22197510, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22197511, 'pht': 3726}}"}, {'dashboat_entry_day': 1728450, 'dashboard_run_id': 1736509, 'mtr_portfolio_id': 22197930, 'dashboard_result_id': 9970354, '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_P22197930_10-04-2025_03_02_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22197935, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22197936, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22197937, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22197938, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22197939, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22197940, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22197941, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22197942, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22197943, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22197944, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22197945, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22197946, 'pht': 3726}}"}, {'dashboat_entry_day': 1728450, 'dashboard_run_id': 1736509, 'mtr_portfolio_id': 22198498, 'dashboard_result_id': 9970355, '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_P22198498_10-04-2025_03_17_05.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22198518, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22198519, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22198520, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22198521, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22198522, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22198523, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22198524, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22198525, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22198526, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22198527, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22198528, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22198529, 'pht': 3726}}"}, {'dashboat_entry_day': 1728450, 'dashboard_run_id': 1736509, 'mtr_portfolio_id': 22199233, 'dashboard_result_id': 9970356, '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_P22199233_10-04-2025_03_19_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22199236, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22199237, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22199238, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22199239, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22199240, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22199241, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22199242, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22199243, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22199244, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22199245, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22199246, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22199247, '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 = 22197495 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': 2737369, 'mtr_portfolio_id': 22197495, 'created_at': datetime.datetime(2025, 4, 10, 2, 48, 58), 'result': '0.0535015592004104', 'result_long': None, 'result_double': None}] Qualite : 0.0535015592004104 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22197495 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22197495_10-04-2025_02_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22197495 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_P22197495_10-04-2025_02_48_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22197500, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22197501, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22197502, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22197503, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22197504, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22197505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22197506, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22197507, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22197508, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22197509, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22197510, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22197511, 'pht': 3726}}" where mtr_portfolio_id = 22197495 and dashboard_run_id = 1736509 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`=22197495 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9970353, 0.0535015592004104, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22197495_10-04-2025_02_48_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22197500, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22197501, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22197502, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22197503, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22197504, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22197505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22197506, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22197507, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22197508, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22197509, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22197510, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22197511, '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 = 22197930 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': 2737399, 'mtr_portfolio_id': 22197930, 'created_at': datetime.datetime(2025, 4, 10, 3, 2, 31), 'result': '0.045175485296991995', 'result_long': None, 'result_double': None}] Qualite : 0.045175485296991995 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22197930 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22197930_10-04-2025_03_02_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22197930 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_P22197930_10-04-2025_03_02_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22197935, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22197936, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22197937, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22197938, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22197939, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22197940, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22197941, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22197942, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22197943, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22197944, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22197945, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22197946, 'pht': 3726}}" where mtr_portfolio_id = 22197930 and dashboard_run_id = 1736509 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`=22197930 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9970354, 0.045175485296991995, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22197930_10-04-2025_03_02_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22197935, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22197936, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22197937, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22197938, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22197939, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22197940, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22197941, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22197942, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22197943, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22197944, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22197945, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22197946, '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 = 22198498 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': 2737448, 'mtr_portfolio_id': 22198498, 'created_at': datetime.datetime(2025, 4, 10, 3, 17, 4), 'result': '0.046974942427860225', 'result_long': None, 'result_double': None}] Qualite : 0.046974942427860225 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22198498 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22198498_10-04-2025_03_17_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22198498 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_P22198498_10-04-2025_03_17_05.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22198518, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22198519, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22198520, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22198521, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22198522, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22198523, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22198524, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22198525, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22198526, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22198527, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22198528, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22198529, 'pht': 3726}}" where mtr_portfolio_id = 22198498 and dashboard_run_id = 1736509 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`=22198498 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9970355, 0.046974942427860225, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22198498_10-04-2025_03_17_05.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22198518, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22198519, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22198520, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22198521, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22198522, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22198523, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22198524, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22198525, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22198526, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22198527, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22198528, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22198529, '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 = 22199233 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': 2737482, 'mtr_portfolio_id': 22199233, 'created_at': datetime.datetime(2025, 4, 10, 3, 21, 1), 'result': '0.10381572675062772', 'result_long': None, 'result_double': None}] Qualite : 0.10381572675062772 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22199233 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22199233_10-04-2025_03_21_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22199233 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_P22199233_10-04-2025_03_21_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22199236, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22199237, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22199238, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22199239, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22199240, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22199241, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22199242, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22199243, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22199244, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22199245, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22199246, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22199247, 'pht': 3726}}" where mtr_portfolio_id = 22199233 and dashboard_run_id = 1736509 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`=22199233 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9970356, 0.10381572675062772, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22199233_10-04-2025_03_21_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22199236, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22199237, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22199238, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22199239, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22199240, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22199241, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22199242, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22199243, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22199244, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22199245, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22199246, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22199247, '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 (22197495,22197930,22198498,22199233) result : ((1350990703,), (1350990706,), (1350990994,), (1350991059,), (1350991094,), (1350991099,), (1350991112,), (1350991287,), (1350991354,), (1350991356,), (1350991363,), (1350991388,), (1350991397,), (1350991445,), (1350991449,), (1350991482,), (1350991691,), (1350991712,), (1350991763,), (1350991784,), (1350991798,), (1350991889,), (1350991920,), (1350991942,), (1350991966,), (1350991980,), (1350992128,), (1350992150,), (1350992168,), (1350992177,), (1350992386,), (1350992391,), (1350992393,), (1350992395,), (1350992399,), (1350992402,), (1350992853,), (1350992986,), (1350993071,), (1350993171,), (1350993205,), (1350993431,), (1350993455,), (1350993460,), (1350993484,), (1350993488,), (1350993498,), (1350993633,), (1350993637,), (1350993639,), (1350993789,), (1350993799,), (1350993801,), (1350993810,), (1350993821,), (1350993876,), (1350994128,), (1350994186,), (1350994204,), (1350994212,), (1350994243,), (1350994342,), (1350994308,), (1350994312,), (1350994322,), (1350994333,), (1350994493,), (1350994524,), (1350994551,), (1350994569,), (1350994599,), (1350994815,), (1350994861,), (1350994909,), (1350994925,), (1350995727,), (1350996353,), (1350996375,), (1350996378,), (1350996380,), (1350996501,), (1350996523,), (1350996529,), (1350996530,), (1350996534,), (1350996537,), (1350996633,), (1350996636,), (1350996747,), (1350996771,), (1350996778,), (1350996781,), (1350996785,), (1350996893,), (1350996897,), (1350996901,), (1350996917,), (1350996935,), (1350996951,), (1350997051,), (1350997056,), (1350997058,), (1350997061,), (1350997064,), (1350997489,), (1350997498,), (1350997505,), (1350997518,), (1350997540,), (1350997574,), (1350997598,), (1350997618,), (1350997635,), (1350997663,), (1350997716,), (1350997928,), (1350997802,), (1350997822,), (1350997850,), (1350997883,), (1350998061,), (1350998080,), (1350998108,), (1350998138,), (1350998162,), (1350998179,), (1350998364,), (1350998385,), (1350998411,), (1350998438,), (1350998569,), (1350998580,), (1350998595,), (1350998599,), (1350998605,), (1350998738,), (1350998759,), (1350998789,), (1350998802,), (1350998813,), (1350998836,), (1350998961,), (1350998978,), (1350998993,), (1350999089,), (1350999096,), (1350999104,), (1350999109,), (1350999112,), (1350999543,), (1350999586,), (1350999654,), (1350999725,), (1350999779,), (1350999798,), (1351000131,), (1351000141,), (1351000153,), (1351000161,), (1351000184,), (1351000371,), (1351000397,), (1351000402,), (1351000416,), (1351000436,), (1351000456,), (1351000594,), (1351000626,), (1351000641,), (1351001518,), (1351001546,), (1351001565,), (1351001599,), (1351001669,), (1351001733,), (1351001935,), (1351001928,), (1351001931,), (1351001933,), (1351002121,), (1351002130,), (1351002134,), (1351002136,), (1351002139,), (1351002146,), (1351002230,), (1351002260,), (1351002275,), (1351002278,), (1351002281,), (1351002390,), (1351002395,), (1351002398,), (1351002400,), (1351002472,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'10042025': {'nb_upload': 19, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22199233]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1351002472, 1351002400, 1351002398, 1351002395, 1351002390, 1351002281, 1351002278, 1351002275, 1351002260, 1351002230] map_info['map_portfolio_photo'] : {22199233: [1351002472, 1351002400, 1351002398, 1351002395, 1351002390, 1351002281, 1351002278, 1351002275, 1351002260, 1351002230, 1351002146, 1351002139, 1351002136, 1351002134, 1351002130, 1351002121, 1351001933, 1351001931, 1351001928]} final : True mtd_id 4302 list_pids : [1351002472, 1351002400, 1351002398, 1351002395, 1351002390, 1351002281, 1351002278, 1351002275, 1351002260, 1351002230] Looping around the photos to save general results len do output : 1 /22199233Didn'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, '2737482') ('4302', '22199233', '1351002472', None, None, None, None, None, '2737482') ('4302', None, None, None, None, None, None, None, '2737482') ('4302', '22199233', '1351002400', None, None, None, None, None, '2737482') ('4302', None, None, None, None, None, None, None, '2737482') ('4302', '22199233', '1351002398', None, None, None, None, None, '2737482') ('4302', None, None, None, None, None, None, None, '2737482') ('4302', '22199233', '1351002395', None, None, None, None, None, '2737482') ('4302', None, None, None, None, None, None, None, '2737482') ('4302', '22199233', '1351002390', None, None, None, None, None, '2737482') ('4302', None, None, None, None, None, None, None, '2737482') ('4302', '22199233', '1351002281', None, None, None, None, None, '2737482') ('4302', None, None, None, None, None, None, None, '2737482') ('4302', '22199233', '1351002278', None, None, None, None, None, '2737482') ('4302', None, None, None, None, None, None, None, '2737482') ('4302', '22199233', '1351002275', None, None, None, None, None, '2737482') ('4302', None, None, None, None, None, None, None, '2737482') ('4302', '22199233', '1351002260', None, None, None, None, None, '2737482') ('4302', None, None, None, None, None, None, None, '2737482') ('4302', '22199233', '1351002230', None, None, None, None, None, '2737482') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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, '22199233', 'None', None, None, None, None, '2737482'), ('4302', '22199233', '1351002472', None, None, None, None, None, '2737482'), ('4302', '22199233', '1351002400', None, None, None, None, None, '2737482'), ('4302', '22199233', '1351002398', None, None, None, None, None, '2737482'), ('4302', '22199233', '1351002395', None, None, None, None, None, '2737482'), ('4302', '22199233', '1351002390', None, None, None, None, None, '2737482'), ('4302', '22199233', '1351002281', None, None, None, None, None, '2737482'), ('4302', '22199233', '1351002278', None, None, None, None, None, '2737482'), ('4302', '22199233', '1351002275', None, None, None, None, None, '2737482'), ('4302', '22199233', '1351002260', None, None, None, None, None, '2737482'), ('4302', '22199233', '1351002230', None, None, None, None, None, '2737482')] time used for this insertion : 0.017459630966186523 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.43718981742858887 time spend to save output : 0.017789125442504883 total time spend for step 5 : 0.45497894287109375 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 (2737482) 2.38user 2.09system 0:09.69elapsed 46%CPU (0avgtext+0avgdata 158884maxresident)k 256inputs+8632outputs (11major+74677minor)pagefaults 0swaps