4302 [] TODO datou_current to load to do maybe to take outside batchDatouExec SELECT * from MTRPhoto.mtr_datou_current where state = 0 AND mtr_portfolio_id is not NULL AND mtd_id = 4302 order by created_at desc LIMIT 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2813142) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2813142) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22833758 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2813142'] with mtr_portfolio_ids : ['22833758'] and first list_photo_ids : [] new path : /proc/1105053/ Name: python3 Umask: 0002 State: R (running) Tgid: 1105053 Ngid: 0 Pid: 1105053 PPid: 1105051 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1105053 NSpid: 1105053 NSpgid: 1102089 NSsid: 1102089 VmPeak: 1107228 kB VmSize: 1107228 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97980 kB VmRSS: 97980 kB RssAnon: 60196 kB RssFile: 37784 kB RssShmem: 0 kB VmData: 865976 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 616 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 49 nonvoluntary_ctxt_switches: 76 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1105053', 'Ngid': '0', 'Pid': '1105053', 'PPid': '1105051', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1105053', 'NSpid': '1105053', 'NSpgid': '1102089', 'NSsid': '1102089', 'VmPeak': '1107228 kB', 'VmSize': '1107228 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97980 kB', 'VmRSS': '97980 kB', 'RssAnon': '60196 kB', 'RssFile': '37784 kB', 'RssShmem': '0 kB', 'VmData': '865976 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '616 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '49', 'nonvoluntary_ctxt_switches': '76'} ('datou_batch_current', '1105053', '1107228', '0', '1107228', '865976', '97980', b'', 'marlene', '2813142') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou 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 List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (22833758) and hide_status = 0 ) AND ph.photo_id not in (SELECT mtr_photo_id from MTRPhoto.mtr_datou_result_search where mtr_current_id in (2813142 ) ) ORDER BY ph.photo_id DESC LIMIT 0, 200 We have 1 , {} SELECT mtr_photo_id, mtr_portfolio_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (22833758) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1357234663, 'portfolio_id': 22833758}, {'photo_id': 1357234654, 'portfolio_id': 22833758}, {'photo_id': 1357234504, 'portfolio_id': 22833758}, {'photo_id': 1357234501, 'portfolio_id': 22833758}, {'photo_id': 1357234499, 'portfolio_id': 22833758}, {'photo_id': 1357234481, 'portfolio_id': 22833758}, {'photo_id': 1357234465, 'portfolio_id': 22833758}, {'photo_id': 1357234437, 'portfolio_id': 22833758}, {'photo_id': 1357234251, 'portfolio_id': 22833758}, {'photo_id': 1357234248, 'portfolio_id': 22833758}, {'photo_id': 1357234244, 'portfolio_id': 22833758}, {'photo_id': 1357234239, 'portfolio_id': 22833758}, {'photo_id': 1357234235, 'portfolio_id': 22833758}, {'photo_id': 1357234225, 'portfolio_id': 22833758}, {'photo_id': 1357233882, 'portfolio_id': 22833758}, {'photo_id': 1357233862, 'portfolio_id': 22833758}, {'photo_id': 1357233823, 'portfolio_id': 22833758}, {'photo_id': 1357233801, 'portfolio_id': 22833758}, {'photo_id': 1357233255, 'portfolio_id': 22833758}, {'photo_id': 1357233198, 'portfolio_id': 22833758}, {'photo_id': 1357233171, 'portfolio_id': 22833758}, {'photo_id': 1357233143, 'portfolio_id': 22833758}, {'photo_id': 1357232684, 'portfolio_id': 22833758}, {'photo_id': 1357232646, 'portfolio_id': 22833758}, {'photo_id': 1357232640, 'portfolio_id': 22833758}, {'photo_id': 1357232611, 'portfolio_id': 22833758}, {'photo_id': 1357232585, 'portfolio_id': 22833758}, {'photo_id': 1357232178, 'portfolio_id': 22833758}, {'photo_id': 1357232117, 'portfolio_id': 22833758}, {'photo_id': 1357232029, 'portfolio_id': 22833758}, {'photo_id': 1357231948, 'portfolio_id': 22833758}, {'photo_id': 1357231869, 'portfolio_id': 22833758}, {'photo_id': 1357230722, 'portfolio_id': 22833758}, {'photo_id': 1357230696, 'portfolio_id': 22833758}, {'photo_id': 1357230667, 'portfolio_id': 22833758}, {'photo_id': 1357230525, 'portfolio_id': 22833758}, {'photo_id': 1357230522, 'portfolio_id': 22833758}, {'photo_id': 1357230518, 'portfolio_id': 22833758}, {'photo_id': 1357230498, 'portfolio_id': 22833758}, {'photo_id': 1357230332, 'portfolio_id': 22833758}, {'photo_id': 1357230327, 'portfolio_id': 22833758}, {'photo_id': 1357230325, 'portfolio_id': 22833758}, {'photo_id': 1357230322, 'portfolio_id': 22833758}, {'photo_id': 1357230318, 'portfolio_id': 22833758}, {'photo_id': 1357230304, 'portfolio_id': 22833758}, {'photo_id': 1357229592, 'portfolio_id': 22833758}, {'photo_id': 1357229512, 'portfolio_id': 22833758}, {'photo_id': 1357229428, 'portfolio_id': 22833758}, {'photo_id': 1357229349, 'portfolio_id': 22833758}, {'photo_id': 1357229297, 'portfolio_id': 22833758}, {'photo_id': 1357228564, 'portfolio_id': 22833758}, {'photo_id': 1357228352, 'portfolio_id': 22833758}, {'photo_id': 1357227448, 'portfolio_id': 22833758}, {'photo_id': 1357227395, 'portfolio_id': 22833758}, {'photo_id': 1357227242, 'portfolio_id': 22833758}, {'photo_id': 1357227229, 'portfolio_id': 22833758}, {'photo_id': 1357227200, 'portfolio_id': 22833758}, {'photo_id': 1357227177, 'portfolio_id': 22833758}] map_portfolio_id_photo_id: {22833758: [1357234663, 1357234654, 1357234504, 1357234501, 1357234499, 1357234481, 1357234465, 1357234437, 1357234251, 1357234248, 1357234244, 1357234239, 1357234235, 1357234225, 1357233882, 1357233862, 1357233823, 1357233801, 1357233255, 1357233198, 1357233171, 1357233143, 1357232684, 1357232646, 1357232640, 1357232611, 1357232585, 1357232178, 1357232117, 1357232029, 1357231948, 1357231869, 1357230722, 1357230696, 1357230667, 1357230525, 1357230522, 1357230518, 1357230498, 1357230332, 1357230327, 1357230325, 1357230322, 1357230318, 1357230304, 1357229592, 1357229512, 1357229428, 1357229349, 1357229297, 1357228564, 1357228352, 1357227448, 1357227395, 1357227242, 1357227229, 1357227200, 1357227177]} ##### Call download_photos : nb_thread : 1 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos ##### After load_data_input time to download the photos : 0.018443584442138672 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Fri May 9 17:14:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22833758) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} beginning of datou step ventilate_hashtags_in_portfolio : To implement ! To do loadFromThcl(), then load ParamDescType : thcl2725 get_desc_type_from_thcl : type of cat SELECT id, mtr_user_id, name, pb_hashtag_id, hashtag_id_list, button_legend_list, portfolio_id_lists, photo_hashtag_type, photo_desc_type, svm_limit, limit_tagging, is_public, live, created_at, updated_at, type_classification FROM MTRDatou.classification_theme WHERE `id` IN (2725) thcls : [{'id': 2725, 'mtr_user_id': 31, 'name': 'learn_qualipapia_rle_210302_2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Carton_brun,Carton_gris,Teint_Dans_La_Masse,autre_refus,cartonnette,environnement,kraft,metal,papier,plastique', 'svm_portfolios_learning': '3460440,3460441,3460446,3460434,3460439,3467416,3460442,3460443,3486028,3460445', 'photo_hashtag_type': 3410, 'photo_desc_type': 5186, 'type_classification': 'caffe', 'hashtag_id_list': '2107753024,2107753020,2107752385,2107752406,702398920,493012381,493202403,492628673,492668766,492725882'}] thcl {'id': 2725, 'mtr_user_id': 31, 'name': 'learn_qualipapia_rle_210302_2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Carton_brun,Carton_gris,Teint_Dans_La_Masse,autre_refus,cartonnette,environnement,kraft,metal,papier,plastique', 'svm_portfolios_learning': '3460440,3460441,3460446,3460434,3460439,3467416,3460442,3460443,3486028,3460445', 'photo_hashtag_type': 3410, 'photo_desc_type': 5186, 'type_classification': 'caffe', 'hashtag_id_list': '2107753024,2107753020,2107752385,2107752406,702398920,493012381,493202403,492628673,492668766,492725882'} Update svm_hashtag_type_desc : 5186 remove imagettes from duplicated photo Iterating over portfolio : 22833758 get user id for portfolio 22833758 get sub ptf for main ptf 22833758, type 3726 and hashtags ['metal', 'flou', 'environnement', 'Carton_brun', 'mal_croppe', 'autre_refus', 'Carton_gris', 'cartonnette', 'kraft', 'papier', 'Teint_Dans_La_Masse', 'plastique'] 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`=22833758 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','flou','environnement','Carton_brun','mal_croppe','autre_refus','Carton_gris','cartonnette','kraft','papier','Teint_Dans_La_Masse','plastique')) AND mptpi.`min_score`=0.5 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`=22833758 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','flou','environnement','Carton_brun','mal_croppe','autre_refus','Carton_gris','cartonnette','kraft','papier','Teint_Dans_La_Masse','plastique')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 22833758, 'sub_port_id': 22833810, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15236272, 'last_updated_at': datetime.datetime(2025, 5, 9, 17, 13), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 17, 13), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 17, 3, 29)}, 'kraft': {'main_port_id': 22833758, 'sub_port_id': 22833811, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15236273, 'last_updated_at': datetime.datetime(2025, 5, 9, 17, 13), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 17, 13), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 17, 3, 29)}, 'Carton_brun': {'main_port_id': 22833758, 'sub_port_id': 22833812, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15236274, 'last_updated_at': datetime.datetime(2025, 5, 9, 17, 13), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 17, 13), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 17, 3, 29)}, 'mal_croppe': {'main_port_id': 22833758, 'sub_port_id': 22833813, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15236275, 'last_updated_at': datetime.datetime(2025, 5, 9, 17, 13), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 17, 13), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 17, 3, 29)}, 'autre_refus': {'main_port_id': 22833758, 'sub_port_id': 22833814, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15236276, 'last_updated_at': datetime.datetime(2025, 5, 9, 17, 13), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 17, 13), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 17, 3, 29)}, 'plastique': {'main_port_id': 22833758, 'sub_port_id': 22833815, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15236277, 'last_updated_at': datetime.datetime(2025, 5, 9, 17, 13), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 17, 13), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 17, 3, 29)}, 'metal': {'main_port_id': 22833758, 'sub_port_id': 22833816, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15236278, 'last_updated_at': datetime.datetime(2025, 5, 9, 17, 13), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 17, 13), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 17, 3, 29)}, 'Carton_gris': {'main_port_id': 22833758, 'sub_port_id': 22833817, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15236279, 'last_updated_at': datetime.datetime(2025, 5, 9, 17, 13), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 17, 13), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 17, 3, 29)}, 'flou': {'main_port_id': 22833758, 'sub_port_id': 22833818, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15236280, 'last_updated_at': datetime.datetime(2025, 5, 9, 17, 13), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 17, 13), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 17, 3, 29)}, 'environnement': {'main_port_id': 22833758, 'sub_port_id': 22833819, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15236281, 'last_updated_at': datetime.datetime(2025, 5, 9, 17, 13), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 17, 13), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 17, 3, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 22833758, 'sub_port_id': 22833820, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15236282, 'last_updated_at': datetime.datetime(2025, 5, 9, 17, 13), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 17, 13), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 17, 3, 29)}, 'papier': {'main_port_id': 22833758, 'sub_port_id': 22833821, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15236283, 'last_updated_at': datetime.datetime(2025, 5, 9, 17, 13), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 17, 13), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 17, 3, 29)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22833810 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=22833758 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='cartonnette' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22833810) result : ((1357229405,), (1357229407,), (1357231206,), (1357231414,), (1357232550,), (1357232551,), (1357233770,), (1357233771,), (1357234149,), (1357234535,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22833758) result : ((1357227177,), (1357227200,), (1357227229,), (1357227242,), (1357227395,), (1357227448,), (1357228352,), (1357228564,), (1357229297,), (1357229349,), (1357229428,), (1357229512,), (1357229592,), (1357230304,), (1357230318,), (1357230322,), (1357230325,), (1357230327,), (1357230332,), (1357230498,), (1357230518,), (1357230522,), (1357230525,), (1357230667,), (1357230696,), (1357230722,), (1357231869,), (1357231948,), (1357232029,), (1357232117,), (1357232178,), (1357232585,), (1357232611,), (1357232640,), (1357232646,), (1357232684,), (1357233143,), (1357233171,), (1357233198,), (1357233255,), (1357233801,), (1357233823,), (1357233862,), (1357233882,), (1357234225,), (1357234235,), (1357234239,), (1357234244,), (1357234248,), (1357234251,), (1357234437,), (1357234465,), (1357234481,), (1357234499,), (1357234501,), (1357234504,), (1357234654,), (1357234663,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1357227200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22833811 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=22833758 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='kraft' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22833811) result : ((1357234184,), (1357234548,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22833758) result : ((1357227177,), (1357227200,), (1357227229,), (1357227242,), (1357227395,), (1357227448,), (1357228352,), (1357228564,), (1357229297,), (1357229349,), (1357229428,), (1357229512,), (1357229592,), (1357230304,), (1357230318,), (1357230322,), (1357230325,), (1357230327,), (1357230332,), (1357230498,), (1357230518,), (1357230522,), (1357230525,), (1357230667,), (1357230696,), (1357230722,), (1357231869,), (1357231948,), (1357232029,), (1357232117,), (1357232178,), (1357232585,), (1357232611,), (1357232640,), (1357232646,), (1357232684,), (1357233143,), (1357233171,), (1357233198,), (1357233255,), (1357233801,), (1357233823,), (1357233862,), (1357233882,), (1357234225,), (1357234235,), (1357234239,), (1357234244,), (1357234248,), (1357234251,), (1357234437,), (1357234465,), (1357234481,), (1357234499,), (1357234501,), (1357234504,), (1357234654,), (1357234663,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1357227200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22833812 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=22833758 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='Carton_brun' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22833812) result : ((1357230363,), (1357232560,), (1357232561,), (1357232562,), (1357233778,), (1357233779,), (1357233781,), (1357234089,), (1357234090,), (1357234091,), (1357234160,), (1357234163,), (1357234165,), (1357234542,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22833758) result : ((1357227177,), (1357227200,), (1357227229,), (1357227242,), (1357227395,), (1357227448,), (1357228352,), (1357228564,), (1357229297,), (1357229349,), (1357229428,), (1357229512,), (1357229592,), (1357230304,), (1357230318,), (1357230322,), (1357230325,), (1357230327,), (1357230332,), (1357230498,), (1357230518,), (1357230522,), (1357230525,), (1357230667,), (1357230696,), (1357230722,), (1357231869,), (1357231948,), (1357232029,), (1357232117,), (1357232178,), (1357232585,), (1357232611,), (1357232640,), (1357232646,), (1357232684,), (1357233143,), (1357233171,), (1357233198,), (1357233255,), (1357233801,), (1357233823,), (1357233862,), (1357233882,), (1357234225,), (1357234235,), (1357234239,), (1357234244,), (1357234248,), (1357234251,), (1357234437,), (1357234465,), (1357234481,), (1357234499,), (1357234501,), (1357234504,), (1357234654,), (1357234663,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1357227200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22833813 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=22833758 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='mal_croppe' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22833813) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22833758) result : ((1357227177,), (1357227200,), (1357227229,), (1357227242,), (1357227395,), (1357227448,), (1357228352,), (1357228564,), (1357229297,), (1357229349,), (1357229428,), (1357229512,), (1357229592,), (1357230304,), (1357230318,), (1357230322,), (1357230325,), (1357230327,), (1357230332,), (1357230498,), (1357230518,), (1357230522,), (1357230525,), (1357230667,), (1357230696,), (1357230722,), (1357231869,), (1357231948,), (1357232029,), (1357232117,), (1357232178,), (1357232585,), (1357232611,), (1357232640,), (1357232646,), (1357232684,), (1357233143,), (1357233171,), (1357233198,), (1357233255,), (1357233801,), (1357233823,), (1357233862,), (1357233882,), (1357234225,), (1357234235,), (1357234239,), (1357234244,), (1357234248,), (1357234251,), (1357234437,), (1357234465,), (1357234481,), (1357234499,), (1357234501,), (1357234504,), (1357234654,), (1357234663,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1357227200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22833814 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=22833758 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='autre_refus' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22833814) result : ((1357232521,), (1357232522,), (1357233756,), (1357233757,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22833758) result : ((1357227177,), (1357227200,), (1357227229,), (1357227242,), (1357227395,), (1357227448,), (1357228352,), (1357228564,), (1357229297,), (1357229349,), (1357229428,), (1357229512,), (1357229592,), (1357230304,), (1357230318,), (1357230322,), (1357230325,), (1357230327,), (1357230332,), (1357230498,), (1357230518,), (1357230522,), (1357230525,), (1357230667,), (1357230696,), (1357230722,), (1357231869,), (1357231948,), (1357232029,), (1357232117,), (1357232178,), (1357232585,), (1357232611,), (1357232640,), (1357232646,), (1357232684,), (1357233143,), (1357233171,), (1357233198,), (1357233255,), (1357233801,), (1357233823,), (1357233862,), (1357233882,), (1357234225,), (1357234235,), (1357234239,), (1357234244,), (1357234248,), (1357234251,), (1357234437,), (1357234465,), (1357234481,), (1357234499,), (1357234501,), (1357234504,), (1357234654,), (1357234663,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1357227200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22833815 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=22833758 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='plastique' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22833815) result : ((1357229424,), (1357229426,), (1357230370,), (1357230372,), (1357230373,), (1357231224,), (1357232572,), (1357233791,), (1357234177,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22833758) result : ((1357227177,), (1357227200,), (1357227229,), (1357227242,), (1357227395,), (1357227448,), (1357228352,), (1357228564,), (1357229297,), (1357229349,), (1357229428,), (1357229512,), (1357229592,), (1357230304,), (1357230318,), (1357230322,), (1357230325,), (1357230327,), (1357230332,), (1357230498,), (1357230518,), (1357230522,), (1357230525,), (1357230667,), (1357230696,), (1357230722,), (1357231869,), (1357231948,), (1357232029,), (1357232117,), (1357232178,), (1357232585,), (1357232611,), (1357232640,), (1357232646,), (1357232684,), (1357233143,), (1357233171,), (1357233198,), (1357233255,), (1357233801,), (1357233823,), (1357233862,), (1357233882,), (1357234225,), (1357234235,), (1357234239,), (1357234244,), (1357234248,), (1357234251,), (1357234437,), (1357234465,), (1357234481,), (1357234499,), (1357234501,), (1357234504,), (1357234654,), (1357234663,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1357227200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22833816 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=22833758 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='metal' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22833816) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22833758) result : ((1357227177,), (1357227200,), (1357227229,), (1357227242,), (1357227395,), (1357227448,), (1357228352,), (1357228564,), (1357229297,), (1357229349,), (1357229428,), (1357229512,), (1357229592,), (1357230304,), (1357230318,), (1357230322,), (1357230325,), (1357230327,), (1357230332,), (1357230498,), (1357230518,), (1357230522,), (1357230525,), (1357230667,), (1357230696,), (1357230722,), (1357231869,), (1357231948,), (1357232029,), (1357232117,), (1357232178,), (1357232585,), (1357232611,), (1357232640,), (1357232646,), (1357232684,), (1357233143,), (1357233171,), (1357233198,), (1357233255,), (1357233801,), (1357233823,), (1357233862,), (1357233882,), (1357234225,), (1357234235,), (1357234239,), (1357234244,), (1357234248,), (1357234251,), (1357234437,), (1357234465,), (1357234481,), (1357234499,), (1357234501,), (1357234504,), (1357234654,), (1357234663,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1357227200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22833817 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=22833758 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='Carton_gris' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22833817) result : ((1357229389,), (1357229390,), (1357229393,), (1357230356,), (1357230357,), (1357231189,), (1357231386,), (1357232534,), (1357232535,), (1357232536,), (1357232538,), (1357233759,), (1357233761,), (1357233762,), (1357233763,), (1357234085,), (1357234086,), (1357234141,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22833758) result : ((1357227177,), (1357227200,), (1357227229,), (1357227242,), (1357227395,), (1357227448,), (1357228352,), (1357228564,), (1357229297,), (1357229349,), (1357229428,), (1357229512,), (1357229592,), (1357230304,), (1357230318,), (1357230322,), (1357230325,), (1357230327,), (1357230332,), (1357230498,), (1357230518,), (1357230522,), (1357230525,), (1357230667,), (1357230696,), (1357230722,), (1357231869,), (1357231948,), (1357232029,), (1357232117,), (1357232178,), (1357232585,), (1357232611,), (1357232640,), (1357232646,), (1357232684,), (1357233143,), (1357233171,), (1357233198,), (1357233255,), (1357233801,), (1357233823,), (1357233862,), (1357233882,), (1357234225,), (1357234235,), (1357234239,), (1357234244,), (1357234248,), (1357234251,), (1357234437,), (1357234465,), (1357234481,), (1357234499,), (1357234501,), (1357234504,), (1357234654,), (1357234663,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1357227200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22833818 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=22833758 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='flou' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22833818) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22833758) result : ((1357227177,), (1357227200,), (1357227229,), (1357227242,), (1357227395,), (1357227448,), (1357228352,), (1357228564,), (1357229297,), (1357229349,), (1357229428,), (1357229512,), (1357229592,), (1357230304,), (1357230318,), (1357230322,), (1357230325,), (1357230327,), (1357230332,), (1357230498,), (1357230518,), (1357230522,), (1357230525,), (1357230667,), (1357230696,), (1357230722,), (1357231869,), (1357231948,), (1357232029,), (1357232117,), (1357232178,), (1357232585,), (1357232611,), (1357232640,), (1357232646,), (1357232684,), (1357233143,), (1357233171,), (1357233198,), (1357233255,), (1357233801,), (1357233823,), (1357233862,), (1357233882,), (1357234225,), (1357234235,), (1357234239,), (1357234244,), (1357234248,), (1357234251,), (1357234437,), (1357234465,), (1357234481,), (1357234499,), (1357234501,), (1357234504,), (1357234654,), (1357234663,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1357227200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22833819 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=22833758 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='environnement' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22833819) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22833758) result : ((1357227177,), (1357227200,), (1357227229,), (1357227242,), (1357227395,), (1357227448,), (1357228352,), (1357228564,), (1357229297,), (1357229349,), (1357229428,), (1357229512,), (1357229592,), (1357230304,), (1357230318,), (1357230322,), (1357230325,), (1357230327,), (1357230332,), (1357230498,), (1357230518,), (1357230522,), (1357230525,), (1357230667,), (1357230696,), (1357230722,), (1357231869,), (1357231948,), (1357232029,), (1357232117,), (1357232178,), (1357232585,), (1357232611,), (1357232640,), (1357232646,), (1357232684,), (1357233143,), (1357233171,), (1357233198,), (1357233255,), (1357233801,), (1357233823,), (1357233862,), (1357233882,), (1357234225,), (1357234235,), (1357234239,), (1357234244,), (1357234248,), (1357234251,), (1357234437,), (1357234465,), (1357234481,), (1357234499,), (1357234501,), (1357234504,), (1357234654,), (1357234663,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1357227200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22833820 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=22833758 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='Teint_Dans_La_Masse' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22833820) result : ((1357229224,), (1357232513,), (1357233755,), (1357234075,), (1357234076,), (1357234077,), (1357234128,), (1357234131,), (1357234529,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22833758) result : ((1357227177,), (1357227200,), (1357227229,), (1357227242,), (1357227395,), (1357227448,), (1357228352,), (1357228564,), (1357229297,), (1357229349,), (1357229428,), (1357229512,), (1357229592,), (1357230304,), (1357230318,), (1357230322,), (1357230325,), (1357230327,), (1357230332,), (1357230498,), (1357230518,), (1357230522,), (1357230525,), (1357230667,), (1357230696,), (1357230722,), (1357231869,), (1357231948,), (1357232029,), (1357232117,), (1357232178,), (1357232585,), (1357232611,), (1357232640,), (1357232646,), (1357232684,), (1357233143,), (1357233171,), (1357233198,), (1357233255,), (1357233801,), (1357233823,), (1357233862,), (1357233882,), (1357234225,), (1357234235,), (1357234239,), (1357234244,), (1357234248,), (1357234251,), (1357234437,), (1357234465,), (1357234481,), (1357234499,), (1357234501,), (1357234504,), (1357234654,), (1357234663,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1357227200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22833821 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=22833758 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='papier' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22833821) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22833758) result : ((1357227177,), (1357227200,), (1357227229,), (1357227242,), (1357227395,), (1357227448,), (1357228352,), (1357228564,), (1357229297,), (1357229349,), (1357229428,), (1357229512,), (1357229592,), (1357230304,), (1357230318,), (1357230322,), (1357230325,), (1357230327,), (1357230332,), (1357230498,), (1357230518,), (1357230522,), (1357230525,), (1357230667,), (1357230696,), (1357230722,), (1357231869,), (1357231948,), (1357232029,), (1357232117,), (1357232178,), (1357232585,), (1357232611,), (1357232640,), (1357232646,), (1357232684,), (1357233143,), (1357233171,), (1357233198,), (1357233255,), (1357233801,), (1357233823,), (1357233862,), (1357233882,), (1357234225,), (1357234235,), (1357234239,), (1357234244,), (1357234248,), (1357234251,), (1357234437,), (1357234465,), (1357234481,), (1357234499,), (1357234501,), (1357234504,), (1357234654,), (1357234663,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1357227200) and cspi.crop_hashtag_id = chi.id; To do ! Use context local managing function ! 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`=22833758 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','flou','environnement','Carton_brun','mal_croppe','autre_refus','Carton_gris','cartonnette','kraft','papier','Teint_Dans_La_Masse','plastique')) AND mptpi.`min_score`=0.5 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`=22833758 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','flou','environnement','Carton_brun','mal_croppe','autre_refus','Carton_gris','cartonnette','kraft','papier','Teint_Dans_La_Masse','plastique')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 22833758, 'sub_port_id': 22833822, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15236284, 'last_updated_at': datetime.datetime(2025, 5, 9, 17, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 17, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 17, 3, 30)}, 'kraft': {'main_port_id': 22833758, 'sub_port_id': 22833823, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15236285, 'last_updated_at': datetime.datetime(2025, 5, 9, 17, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 17, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 17, 3, 30)}, 'Carton_brun': {'main_port_id': 22833758, 'sub_port_id': 22833824, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15236286, 'last_updated_at': datetime.datetime(2025, 5, 9, 17, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 17, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 17, 3, 30)}, 'mal_croppe': {'main_port_id': 22833758, 'sub_port_id': 22833825, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15236287, 'last_updated_at': datetime.datetime(2025, 5, 9, 17, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 17, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 17, 3, 30)}, 'autre_refus': {'main_port_id': 22833758, 'sub_port_id': 22833826, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15236288, 'last_updated_at': datetime.datetime(2025, 5, 9, 17, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 17, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 17, 3, 30)}, 'plastique': {'main_port_id': 22833758, 'sub_port_id': 22833827, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15236289, 'last_updated_at': datetime.datetime(2025, 5, 9, 17, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 17, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 17, 3, 30)}, 'metal': {'main_port_id': 22833758, 'sub_port_id': 22833828, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15236290, 'last_updated_at': datetime.datetime(2025, 5, 9, 17, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 17, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 17, 3, 30)}, 'Carton_gris': {'main_port_id': 22833758, 'sub_port_id': 22833829, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15236291, 'last_updated_at': datetime.datetime(2025, 5, 9, 17, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 17, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 17, 3, 30)}, 'flou': {'main_port_id': 22833758, 'sub_port_id': 22833830, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15236292, 'last_updated_at': datetime.datetime(2025, 5, 9, 17, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 17, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 17, 3, 30)}, 'environnement': {'main_port_id': 22833758, 'sub_port_id': 22833831, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15236293, 'last_updated_at': datetime.datetime(2025, 5, 9, 17, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 17, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 17, 3, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 22833758, 'sub_port_id': 22833832, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15236294, 'last_updated_at': datetime.datetime(2025, 5, 9, 17, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 17, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 17, 3, 30)}, 'papier': {'main_port_id': 22833758, 'sub_port_id': 22833833, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15236295, 'last_updated_at': datetime.datetime(2025, 5, 9, 17, 13), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 17, 13), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 17, 3, 30)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22833822,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22833810 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22833823,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22833811 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22833824,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22833812 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22833825,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22833813 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22833826,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22833814 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22833827,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22833815 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22833828,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22833816 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22833829,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22833817 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22833830,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22833818 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22833831,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22833819 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22833832,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22833820 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22833833,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22833821 lien utilise dans velours : https://www.fotonower.com/velours/22833822,22833823,22833824,22833825,22833826,22833827,22833828,22833829,22833830,22833831,22833832,22833833?tags=cartonnette,kraft,Carton_brun,mal_croppe,autre_refus,plastique,metal,Carton_gris,flou,environnement,Teint_Dans_La_Masse,papier After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22833758]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1357234663, 1357234654, 1357234504, 1357234501, 1357234499, 1357234481, 1357234465, 1357234437, 1357234251, 1357234248, 1357234244, 1357234239, 1357234235, 1357234225] map_info['map_portfolio_photo'] : {22833758: [1357234663, 1357234654, 1357234504, 1357234501, 1357234499, 1357234481, 1357234465, 1357234437, 1357234251, 1357234248, 1357234244, 1357234239, 1357234235, 1357234225, 1357233882, 1357233862, 1357233823, 1357233801, 1357233255, 1357233198, 1357233171, 1357233143, 1357232684, 1357232646, 1357232640, 1357232611, 1357232585, 1357232178, 1357232117, 1357232029, 1357231948, 1357231869, 1357230722, 1357230696, 1357230667, 1357230525, 1357230522, 1357230518, 1357230498, 1357230332, 1357230327, 1357230325, 1357230322, 1357230318, 1357230304, 1357229592, 1357229512, 1357229428, 1357229349, 1357229297, 1357228564, 1357228352, 1357227448, 1357227395, 1357227242, 1357227229, 1357227200, 1357227177]} final : False mtd_id 4302 list_pids : [1357234663, 1357234654, 1357234504, 1357234501, 1357234499, 1357234481, 1357234465, 1357234437, 1357234251, 1357234248, 1357234244, 1357234239, 1357234235, 1357234225] Looping around the photos to save general results len do output : 1 /22833758. 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, '2813142') ('4302', '22833758', '1357234663', None, None, None, None, None, '2813142') ('4302', None, None, None, None, None, None, None, '2813142') ('4302', '22833758', '1357234654', None, None, None, None, None, '2813142') ('4302', None, None, None, None, None, None, None, '2813142') ('4302', '22833758', '1357234504', None, None, None, None, None, '2813142') ('4302', None, None, None, None, None, None, None, '2813142') ('4302', '22833758', '1357234501', None, None, None, None, None, '2813142') ('4302', None, None, None, None, None, None, None, '2813142') ('4302', '22833758', '1357234499', None, None, None, None, None, '2813142') ('4302', None, None, None, None, None, None, None, '2813142') ('4302', '22833758', '1357234481', None, None, None, None, None, '2813142') ('4302', None, None, None, None, None, None, None, '2813142') ('4302', '22833758', '1357234465', None, None, None, None, None, '2813142') ('4302', None, None, None, None, None, None, None, '2813142') ('4302', '22833758', '1357234437', None, None, None, None, None, '2813142') ('4302', None, None, None, None, None, None, None, '2813142') ('4302', '22833758', '1357234251', None, None, None, None, None, '2813142') ('4302', None, None, None, None, None, None, None, '2813142') ('4302', '22833758', '1357234248', None, None, None, None, None, '2813142') ('4302', None, None, None, None, None, None, None, '2813142') ('4302', '22833758', '1357234244', None, None, None, None, None, '2813142') ('4302', None, None, None, None, None, None, None, '2813142') ('4302', '22833758', '1357234239', None, None, None, None, None, '2813142') ('4302', None, None, None, None, None, None, None, '2813142') ('4302', '22833758', '1357234235', None, None, None, None, None, '2813142') ('4302', None, None, None, None, None, None, None, '2813142') ('4302', '22833758', '1357234225', None, None, None, None, None, '2813142') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 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, '22833758', "{'cartonnette': 22833810, 'kraft': 22833811, 'Carton_brun': 22833812, 'mal_croppe': 22833813, 'autre_refus': 22833814, 'plastique': 22833815, 'metal': 22833816, 'Carton_gris': 22833817, 'flou': 22833818, 'environnement': 22833819, 'Teint_Dans_La_Masse': 22833820, 'papier': 22833821}", None, None, None, None, '2813142'), ('4302', '22833758', '1357234663', None, None, None, None, None, '2813142'), ('4302', '22833758', '1357234654', None, None, None, None, None, '2813142'), ('4302', '22833758', '1357234504', None, None, None, None, None, '2813142'), ('4302', '22833758', '1357234501', None, None, None, None, None, '2813142'), ('4302', '22833758', '1357234499', None, None, None, None, None, '2813142'), ('4302', '22833758', '1357234481', None, None, None, None, None, '2813142'), ('4302', '22833758', '1357234465', None, None, None, None, None, '2813142'), ('4302', '22833758', '1357234437', None, None, None, None, None, '2813142'), ('4302', '22833758', '1357234251', None, None, None, None, None, '2813142'), ('4302', '22833758', '1357234248', None, None, None, None, None, '2813142'), ('4302', '22833758', '1357234244', None, None, None, None, None, '2813142'), ('4302', '22833758', '1357234239', None, None, None, None, None, '2813142'), ('4302', '22833758', '1357234235', None, None, None, None, None, '2813142'), ('4302', '22833758', '1357234225', None, None, None, None, None, '2813142')] time used for this insertion : 0.01880621910095215 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4629232883453369 time spend to save output : 0.01911473274230957 total time spend for step 1 : 0.4820380210876465 step2:final Fri May 9 17:14:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22833758) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} Beginning of datou step final ! query to retrieve results for portfolio 22833758 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1357227242,1357227229,1357227200,1357227177,1357227448,1357227395,1357228564,1357228352,1357229592,1357229512,1357229428,1357229349,1357229297,1357230332,1357230327,1357230325,1357230322,1357230318,1357230304,1357230525,1357230522,1357230518,1357230498,1357230722,1357230696,1357230667,1357232178,1357232117,1357232029,1357231948,1357231869,1357232684,1357232646,1357232640,1357232611,1357232585,1357233255,1357233198,1357233171,1357233143,1357233882,1357233862,1357233823,1357233801,1357234251,1357234248,1357234244,1357234239,1357234235,1357234225,1357234504,1357234501,1357234499,1357234481,1357234465,1357234437,1357234663,1357234654); insert ignore into MTRUser.portfolio_carac_ratio (portfolio_id, hashtag_type, hashtag_id, value) values (%s,%s,%s,%s) on DUPLICATE KEY UPDATE value=VALUES(value) After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22833758]) Inside saveOutput : final : False verbose : True original output for save of step final : {1357234663: ('0.03229698608742104',), 1357234654: ('0.03229698608742104',), 1357234504: ('0.03229698608742104',), 1357234501: ('0.03229698608742104',), 1357234499: ('0.03229698608742104',), 1357234481: ('0.03229698608742104',), 1357234465: ('0.03229698608742104',), 1357234437: ('0.03229698608742104',), 1357234251: ('0.03229698608742104',), 1357234248: ('0.03229698608742104',), 1357234244: ('0.03229698608742104',), 1357234239: ('0.03229698608742104',), 1357234235: ('0.03229698608742104',), 1357234225: ('0.03229698608742104',)} new output for save of step final : {1357234663: ('0.03229698608742104',), 1357234654: ('0.03229698608742104',), 1357234504: ('0.03229698608742104',), 1357234501: ('0.03229698608742104',), 1357234499: ('0.03229698608742104',), 1357234481: ('0.03229698608742104',), 1357234465: ('0.03229698608742104',), 1357234437: ('0.03229698608742104',), 1357234251: ('0.03229698608742104',), 1357234248: ('0.03229698608742104',), 1357234244: ('0.03229698608742104',), 1357234239: ('0.03229698608742104',), 1357234235: ('0.03229698608742104',), 1357234225: ('0.03229698608742104',)} [1357234663, 1357234654, 1357234504, 1357234501, 1357234499, 1357234481, 1357234465, 1357234437, 1357234251, 1357234248, 1357234244, 1357234239, 1357234235, 1357234225] map_info['map_portfolio_photo'] : {22833758: [1357234663, 1357234654, 1357234504, 1357234501, 1357234499, 1357234481, 1357234465, 1357234437, 1357234251, 1357234248, 1357234244, 1357234239, 1357234235, 1357234225, 1357233882, 1357233862, 1357233823, 1357233801, 1357233255, 1357233198, 1357233171, 1357233143, 1357232684, 1357232646, 1357232640, 1357232611, 1357232585, 1357232178, 1357232117, 1357232029, 1357231948, 1357231869, 1357230722, 1357230696, 1357230667, 1357230525, 1357230522, 1357230518, 1357230498, 1357230332, 1357230327, 1357230325, 1357230322, 1357230318, 1357230304, 1357229592, 1357229512, 1357229428, 1357229349, 1357229297, 1357228564, 1357228352, 1357227448, 1357227395, 1357227242, 1357227229, 1357227200, 1357227177]} final : False mtd_id 4302 list_pids : [1357234663, 1357234654, 1357234504, 1357234501, 1357234499, 1357234481, 1357234465, 1357234437, 1357234251, 1357234248, 1357234244, 1357234239, 1357234235, 1357234225] Looping around the photos to save general results len do output : 14 /1357234663.Didn't retrieve data . /1357234654.Didn't retrieve data . /1357234504.Didn't retrieve data . /1357234501.Didn't retrieve data . /1357234499.Didn't retrieve data . /1357234481.Didn't retrieve data . /1357234465.Didn't retrieve data . /1357234437.Didn't retrieve data . /1357234251.Didn't retrieve data . /1357234248.Didn't retrieve data . /1357234244.Didn't retrieve data . /1357234239.Didn't retrieve data . /1357234235.Didn't retrieve data . /1357234225.Didn't retrieve data . before output type Used above Used above Managing all output in save final without adding information in the mtr_datou_result ('4302', None, None, None, None, None, None, None, '2813142') ('4302', '22833758', '1357234663', None, None, None, None, None, '2813142') ('4302', None, None, None, None, None, None, None, '2813142') ('4302', '22833758', '1357234654', None, None, None, None, None, '2813142') ('4302', None, None, None, None, None, None, None, '2813142') ('4302', '22833758', '1357234504', None, None, None, None, None, '2813142') ('4302', None, None, None, None, None, None, None, '2813142') ('4302', '22833758', '1357234501', None, None, None, None, None, '2813142') ('4302', None, None, None, None, None, None, None, '2813142') ('4302', '22833758', '1357234499', None, None, None, None, None, '2813142') ('4302', None, None, None, None, None, None, None, '2813142') ('4302', '22833758', '1357234481', None, None, None, None, None, '2813142') ('4302', None, None, None, None, None, None, None, '2813142') ('4302', '22833758', '1357234465', None, None, None, None, None, '2813142') ('4302', None, None, None, None, None, None, None, '2813142') ('4302', '22833758', '1357234437', None, None, None, None, None, '2813142') ('4302', None, None, None, None, None, None, None, '2813142') ('4302', '22833758', '1357234251', None, None, None, None, None, '2813142') ('4302', None, None, None, None, None, None, None, '2813142') ('4302', '22833758', '1357234248', None, None, None, None, None, '2813142') ('4302', None, None, None, None, None, None, None, '2813142') ('4302', '22833758', '1357234244', None, None, None, None, None, '2813142') ('4302', None, None, None, None, None, None, None, '2813142') ('4302', '22833758', '1357234239', None, None, None, None, None, '2813142') ('4302', None, None, None, None, None, None, None, '2813142') ('4302', '22833758', '1357234235', None, None, None, None, None, '2813142') ('4302', None, None, None, None, None, None, None, '2813142') ('4302', '22833758', '1357234225', None, None, None, None, None, '2813142') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 42 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', '22833758', '1357234663', '0.03229698608742104', None, None, None, None, '2813142'), ('4302', '22833758', '1357234654', '0.03229698608742104', None, None, None, None, '2813142'), ('4302', '22833758', '1357234504', '0.03229698608742104', None, None, None, None, '2813142'), ('4302', '22833758', '1357234501', '0.03229698608742104', None, None, None, None, '2813142'), ('4302', '22833758', '1357234499', '0.03229698608742104', None, None, None, None, '2813142'), ('4302', '22833758', '1357234481', '0.03229698608742104', None, None, None, None, '2813142'), ('4302', '22833758', '1357234465', '0.03229698608742104', None, None, None, None, '2813142'), ('4302', '22833758', '1357234437', '0.03229698608742104', None, None, None, None, '2813142'), ('4302', '22833758', '1357234251', '0.03229698608742104', None, None, None, None, '2813142'), ('4302', '22833758', '1357234248', '0.03229698608742104', None, None, None, None, '2813142'), ('4302', '22833758', '1357234244', '0.03229698608742104', None, None, None, None, '2813142'), ('4302', '22833758', '1357234239', '0.03229698608742104', None, None, None, None, '2813142'), ('4302', '22833758', '1357234235', '0.03229698608742104', None, None, None, None, '2813142'), ('4302', '22833758', '1357234225', '0.03229698608742104', None, None, None, None, '2813142')] time used for this insertion : 0.017317533493041992 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07100319862365723 time spend to save output : 0.01801776885986328 total time spend for step 2 : 0.08902096748352051 step3:velours_tree Fri May 9 17:14:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {22833758: [{'cartonnette': 22833810, 'kraft': 22833811, 'Carton_brun': 22833812, 'mal_croppe': 22833813, 'autre_refus': 22833814, 'plastique': 22833815, 'metal': 22833816, 'Carton_gris': 22833817, 'flou': 22833818, 'environnement': 22833819, 'Teint_Dans_La_Masse': 22833820, 'papier': 22833821}]} input_args_next_step : {22833758: ()} output_args : {22833758: [{'cartonnette': 22833810, 'kraft': 22833811, 'Carton_brun': 22833812, 'mal_croppe': 22833813, 'autre_refus': 22833814, 'plastique': 22833815, 'metal': 22833816, 'Carton_gris': 22833817, 'flou': 22833818, 'environnement': 22833819, 'Teint_Dans_La_Masse': 22833820, 'papier': 22833821}]} args : 22833758 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 : ({'cartonnette': 22833810, 'kraft': 22833811, 'Carton_brun': 22833812, 'mal_croppe': 22833813, 'autre_refus': 22833814, 'plastique': 22833815, 'metal': 22833816, 'Carton_gris': 22833817, 'flou': 22833818, 'environnement': 22833819, 'Teint_Dans_La_Masse': 22833820, 'papier': 22833821},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22833758) 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([22833758]) 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.2950003147125244 time spend to save output : 4.887580871582031e-05 total time spend for step 3 : 0.29504919052124023 step4:send_mail_cod Fri May 9 17:14: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 : {1357234663: ('0.03229698608742104',), 1357234654: ('0.03229698608742104',), 1357234504: ('0.03229698608742104',), 1357234501: ('0.03229698608742104',), 1357234499: ('0.03229698608742104',), 1357234481: ('0.03229698608742104',), 1357234465: ('0.03229698608742104',), 1357234437: ('0.03229698608742104',), 1357234251: ('0.03229698608742104',), 1357234248: ('0.03229698608742104',), 1357234244: ('0.03229698608742104',), 1357234239: ('0.03229698608742104',), 1357234235: ('0.03229698608742104',), 1357234225: ('0.03229698608742104',)} input_args_next_step : {1357234663: ()} output_args : {1357234663: ('0.03229698608742104',), 1357234654: ('0.03229698608742104',), 1357234504: ('0.03229698608742104',), 1357234501: ('0.03229698608742104',), 1357234499: ('0.03229698608742104',), 1357234481: ('0.03229698608742104',), 1357234465: ('0.03229698608742104',), 1357234437: ('0.03229698608742104',), 1357234251: ('0.03229698608742104',), 1357234248: ('0.03229698608742104',), 1357234244: ('0.03229698608742104',), 1357234239: ('0.03229698608742104',), 1357234235: ('0.03229698608742104',), 1357234225: ('0.03229698608742104',)} args : 1357234663 depend.output_id : 0 input_args_next_step : {1357234663: ('0.03229698608742104',), 1357234654: ()} output_args : {1357234663: ('0.03229698608742104',), 1357234654: ('0.03229698608742104',), 1357234504: ('0.03229698608742104',), 1357234501: ('0.03229698608742104',), 1357234499: ('0.03229698608742104',), 1357234481: ('0.03229698608742104',), 1357234465: ('0.03229698608742104',), 1357234437: ('0.03229698608742104',), 1357234251: ('0.03229698608742104',), 1357234248: ('0.03229698608742104',), 1357234244: ('0.03229698608742104',), 1357234239: ('0.03229698608742104',), 1357234235: ('0.03229698608742104',), 1357234225: ('0.03229698608742104',)} args : 1357234654 depend.output_id : 0 input_args_next_step : {1357234663: ('0.03229698608742104',), 1357234654: ('0.03229698608742104',), 1357234504: ()} output_args : {1357234663: ('0.03229698608742104',), 1357234654: ('0.03229698608742104',), 1357234504: ('0.03229698608742104',), 1357234501: ('0.03229698608742104',), 1357234499: ('0.03229698608742104',), 1357234481: ('0.03229698608742104',), 1357234465: ('0.03229698608742104',), 1357234437: ('0.03229698608742104',), 1357234251: ('0.03229698608742104',), 1357234248: ('0.03229698608742104',), 1357234244: ('0.03229698608742104',), 1357234239: ('0.03229698608742104',), 1357234235: ('0.03229698608742104',), 1357234225: ('0.03229698608742104',)} args : 1357234504 depend.output_id : 0 input_args_next_step : {1357234663: ('0.03229698608742104',), 1357234654: ('0.03229698608742104',), 1357234504: ('0.03229698608742104',), 1357234501: ()} output_args : {1357234663: ('0.03229698608742104',), 1357234654: ('0.03229698608742104',), 1357234504: ('0.03229698608742104',), 1357234501: ('0.03229698608742104',), 1357234499: ('0.03229698608742104',), 1357234481: ('0.03229698608742104',), 1357234465: ('0.03229698608742104',), 1357234437: ('0.03229698608742104',), 1357234251: ('0.03229698608742104',), 1357234248: ('0.03229698608742104',), 1357234244: ('0.03229698608742104',), 1357234239: ('0.03229698608742104',), 1357234235: ('0.03229698608742104',), 1357234225: ('0.03229698608742104',)} args : 1357234501 depend.output_id : 0 input_args_next_step : {1357234663: ('0.03229698608742104',), 1357234654: ('0.03229698608742104',), 1357234504: ('0.03229698608742104',), 1357234501: ('0.03229698608742104',), 1357234499: ()} output_args : {1357234663: ('0.03229698608742104',), 1357234654: ('0.03229698608742104',), 1357234504: ('0.03229698608742104',), 1357234501: ('0.03229698608742104',), 1357234499: ('0.03229698608742104',), 1357234481: ('0.03229698608742104',), 1357234465: ('0.03229698608742104',), 1357234437: ('0.03229698608742104',), 1357234251: ('0.03229698608742104',), 1357234248: ('0.03229698608742104',), 1357234244: ('0.03229698608742104',), 1357234239: ('0.03229698608742104',), 1357234235: ('0.03229698608742104',), 1357234225: ('0.03229698608742104',)} args : 1357234499 depend.output_id : 0 input_args_next_step : {1357234663: ('0.03229698608742104',), 1357234654: ('0.03229698608742104',), 1357234504: ('0.03229698608742104',), 1357234501: ('0.03229698608742104',), 1357234499: ('0.03229698608742104',), 1357234481: ()} output_args : {1357234663: ('0.03229698608742104',), 1357234654: ('0.03229698608742104',), 1357234504: ('0.03229698608742104',), 1357234501: ('0.03229698608742104',), 1357234499: ('0.03229698608742104',), 1357234481: ('0.03229698608742104',), 1357234465: ('0.03229698608742104',), 1357234437: ('0.03229698608742104',), 1357234251: ('0.03229698608742104',), 1357234248: ('0.03229698608742104',), 1357234244: ('0.03229698608742104',), 1357234239: ('0.03229698608742104',), 1357234235: ('0.03229698608742104',), 1357234225: ('0.03229698608742104',)} args : 1357234481 depend.output_id : 0 input_args_next_step : {1357234663: ('0.03229698608742104',), 1357234654: ('0.03229698608742104',), 1357234504: ('0.03229698608742104',), 1357234501: ('0.03229698608742104',), 1357234499: ('0.03229698608742104',), 1357234481: ('0.03229698608742104',), 1357234465: ()} output_args : {1357234663: ('0.03229698608742104',), 1357234654: ('0.03229698608742104',), 1357234504: ('0.03229698608742104',), 1357234501: ('0.03229698608742104',), 1357234499: ('0.03229698608742104',), 1357234481: ('0.03229698608742104',), 1357234465: ('0.03229698608742104',), 1357234437: ('0.03229698608742104',), 1357234251: ('0.03229698608742104',), 1357234248: ('0.03229698608742104',), 1357234244: ('0.03229698608742104',), 1357234239: ('0.03229698608742104',), 1357234235: ('0.03229698608742104',), 1357234225: ('0.03229698608742104',)} args : 1357234465 depend.output_id : 0 input_args_next_step : {1357234663: ('0.03229698608742104',), 1357234654: ('0.03229698608742104',), 1357234504: ('0.03229698608742104',), 1357234501: ('0.03229698608742104',), 1357234499: ('0.03229698608742104',), 1357234481: ('0.03229698608742104',), 1357234465: ('0.03229698608742104',), 1357234437: ()} output_args : {1357234663: ('0.03229698608742104',), 1357234654: ('0.03229698608742104',), 1357234504: ('0.03229698608742104',), 1357234501: ('0.03229698608742104',), 1357234499: ('0.03229698608742104',), 1357234481: ('0.03229698608742104',), 1357234465: ('0.03229698608742104',), 1357234437: ('0.03229698608742104',), 1357234251: ('0.03229698608742104',), 1357234248: ('0.03229698608742104',), 1357234244: ('0.03229698608742104',), 1357234239: ('0.03229698608742104',), 1357234235: ('0.03229698608742104',), 1357234225: ('0.03229698608742104',)} args : 1357234437 depend.output_id : 0 input_args_next_step : {1357234663: ('0.03229698608742104',), 1357234654: ('0.03229698608742104',), 1357234504: ('0.03229698608742104',), 1357234501: ('0.03229698608742104',), 1357234499: ('0.03229698608742104',), 1357234481: ('0.03229698608742104',), 1357234465: ('0.03229698608742104',), 1357234437: ('0.03229698608742104',), 1357234251: ()} output_args : {1357234663: ('0.03229698608742104',), 1357234654: ('0.03229698608742104',), 1357234504: ('0.03229698608742104',), 1357234501: ('0.03229698608742104',), 1357234499: ('0.03229698608742104',), 1357234481: ('0.03229698608742104',), 1357234465: ('0.03229698608742104',), 1357234437: ('0.03229698608742104',), 1357234251: ('0.03229698608742104',), 1357234248: ('0.03229698608742104',), 1357234244: ('0.03229698608742104',), 1357234239: ('0.03229698608742104',), 1357234235: ('0.03229698608742104',), 1357234225: ('0.03229698608742104',)} args : 1357234251 depend.output_id : 0 input_args_next_step : {1357234663: ('0.03229698608742104',), 1357234654: ('0.03229698608742104',), 1357234504: ('0.03229698608742104',), 1357234501: ('0.03229698608742104',), 1357234499: ('0.03229698608742104',), 1357234481: ('0.03229698608742104',), 1357234465: ('0.03229698608742104',), 1357234437: ('0.03229698608742104',), 1357234251: ('0.03229698608742104',), 1357234248: ()} output_args : {1357234663: ('0.03229698608742104',), 1357234654: ('0.03229698608742104',), 1357234504: ('0.03229698608742104',), 1357234501: ('0.03229698608742104',), 1357234499: ('0.03229698608742104',), 1357234481: ('0.03229698608742104',), 1357234465: ('0.03229698608742104',), 1357234437: ('0.03229698608742104',), 1357234251: ('0.03229698608742104',), 1357234248: ('0.03229698608742104',), 1357234244: ('0.03229698608742104',), 1357234239: ('0.03229698608742104',), 1357234235: ('0.03229698608742104',), 1357234225: ('0.03229698608742104',)} args : 1357234248 depend.output_id : 0 input_args_next_step : {1357234663: ('0.03229698608742104',), 1357234654: ('0.03229698608742104',), 1357234504: ('0.03229698608742104',), 1357234501: ('0.03229698608742104',), 1357234499: ('0.03229698608742104',), 1357234481: ('0.03229698608742104',), 1357234465: ('0.03229698608742104',), 1357234437: ('0.03229698608742104',), 1357234251: ('0.03229698608742104',), 1357234248: ('0.03229698608742104',), 1357234244: ()} output_args : {1357234663: ('0.03229698608742104',), 1357234654: ('0.03229698608742104',), 1357234504: ('0.03229698608742104',), 1357234501: ('0.03229698608742104',), 1357234499: ('0.03229698608742104',), 1357234481: ('0.03229698608742104',), 1357234465: ('0.03229698608742104',), 1357234437: ('0.03229698608742104',), 1357234251: ('0.03229698608742104',), 1357234248: ('0.03229698608742104',), 1357234244: ('0.03229698608742104',), 1357234239: ('0.03229698608742104',), 1357234235: ('0.03229698608742104',), 1357234225: ('0.03229698608742104',)} args : 1357234244 depend.output_id : 0 input_args_next_step : {1357234663: ('0.03229698608742104',), 1357234654: ('0.03229698608742104',), 1357234504: ('0.03229698608742104',), 1357234501: ('0.03229698608742104',), 1357234499: ('0.03229698608742104',), 1357234481: ('0.03229698608742104',), 1357234465: ('0.03229698608742104',), 1357234437: ('0.03229698608742104',), 1357234251: ('0.03229698608742104',), 1357234248: ('0.03229698608742104',), 1357234244: ('0.03229698608742104',), 1357234239: ()} output_args : {1357234663: ('0.03229698608742104',), 1357234654: ('0.03229698608742104',), 1357234504: ('0.03229698608742104',), 1357234501: ('0.03229698608742104',), 1357234499: ('0.03229698608742104',), 1357234481: ('0.03229698608742104',), 1357234465: ('0.03229698608742104',), 1357234437: ('0.03229698608742104',), 1357234251: ('0.03229698608742104',), 1357234248: ('0.03229698608742104',), 1357234244: ('0.03229698608742104',), 1357234239: ('0.03229698608742104',), 1357234235: ('0.03229698608742104',), 1357234225: ('0.03229698608742104',)} args : 1357234239 depend.output_id : 0 input_args_next_step : {1357234663: ('0.03229698608742104',), 1357234654: ('0.03229698608742104',), 1357234504: ('0.03229698608742104',), 1357234501: ('0.03229698608742104',), 1357234499: ('0.03229698608742104',), 1357234481: ('0.03229698608742104',), 1357234465: ('0.03229698608742104',), 1357234437: ('0.03229698608742104',), 1357234251: ('0.03229698608742104',), 1357234248: ('0.03229698608742104',), 1357234244: ('0.03229698608742104',), 1357234239: ('0.03229698608742104',), 1357234235: ()} output_args : {1357234663: ('0.03229698608742104',), 1357234654: ('0.03229698608742104',), 1357234504: ('0.03229698608742104',), 1357234501: ('0.03229698608742104',), 1357234499: ('0.03229698608742104',), 1357234481: ('0.03229698608742104',), 1357234465: ('0.03229698608742104',), 1357234437: ('0.03229698608742104',), 1357234251: ('0.03229698608742104',), 1357234248: ('0.03229698608742104',), 1357234244: ('0.03229698608742104',), 1357234239: ('0.03229698608742104',), 1357234235: ('0.03229698608742104',), 1357234225: ('0.03229698608742104',)} args : 1357234235 depend.output_id : 0 input_args_next_step : {1357234663: ('0.03229698608742104',), 1357234654: ('0.03229698608742104',), 1357234504: ('0.03229698608742104',), 1357234501: ('0.03229698608742104',), 1357234499: ('0.03229698608742104',), 1357234481: ('0.03229698608742104',), 1357234465: ('0.03229698608742104',), 1357234437: ('0.03229698608742104',), 1357234251: ('0.03229698608742104',), 1357234248: ('0.03229698608742104',), 1357234244: ('0.03229698608742104',), 1357234239: ('0.03229698608742104',), 1357234235: ('0.03229698608742104',), 1357234225: ()} output_args : {1357234663: ('0.03229698608742104',), 1357234654: ('0.03229698608742104',), 1357234504: ('0.03229698608742104',), 1357234501: ('0.03229698608742104',), 1357234499: ('0.03229698608742104',), 1357234481: ('0.03229698608742104',), 1357234465: ('0.03229698608742104',), 1357234437: ('0.03229698608742104',), 1357234251: ('0.03229698608742104',), 1357234248: ('0.03229698608742104',), 1357234244: ('0.03229698608742104',), 1357234239: ('0.03229698608742104',), 1357234235: ('0.03229698608742104',), 1357234225: ('0.03229698608742104',)} args : 1357234225 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 : {22833758: [{'cartonnette': 22833810, 'kraft': 22833811, 'Carton_brun': 22833812, 'mal_croppe': 22833813, 'autre_refus': 22833814, 'plastique': 22833815, 'metal': 22833816, 'Carton_gris': 22833817, 'flou': 22833818, 'environnement': 22833819, 'Teint_Dans_La_Masse': 22833820, 'papier': 22833821}]} input_args_next_step : {1357234663: ('0.03229698608742104',), 1357234654: ('0.03229698608742104',), 1357234504: ('0.03229698608742104',), 1357234501: ('0.03229698608742104',), 1357234499: ('0.03229698608742104',), 1357234481: ('0.03229698608742104',), 1357234465: ('0.03229698608742104',), 1357234437: ('0.03229698608742104',), 1357234251: ('0.03229698608742104',), 1357234248: ('0.03229698608742104',), 1357234244: ('0.03229698608742104',), 1357234239: ('0.03229698608742104',), 1357234235: ('0.03229698608742104',), 1357234225: ('0.03229698608742104',), 22833758: ()} output_args : {22833758: [{'cartonnette': 22833810, 'kraft': 22833811, 'Carton_brun': 22833812, 'mal_croppe': 22833813, 'autre_refus': 22833814, 'plastique': 22833815, 'metal': 22833816, 'Carton_gris': 22833817, 'flou': 22833818, 'environnement': 22833819, 'Teint_Dans_La_Masse': 22833820, 'papier': 22833821}]} args : 22833758 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 :15, first value : ('0.03229698608742104',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22833758) 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 (1357234663,1357234654,1357234504,1357234501,1357234499,1357234481,1357234465,1357234437,1357234251,1357234248,1357234244,1357234239,1357234235,1357234225) Found this number of photos: 14 ##### Call download_photos : nb_thread : 5 begin to download photo : 1357234225 begin to download photo : 1357234244 begin to download photo : 1357234437 begin to download photo : 1357234499 begin to download photo : 1357234654 download finish for photo 1357234654 begin to download photo : 1357234663 download finish for photo 1357234437 begin to download photo : 1357234465 download finish for photo 1357234499 begin to download photo : 1357234501 download finish for photo 1357234244 begin to download photo : 1357234248 download finish for photo 1357234225 begin to download photo : 1357234235 download finish for photo 1357234663 download finish for photo 1357234501 begin to download photo : 1357234504 download finish for photo 1357234248 begin to download photo : 1357234251 download finish for photo 1357234465 begin to download photo : 1357234481 download finish for photo 1357234235 begin to download photo : 1357234239 download finish for photo 1357234481 download finish for photo 1357234504 download finish for photo 1357234251 download finish for photo 1357234239 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 : 14 ; length of list_pids : 14 ; length of list_args : 14 results_Auto_P22833758_09-05-2025_17_14_59.pdf 22833810 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=22833810 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357229405: '1746802992_225399_1357227448_f115d2bde1da29ce63371aaeaea88c82_rle_crop_3791648818_0.png', 1357229407: '1746802992_225399_1357227177_77b1b69702655091046b6750f5a15a2e_rle_crop_3791648860_0.png', 1357231206: '1746803233_227772_1357228352_41537d1a9f739df746d3460fe69b11c1_rle_crop_3791658010_0.png', 1357231414: '1746803246_3436191_1357230522_e5d0dc0117f492303cd6bf29c2d14b28_rle_crop_3791658509_0.png', 1357232550: '1746803293_228263_1357230525_df27d72c9f84689b4ce6ad5586c67550_rle_crop_3791659802_0.png', 1357232551: '1746803293_228263_1357230325_88f3dac0e8601e68e92cecb43b787efd_rle_crop_3791659823_0.png', 1357233770: '1746803411_229708_1357230525_df27d72c9f84689b4ce6ad5586c67550_rle_crop_3791659802_0.png', 1357233771: '1746803411_229708_1357230325_88f3dac0e8601e68e92cecb43b787efd_rle_crop_3791659823_0.png', 1357234149: '1746803486_3442189_1357232585_e0886c79c31b5d4ab1b5fadaa3403800_rle_crop_3791663410_0.png', 1357234535: '1746803592_231750_1357233823_395d283b6924201073068567d60201e0_rle_crop_3791664356_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/a58f07967c4427ce1f3bc475cead3d5e_96579170.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/c2c2c9b32b75d649d37cd3a98cfbfa6f_51782622.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/e6556ada77a22b75d0ecf7832f0813d7_35517415.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/94bd73823626f096baa352037e9a62a1_46064491.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/3de438d1eb2d153529b6161689336383_93148514.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/fa5be2275ff9268b322174002df85d7b_7167831.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/3de438d1eb2d153529b6161689336383_3574970.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/fa5be2275ff9268b322174002df85d7b_59010053.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/06ad8ff2ed6001c0c0d7245a3f56fbdc_12918777.png change filename to text .imagette228338101746803699/ imagette228338101746803699/1746803411_229708_1357230525_df27d72c9f84689b4ce6ad5586c67550_rle_crop_3791659802_0.png.png imagette228338101746803699/1746803293_228263_1357230325_88f3dac0e8601e68e92cecb43b787efd_rle_crop_3791659823_0.png.png imagette228338101746803699/1746803293_228263_1357230525_df27d72c9f84689b4ce6ad5586c67550_rle_crop_3791659802_0.png.png imagette228338101746803699/1746803233_227772_1357228352_41537d1a9f739df746d3460fe69b11c1_rle_crop_3791658010_0.png.png imagette228338101746803699/1746803411_229708_1357230325_88f3dac0e8601e68e92cecb43b787efd_rle_crop_3791659823_0.png.png imagette228338101746803699/1746803246_3436191_1357230522_e5d0dc0117f492303cd6bf29c2d14b28_rle_crop_3791658509_0.png.png imagette228338101746803699/1746803486_3442189_1357232585_e0886c79c31b5d4ab1b5fadaa3403800_rle_crop_3791663410_0.png.png imagette228338101746803699/1746802992_225399_1357227448_f115d2bde1da29ce63371aaeaea88c82_rle_crop_3791648818_0.png.png imagette228338101746803699/1746802992_225399_1357227177_77b1b69702655091046b6750f5a15a2e_rle_crop_3791648860_0.png.png imagette228338101746803699/1746803592_231750_1357233823_395d283b6924201073068567d60201e0_rle_crop_3791664356_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/52a285f47d3f474eb21295448627c97c_66616714.png imagette228338101746803699 22833811 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=22833811 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357234184: '1746803486_3442189_1357232585_e0886c79c31b5d4ab1b5fadaa3403800_rle_crop_3791663414_0.png', 1357234548: '1746803592_231750_1357233801_79dd9b6f418bb32d9716effe9b5488d1_rle_crop_3791664577_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/8e92c40a35d8879458c80dcb4ec02fd7_13243789.png change filename to text .imagette228338111746803699/ imagette228338111746803699/1746803592_231750_1357233801_79dd9b6f418bb32d9716effe9b5488d1_rle_crop_3791664577_0.png.png imagette228338111746803699/1746803486_3442189_1357232585_e0886c79c31b5d4ab1b5fadaa3403800_rle_crop_3791663414_0.png.png imagette228338131746803700/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/020f7410bce0d78bad236ad8b05fa64c_19606580.png imagette228338111746803699 22833813 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=22833813 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette228338131746803700 22833814 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=22833814 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357232521: '1746803293_228263_1357230327_19d92ebae9987307f9bef5fb2d05f074_rle_crop_3791659806_0.png', 1357232522: '1746803293_228263_1357230327_19d92ebae9987307f9bef5fb2d05f074_rle_crop_3791659810_0.png', 1357233756: '1746803411_229708_1357230327_19d92ebae9987307f9bef5fb2d05f074_rle_crop_3791659806_0.png', 1357233757: '1746803411_229708_1357230327_19d92ebae9987307f9bef5fb2d05f074_rle_crop_3791659810_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/d4ce437940d8761ee34d4dfd7e2adb6c_29110895.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/aafb1b4383151aa8db61dd0de531af3a_93061018.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/d4ce437940d8761ee34d4dfd7e2adb6c_43086961.png change filename to text .imagette228338141746803700/ imagette228338141746803700/1746803293_228263_1357230327_19d92ebae9987307f9bef5fb2d05f074_rle_crop_3791659810_0.png.png imagette228338141746803700/1746803293_228263_1357230327_19d92ebae9987307f9bef5fb2d05f074_rle_crop_3791659806_0.png.png imagette228338141746803700/1746803411_229708_1357230327_19d92ebae9987307f9bef5fb2d05f074_rle_crop_3791659806_0.png.png imagette228338141746803700/1746803411_229708_1357230327_19d92ebae9987307f9bef5fb2d05f074_rle_crop_3791659810_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/aafb1b4383151aa8db61dd0de531af3a_60479593.png imagette228338141746803700 22833815 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=22833815 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357229424: '1746802992_225399_1357227448_f115d2bde1da29ce63371aaeaea88c82_rle_crop_3791648825_0.png', 1357229426: '1746802992_225399_1357227200_723c2209bd7d220cb73774812e7292bf_rle_crop_3791648852_0.png', 1357230370: '1746803110_226559_1357228564_832962349ef5483d3b31f2ab1f94b9de_rle_crop_3791654526_0.png', 1357230372: '1746803110_226559_1357227395_a809cc51f61eb61ac3ede2d5353d008f_rle_crop_3791654540_0.png', 1357230373: '1746803110_226559_1357227395_a809cc51f61eb61ac3ede2d5353d008f_rle_crop_3791654551_0.png', 1357231224: '1746803233_227772_1357228352_41537d1a9f739df746d3460fe69b11c1_rle_crop_3791658019_0.png', 1357232572: '1746803293_228263_1357230525_df27d72c9f84689b4ce6ad5586c67550_rle_crop_3791659793_0.png', 1357233791: '1746803411_229708_1357230525_df27d72c9f84689b4ce6ad5586c67550_rle_crop_3791659793_0.png', 1357234177: '1746803486_3442189_1357232611_8829474cdd39b00a63f8538a6cc221e0_rle_crop_3791663394_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/cbc2c96c2f2fe1994e9848bf1d350768_88160623.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/ae44a0fc958be3db6f5c07729c0dbdd9_87885084.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/d0b2e57f48c710b8d7ac866778b15712_3493217.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/c0ffae5611fda0a27c549d8227d417b0_19699724.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/5e5e14845a0e44d77c2ca8f7afb7c48e_84292969.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/843c809682fcac3c341049c6cdb30e77_86480859.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/01f171523d84e1b727f43729337af013_4662814.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/01f171523d84e1b727f43729337af013_50991861.png change filename to text .imagette228338151746803700/ imagette228338151746803700/1746803110_226559_1357228564_832962349ef5483d3b31f2ab1f94b9de_rle_crop_3791654526_0.png.png imagette228338151746803700/1746802992_225399_1357227200_723c2209bd7d220cb73774812e7292bf_rle_crop_3791648852_0.png.png imagette228338151746803700/1746803486_3442189_1357232611_8829474cdd39b00a63f8538a6cc221e0_rle_crop_3791663394_0.png.png imagette228338151746803700/1746803233_227772_1357228352_41537d1a9f739df746d3460fe69b11c1_rle_crop_3791658019_0.png.png imagette228338151746803700/1746803411_229708_1357230525_df27d72c9f84689b4ce6ad5586c67550_rle_crop_3791659793_0.png.png imagette228338151746803700/1746802992_225399_1357227448_f115d2bde1da29ce63371aaeaea88c82_rle_crop_3791648825_0.png.png imagette228338151746803700/1746803110_226559_1357227395_a809cc51f61eb61ac3ede2d5353d008f_rle_crop_3791654551_0.png.png imagette228338151746803700/1746803110_226559_1357227395_a809cc51f61eb61ac3ede2d5353d008f_rle_crop_3791654540_0.png.png imagette228338151746803700/1746803293_228263_1357230525_df27d72c9f84689b4ce6ad5586c67550_rle_crop_3791659793_0.png.png imagette228338161746803700/ imagette228338181746803700/ wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/9468a1af6f5b6d40fa4d2fb3e2d09179_21387100.png imagette228338151746803700 22833816 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=22833816 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette228338161746803700 22833818 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=22833818 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette228338181746803700 22833812 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=22833812 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357230363: '1746803110_226559_1357228564_832962349ef5483d3b31f2ab1f94b9de_rle_crop_3791654527_0.png', 1357232560: '1746803293_228263_1357230525_df27d72c9f84689b4ce6ad5586c67550_rle_crop_3791659800_0.png', 1357232561: '1746803293_228263_1357230322_ea6bf50f4846f9829ebd95ff6b0d3860_rle_crop_3791659840_0.png', 1357232562: '1746803293_228263_1357230304_c82e2554ba3e0b2afc90f3f23dde0198_rle_crop_3791659865_0.png', 1357233778: '1746803411_229708_1357230525_df27d72c9f84689b4ce6ad5586c67550_rle_crop_3791659800_0.png', 1357233779: '1746803411_229708_1357230322_ea6bf50f4846f9829ebd95ff6b0d3860_rle_crop_3791659840_0.png', 1357233781: '1746803411_229708_1357230304_c82e2554ba3e0b2afc90f3f23dde0198_rle_crop_3791659865_0.png', 1357234089: '1746803474_230437_1357233198_f144fe930100f315410c86b949567742_rle_crop_3791663324_0.png', 1357234090: '1746803474_230437_1357233198_f144fe930100f315410c86b949567742_rle_crop_3791663329_0.png', 1357234091: '1746803474_230437_1357233171_1825e72e89812590938c48f89d14f919_rle_crop_3791663334_0.png', 1357234160: '1746803486_3442189_1357233255_6f7740c3c1a19906cfa8424b6e05492c_rle_crop_3791663365_0.png', 1357234163: '1746803486_3442189_1357233255_6f7740c3c1a19906cfa8424b6e05492c_rle_crop_3791663363_0.png', 1357234165: '1746803486_3442189_1357232585_e0886c79c31b5d4ab1b5fadaa3403800_rle_crop_3791663413_0.png', 1357234542: '1746803592_231750_1357233862_fd594c9b9faf9d6c4ddf282f41c82184_rle_crop_3791664352_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/f99a0cd7ebe23db2ca4fbc2a02553a22_93998748.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/414cb1c34c8c1de886db599c373f8f6f_69193256.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/8d9ac9acbf7597d7ab0c43d777297e26_80425333.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/b48fd677cd7f3658452817069c2fb55d_9711270.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/414cb1c34c8c1de886db599c373f8f6f_2057553.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/8d9ac9acbf7597d7ab0c43d777297e26_84690424.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/b48fd677cd7f3658452817069c2fb55d_97994440.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/754bcddc36eba2db9a871e05762f92a9_27329786.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/7689729f4dd928b1f3f68892b754d1ab_3285932.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/345f22a8b1d14bba25a421c46119f031_79844456.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/d8b6908a22fa2f1ea7ae7978fff1d0b0_98328077.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/3e87bd1c78ae1673d71699fbf5f23e13_54075084.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/19b36435340a42b564de2a9ff3871173_55139493.png change filename to text .imagette228338121746803700/ imagette228338121746803700/1746803293_228263_1357230525_df27d72c9f84689b4ce6ad5586c67550_rle_crop_3791659800_0.png.png imagette228338121746803700/1746803411_229708_1357230525_df27d72c9f84689b4ce6ad5586c67550_rle_crop_3791659800_0.png.png imagette228338121746803700/1746803486_3442189_1357233255_6f7740c3c1a19906cfa8424b6e05492c_rle_crop_3791663363_0.png.png imagette228338121746803700/1746803486_3442189_1357232585_e0886c79c31b5d4ab1b5fadaa3403800_rle_crop_3791663413_0.png.png imagette228338121746803700/1746803411_229708_1357230322_ea6bf50f4846f9829ebd95ff6b0d3860_rle_crop_3791659840_0.png.png imagette228338121746803700/1746803293_228263_1357230304_c82e2554ba3e0b2afc90f3f23dde0198_rle_crop_3791659865_0.png.png imagette228338121746803700/1746803110_226559_1357228564_832962349ef5483d3b31f2ab1f94b9de_rle_crop_3791654527_0.png.png imagette228338121746803700/1746803474_230437_1357233198_f144fe930100f315410c86b949567742_rle_crop_3791663324_0.png.png imagette228338121746803700/1746803474_230437_1357233171_1825e72e89812590938c48f89d14f919_rle_crop_3791663334_0.png.png imagette228338121746803700/1746803592_231750_1357233862_fd594c9b9faf9d6c4ddf282f41c82184_rle_crop_3791664352_0.png.png imagette228338121746803700/1746803474_230437_1357233198_f144fe930100f315410c86b949567742_rle_crop_3791663329_0.png.png imagette228338121746803700/1746803411_229708_1357230304_c82e2554ba3e0b2afc90f3f23dde0198_rle_crop_3791659865_0.png.png imagette228338121746803700/1746803486_3442189_1357233255_6f7740c3c1a19906cfa8424b6e05492c_rle_crop_3791663365_0.png.png imagette228338121746803700/1746803293_228263_1357230322_ea6bf50f4846f9829ebd95ff6b0d3860_rle_crop_3791659840_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/2b6e4391250abb40f3a85545b401e9cf_83678951.png imagette228338121746803700 22833817 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=22833817 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357232536: '1746803293_228263_1357230304_c82e2554ba3e0b2afc90f3f23dde0198_rle_crop_3791659860_0.png', 1357234141: '1746803486_3442189_1357232611_8829474cdd39b00a63f8538a6cc221e0_rle_crop_3791663389_0.png', 1357234086: '1746803474_230437_1357233171_1825e72e89812590938c48f89d14f919_rle_crop_3791663335_0.png', 1357234085: '1746803474_230437_1357233198_f144fe930100f315410c86b949567742_rle_crop_3791663321_0.png', 1357233763: '1746803411_229708_1357230304_c82e2554ba3e0b2afc90f3f23dde0198_rle_crop_3791659863_0.png', 1357233762: '1746803411_229708_1357230304_c82e2554ba3e0b2afc90f3f23dde0198_rle_crop_3791659860_0.png', 1357233761: '1746803411_229708_1357230318_4c439573ecc6b1237a17238b520b2090_rle_crop_3791659851_0.png', 1357233759: '1746803411_229708_1357230325_88f3dac0e8601e68e92cecb43b787efd_rle_crop_3791659826_0.png', 1357232538: '1746803293_228263_1357230304_c82e2554ba3e0b2afc90f3f23dde0198_rle_crop_3791659863_0.png', 1357229389: '1746802992_225399_1357227242_5ab985212e761b65b1f0349e048271e6_rle_crop_3791648834_0.png', 1357232535: '1746803293_228263_1357230318_4c439573ecc6b1237a17238b520b2090_rle_crop_3791659851_0.png', 1357232534: '1746803293_228263_1357230325_88f3dac0e8601e68e92cecb43b787efd_rle_crop_3791659826_0.png', 1357231386: '1746803246_3436191_1357230522_e5d0dc0117f492303cd6bf29c2d14b28_rle_crop_3791658506_0.png', 1357231189: '1746803233_227772_1357228352_41537d1a9f739df746d3460fe69b11c1_rle_crop_3791658011_0.png', 1357230357: '1746803110_226559_1357227395_a809cc51f61eb61ac3ede2d5353d008f_rle_crop_3791654541_0.png', 1357230356: '1746803110_226559_1357228564_832962349ef5483d3b31f2ab1f94b9de_rle_crop_3791654524_0.png', 1357229393: '1746802992_225399_1357227229_e75311e1ec9781e5bb2a67f5ac31861f_rle_crop_3791648844_0.png', 1357229390: '1746802992_225399_1357227242_5ab985212e761b65b1f0349e048271e6_rle_crop_3791648835_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/93e09f8ac709b12222dc25edf90a3eef_86420504.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/2ab1a1e724256a9094adf087dc1ef0dc_3425743.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/5a64dd426c1df7f103d05065bd310a24_92318923.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/bc645632c85cb23c1407a4c3309e7228_64291708.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/8bc2c7f4cb11e6ed02041bd9c9dffc62_57875757.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/93e09f8ac709b12222dc25edf90a3eef_32273838.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/a91856078f56ecc3fa6a2df210281298_40252119.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/4298af5b9c330d05c773c0058d6b098d_68993577.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/8bc2c7f4cb11e6ed02041bd9c9dffc62_13028895.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/c6afee3192cffb277ed145360c2d0d46_97745008.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/a91856078f56ecc3fa6a2df210281298_74274006.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/4298af5b9c330d05c773c0058d6b098d_320202.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/969a82699293ed6002f65fab027a39e4_37893273.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/6c2c714fd3c0e1e8a3c557bf7114de45_40720923.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/92a30fd0aa67c9e6c104d9dab71ecada_98368412.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/6f5089894584dbef95a0d84b1978e15f_82928755.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/1ed2fd324c315aee294e0d7326581e39_63192165.png change filename to text .imagette228338171746803701/ imagette228338171746803701/1746802992_225399_1357227242_5ab985212e761b65b1f0349e048271e6_rle_crop_3791648835_0.png.png imagette228338171746803701/1746803246_3436191_1357230522_e5d0dc0117f492303cd6bf29c2d14b28_rle_crop_3791658506_0.png.png imagette228338171746803701/1746803486_3442189_1357232611_8829474cdd39b00a63f8538a6cc221e0_rle_crop_3791663389_0.png.png imagette228338171746803701/1746803411_229708_1357230304_c82e2554ba3e0b2afc90f3f23dde0198_rle_crop_3791659860_0.png.png imagette228338171746803701/1746802992_225399_1357227242_5ab985212e761b65b1f0349e048271e6_rle_crop_3791648834_0.png.png imagette228338171746803701/1746803110_226559_1357228564_832962349ef5483d3b31f2ab1f94b9de_rle_crop_3791654524_0.png.png imagette228338171746803701/1746802992_225399_1357227229_e75311e1ec9781e5bb2a67f5ac31861f_rle_crop_3791648844_0.png.png imagette228338171746803701/1746803411_229708_1357230304_c82e2554ba3e0b2afc90f3f23dde0198_rle_crop_3791659863_0.png.png imagette228338171746803701/1746803411_229708_1357230325_88f3dac0e8601e68e92cecb43b787efd_rle_crop_3791659826_0.png.png imagette228338171746803701/1746803474_230437_1357233198_f144fe930100f315410c86b949567742_rle_crop_3791663321_0.png.png imagette228338171746803701/1746803110_226559_1357227395_a809cc51f61eb61ac3ede2d5353d008f_rle_crop_3791654541_0.png.png imagette228338171746803701/1746803233_227772_1357228352_41537d1a9f739df746d3460fe69b11c1_rle_crop_3791658011_0.png.png imagette228338171746803701/1746803411_229708_1357230318_4c439573ecc6b1237a17238b520b2090_rle_crop_3791659851_0.png.png imagette228338171746803701/1746803293_228263_1357230318_4c439573ecc6b1237a17238b520b2090_rle_crop_3791659851_0.png.png imagette228338171746803701/1746803293_228263_1357230325_88f3dac0e8601e68e92cecb43b787efd_rle_crop_3791659826_0.png.png imagette228338171746803701/1746803474_230437_1357233171_1825e72e89812590938c48f89d14f919_rle_crop_3791663335_0.png.png imagette228338171746803701/1746803293_228263_1357230304_c82e2554ba3e0b2afc90f3f23dde0198_rle_crop_3791659863_0.png.png imagette228338171746803701/1746803293_228263_1357230304_c82e2554ba3e0b2afc90f3f23dde0198_rle_crop_3791659860_0.png.png wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/c78eaa7381a39bc7bfd1babeefb6bf35_63116746.png imagette228338171746803701 22833820 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=22833820 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357229224: '1746802992_225399_1357227242_5ab985212e761b65b1f0349e048271e6_rle_crop_3791648832_0.png', 1357232513: '1746803293_228263_1357230327_19d92ebae9987307f9bef5fb2d05f074_rle_crop_3791659813_0.png', 1357233755: '1746803411_229708_1357230327_19d92ebae9987307f9bef5fb2d05f074_rle_crop_3791659813_0.png', 1357234075: '1746803474_230437_1357233171_1825e72e89812590938c48f89d14f919_rle_crop_3791663339_0.png', 1357234076: '1746803474_230437_1357233171_1825e72e89812590938c48f89d14f919_rle_crop_3791663341_0.png', 1357234077: '1746803474_230437_1357233143_a4e8223b9c3d40531d0657b32b3fbd3d_rle_crop_3791663354_0.png', 1357234128: '1746803486_3442189_1357232640_8530e6183e60d1b80045724efe36fcff_rle_crop_3791663386_0.png', 1357234131: '1746803486_3442189_1357232611_8829474cdd39b00a63f8538a6cc221e0_rle_crop_3791663401_0.png', 1357234529: '1746803592_231750_1357233801_79dd9b6f418bb32d9716effe9b5488d1_rle_crop_3791664578_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/1e936b8e4f17b5a1d1bece329b648ca9_84955324.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/411413cdb831e518e6b40f5db063663c_96544104.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/411413cdb831e518e6b40f5db063663c_87884923.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/b43bef2c3dbad1901911b2e555bb5dc1_93589378.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/c2c999fcd5a58e4b2c5c31bf89e17f75_6153805.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/f7189efc0da8ed32481dc890289d6ea8_61759837.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/3bf64475d2e3de57813658adc8595d9a_74069182.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/bd01bb2bdb52aa88c743f43e6c549936_91491522.png change filename to text .imagette228338201746803702/ imagette228338201746803702/1746803411_229708_1357230327_19d92ebae9987307f9bef5fb2d05f074_rle_crop_3791659813_0.png.png imagette228338201746803702/1746803486_3442189_1357232640_8530e6183e60d1b80045724efe36fcff_rle_crop_3791663386_0.png.png imagette228338201746803702/1746803474_230437_1357233171_1825e72e89812590938c48f89d14f919_rle_crop_3791663341_0.png.png imagette228338201746803702/1746803474_230437_1357233171_1825e72e89812590938c48f89d14f919_rle_crop_3791663339_0.png.png imagette228338201746803702/1746803592_231750_1357233801_79dd9b6f418bb32d9716effe9b5488d1_rle_crop_3791664578_0.png.png imagette228338201746803702/1746803486_3442189_1357232611_8829474cdd39b00a63f8538a6cc221e0_rle_crop_3791663401_0.png.png imagette228338201746803702/1746802992_225399_1357227242_5ab985212e761b65b1f0349e048271e6_rle_crop_3791648832_0.png.png imagette228338201746803702/1746803474_230437_1357233143_a4e8223b9c3d40531d0657b32b3fbd3d_rle_crop_3791663354_0.png.png imagette228338201746803702/1746803293_228263_1357230327_19d92ebae9987307f9bef5fb2d05f074_rle_crop_3791659813_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/e90d63e8b004706c20099501583c38cb_74070289.png imagette228338201746803702 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22833758 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22833822,22833823,22833824,22833825,22833826,22833827,22833828,22833829,22833830,22833831,22833832,22833833?tags=cartonnette,kraft,Carton_brun,mal_croppe,autre_refus,plastique,metal,Carton_gris,flou,environnement,Teint_Dans_La_Masse,papier your option no_mail is active, we will not send the real mail to your client args[1357234663] : ('0.03229698608742104',) no score found for photo 1357234663 We are sending mail with results at report@fotonower.com args[1357234654] : ('0.03229698608742104',) no score found for photo 1357234654 We are sending mail with results at report@fotonower.com args[1357234504] : ('0.03229698608742104',) no score found for photo 1357234504 We are sending mail with results at report@fotonower.com args[1357234501] : ('0.03229698608742104',) no score found for photo 1357234501 We are sending mail with results at report@fotonower.com args[1357234499] : ('0.03229698608742104',) no score found for photo 1357234499 We are sending mail with results at report@fotonower.com args[1357234481] : ('0.03229698608742104',) no score found for photo 1357234481 We are sending mail with results at report@fotonower.com args[1357234465] : ('0.03229698608742104',) no score found for photo 1357234465 We are sending mail with results at report@fotonower.com args[1357234437] : ('0.03229698608742104',) no score found for photo 1357234437 We are sending mail with results at report@fotonower.com args[1357234251] : ('0.03229698608742104',) no score found for photo 1357234251 We are sending mail with results at report@fotonower.com args[1357234248] : ('0.03229698608742104',) no score found for photo 1357234248 We are sending mail with results at report@fotonower.com args[1357234244] : ('0.03229698608742104',) no score found for photo 1357234244 We are sending mail with results at report@fotonower.com args[1357234239] : ('0.03229698608742104',) no score found for photo 1357234239 We are sending mail with results at report@fotonower.com args[1357234235] : ('0.03229698608742104',) no score found for photo 1357234235 We are sending mail with results at report@fotonower.com args[1357234225] : ('0.03229698608742104',) no score found for photo 1357234225 We are sending mail with results at report@fotonower.com refus_total : 0.03229698608742104 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=22833758 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_P22833758_09-05-2025_17_14_59.pdf results_Auto_P22833758_09-05-2025_17_14_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22833758_09-05-2025_17_14_59.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','22833758','results_Auto_P22833758_09-05-2025_17_14_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22833758_09-05-2025_17_14_59.pdf','pdf','','0.26','0.03229698608742104') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22833758]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1357234663, 1357234654, 1357234504, 1357234501, 1357234499, 1357234481, 1357234465, 1357234437, 1357234251, 1357234248, 1357234244, 1357234239, 1357234235, 1357234225] map_info['map_portfolio_photo'] : {22833758: [1357234663, 1357234654, 1357234504, 1357234501, 1357234499, 1357234481, 1357234465, 1357234437, 1357234251, 1357234248, 1357234244, 1357234239, 1357234235, 1357234225, 1357233882, 1357233862, 1357233823, 1357233801, 1357233255, 1357233198, 1357233171, 1357233143, 1357232684, 1357232646, 1357232640, 1357232611, 1357232585, 1357232178, 1357232117, 1357232029, 1357231948, 1357231869, 1357230722, 1357230696, 1357230667, 1357230525, 1357230522, 1357230518, 1357230498, 1357230332, 1357230327, 1357230325, 1357230322, 1357230318, 1357230304, 1357229592, 1357229512, 1357229428, 1357229349, 1357229297, 1357228564, 1357228352, 1357227448, 1357227395, 1357227242, 1357227229, 1357227200, 1357227177]} final : False mtd_id 4302 list_pids : [1357234663, 1357234654, 1357234504, 1357234501, 1357234499, 1357234481, 1357234465, 1357234437, 1357234251, 1357234248, 1357234244, 1357234239, 1357234235, 1357234225] 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, '2813142') ('4302', '22833758', '1357234663', None, None, None, None, None, '2813142') ('4302', None, None, None, None, None, None, None, '2813142') ('4302', '22833758', '1357234654', None, None, None, None, None, '2813142') ('4302', None, None, None, None, None, None, None, '2813142') ('4302', '22833758', '1357234504', None, None, None, None, None, '2813142') ('4302', None, None, None, None, None, None, None, '2813142') ('4302', '22833758', '1357234501', None, None, None, None, None, '2813142') ('4302', None, None, None, None, None, None, None, '2813142') ('4302', '22833758', '1357234499', None, None, None, None, None, '2813142') ('4302', None, None, None, None, None, None, None, '2813142') ('4302', '22833758', '1357234481', None, None, None, None, None, '2813142') ('4302', None, None, None, None, None, None, None, '2813142') ('4302', '22833758', '1357234465', None, None, None, None, None, '2813142') ('4302', None, None, None, None, None, None, None, '2813142') ('4302', '22833758', '1357234437', None, None, None, None, None, '2813142') ('4302', None, None, None, None, None, None, None, '2813142') ('4302', '22833758', '1357234251', None, None, None, None, None, '2813142') ('4302', None, None, None, None, None, None, None, '2813142') ('4302', '22833758', '1357234248', None, None, None, None, None, '2813142') ('4302', None, None, None, None, None, None, None, '2813142') ('4302', '22833758', '1357234244', None, None, None, None, None, '2813142') ('4302', None, None, None, None, None, None, None, '2813142') ('4302', '22833758', '1357234239', None, None, None, None, None, '2813142') ('4302', None, None, None, None, None, None, None, '2813142') ('4302', '22833758', '1357234235', None, None, None, None, None, '2813142') ('4302', None, None, None, None, None, None, None, '2813142') ('4302', '22833758', '1357234225', None, None, None, None, None, '2813142') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 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', '22833758', '1357234663', None, None, None, None, None, '2813142'), ('4302', '22833758', '1357234654', None, None, None, None, None, '2813142'), ('4302', '22833758', '1357234504', None, None, None, None, None, '2813142'), ('4302', '22833758', '1357234501', None, None, None, None, None, '2813142'), ('4302', '22833758', '1357234499', None, None, None, None, None, '2813142'), ('4302', '22833758', '1357234481', None, None, None, None, None, '2813142'), ('4302', '22833758', '1357234465', None, None, None, None, None, '2813142'), ('4302', '22833758', '1357234437', None, None, None, None, None, '2813142'), ('4302', '22833758', '1357234251', None, None, None, None, None, '2813142'), ('4302', '22833758', '1357234248', None, None, None, None, None, '2813142'), ('4302', '22833758', '1357234244', None, None, None, None, None, '2813142'), ('4302', '22833758', '1357234239', None, None, None, None, None, '2813142'), ('4302', '22833758', '1357234235', None, None, None, None, None, '2813142'), ('4302', '22833758', '1357234225', None, None, None, None, None, '2813142')] time used for this insertion : 0.01677870750427246 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.340038299560547 time spend to save output : 0.017029285430908203 total time spend for step 4 : 5.357067584991455 step5:split_time_score Fri May 9 17:15:04 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 : ['22833758'] 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 : [('22833758',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22833758) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1357234654: {'path': 'temp/1746803699_1105053_1357234654_1c7b507fe80718fbe98aae5dd43eed13.jpg', 'extension': 'jpg'}, 1357234663: {'path': 'temp/1746803699_1105053_1357234663_accaada4e400b1fc43a9234b74075957.jpg', 'extension': 'jpg'}, 1357234437: {'path': 'temp/1746803699_1105053_1357234437_9b962ab06eb0225f2fb244e18ba495b1.jpg', 'extension': 'jpg'}, 1357234465: {'path': 'temp/1746803699_1105053_1357234465_25e0899fc1cb88718d48dae70db09192.jpg', 'extension': 'jpg'}, 1357234481: {'path': 'temp/1746803699_1105053_1357234481_3b55d30cfa8b4fff55fdfb1168d23765.jpg', 'extension': 'jpg'}, 1357234499: {'path': 'temp/1746803699_1105053_1357234499_fecbe940422418563f10f5e06c2081ef.jpg', 'extension': 'jpg'}, 1357234501: {'path': 'temp/1746803699_1105053_1357234501_50dc699cd4cfeb652fd4149dd63ef35d.jpg', 'extension': 'jpg'}, 1357234504: {'path': 'temp/1746803699_1105053_1357234504_6616c15c38b36bcc1a2e6aa6c96223ab.jpg', 'extension': 'jpg'}, 1357234244: {'path': 'temp/1746803699_1105053_1357234244_0d267bc4b8cf642419efc4e657d64b97.jpg', 'extension': 'jpg'}, 1357234248: {'path': 'temp/1746803699_1105053_1357234248_bc64bdea91d3e3efc86e01076d6982d1.jpg', 'extension': 'jpg'}, 1357234251: {'path': 'temp/1746803699_1105053_1357234251_8d1a9ae9d9657e1414697c4f1ca70c48.jpg', 'extension': 'jpg'}, 1357234225: {'path': 'temp/1746803699_1105053_1357234225_cfa537facbd55f0f8c6446249d11fd63.jpg', 'extension': 'jpg'}, 1357234235: {'path': 'temp/1746803699_1105053_1357234235_df055be4e883e8d158596c1d55185d97.jpg', 'extension': 'jpg'}, 1357234239: {'path': 'temp/1746803699_1105053_1357234239_83e9b4e58c3b24fb29f0510534e978cc.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 = 22833758; (('arc_en_ciel_jrm_live',), ('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 = 22833758 group by h (('17', 58),) 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=22833758 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 (22833758) 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 (22833758) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 09052025 22833758 Nombre de photos uploadées : 58 / 23040 (0%) 09052025 22833758 Nombre de photos taguées (types de déchets): 0 / 58 (0%) 09052025 22833758 Nombre de photos taguées (volume) : 0 / 58 (0%) [{'photo_id': 1357227242, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/5ab985212e761b65b1f0349e048271e6.jpg', 'username': None, 'uploaded_at': 1746802868, 'text': 'image_09052025_17_00_04_010142m0.jpg 1e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1357227229, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/e75311e1ec9781e5bb2a67f5ac31861f.jpg', 'username': None, 'uploaded_at': 1746802868, 'text': 'image_09052025_17_00_14_010137m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1357227200, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/723c2209bd7d220cb73774812e7292bf.jpg', 'username': None, 'uploaded_at': 1746802868, 'text': 'image_09052025_17_00_24_010137m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1357227177, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/77b1b69702655091046b6750f5a15a2e.jpg', 'username': None, 'uploaded_at': 1746802868, 'text': 'image_09052025_17_00_33_009130m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 5.0067901611328125e-06 ?????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002565622329711914 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22833758, '2025-05-09' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1789478,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.034372568130493164 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= 1789478 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1789478, 'dashboard_run_id': 1799688, 'mtr_portfolio_id': 22808280, 'dashboard_result_id': 10448215, '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_P22808280_09-05-2025_05_35_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22808353, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22808354, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22808355, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22808356, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22808357, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22808358, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22808359, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22808360, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22808361, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22808362, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22808363, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22808364, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1799688, 'mtr_portfolio_id': 22808548, 'dashboard_result_id': 10448216, '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_P22808548_09-05-2025_05_35_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22808549, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22808550, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22808551, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22808552, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22808553, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22808554, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22808555, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22808556, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22808557, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22808558, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22808559, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22808560, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1799688, 'mtr_portfolio_id': 22808912, 'dashboard_result_id': 10448217, '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_P22808912_09-05-2025_05_50_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22808937, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22808938, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22808939, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22808940, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22808941, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22808942, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22808943, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22808944, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22808945, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22808946, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22808947, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22808948, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1799688, 'mtr_portfolio_id': 22809471, 'dashboard_result_id': 10448218, '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_P22809471_09-05-2025_06_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22809498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22809499, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22809500, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22809501, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22809502, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22809503, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22809504, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22809505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22809506, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22809507, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22809508, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22809509, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1799688, 'mtr_portfolio_id': 22809829, 'dashboard_result_id': 10448219, '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_P22809829_09-05-2025_06_18_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22809859, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22809860, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22809861, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22809862, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22809863, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22809864, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22809865, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22809866, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22809867, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22809868, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22809869, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22809870, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1799688, 'mtr_portfolio_id': 22810325, 'dashboard_result_id': 10448220, '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_P22810325_09-05-2025_06_32_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22810332, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22810333, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22810334, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22810335, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22810336, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22810337, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22810338, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22810339, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22810340, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22810341, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22810342, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22810343, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1799688, 'mtr_portfolio_id': 22810785, 'dashboard_result_id': 10448221, '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_P22810785_09-05-2025_06_49_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22810813, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22810814, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22810815, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22810816, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22810817, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22810818, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22810819, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22810820, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22810821, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22810822, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22810823, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22810824, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1799688, 'mtr_portfolio_id': 22811272, 'dashboard_result_id': 10448222, '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_P22811272_09-05-2025_07_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22811273, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22811274, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22811275, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22811276, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22811277, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22811278, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22811279, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22811280, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22811281, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22811282, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22811283, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22811284, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1799688, 'mtr_portfolio_id': 22811687, 'dashboard_result_id': 10448223, '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_P22811687_09-05-2025_07_21_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22811691, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22811692, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22811693, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22811694, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22811695, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22811696, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22811697, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22811698, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22811699, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22811700, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22811701, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22811702, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1799688, 'mtr_portfolio_id': 22812382, 'dashboard_result_id': 10448224, '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_P22812382_09-05-2025_07_33_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22812387, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22812388, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22812389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22812390, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22812391, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22812392, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22812393, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22812394, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22812395, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22812396, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22812397, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22812398, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1799688, 'mtr_portfolio_id': 22812747, 'dashboard_result_id': 10448225, '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_P22812747_09-05-2025_07_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22812751, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22812752, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22812753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22812754, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22812755, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22812756, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22812757, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22812758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22812759, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22812760, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22812761, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22812762, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1799688, 'mtr_portfolio_id': 22813158, 'dashboard_result_id': 10448226, '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_P22813158_09-05-2025_08_02_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22813196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22813197, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22813198, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22813199, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22813200, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22813201, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22813202, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22813203, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22813204, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22813205, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22813206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22813207, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1799688, 'mtr_portfolio_id': 22813765, 'dashboard_result_id': 10448227, '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_P22813765_09-05-2025_08_16_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22813772, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22813773, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22813774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22813775, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22813776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22813777, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22813778, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22813779, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22813780, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22813781, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22813782, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22813783, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1799688, 'mtr_portfolio_id': 22814401, 'dashboard_result_id': 10448228, '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_P22814401_09-05-2025_08_33_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22814427, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22814428, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22814429, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22814430, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22814431, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22814432, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22814433, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22814434, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22814435, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22814436, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22814437, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22814438, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1799688, 'mtr_portfolio_id': 22814870, 'dashboard_result_id': 10448229, '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_P22814870_09-05-2025_08_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22814878, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22814879, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22814880, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22814881, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22814882, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22814883, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22814884, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22814885, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22814886, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22814887, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22814888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22814889, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1799688, 'mtr_portfolio_id': 22815465, 'dashboard_result_id': 10448230, '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_P22815465_09-05-2025_09_02_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22815547, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22815548, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22815549, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22815550, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22815551, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22815552, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22815553, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22815554, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22815555, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22815556, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22815557, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22815558, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1799688, 'mtr_portfolio_id': 22832346, 'dashboard_result_id': 10448231, '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_P22832346_09-05-2025_16_32_29.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22832350, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22832351, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22832352, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22832353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22832354, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22832355, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22832356, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22832357, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22832358, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22832359, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22832360, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22832361, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1799688, 'mtr_portfolio_id': 22832727, 'dashboard_result_id': 10448232, '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_P22832727_09-05-2025_16_47_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22832754, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22832755, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22832756, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22832757, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22832758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22832759, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22832760, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22832761, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22832762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22832763, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22832764, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22832765, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1799688, 'mtr_portfolio_id': 22833211, 'dashboard_result_id': 10448233, '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_P22833211_09-05-2025_17_02_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22833217, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22833218, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22833219, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22833220, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22833221, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22833222, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22833223, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22833224, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22833225, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22833226, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22833227, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22833228, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1799688, 'mtr_portfolio_id': 22833758, 'dashboard_result_id': 10448234, '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_P22833758_09-05-2025_17_13_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22833810, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22833811, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22833812, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22833813, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22833814, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22833815, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22833816, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22833817, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22833818, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22833819, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22833820, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22833821, '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 = 22808280 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': 2810138, 'mtr_portfolio_id': 22808280, 'created_at': datetime.datetime(2025, 5, 9, 5, 35, 30), 'result': '0.06913327302407037', 'result_long': None, 'result_double': None}] Qualite : 0.06913327302407037 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22808280 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22808280_09-05-2025_05_35_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22808280 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_P22808280_09-05-2025_05_35_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22808353, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22808354, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22808355, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22808356, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22808357, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22808358, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22808359, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22808360, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22808361, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22808362, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22808363, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22808364, 'pht': 3726}}" where mtr_portfolio_id = 22808280 and dashboard_run_id = 1799688 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`=22808280 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10448215, 0.06913327302407037, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22808280_09-05-2025_05_35_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22808353, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22808354, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22808355, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22808356, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22808357, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22808358, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22808359, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22808360, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22808361, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22808362, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22808363, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22808364, '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 = 22808548 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': 2810139, 'mtr_portfolio_id': 22808548, 'created_at': datetime.datetime(2025, 5, 9, 5, 35, 58), 'result': '0.03951571250957044', 'result_long': None, 'result_double': None}] Qualite : 0.03951571250957044 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22808548 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22808548_09-05-2025_05_35_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22808548 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_P22808548_09-05-2025_05_35_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22808549, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22808550, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22808551, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22808552, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22808553, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22808554, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22808555, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22808556, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22808557, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22808558, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22808559, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22808560, 'pht': 3726}}" where mtr_portfolio_id = 22808548 and dashboard_run_id = 1799688 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`=22808548 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10448216, 0.03951571250957044, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22808548_09-05-2025_05_35_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22808549, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22808550, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22808551, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22808552, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22808553, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22808554, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22808555, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22808556, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22808557, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22808558, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22808559, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22808560, '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 = 22808912 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': 2810132, 'mtr_portfolio_id': 22808912, 'created_at': datetime.datetime(2025, 5, 9, 5, 50, 57), 'result': '0.03307885640778427', 'result_long': None, 'result_double': None}] Qualite : 0.03307885640778427 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22808912 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22808912_09-05-2025_05_50_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22808912 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_P22808912_09-05-2025_05_50_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22808937, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22808938, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22808939, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22808940, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22808941, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22808942, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22808943, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22808944, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22808945, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22808946, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22808947, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22808948, 'pht': 3726}}" where mtr_portfolio_id = 22808912 and dashboard_run_id = 1799688 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`=22808912 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10448217, 0.03307885640778427, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22808912_09-05-2025_05_50_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22808937, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22808938, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22808939, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22808940, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22808941, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22808942, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22808943, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22808944, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22808945, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22808946, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22808947, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22808948, '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 = 22809471 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': 2810189, 'mtr_portfolio_id': 22809471, 'created_at': datetime.datetime(2025, 5, 9, 6, 2, 59), 'result': '0.04790586201526422', 'result_long': None, 'result_double': None}] Qualite : 0.04790586201526422 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22809471 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22809471_09-05-2025_06_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22809471 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_P22809471_09-05-2025_06_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22809498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22809499, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22809500, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22809501, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22809502, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22809503, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22809504, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22809505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22809506, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22809507, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22809508, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22809509, 'pht': 3726}}" where mtr_portfolio_id = 22809471 and dashboard_run_id = 1799688 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`=22809471 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10448218, 0.04790586201526422, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22809471_09-05-2025_06_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22809498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22809499, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22809500, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22809501, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22809502, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22809503, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22809504, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22809505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22809506, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22809507, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22809508, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22809509, '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 = 22809829 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': 2810234, 'mtr_portfolio_id': 22809829, 'created_at': datetime.datetime(2025, 5, 9, 6, 18, 59), 'result': '0.056862605077740415', 'result_long': None, 'result_double': None}] Qualite : 0.056862605077740415 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22809829 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22809829_09-05-2025_06_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22809829 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_P22809829_09-05-2025_06_18_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22809859, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22809860, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22809861, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22809862, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22809863, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22809864, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22809865, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22809866, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22809867, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22809868, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22809869, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22809870, 'pht': 3726}}" where mtr_portfolio_id = 22809829 and dashboard_run_id = 1799688 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`=22809829 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10448219, 0.056862605077740415, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22809829_09-05-2025_06_18_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22809859, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22809860, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22809861, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22809862, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22809863, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22809864, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22809865, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22809866, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22809867, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22809868, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22809869, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22809870, '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 = 22810325 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': 2810278, 'mtr_portfolio_id': 22810325, 'created_at': datetime.datetime(2025, 5, 9, 6, 32, 57), 'result': '0.05784554719434019', 'result_long': None, 'result_double': None}] Qualite : 0.05784554719434019 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22810325 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22810325_09-05-2025_06_32_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22810325 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_P22810325_09-05-2025_06_32_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22810332, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22810333, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22810334, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22810335, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22810336, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22810337, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22810338, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22810339, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22810340, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22810341, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22810342, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22810343, 'pht': 3726}}" where mtr_portfolio_id = 22810325 and dashboard_run_id = 1799688 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`=22810325 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10448220, 0.05784554719434019, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22810325_09-05-2025_06_32_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22810332, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22810333, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22810334, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22810335, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22810336, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22810337, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22810338, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22810339, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22810340, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22810341, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22810342, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22810343, '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 = 22810785 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': 2810321, 'mtr_portfolio_id': 22810785, 'created_at': datetime.datetime(2025, 5, 9, 6, 48, 59), 'result': '0.04238890891936698', 'result_long': None, 'result_double': None}] Qualite : 0.04238890891936698 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22810785 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22810785_09-05-2025_06_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22810785 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_P22810785_09-05-2025_06_49_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22810813, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22810814, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22810815, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22810816, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22810817, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22810818, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22810819, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22810820, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22810821, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22810822, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22810823, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22810824, 'pht': 3726}}" where mtr_portfolio_id = 22810785 and dashboard_run_id = 1799688 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`=22810785 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10448221, 0.04238890891936698, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22810785_09-05-2025_06_49_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22810813, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22810814, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22810815, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22810816, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22810817, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22810818, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22810819, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22810820, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22810821, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22810822, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22810823, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22810824, '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 = 22811272 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': 2810366, 'mtr_portfolio_id': 22811272, 'created_at': datetime.datetime(2025, 5, 9, 7, 2, 58), 'result': '0.03954195196305571', 'result_long': None, 'result_double': None}] Qualite : 0.03954195196305571 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22811272 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22811272_09-05-2025_07_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22811272 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_P22811272_09-05-2025_07_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22811273, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22811274, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22811275, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22811276, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22811277, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22811278, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22811279, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22811280, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22811281, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22811282, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22811283, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22811284, 'pht': 3726}}" where mtr_portfolio_id = 22811272 and dashboard_run_id = 1799688 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`=22811272 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10448222, 0.03954195196305571, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22811272_09-05-2025_07_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22811273, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22811274, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22811275, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22811276, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22811277, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22811278, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22811279, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22811280, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22811281, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22811282, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22811283, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22811284, '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 = 22811687 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': 2810419, 'mtr_portfolio_id': 22811687, 'created_at': datetime.datetime(2025, 5, 9, 7, 21, 1), 'result': '0.040710775610379564', 'result_long': None, 'result_double': None}] Qualite : 0.040710775610379564 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22811687 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22811687_09-05-2025_07_21_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22811687 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_P22811687_09-05-2025_07_21_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22811691, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22811692, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22811693, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22811694, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22811695, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22811696, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22811697, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22811698, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22811699, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22811700, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22811701, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22811702, 'pht': 3726}}" where mtr_portfolio_id = 22811687 and dashboard_run_id = 1799688 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`=22811687 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10448223, 0.040710775610379564, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22811687_09-05-2025_07_21_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22811691, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22811692, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22811693, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22811694, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22811695, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22811696, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22811697, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22811698, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22811699, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22811700, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22811701, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22811702, '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 = 22812382 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': 2810497, 'mtr_portfolio_id': 22812382, 'created_at': datetime.datetime(2025, 5, 9, 7, 33), 'result': '0.03290544309501728', 'result_long': None, 'result_double': None}] Qualite : 0.03290544309501728 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22812382 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22812382_09-05-2025_07_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22812382 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_P22812382_09-05-2025_07_33_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22812387, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22812388, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22812389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22812390, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22812391, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22812392, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22812393, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22812394, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22812395, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22812396, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22812397, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22812398, 'pht': 3726}}" where mtr_portfolio_id = 22812382 and dashboard_run_id = 1799688 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`=22812382 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10448224, 0.03290544309501728, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22812382_09-05-2025_07_33_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22812387, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22812388, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22812389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22812390, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22812391, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22812392, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22812393, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22812394, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22812395, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22812396, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22812397, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22812398, '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 = 22812747 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': 2810539, 'mtr_portfolio_id': 22812747, 'created_at': datetime.datetime(2025, 5, 9, 7, 46, 59), 'result': '0.04560334557780507', 'result_long': None, 'result_double': None}] Qualite : 0.04560334557780507 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22812747 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22812747_09-05-2025_07_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22812747 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_P22812747_09-05-2025_07_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22812751, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22812752, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22812753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22812754, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22812755, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22812756, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22812757, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22812758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22812759, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22812760, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22812761, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22812762, 'pht': 3726}}" where mtr_portfolio_id = 22812747 and dashboard_run_id = 1799688 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`=22812747 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10448225, 0.04560334557780507, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22812747_09-05-2025_07_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22812751, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22812752, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22812753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22812754, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22812755, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22812756, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22812757, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22812758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22812759, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22812760, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22812761, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22812762, '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 = 22813158 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': 2810590, 'mtr_portfolio_id': 22813158, 'created_at': datetime.datetime(2025, 5, 9, 8, 2, 58), 'result': '0.06227089715816248', 'result_long': None, 'result_double': None}] Qualite : 0.06227089715816248 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22813158 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22813158_09-05-2025_08_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22813158 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_P22813158_09-05-2025_08_02_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22813196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22813197, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22813198, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22813199, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22813200, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22813201, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22813202, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22813203, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22813204, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22813205, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22813206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22813207, 'pht': 3726}}" where mtr_portfolio_id = 22813158 and dashboard_run_id = 1799688 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`=22813158 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10448226, 0.06227089715816248, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22813158_09-05-2025_08_02_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22813196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22813197, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22813198, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22813199, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22813200, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22813201, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22813202, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22813203, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22813204, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22813205, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22813206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22813207, '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 = 22813765 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': 2810664, 'mtr_portfolio_id': 22813765, 'created_at': datetime.datetime(2025, 5, 9, 8, 16, 59), 'result': '0.06385383787588404', 'result_long': None, 'result_double': None}] Qualite : 0.06385383787588404 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22813765 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22813765_09-05-2025_08_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22813765 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_P22813765_09-05-2025_08_16_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22813772, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22813773, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22813774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22813775, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22813776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22813777, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22813778, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22813779, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22813780, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22813781, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22813782, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22813783, 'pht': 3726}}" where mtr_portfolio_id = 22813765 and dashboard_run_id = 1799688 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`=22813765 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10448227, 0.06385383787588404, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22813765_09-05-2025_08_16_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22813772, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22813773, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22813774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22813775, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22813776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22813777, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22813778, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22813779, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22813780, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22813781, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22813782, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22813783, '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 = 22814401 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': 2810727, 'mtr_portfolio_id': 22814401, 'created_at': datetime.datetime(2025, 5, 9, 8, 33, 1), 'result': '0.05223752094263289', 'result_long': None, 'result_double': None}] Qualite : 0.05223752094263289 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22814401 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22814401_09-05-2025_08_33_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22814401 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_P22814401_09-05-2025_08_33_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22814427, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22814428, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22814429, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22814430, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22814431, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22814432, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22814433, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22814434, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22814435, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22814436, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22814437, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22814438, 'pht': 3726}}" where mtr_portfolio_id = 22814401 and dashboard_run_id = 1799688 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`=22814401 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10448228, 0.05223752094263289, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22814401_09-05-2025_08_33_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22814427, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22814428, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22814429, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22814430, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22814431, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22814432, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22814433, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22814434, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22814435, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22814436, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22814437, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22814438, '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 = 22814870 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': 2810791, 'mtr_portfolio_id': 22814870, 'created_at': datetime.datetime(2025, 5, 9, 8, 49), 'result': '0.029737422408573598', 'result_long': None, 'result_double': None}] Qualite : 0.029737422408573598 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22814870 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22814870_09-05-2025_08_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22814870 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_P22814870_09-05-2025_08_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22814878, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22814879, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22814880, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22814881, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22814882, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22814883, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22814884, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22814885, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22814886, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22814887, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22814888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22814889, 'pht': 3726}}" where mtr_portfolio_id = 22814870 and dashboard_run_id = 1799688 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`=22814870 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10448229, 0.029737422408573598, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22814870_09-05-2025_08_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22814878, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22814879, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22814880, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22814881, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22814882, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22814883, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22814884, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22814885, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22814886, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22814887, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22814888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22814889, '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 = 22815465 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': 2810899, 'mtr_portfolio_id': 22815465, 'created_at': datetime.datetime(2025, 5, 9, 9, 33, 31), 'result': '0.03761594021463628', 'result_long': None, 'result_double': None}] Qualite : 0.03761594021463628 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22815465 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22815465_09-05-2025_09_33_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22815465 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_P22815465_09-05-2025_09_33_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22815547, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22815548, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22815549, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22815550, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22815551, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22815552, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22815553, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22815554, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22815555, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22815556, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22815557, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22815558, 'pht': 3726}}" where mtr_portfolio_id = 22815465 and dashboard_run_id = 1799688 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`=22815465 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10448230, 0.03761594021463628, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22815465_09-05-2025_09_33_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22815547, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22815548, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22815549, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22815550, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22815551, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22815552, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22815553, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22815554, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22815555, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22815556, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22815557, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22815558, '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 = 22832346 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': 2812952, 'mtr_portfolio_id': 22832346, 'created_at': datetime.datetime(2025, 5, 9, 16, 32, 28), 'result': '0.04556709389181838', 'result_long': None, 'result_double': None}] Qualite : 0.04556709389181838 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22832346 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22832346_09-05-2025_16_32_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22832346 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_P22832346_09-05-2025_16_32_29.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22832350, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22832351, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22832352, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22832353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22832354, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22832355, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22832356, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22832357, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22832358, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22832359, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22832360, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22832361, 'pht': 3726}}" where mtr_portfolio_id = 22832346 and dashboard_run_id = 1799690 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`=22832346 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10448231, 0.04556709389181838, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22832346_09-05-2025_16_32_29.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22832350, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22832351, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22832352, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22832353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22832354, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22832355, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22832356, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22832357, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22832358, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22832359, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22832360, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22832361, '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 = 22832727 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': 2813016, 'mtr_portfolio_id': 22832727, 'created_at': datetime.datetime(2025, 5, 9, 16, 47), 'result': '0.04430629820289041', 'result_long': None, 'result_double': None}] Qualite : 0.04430629820289041 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22832727 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22832727_09-05-2025_16_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22832727 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_P22832727_09-05-2025_16_47_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22832754, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22832755, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22832756, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22832757, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22832758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22832759, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22832760, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22832761, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22832762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22832763, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22832764, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22832765, 'pht': 3726}}" where mtr_portfolio_id = 22832727 and dashboard_run_id = 1799690 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`=22832727 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10448232, 0.04430629820289041, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22832727_09-05-2025_16_47_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22832754, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22832755, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22832756, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22832757, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22832758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22832759, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22832760, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22832761, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22832762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22832763, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22832764, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22832765, '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 = 22833211 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': 2813058, 'mtr_portfolio_id': 22833211, 'created_at': datetime.datetime(2025, 5, 9, 17, 2, 59), 'result': '0.0473200612187203', 'result_long': None, 'result_double': None}] Qualite : 0.0473200612187203 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22833211 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22833211_09-05-2025_17_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22833211 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_P22833211_09-05-2025_17_02_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22833217, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22833218, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22833219, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22833220, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22833221, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22833222, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22833223, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22833224, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22833225, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22833226, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22833227, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22833228, 'pht': 3726}}" where mtr_portfolio_id = 22833211 and dashboard_run_id = 1799690 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`=22833211 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10448233, 0.0473200612187203, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22833211_09-05-2025_17_02_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22833217, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22833218, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22833219, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22833220, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22833221, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22833222, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22833223, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22833224, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22833225, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22833226, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22833227, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22833228, '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 = 22833758 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': 2813142, 'mtr_portfolio_id': 22833758, 'created_at': datetime.datetime(2025, 5, 9, 17, 14, 58), 'result': '0.03229698608742104', 'result_long': None, 'result_double': None}] Qualite : 0.03229698608742104 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22833758 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22833758_09-05-2025_17_14_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22833758 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_P22833758_09-05-2025_17_14_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22833810, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22833811, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22833812, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22833813, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22833814, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22833815, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22833816, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22833817, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22833818, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22833819, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22833820, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22833821, 'pht': 3726}}" where mtr_portfolio_id = 22833758 and dashboard_run_id = 1799690 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`=22833758 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10448234, 0.03229698608742104, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22833758_09-05-2025_17_14_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22833810, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22833811, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22833812, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22833813, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22833814, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22833815, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22833816, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22833817, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22833818, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22833819, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22833820, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22833821, '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 (22808280,22808548,22808912,22809471,22809829,22810325,22810785,22811272,22811687,22812382,22812747,22813158,22813765,22814401,22814870,22815465,22832346,22832727,22833211,22833758) result : ((1357120566,), (1357120592,), (1357120613,), (1357120618,), (1357120620,), (1357120623,), (1357120642,), (1357120645,), (1357120716,), (1357120718,), (1357120992,), (1357121397,), (1357121425,), (1357121503,), (1357121506,), (1357121513,), (1357121547,), (1357121574,), (1357121576,), (1357121648,), (1357121645,), (1357121646,), (1357121647,), (1357121670,), (1357121672,), (1357121673,), (1357121698,), (1357121699,), (1357121700,), (1357121701,), (1357121725,), (1357121726,), (1357121728,), (1357121730,), (1357121731,), (1357121759,), (1357121762,), (1357121764,), (1357121767,), (1357121772,), (1357121812,), (1357121815,), (1357121817,), (1357121821,), (1357121823,), (1357121842,), (1357121843,), (1357121845,), (1357121847,), (1357121874,), (1357121877,), (1357122056,), (1357122058,), (1357122059,), (1357122060,), (1357122062,), (1357122086,), (1357122089,), (1357122091,), (1357122093,), (1357122096,), (1357122113,), (1357122114,), (1357122116,), (1357122118,), (1357122141,), (1357122143,), (1357122145,), (1357122147,), (1357122150,), (1357122176,), (1357122179,), (1357122181,), (1357122182,), (1357122184,), (1357122214,), (1357122216,), (1357122219,), (1357122256,), (1357122250,), (1357122252,), (1357122254,), (1357122281,), (1357122283,), (1357122285,), (1357122288,), (1357122290,), (1357122315,), (1357122316,), (1357122317,), (1357122318,), (1357122353,), (1357122355,), (1357122357,), (1357122387,), (1357122389,), (1357122391,), (1357122393,), (1357122394,), (1357122429,), (1357122431,), (1357122433,), (1357122435,), (1357122463,), (1357122465,), (1357122468,), (1357122470,), (1357122496,), (1357122498,), (1357122500,), (1357122502,), (1357122525,), (1357122527,), (1357122529,), (1357122532,), (1357122534,), (1357122555,), (1357122595,), (1357122600,), (1357122603,), (1357122607,), (1357122611,), (1357122642,), (1357122645,), (1357122648,), (1357122651,), (1357122685,), (1357122687,), (1357122689,), (1357122691,), (1357122694,), (1357122727,), (1357122728,), (1357122729,), (1357122730,), (1357122732,), (1357122733,), (1357122765,), (1357122766,), (1357122767,), (1357122814,), (1357122801,), (1357122804,), (1357122806,), (1357122809,), (1357122811,), (1357122839,), (1357122841,), (1357122844,), (1357122846,), (1357122849,), (1357122876,), (1357122878,), (1357122880,), (1357122882,), (1357122883,), (1357122912,), (1357122914,), (1357122917,), (1357122919,), (1357122923,), (1357122926,), (1357122952,), (1357122955,), (1357122957,), (1357122959,), (1357122995,), (1357122998,), (1357123001,), (1357123004,), (1357123007,), (1357123011,), (1357123050,), (1357123053,), (1357123055,), (1357123058,), (1357123061,), (1357123082,), (1357123084,), (1357123085,), (1357123114,), (1357123116,), (1357123118,), (1357123120,), (1357123123,), (1357123124,), (1357123149,), (1357123152,), (1357123154,), (1357123156,), (1357123158,), (1357123249,), (1357123252,), (1357123255,), (1357123290,), (1357123292,), (1357123295,), (1357123312,), (1357123343,), (1357123519,), (1357123530,), (1357123549,), (1357123561,), (1357123564,), (1357123615,), (1357123618,), (1357123623,), (1357123627,), (1357123671,), (1357123668,), (1357123704,), (1357123707,), (1357123709,), (1357123711,), (1357123713,), (1357123753,), (1357123755,), (1357123758,), (1357123760,), (1357123762,), (1357123793,), (1357123795,), (1357123797,), (1357123799,), (1357123801,), (1357123826,), (1357123828,), (1357123874,), (1357123876,), (1357123878,), (1357123880,), (1357123883,), (1357123884,), (1357123913,), (1357123915,), (1357123963,), (1357123965,), (1357123967,), (1357123970,), (1357123971,), (1357124002,), (1357124018,), (1357124035,), (1357124064,), (1357124067,), (1357124069,), (1357124073,), (1357124076,), (1357124077,), (1357124101,), (1357124103,), (1357124105,), (1357124107,), (1357124110,), (1357124128,), (1357124131,), (1357124133,), (1357124136,), (1357124138,), (1357124175,), (1357124178,), (1357124180,), (1357124211,), (1357124213,), (1357124217,), (1357124219,), (1357124221,), (1357124269,), (1357124258,), (1357124261,), (1357124263,), (1357124265,), (1357124267,), (1357124298,), (1357124299,), (1357124300,), (1357124342,), (1357124344,), (1357124346,), (1357124349,), (1357124380,), (1357124382,), (1357124384,), (1357124386,), (1357124423,), (1357124425,), (1357124427,), (1357124429,), (1357124473,), (1357124476,), (1357124479,), (1357124480,), (1357124482,), (1357124483,), (1357124526,), (1357124527,), (1357124530,), (1357124533,), (1357124538,), (1357124541,), (1357124572,), (1357124576,), (1357124578,), (1357124580,), (1357124581,), (1357124624,), (1357124649,), (1357124650,), (1357124651,), (1357124652,), (1357124695,), (1357124696,), (1357124697,), (1357124698,), (1357124723,), (1357124724,), (1357124725,), (1357124758,), (1357124760,), (1357124762,), (1357124800,), (1357124802,), (1357124804,), (1357124806,), (1357124809,), (1357124811,), (1357124840,), (1357124842,), (1357124844,), (1357124846,), (1357124851,), (1357124854,), (1357124898,), (1357124888,), (1357124891,), (1357124893,), (1357124926,), (1357124928,), (1357124930,), (1357124932,), (1357124934,), (1357124939,), (1357124968,), (1357124971,), (1357124974,), (1357124977,), (1357124981,), (1357124985,), (1357125023,), (1357125026,), (1357125028,), (1357125030,), (1357125032,), (1357125064,), (1357125066,), (1357125069,), (1357125072,), (1357125075,), (1357125076,), (1357125122,), (1357125127,), (1357125129,), (1357125132,), (1357125135,), (1357125170,), (1357125172,), (1357125174,), (1357125209,), (1357125212,), (1357125214,), (1357125216,), (1357125218,), (1357125222,), (1357125261,), (1357125263,), (1357125266,), (1357125269,), (1357125271,), (1357125276,), (1357125300,), (1357125304,), (1357125308,), (1357125347,), (1357125350,), (1357125353,), (1357125356,), (1357125359,), (1357125402,), (1357125404,), (1357125405,), (1357125406,), (1357125442,), (1357125444,), (1357125446,), (1357125495,), (1357125497,), (1357125498,), (1357125499,), (1357125502,), (1357125533,), (1357125535,), (1357125537,), (1357125539,), (1357125582,), (1357125576,), (1357125578,), (1357125580,), (1357125611,), (1357125613,), (1357125615,), (1357125616,), (1357125643,), (1357125645,), (1357125646,), (1357125647,), (1357125688,), (1357125690,), (1357125691,), (1357125692,), (1357125693,), (1357125696,), (1357125731,), (1357125847,), (1357125901,), (1357125904,), (1357125907,), (1357125935,), (1357125937,), (1357125939,), (1357125941,), (1357125943,), (1357125947,), (1357125972,), (1357125999,), (1357126035,), (1357126086,), (1357126145,), (1357126423,), (1357126438,), (1357126441,), (1357126443,), (1357126526,), (1357126534,), (1357126539,), (1357126545,), (1357126552,), (1357126557,), (1357126563,), (1357126564,), (1357126574,), (1357126580,), (1357126584,), (1357126611,), (1357126596,), (1357126601,), (1357126605,), (1357126607,), (1357126635,), (1357126644,), (1357126649,), (1357126687,), (1357126691,), (1357126694,), (1357126697,), (1357126743,), (1357126748,), (1357126753,), (1357126758,), (1357126762,), (1357126766,), (1357126808,), (1357126810,), (1357126812,), (1357126815,), (1357126819,), (1357126824,), (1357126858,), (1357126862,), (1357126867,), (1357126872,), (1357126913,), (1357126917,), (1357126921,), (1357126923,), (1357126927,), (1357126974,), (1357126979,), (1357126985,), (1357127012,), (1357127042,), (1357127164,), (1357127168,), (1357127173,), (1357127176,), (1357127179,), (1357127228,), (1357127232,), (1357127235,), (1357127239,), (1357127245,), (1357127251,), (1357127347,), (1357127352,), (1357127359,), (1357127474,), (1357127478,), (1357127483,), (1357127488,), (1357127491,), (1357127534,), (1357127539,), (1357127542,), (1357127545,), (1357127549,), (1357127573,), (1357127576,), (1357127580,), (1357127627,), (1357127632,), (1357127637,), (1357127641,), (1357127645,), (1357127648,), (1357127702,), (1357127691,), (1357127694,), (1357127696,), (1357127698,), (1357127741,), (1357127745,), (1357127748,), (1357127756,), (1357127830,), (1357127835,), (1357127885,), (1357127889,), (1357127891,), (1357127896,), (1357127935,), (1357127938,), (1357127942,), (1357127946,), (1357127983,), (1357127989,), (1357127993,), (1357127996,), (1357128034,), (1357128038,), (1357128043,), (1357128098,), (1357128101,), (1357128104,), (1357128108,), (1357128163,), (1357128168,), (1357128173,), (1357128178,), (1357128230,), (1357128234,), (1357128237,), (1357128241,), (1357128285,), (1357128296,), (1357128304,), (1357128348,), (1357128351,), (1357128355,), (1357128359,), (1357128364,), (1357128372,), (1357128533,), (1357128538,), (1357128542,), (1357128598,), (1357128602,), (1357128607,), (1357128659,), (1357128653,), (1357128656,), (1357128709,), (1357128714,), (1357128718,), (1357128722,), (1357128727,), (1357128732,), (1357128766,), (1357128772,), (1357128776,), (1357128783,), (1357128787,), (1357128819,), (1357128826,), (1357128830,), (1357128844,), (1357128902,), (1357128908,), (1357128913,), (1357128917,), (1357128921,), (1357128961,), (1357128966,), (1357128971,), (1357128976,), (1357129019,), (1357129027,), (1357129032,), (1357129034,), (1357129039,), (1357129075,), (1357129149,), (1357129205,), (1357129209,), (1357129212,), (1357129215,), (1357129219,), (1357129260,), (1357129265,), (1357129270,), (1357129315,), (1357129319,), (1357129330,), (1357129334,), (1357129350,), (1357129395,), (1357129399,), (1357129405,), (1357129411,), (1357129415,), (1357129463,), (1357129466,), (1357129470,), (1357129473,), (1357129543,), (1357129547,), (1357129551,), (1357129554,), (1357129591,), (1357129597,), (1357129703,), (1357129695,), (1357129697,), (1357129700,), (1357129820,), (1357129822,), (1357129825,), (1357129828,), (1357129832,), (1357129877,), (1357129880,), (1357129883,), (1357129886,), (1357129889,), (1357129933,), (1357129936,), (1357129939,), (1357129942,), (1357129999,), (1357130007,), (1357130011,), (1357130016,), (1357130021,), (1357130073,), (1357130077,), (1357130080,), (1357130101,), (1357130106,), (1357130109,), (1357130166,), (1357130170,), (1357130173,), (1357130214,), (1357130217,), (1357130219,), (1357130223,), (1357130227,), (1357130230,), (1357130307,), (1357130309,), (1357130312,), (1357130315,), (1357130418,), (1357130435,), (1357130438,), (1357130560,), (1357130564,), (1357130567,), (1357130571,), (1357130575,), (1357130611,), (1357130612,), (1357130613,), (1357130615,), (1357130617,), (1357130899,), (1357130930,), (1357130972,), (1357131639,), (1357131722,), (1357131784,), (1357131846,), (1357131900,), (1357131950,), (1357132198,), (1357132277,), (1357132361,), (1357132437,), (1357132822,), (1357132713,), (1357132768,), (1357133417,), (1357133433,), (1357133462,), (1357133489,), (1357133536,), (1357133838,), (1357133865,), (1357133888,), (1357133895,), (1357133902,), (1357134074,), (1357134079,), (1357134081,), (1357134542,), (1357134736,), (1357134908,), (1357134913,), (1357134918,), (1357134956,), (1357135186,), (1357135225,), (1357135237,), (1357135239,), (1357135243,), (1357135245,), (1357135500,), (1357135523,), (1357135534,), (1357135562,), (1357135612,), (1357135616,), (1357135618,), (1357135620,), (1357135624,), (1357135809,), (1357135836,), (1357135864,), (1357135888,), (1357135937,), (1357135943,), (1357135946,), (1357135955,), (1357135966,), (1357136019,), (1357136023,), (1357136040,), (1357136055,), (1357136062,), (1357136166,), (1357136170,), (1357136172,), (1357136174,), (1357136177,), (1357136220,), (1357136222,), (1357136225,), (1357136279,), (1357136282,), (1357136284,), (1357136286,), (1357136290,), (1357136292,), (1357136342,), (1357136348,), (1357136352,), (1357136357,), (1357136363,), (1357136415,), (1357136406,), (1357136409,), (1357136413,), (1357136455,), (1357136459,), (1357136462,), (1357136466,), (1357136469,), (1357136471,), (1357136512,), (1357136515,), (1357136517,), (1357136524,), (1357136532,), (1357136540,), (1357136609,), (1357136613,), (1357136733,), (1357136737,), (1357136742,), (1357136746,), (1357136798,), (1357136811,), (1357136814,), (1357136816,), (1357136819,), (1357136862,), (1357136864,), (1357136867,), (1357136870,), (1357136873,), (1357136912,), (1357136913,), (1357136916,), (1357136919,), (1357136922,), (1357136965,), (1357136970,), (1357136972,), (1357136976,), (1357136979,), (1357136983,), (1357137032,), (1357137034,), (1357137036,), (1357137096,), (1357137130,), (1357137136,), (1357137138,), (1357137142,), (1357137170,), (1357137201,), (1357137203,), (1357137205,), (1357137207,), (1357137246,), (1357137250,), (1357137253,), (1357137255,), (1357137306,), (1357137319,), (1357137322,), (1357137325,), (1357137327,), (1357137333,), (1357137403,), (1357137376,), (1357137386,), (1357137391,), (1357137398,), (1357137433,), (1357137478,), (1357137482,), (1357137529,), (1357137532,), (1357137536,), (1357137543,), (1357137547,), (1357137551,), (1357137587,), (1357137592,), (1357137597,), (1357137601,), (1357137636,), (1357137639,), (1357137643,), (1357137647,), (1357137679,), (1357137683,), (1357137688,), (1357137693,), (1357137698,), (1357137739,), (1357137741,), (1357137743,), (1357137745,), (1357137746,), (1357137790,), (1357137793,), (1357137797,), (1357137800,), (1357137845,), (1357137847,), (1357137848,), (1357137850,), (1357137853,), (1357137857,), (1357137915,), (1357137924,), (1357137940,), (1357138012,), (1357138016,), (1357138018,), (1357138019,), (1357138067,), (1357138070,), (1357138074,), (1357138076,), (1357138080,), (1357138138,), (1357138141,), (1357138144,), (1357138148,), (1357138357,), (1357138471,), (1357138474,), (1357138479,), (1357138490,), (1357138494,), (1357138558,), (1357138546,), (1357138548,), (1357138551,), (1357138554,), (1357138601,), (1357138604,), (1357138607,), (1357138649,), (1357138657,), (1357138660,), (1357138672,), (1357138684,), (1357138775,), (1357138780,), (1357138784,), (1357138787,), (1357138790,), (1357138793,), (1357138852,), (1357138885,), (1357138902,), (1357138904,), (1357139094,), (1357139097,), (1357139099,), (1357139102,), (1357139105,), (1357139116,), (1357139183,), (1357139189,), (1357139206,), (1357139208,), (1357139277,), (1357139278,), (1357139280,), (1357139282,), (1357139284,), (1357139295,), (1357139471,), (1357139475,), (1357139478,), (1357139502,), (1357139631,), (1357139634,), (1357139638,), (1357139641,), (1357139645,), (1357139649,), (1357139774,), (1357139810,), (1357139845,), (1357139863,), (1357139877,), (1357140153,), (1357140163,), (1357140170,), (1357140176,), (1357140182,), (1357140189,), (1357140336,), (1357140373,), (1357140383,), (1357140390,), (1357140410,), (1357141591,), (1357141617,), (1357141646,), (1357141657,), (1357141689,), (1357141708,), (1357141731,), (1357141762,), (1357141810,), (1357141871,), (1357141899,), (1357147124,), (1357221454,), (1357221458,), (1357221465,), (1357221490,), (1357221498,), (1357221605,), (1357221608,), (1357221611,), (1357221742,), (1357221744,), (1357221747,), (1357221750,), (1357221754,), (1357221841,), (1357221844,), (1357221846,), (1357221847,), (1357221852,), (1357221862,), (1357221972,), (1357221977,), (1357221980,), (1357221985,), (1357222067,), (1357222070,), (1357222072,), (1357222075,), (1357222077,), (1357222084,), (1357222126,), (1357222127,), (1357222129,), (1357222261,), (1357222265,), (1357222268,), (1357222300,), (1357222303,), (1357222306,), (1357222308,), (1357222310,), (1357222315,), (1357222406,), (1357222433,), (1357222461,), (1357222626,), (1357222631,), (1357222752,), (1357222754,), (1357222764,), (1357222789,), (1357222868,), (1357222871,), (1357222874,), (1357222875,), (1357222877,), (1357222946,), (1357223012,), (1357223059,), (1357223063,), (1357223121,), (1357223125,), (1357223128,), (1357223133,), (1357223136,), (1357223140,), (1357223167,), (1357223170,), (1357223171,), (1357223355,), (1357223357,), (1357223359,), (1357223361,), (1357223363,), (1357223365,), (1357223398,), (1357223403,), (1357223408,), (1357223417,), (1357223431,), (1357223519,), (1357223549,), (1357223563,), (1357223564,), (1357223624,), (1357223627,), (1357223630,), (1357223653,), (1357223679,), (1357223704,), (1357223864,), (1357223867,), (1357223870,), (1357224019,), (1357224168,), (1357224382,), (1357224387,), (1357224428,), (1357224431,), (1357224434,), (1357224437,), (1357224440,), (1357224443,), (1357224518,), (1357224520,), (1357224522,), (1357224524,), (1357224529,), (1357224533,), (1357224660,), (1357224650,), (1357224652,), (1357224741,), (1357224759,), (1357224785,), (1357224813,), (1357224841,), (1357224857,), (1357224893,), (1357224897,), (1357224900,), (1357224923,), (1357224958,), (1357225034,), (1357225039,), (1357225043,), (1357225046,), (1357225114,), (1357225138,), (1357225349,), (1357225352,), (1357225528,), (1357225531,), (1357225534,), (1357225574,), (1357225587,), (1357225675,), (1357225685,), (1357225687,), (1357225688,), (1357225716,), (1357225765,), (1357225768,), (1357225769,), (1357226244,), (1357226270,), (1357226995,), (1357227000,), (1357227007,), (1357227012,), (1357227038,), (1357227055,), (1357227087,), (1357227115,), (1357227257,), (1357227177,), (1357227200,), (1357227229,), (1357227242,), (1357227395,), (1357227448,), (1357228352,), (1357228564,), (1357229297,), (1357229349,), (1357229428,), (1357229512,), (1357229592,), (1357230304,), (1357230318,), (1357230322,), (1357230325,), (1357230327,), (1357230332,), (1357230498,), (1357230518,), (1357230522,), (1357230525,), (1357230667,), (1357230696,), (1357230722,), (1357231869,), (1357231948,), (1357232029,), (1357232117,), (1357232178,), (1357232585,), (1357232611,), (1357232640,), (1357232646,), (1357232684,), (1357233143,), (1357233171,), (1357233198,), (1357233255,), (1357233801,), (1357233823,), (1357233862,), (1357233882,), (1357234225,), (1357234235,), (1357234239,), (1357234244,), (1357234248,), (1357234251,), (1357234437,), (1357234465,), (1357234481,), (1357234499,), (1357234501,), (1357234504,), (1357234654,), (1357234663,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'09052025': {'nb_upload': 58, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22833758]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1357234663, 1357234654, 1357234504, 1357234501, 1357234499, 1357234481, 1357234465, 1357234437, 1357234251, 1357234248, 1357234244, 1357234239, 1357234235, 1357234225] map_info['map_portfolio_photo'] : {22833758: [1357234663, 1357234654, 1357234504, 1357234501, 1357234499, 1357234481, 1357234465, 1357234437, 1357234251, 1357234248, 1357234244, 1357234239, 1357234235, 1357234225, 1357233882, 1357233862, 1357233823, 1357233801, 1357233255, 1357233198, 1357233171, 1357233143, 1357232684, 1357232646, 1357232640, 1357232611, 1357232585, 1357232178, 1357232117, 1357232029, 1357231948, 1357231869, 1357230722, 1357230696, 1357230667, 1357230525, 1357230522, 1357230518, 1357230498, 1357230332, 1357230327, 1357230325, 1357230322, 1357230318, 1357230304, 1357229592, 1357229512, 1357229428, 1357229349, 1357229297, 1357228564, 1357228352, 1357227448, 1357227395, 1357227242, 1357227229, 1357227200, 1357227177]} final : True mtd_id 4302 list_pids : [1357234663, 1357234654, 1357234504, 1357234501, 1357234499, 1357234481, 1357234465, 1357234437, 1357234251, 1357234248, 1357234244, 1357234239, 1357234235, 1357234225] Looping around the photos to save general results len do output : 1 /22833758Didn'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, '2813142') ('4302', '22833758', '1357234663', None, None, None, None, None, '2813142') ('4302', None, None, None, None, None, None, None, '2813142') ('4302', '22833758', '1357234654', None, None, None, None, None, '2813142') ('4302', None, None, None, None, None, None, None, '2813142') ('4302', '22833758', '1357234504', None, None, None, None, None, '2813142') ('4302', None, None, None, None, None, None, None, '2813142') ('4302', '22833758', '1357234501', None, None, None, None, None, '2813142') ('4302', None, None, None, None, None, None, None, '2813142') ('4302', '22833758', '1357234499', None, None, None, None, None, '2813142') ('4302', None, None, None, None, None, None, None, '2813142') ('4302', '22833758', '1357234481', None, None, None, None, None, '2813142') ('4302', None, None, None, None, None, None, None, '2813142') ('4302', '22833758', '1357234465', None, None, None, None, None, '2813142') ('4302', None, None, None, None, None, None, None, '2813142') ('4302', '22833758', '1357234437', None, None, None, None, None, '2813142') ('4302', None, None, None, None, None, None, None, '2813142') ('4302', '22833758', '1357234251', None, None, None, None, None, '2813142') ('4302', None, None, None, None, None, None, None, '2813142') ('4302', '22833758', '1357234248', None, None, None, None, None, '2813142') ('4302', None, None, None, None, None, None, None, '2813142') ('4302', '22833758', '1357234244', None, None, None, None, None, '2813142') ('4302', None, None, None, None, None, None, None, '2813142') ('4302', '22833758', '1357234239', None, None, None, None, None, '2813142') ('4302', None, None, None, None, None, None, None, '2813142') ('4302', '22833758', '1357234235', None, None, None, None, None, '2813142') ('4302', None, None, None, None, None, None, None, '2813142') ('4302', '22833758', '1357234225', None, None, None, None, None, '2813142') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 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, '22833758', 'None', None, None, None, None, '2813142'), ('4302', '22833758', '1357234663', None, None, None, None, None, '2813142'), ('4302', '22833758', '1357234654', None, None, None, None, None, '2813142'), ('4302', '22833758', '1357234504', None, None, None, None, None, '2813142'), ('4302', '22833758', '1357234501', None, None, None, None, None, '2813142'), ('4302', '22833758', '1357234499', None, None, None, None, None, '2813142'), ('4302', '22833758', '1357234481', None, None, None, None, None, '2813142'), ('4302', '22833758', '1357234465', None, None, None, None, None, '2813142'), ('4302', '22833758', '1357234437', None, None, None, None, None, '2813142'), ('4302', '22833758', '1357234251', None, None, None, None, None, '2813142'), ('4302', '22833758', '1357234248', None, None, None, None, None, '2813142'), ('4302', '22833758', '1357234244', None, None, None, None, None, '2813142'), ('4302', '22833758', '1357234239', None, None, None, None, None, '2813142'), ('4302', '22833758', '1357234235', None, None, None, None, None, '2813142'), ('4302', '22833758', '1357234225', None, None, None, None, None, '2813142')] time used for this insertion : 0.016346216201782227 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.331416130065918 time spend to save output : 0.016633033752441406 total time spend for step 5 : 1.3480491638183594 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 (2813142) 2.29user 2.44system 0:10.79elapsed 43%CPU (0avgtext+0avgdata 160412maxresident)k 152inputs+16456outputs (4major+75590minor)pagefaults 0swaps