save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07033801078796387 time spend to save output : 0.012722492218017578 total time spend for step 2 : 0.08306050300598145 step3:velours_tree Mon Mar 31 11:52:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {21905185: [{'Carton_brun': 21905199, 'Teint_Dans_La_Masse': 21905200, 'metal': 21905201, 'environnement': 21905202, 'autre_refus': 21905203, 'cartonnette': 21905204, 'plastique': 21905205, 'mal_croppe': 21905206, 'papier': 21905207, 'kraft': 21905208, 'Carton_gris': 21905209, 'flou': 21905210}]} input_args_next_step : {21905185: ()} output_args : {21905185: [{'Carton_brun': 21905199, 'Teint_Dans_La_Masse': 21905200, 'metal': 21905201, 'environnement': 21905202, 'autre_refus': 21905203, 'cartonnette': 21905204, 'plastique': 21905205, 'mal_croppe': 21905206, 'papier': 21905207, 'kraft': 21905208, 'Carton_gris': 21905209, 'flou': 21905210}]} args : 21905185 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 : ({'Carton_brun': 21905199, 'Teint_Dans_La_Masse': 21905200, 'metal': 21905201, 'environnement': 21905202, 'autre_refus': 21905203, 'cartonnette': 21905204, 'plastique': 21905205, 'mal_croppe': 21905206, 'papier': 21905207, 'kraft': 21905208, 'Carton_gris': 21905209, 'flou': 21905210},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21905185) 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([21905185]) 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.5024564266204834 time spend to save output : 5.888938903808594e-05 total time spend for step 3 : 0.5025153160095215 step4:send_mail_cod Mon Mar 31 11:52:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1348984065: ('0.05206524876207704',), 1348984061: ('0.05206524876207704',), 1348984020: ('0.05206524876207704',), 1348984016: ('0.05206524876207704',), 1348984013: ('0.05206524876207704',), 1348984007: ('0.05206524876207704',), 1348984005: ('0.05206524876207704',)} input_args_next_step : {1348984065: ()} output_args : {1348984065: ('0.05206524876207704',), 1348984061: ('0.05206524876207704',), 1348984020: ('0.05206524876207704',), 1348984016: ('0.05206524876207704',), 1348984013: ('0.05206524876207704',), 1348984007: ('0.05206524876207704',), 1348984005: ('0.05206524876207704',)} args : 1348984065 depend.output_id : 0 input_args_next_step : {1348984065: ('0.05206524876207704',), 1348984061: ()} output_args : {1348984065: ('0.05206524876207704',), 1348984061: ('0.05206524876207704',), 1348984020: ('0.05206524876207704',), 1348984016: ('0.05206524876207704',), 1348984013: ('0.05206524876207704',), 1348984007: ('0.05206524876207704',), 1348984005: ('0.05206524876207704',)} args : 1348984061 depend.output_id : 0 input_args_next_step : {1348984065: ('0.05206524876207704',), 1348984061: ('0.05206524876207704',), 1348984020: ()} output_args : {1348984065: ('0.05206524876207704',), 1348984061: ('0.05206524876207704',), 1348984020: ('0.05206524876207704',), 1348984016: ('0.05206524876207704',), 1348984013: ('0.05206524876207704',), 1348984007: ('0.05206524876207704',), 1348984005: ('0.05206524876207704',)} args : 1348984020 depend.output_id : 0 input_args_next_step : {1348984065: ('0.05206524876207704',), 1348984061: ('0.05206524876207704',), 1348984020: ('0.05206524876207704',), 1348984016: ()} output_args : {1348984065: ('0.05206524876207704',), 1348984061: ('0.05206524876207704',), 1348984020: ('0.05206524876207704',), 1348984016: ('0.05206524876207704',), 1348984013: ('0.05206524876207704',), 1348984007: ('0.05206524876207704',), 1348984005: ('0.05206524876207704',)} args : 1348984016 depend.output_id : 0 input_args_next_step : {1348984065: ('0.05206524876207704',), 1348984061: ('0.05206524876207704',), 1348984020: ('0.05206524876207704',), 1348984016: ('0.05206524876207704',), 1348984013: ()} output_args : {1348984065: ('0.05206524876207704',), 1348984061: ('0.05206524876207704',), 1348984020: ('0.05206524876207704',), 1348984016: ('0.05206524876207704',), 1348984013: ('0.05206524876207704',), 1348984007: ('0.05206524876207704',), 1348984005: ('0.05206524876207704',)} args : 1348984013 depend.output_id : 0 input_args_next_step : {1348984065: ('0.05206524876207704',), 1348984061: ('0.05206524876207704',), 1348984020: ('0.05206524876207704',), 1348984016: ('0.05206524876207704',), 1348984013: ('0.05206524876207704',), 1348984007: ()} output_args : {1348984065: ('0.05206524876207704',), 1348984061: ('0.05206524876207704',), 1348984020: ('0.05206524876207704',), 1348984016: ('0.05206524876207704',), 1348984013: ('0.05206524876207704',), 1348984007: ('0.05206524876207704',), 1348984005: ('0.05206524876207704',)} args : 1348984007 depend.output_id : 0 input_args_next_step : {1348984065: ('0.05206524876207704',), 1348984061: ('0.05206524876207704',), 1348984020: ('0.05206524876207704',), 1348984016: ('0.05206524876207704',), 1348984013: ('0.05206524876207704',), 1348984007: ('0.05206524876207704',), 1348984005: ()} output_args : {1348984065: ('0.05206524876207704',), 1348984061: ('0.05206524876207704',), 1348984020: ('0.05206524876207704',), 1348984016: ('0.05206524876207704',), 1348984013: ('0.05206524876207704',), 1348984007: ('0.05206524876207704',), 1348984005: ('0.05206524876207704',)} args : 1348984005 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 : {21905185: [{'Carton_brun': 21905199, 'Teint_Dans_La_Masse': 21905200, 'metal': 21905201, 'environnement': 21905202, 'autre_refus': 21905203, 'cartonnette': 21905204, 'plastique': 21905205, 'mal_croppe': 21905206, 'papier': 21905207, 'kraft': 21905208, 'Carton_gris': 21905209, 'flou': 21905210}]} input_args_next_step : {1348984065: ('0.05206524876207704',), 1348984061: ('0.05206524876207704',), 1348984020: ('0.05206524876207704',), 1348984016: ('0.05206524876207704',), 1348984013: ('0.05206524876207704',), 1348984007: ('0.05206524876207704',), 1348984005: ('0.05206524876207704',), 21905185: ()} output_args : {21905185: [{'Carton_brun': 21905199, 'Teint_Dans_La_Masse': 21905200, 'metal': 21905201, 'environnement': 21905202, 'autre_refus': 21905203, 'cartonnette': 21905204, 'plastique': 21905205, 'mal_croppe': 21905206, 'papier': 21905207, 'kraft': 21905208, 'Carton_gris': 21905209, 'flou': 21905210}]} args : 21905185 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.05206524876207704',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21905185) 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 (1348984065,1348984061,1348984020,1348984016,1348984013,1348984007,1348984005) Found this number of photos: 7 ##### Call download_photos : nb_thread : 5 begin to download photo : 1348984005 begin to download photo : 1348984013 begin to download photo : 1348984020 begin to download photo : 1348984065 download finish for photo 1348984020 begin to download photo : 1348984061 download finish for photo 1348984005 begin to download photo : 1348984007 download finish for photo 1348984013 begin to download photo : 1348984016 download finish for photo 1348984065 download finish for photo 1348984061 download finish for photo 1348984007 download finish for photo 1348984016 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette219052011743414780/ imagette219052031743414780/ length of list_filenames : 7 ; length of list_pids : 7 ; length of list_args : 7 results_Auto_P21905185_31-03-2025_11_53_00.pdf 21905201 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=21905201 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219052011743414780 21905203 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=21905203 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219052031743414780 21905204 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=21905204 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348983537: '1743414434_3370686_1348983182_e859e33a6d3b793f8656d048ed054743_rle_crop_3740920954_0.png', 1348983956: '1743414552_3372738_1348983394_9a659a9c2a477fb07736295a8d821e97_rle_crop_3740923382_0.png', 1348984158: '1743414712_3374540_1348983891_e1675291c91e8f76bdd8441851ff72ca_rle_crop_3740927242_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/b4c306bf9981862087561958b761c655_50404105.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/973f922a78ae81022b003dbfc5f7fdf2_90653912.png change filename to text .imagette219052041743414780/ imagette219052041743414780/1743414552_3372738_1348983394_9a659a9c2a477fb07736295a8d821e97_rle_crop_3740923382_0.png.png imagette219052041743414780/1743414712_3374540_1348983891_e1675291c91e8f76bdd8441851ff72ca_rle_crop_3740927242_0.png.png imagette219052041743414780/1743414434_3370686_1348983182_e859e33a6d3b793f8656d048ed054743_rle_crop_3740920954_0.png.png imagette219052051743414780/ imagette219052061743414780/ imagette219052081743414780/ imagette219052101743414780/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/b3a0c51b9b5bd29b563ec70858d8b5cd_8223591.png imagette219052041743414780 21905205 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=21905205 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219052051743414780 21905206 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=21905206 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219052061743414780 21905208 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=21905208 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219052081743414780 21905210 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=21905210 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219052101743414780 21905199 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=21905199 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348983542: '1743414434_3370686_1348983184_a396f63bfa93c1c286a4eba435f2808f_rle_crop_3740920907_0.png', 1348983544: '1743414434_3370686_1348983184_a396f63bfa93c1c286a4eba435f2808f_rle_crop_3740920905_0.png', 1348984073: '1743414691_3374292_1348983577_32a88c6a82e26a1631b72db5ab9dac8a_rle_crop_3740925443_0.png', 1348984074: '1743414691_3374292_1348983562_ca42d033cc5db84e6b669060aa7b1128_rle_crop_3740925456_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/127eadc11f291d2d616c830fce617b1b_79268208.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/21fb28e3689feefe1ff61a7623c0ab93_51636201.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/3893105039255f0504d31ecb63492f1f_4038610.png change filename to text .imagette219051991743414780/ imagette219051991743414780/1743414434_3370686_1348983184_a396f63bfa93c1c286a4eba435f2808f_rle_crop_3740920905_0.png.png imagette219051991743414780/1743414691_3374292_1348983562_ca42d033cc5db84e6b669060aa7b1128_rle_crop_3740925456_0.png.png imagette219051991743414780/1743414434_3370686_1348983184_a396f63bfa93c1c286a4eba435f2808f_rle_crop_3740920907_0.png.png imagette219051991743414780/1743414691_3374292_1348983577_32a88c6a82e26a1631b72db5ab9dac8a_rle_crop_3740925443_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/8d3d0a1f97f84ebc68a09ba9b068db7a_45069875.png imagette219051991743414780 21905200 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=21905200 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348983531: '1743414434_3370686_1348983182_e859e33a6d3b793f8656d048ed054743_rle_crop_3740920957_0.png', 1348983533: '1743414434_3370686_1348983181_1c835728393f9c71a6c347b1bb0788c1_rle_crop_3740921014_0.png', 1348983534: '1743414434_3370686_1348983181_1c835728393f9c71a6c347b1bb0788c1_rle_crop_3740921010_0.png', 1348983952: '1743414552_3372738_1348983406_8cd9ccd7d19fb2555ee7f1b81c9751e0_rle_crop_3740923369_0.png', 1348983953: '1743414552_3372738_1348983394_9a659a9c2a477fb07736295a8d821e97_rle_crop_3740923381_0.png', 1348983954: '1743414552_3372738_1348983394_9a659a9c2a477fb07736295a8d821e97_rle_crop_3740923376_0.png', 1348984068: '1743414691_3374292_1348983555_8847b57a2f9477da83acf9360160b7ad_rle_crop_3740925488_0.png', 1348984151: '1743414712_3374540_1348983868_31954306fb9df69fbc7e76bb72d99f63_rle_crop_3740927298_0.png', 1348984157: '1743414712_3374540_1348983854_8a000d300525aff2328765969792a59a_rle_crop_3740927310_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/cb2f66bfe0dd0f5cd9c73d66fbef0707_59961257.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/701edad5f7f79f6cf8425eb239f26078_20702646.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/162b4e2bb1f6772b6dbc95a136ce98dd_86808534.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/06ef4bfcae6eee9db41abd32b43a8a9b_81098808.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/b8632b1a97b759bbc0f60edaff7e5a78_66453950.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/e194357c9ac65032724faf58564e3431_73116144.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/9cf869a68b23a596c55562bb5109ef63_97639860.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/97bb06478818ef02b18db1c112f36279_23687412.png change filename to text .imagette219052001743414780/ imagette219052001743414780/1743414552_3372738_1348983394_9a659a9c2a477fb07736295a8d821e97_rle_crop_3740923381_0.png.png imagette219052001743414780/1743414434_3370686_1348983181_1c835728393f9c71a6c347b1bb0788c1_rle_crop_3740921014_0.png.png imagette219052001743414780/1743414712_3374540_1348983854_8a000d300525aff2328765969792a59a_rle_crop_3740927310_0.png.png imagette219052001743414780/1743414434_3370686_1348983181_1c835728393f9c71a6c347b1bb0788c1_rle_crop_3740921010_0.png.png imagette219052001743414780/1743414552_3372738_1348983406_8cd9ccd7d19fb2555ee7f1b81c9751e0_rle_crop_3740923369_0.png.png imagette219052001743414780/1743414712_3374540_1348983868_31954306fb9df69fbc7e76bb72d99f63_rle_crop_3740927298_0.png.png imagette219052001743414780/1743414691_3374292_1348983555_8847b57a2f9477da83acf9360160b7ad_rle_crop_3740925488_0.png.png imagette219052001743414780/1743414434_3370686_1348983182_e859e33a6d3b793f8656d048ed054743_rle_crop_3740920957_0.png.png imagette219052001743414780/1743414552_3372738_1348983394_9a659a9c2a477fb07736295a8d821e97_rle_crop_3740923376_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/dd1040d1bb29de7c989c0d232bfbeaf8_57561023.png imagette219052001743414780 21905209 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=21905209 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348983536: '1743414434_3370686_1348983181_1c835728393f9c71a6c347b1bb0788c1_rle_crop_3740921006_0.png', 1348984071: '1743414691_3374292_1348983562_ca42d033cc5db84e6b669060aa7b1128_rle_crop_3740925455_0.png', 1348984072: '1743414691_3374292_1348983562_ca42d033cc5db84e6b669060aa7b1128_rle_crop_3740925453_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/7285b2014fde3602f0d9bca1123f5a6d_89800743.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/35418b88fc4783e5a2af7f0158ab5449_96306185.png change filename to text .imagette219052091743414781/ imagette219052091743414781/1743414434_3370686_1348983181_1c835728393f9c71a6c347b1bb0788c1_rle_crop_3740921006_0.png.png imagette219052091743414781/1743414691_3374292_1348983562_ca42d033cc5db84e6b669060aa7b1128_rle_crop_3740925455_0.png.png imagette219052091743414781/1743414691_3374292_1348983562_ca42d033cc5db84e6b669060aa7b1128_rle_crop_3740925453_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/eb97c99aa48c37a718bcb87f8fcca556_18648553.png imagette219052091743414781 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21905185 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21905211,21905212,21905213,21905214,21905215,21905216,21905217,21905218,21905219,21905220,21905221,21905222?tags=Carton_brun,Teint_Dans_La_Masse,metal,environnement,autre_refus,cartonnette,plastique,mal_croppe,papier,kraft,Carton_gris,flou your option no_mail is active, we will not send the real mail to your client args[1348984065] : ('0.05206524876207704',) no score found for photo 1348984065 We are sending mail with results at report@fotonower.com args[1348984061] : ('0.05206524876207704',) no score found for photo 1348984061 We are sending mail with results at report@fotonower.com args[1348984020] : ('0.05206524876207704',) no score found for photo 1348984020 We are sending mail with results at report@fotonower.com args[1348984016] : ('0.05206524876207704',) no score found for photo 1348984016 We are sending mail with results at report@fotonower.com args[1348984013] : ('0.05206524876207704',) no score found for photo 1348984013 We are sending mail with results at report@fotonower.com args[1348984007] : ('0.05206524876207704',) no score found for photo 1348984007 We are sending mail with results at report@fotonower.com args[1348984005] : ('0.05206524876207704',) no score found for photo 1348984005 We are sending mail with results at report@fotonower.com refus_total : 0.05206524876207704 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=21905185 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_P21905185_31-03-2025_11_53_00.pdf results_Auto_P21905185_31-03-2025_11_53_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21905185_31-03-2025_11_53_00.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','21905185','results_Auto_P21905185_31-03-2025_11_53_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21905185_31-03-2025_11_53_00.pdf','pdf','','0.14','0.05206524876207704') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21905185]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1348984065, 1348984061, 1348984020, 1348984016, 1348984013, 1348984007, 1348984005] map_info['map_portfolio_photo'] : {21905185: [1348984065, 1348984061, 1348984020, 1348984016, 1348984013, 1348984007, 1348984005, 1348983966, 1348983963, 1348983960, 1348983926, 1348983911, 1348983891, 1348983887, 1348983868, 1348983854, 1348983618, 1348983577, 1348983562, 1348983557, 1348983555, 1348983481, 1348983479, 1348983406, 1348983394, 1348983184, 1348983182, 1348983181]} final : False mtd_id 4302 list_pids : [1348984065, 1348984061, 1348984020, 1348984016, 1348984013, 1348984007, 1348984005] 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, '2708623') ('4302', '21905185', '1348984065', None, None, None, None, None, '2708623') ('4302', None, None, None, None, None, None, None, '2708623') ('4302', '21905185', '1348984061', None, None, None, None, None, '2708623') ('4302', None, None, None, None, None, None, None, '2708623') ('4302', '21905185', '1348984020', None, None, None, None, None, '2708623') ('4302', None, None, None, None, None, None, None, '2708623') ('4302', '21905185', '1348984016', None, None, None, None, None, '2708623') ('4302', None, None, None, None, None, None, None, '2708623') ('4302', '21905185', '1348984013', None, None, None, None, None, '2708623') ('4302', None, None, None, None, None, None, None, '2708623') ('4302', '21905185', '1348984007', None, None, None, None, None, '2708623') ('4302', None, None, None, None, None, None, None, '2708623') ('4302', '21905185', '1348984005', None, None, None, None, None, '2708623') 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', '21905185', '1348984065', None, None, None, None, None, '2708623'), ('4302', '21905185', '1348984061', None, None, None, None, None, '2708623'), ('4302', '21905185', '1348984020', None, None, None, None, None, '2708623'), ('4302', '21905185', '1348984016', None, None, None, None, None, '2708623'), ('4302', '21905185', '1348984013', None, None, None, None, None, '2708623'), ('4302', '21905185', '1348984007', None, None, None, None, None, '2708623'), ('4302', '21905185', '1348984005', None, None, None, None, None, '2708623')] time used for this insertion : 0.012917280197143555 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.326300621032715 time spend to save output : 0.013131141662597656 total time spend for step 4 : 2.3394317626953125 step5:split_time_score Mon Mar 31 11:53:02 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['21905185'] 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 : [('21905185',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21905185) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1348984065: {'path': 'temp/1743414779_3034415_1348984065_a7f883fce214c4cb094ebf9a0ec6b7e8.jpg', 'extension': 'jpg'}, 1348984020: {'path': 'temp/1743414779_3034415_1348984020_4feb8441fee837e960b01d40f45ea3de.jpg', 'extension': 'jpg'}, 1348984061: {'path': 'temp/1743414779_3034415_1348984061_f06e985f83933fb812ae71eb40a31904.jpg', 'extension': 'jpg'}, 1348984005: {'path': 'temp/1743414779_3034415_1348984005_b1a85dffb38d409387e50275294647d9.jpg', 'extension': 'jpg'}, 1348984007: {'path': 'temp/1743414779_3034415_1348984007_0d42a8258e5bead8f8ea47291164cb3f.jpg', 'extension': 'jpg'}, 1348984013: {'path': 'temp/1743414779_3034415_1348984013_979636fa571ba09f89db995781eca9a6.jpg', 'extension': 'jpg'}, 1348984016: {'path': 'temp/1743414779_3034415_1348984016_79f0cf345cf6c22a5b78e4633c88627d.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 = 21905185; (('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 = 21905185 group by h (('11', 28),) 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=21905185 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 (21905185) 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 (21905185) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 31032025 21905185 Nombre de photos uploadées : 28 / 23040 (0%) 31032025 21905185 Nombre de photos taguées (types de déchets): 0 / 28 (0%) 31032025 21905185 Nombre de photos taguées (volume) : 0 / 28 (0%) [{'photo_id': 1348983184, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/a396f63bfa93c1c286a4eba435f2808f.jpg', 'username': None, 'uploaded_at': 1743414367, 'text': 'image_31032025_11_45_04_9138.jpg'}, {'photo_id': 1348983182, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/e859e33a6d3b793f8656d048ed054743.jpg', 'username': None, 'uploaded_at': 1743414367, 'text': 'image_31032025_11_45_14_10136.jpg'}, {'photo_id': 1348983181, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/1c835728393f9c71a6c347b1bb0788c1.jpg', 'username': None, 'uploaded_at': 1743414367, 'text': 'image_31032025_11_45_24_10135.jpg'}, {'photo_id': 1348983481, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/19139f0b12b0ec611ec76da1fea51d43.jpg', 'username': None, 'uploaded_at': 1743414427, 'text': 'image_31032025_11_45_34_10139.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.1920928955078125e-06 elapsed_time : order_list_meta_photo_and_scores 4.76837158203125e-06 ???????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.001224517822265625 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21905185, '2025-03-31' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1702716,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.021979331970214844 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= 1702716 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1702716, 'dashboard_run_id': 1710834, 'mtr_portfolio_id': 21902723, 'dashboard_result_id': 9754314, '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_P21902723_31-03-2025_11_18_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21902792, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21902793, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21902794, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21902795, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21902796, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21902797, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21902798, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21902799, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21902800, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21902801, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21902802, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21902803, 'pht': 3726}}"}, {'dashboat_entry_day': 1702716, 'dashboard_run_id': 1710834, 'mtr_portfolio_id': 21904049, 'dashboard_result_id': 9754315, '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_P21904049_31-03-2025_11_32_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21904106, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21904107, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21904108, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21904109, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21904110, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21904111, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21904112, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21904113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21904114, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21904115, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21904116, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21904117, 'pht': 3726}}"}, {'dashboat_entry_day': 1702716, 'dashboard_run_id': 1710834, 'mtr_portfolio_id': 21904764, 'dashboard_result_id': 9754316, '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_P21904764_31-03-2025_11_46_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21904766, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21904767, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21904768, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21904769, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21904770, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21904771, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21904772, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21904773, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21904774, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21904775, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21904776, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21904777, 'pht': 3726}}"}, {'dashboat_entry_day': 1702716, 'dashboard_run_id': 1710834, 'mtr_portfolio_id': 21905185, 'dashboard_result_id': 9754317, '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_P21905185_31-03-2025_11_50_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21905199, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21905200, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21905201, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21905202, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21905203, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21905204, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21905205, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21905206, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21905207, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21905208, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21905209, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21905210, '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 = 21902723 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': 2708383, 'mtr_portfolio_id': 21902723, 'created_at': datetime.datetime(2025, 3, 31, 11, 18, 59), 'result': '0.05526830409655477', 'result_long': None, 'result_double': None}] Qualite : 0.05526830409655477 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21902723 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21902723_31-03-2025_11_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21902723 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_P21902723_31-03-2025_11_18_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21902792, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21902793, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21902794, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21902795, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21902796, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21902797, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21902798, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21902799, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21902800, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21902801, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21902802, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21902803, 'pht': 3726}}" where mtr_portfolio_id = 21902723 and dashboard_run_id = 1710834 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`=21902723 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9754314, 0.05526830409655477, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21902723_31-03-2025_11_18_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21902792, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21902793, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21902794, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21902795, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21902796, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21902797, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21902798, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21902799, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21902800, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21902801, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21902802, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21902803, '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 = 21904049 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': 2708508, 'mtr_portfolio_id': 21904049, 'created_at': datetime.datetime(2025, 3, 31, 11, 32, 58), 'result': '0.05922607044556936', 'result_long': None, 'result_double': None}] Qualite : 0.05922607044556936 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21904049 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21904049_31-03-2025_11_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21904049 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_P21904049_31-03-2025_11_32_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21904106, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21904107, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21904108, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21904109, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21904110, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21904111, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21904112, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21904113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21904114, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21904115, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21904116, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21904117, 'pht': 3726}}" where mtr_portfolio_id = 21904049 and dashboard_run_id = 1710834 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`=21904049 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9754315, 0.05922607044556936, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21904049_31-03-2025_11_32_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21904106, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21904107, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21904108, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21904109, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21904110, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21904111, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21904112, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21904113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21904114, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21904115, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21904116, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21904117, '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 = 21904764 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': 2708591, 'mtr_portfolio_id': 21904764, 'created_at': datetime.datetime(2025, 3, 31, 11, 46, 58), 'result': '0.040890135111659134', 'result_long': None, 'result_double': None}] Qualite : 0.040890135111659134 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21904764 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21904764_31-03-2025_11_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21904764 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_P21904764_31-03-2025_11_46_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21904766, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21904767, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21904768, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21904769, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21904770, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21904771, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21904772, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21904773, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21904774, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21904775, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21904776, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21904777, 'pht': 3726}}" where mtr_portfolio_id = 21904764 and dashboard_run_id = 1710834 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`=21904764 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9754316, 0.040890135111659134, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21904764_31-03-2025_11_46_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21904766, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21904767, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21904768, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21904769, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21904770, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21904771, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21904772, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21904773, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21904774, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21904775, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21904776, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21904777, '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 = 21905185 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': 2708623, 'mtr_portfolio_id': 21905185, 'created_at': datetime.datetime(2025, 3, 31, 11, 52, 59), 'result': '0.05206524876207704', 'result_long': None, 'result_double': None}] Qualite : 0.05206524876207704 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21905185 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21905185_31-03-2025_11_53_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21905185 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_P21905185_31-03-2025_11_53_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21905199, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21905200, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21905201, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21905202, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21905203, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21905204, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21905205, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21905206, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21905207, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21905208, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21905209, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21905210, 'pht': 3726}}" where mtr_portfolio_id = 21905185 and dashboard_run_id = 1710834 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`=21905185 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9754317, 0.05206524876207704, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21905185_31-03-2025_11_53_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21905199, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21905200, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21905201, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21905202, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21905203, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21905204, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21905205, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21905206, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21905207, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21905208, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21905209, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21905210, '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 (21902723,21904049,21904764,21905185) result : ((1348969781,), (1348969809,), (1348969845,), (1348969873,), (1348969920,), (1348971090,), (1348971177,), (1348971258,), (1348971336,), (1348971400,), (1348972166,), (1348972200,), (1348972274,), (1348972352,), (1348972759,), (1348972762,), (1348972767,), (1348972772,), (1348972777,), (1348972850,), (1348972880,), (1348972911,), (1348972948,), (1348972990,), (1348973383,), (1348973417,), (1348973457,), (1348974155,), (1348974250,), (1348974745,), (1348974800,), (1348974847,), (1348974893,), (1348974936,), (1348975325,), (1348975348,), (1348975368,), (1348975396,), (1348975425,), (1348975633,), (1348975644,), (1348975670,), (1348975707,), (1348975978,), (1348976018,), (1348976068,), (1348976114,), (1348976146,), (1348977622,), (1348977707,), (1348977711,), (1348977718,), (1348977880,), (1348977889,), (1348977894,), (1348977899,), (1348978312,), (1348978366,), (1348978553,), (1348978563,), (1348978704,), (1348978708,), (1348978713,), (1348978719,), (1348978726,), (1348978730,), (1348978825,), (1348978780,), (1348978784,), (1348978790,), (1348978795,), (1348978909,), (1348978912,), (1348978921,), (1348978952,), (1348979096,), (1348979116,), (1348979142,), (1348979418,), (1348979421,), (1348979454,), (1348979499,), (1348979668,), (1348979677,), (1348979683,), (1348979689,), (1348979782,), (1348979797,), (1348979831,), (1348979855,), (1348979880,), (1348980297,), (1348980323,), (1348980372,), (1348980424,), (1348980444,), (1348980656,), (1348980658,), (1348980711,), (1348980713,), (1348980715,), (1348980761,), (1348980830,), (1348980835,), (1348980839,), (1348981084,), (1348981086,), (1348981294,), (1348981295,), (1348981339,), (1348981399,), (1348981400,), (1348981402,), (1348981444,), (1348981447,), (1348981709,), (1348981712,), (1348981799,), (1348981967,), (1348981996,), (1348982355,), (1348982807,), (1348982890,), (1348982913,), (1348983050,), (1348983076,), (1348983103,), (1348983118,), (1348983121,), (1348983186,), (1348983181,), (1348983182,), (1348983184,), (1348983394,), (1348983406,), (1348983479,), (1348983481,), (1348983555,), (1348983557,), (1348983562,), (1348983577,), (1348983618,), (1348983854,), (1348983868,), (1348983887,), (1348983891,), (1348983911,), (1348983926,), (1348983960,), (1348983963,), (1348983966,), (1348984005,), (1348984007,), (1348984013,), (1348984016,), (1348984020,), (1348984061,), (1348984065,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'31032025': {'nb_upload': 28, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21905185]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1348984065, 1348984061, 1348984020, 1348984016, 1348984013, 1348984007, 1348984005] map_info['map_portfolio_photo'] : {21905185: [1348984065, 1348984061, 1348984020, 1348984016, 1348984013, 1348984007, 1348984005, 1348983966, 1348983963, 1348983960, 1348983926, 1348983911, 1348983891, 1348983887, 1348983868, 1348983854, 1348983618, 1348983577, 1348983562, 1348983557, 1348983555, 1348983481, 1348983479, 1348983406, 1348983394, 1348983184, 1348983182, 1348983181]} final : True mtd_id 4302 list_pids : [1348984065, 1348984061, 1348984020, 1348984016, 1348984013, 1348984007, 1348984005] Looping around the photos to save general results len do output : 1 /21905185Didn'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, '2708623') ('4302', '21905185', '1348984065', None, None, None, None, None, '2708623') ('4302', None, None, None, None, None, None, None, '2708623') ('4302', '21905185', '1348984061', None, None, None, None, None, '2708623') ('4302', None, None, None, None, None, None, None, '2708623') ('4302', '21905185', '1348984020', None, None, None, None, None, '2708623') ('4302', None, None, None, None, None, None, None, '2708623') ('4302', '21905185', '1348984016', None, None, None, None, None, '2708623') ('4302', None, None, None, None, None, None, None, '2708623') ('4302', '21905185', '1348984013', None, None, None, None, None, '2708623') ('4302', None, None, None, None, None, None, None, '2708623') ('4302', '21905185', '1348984007', None, None, None, None, None, '2708623') ('4302', None, None, None, None, None, None, None, '2708623') ('4302', '21905185', '1348984005', None, None, None, None, None, '2708623') 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, '21905185', 'None', None, None, None, None, '2708623'), ('4302', '21905185', '1348984065', None, None, None, None, None, '2708623'), ('4302', '21905185', '1348984061', None, None, None, None, None, '2708623'), ('4302', '21905185', '1348984020', None, None, None, None, None, '2708623'), ('4302', '21905185', '1348984016', None, None, None, None, None, '2708623'), ('4302', '21905185', '1348984013', None, None, None, None, None, '2708623'), ('4302', '21905185', '1348984007', None, None, None, None, None, '2708623'), ('4302', '21905185', '1348984005', None, None, None, None, None, '2708623')] time used for this insertion : 0.014947175979614258 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.348254919052124 time spend to save output : 0.015140056610107422 total time spend for step 5 : 0.36339497566223145 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 (2708623) 2.09user 2.43system 0:07.66elapsed 59%CPU (0avgtext+0avgdata 159368maxresident)k 46888inputs+6760outputs (178major+63882minor)pagefaults 0swaps