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 (2759179) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2759179) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22398957 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2759179'] with mtr_portfolio_ids : ['22398957'] and first list_photo_ids : [] new path : /proc/2579027/ Name: python3 Umask: 0002 State: R (running) Tgid: 2579027 Ngid: 0 Pid: 2579027 PPid: 2579026 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2579027 NSpid: 2579027 NSpgid: 2576109 NSsid: 2576109 VmPeak: 1106936 kB VmSize: 1106936 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98156 kB VmRSS: 98156 kB RssAnon: 59804 kB RssFile: 38352 kB RssShmem: 0 kB VmData: 865684 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: 56 nonvoluntary_ctxt_switches: 97 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2579027', 'Ngid': '0', 'Pid': '2579027', 'PPid': '2579026', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2579027', 'NSpid': '2579027', 'NSpgid': '2576109', 'NSsid': '2576109', 'VmPeak': '1106936 kB', 'VmSize': '1106936 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98156 kB', 'VmRSS': '98156 kB', 'RssAnon': '59804 kB', 'RssFile': '38352 kB', 'RssShmem': '0 kB', 'VmData': '865684 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': '56', 'nonvoluntary_ctxt_switches': '97'} ('datou_batch_current', '2579027', '1106936', '0', '1106936', '865684', '98156', b'', 'marlene', '2759179') 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 (22398957) 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 (2759179 ) ) 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 (22398957) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1353461818, 'portfolio_id': 22398957}, {'photo_id': 1353461794, 'portfolio_id': 22398957}, {'photo_id': 1353461769, 'portfolio_id': 22398957}, {'photo_id': 1353461743, 'portfolio_id': 22398957}, {'photo_id': 1353461516, 'portfolio_id': 22398957}, {'photo_id': 1353461512, 'portfolio_id': 22398957}, {'photo_id': 1353461509, 'portfolio_id': 22398957}, {'photo_id': 1353461506, 'portfolio_id': 22398957}, {'photo_id': 1353461504, 'portfolio_id': 22398957}, {'photo_id': 1353461502, 'portfolio_id': 22398957}, {'photo_id': 1353461463, 'portfolio_id': 22398957}, {'photo_id': 1353461445, 'portfolio_id': 22398957}, {'photo_id': 1353461440, 'portfolio_id': 22398957}, {'photo_id': 1353461402, 'portfolio_id': 22398957}, {'photo_id': 1353461399, 'portfolio_id': 22398957}, {'photo_id': 1353461396, 'portfolio_id': 22398957}, {'photo_id': 1353461390, 'portfolio_id': 22398957}, {'photo_id': 1353461386, 'portfolio_id': 22398957}, {'photo_id': 1353461294, 'portfolio_id': 22398957}, {'photo_id': 1353461289, 'portfolio_id': 22398957}, {'photo_id': 1353461282, 'portfolio_id': 22398957}, {'photo_id': 1353461277, 'portfolio_id': 22398957}, {'photo_id': 1353461066, 'portfolio_id': 22398957}, {'photo_id': 1353461062, 'portfolio_id': 22398957}, {'photo_id': 1353460896, 'portfolio_id': 22398957}, {'photo_id': 1353460867, 'portfolio_id': 22398957}, {'photo_id': 1353460855, 'portfolio_id': 22398957}, {'photo_id': 1353460814, 'portfolio_id': 22398957}, {'photo_id': 1353460693, 'portfolio_id': 22398957}, {'photo_id': 1353460689, 'portfolio_id': 22398957}, {'photo_id': 1353460655, 'portfolio_id': 22398957}, {'photo_id': 1353460648, 'portfolio_id': 22398957}, {'photo_id': 1353460610, 'portfolio_id': 22398957}, {'photo_id': 1353460607, 'portfolio_id': 22398957}, {'photo_id': 1353460604, 'portfolio_id': 22398957}] map_portfolio_id_photo_id: {22398957: [1353461818, 1353461794, 1353461769, 1353461743, 1353461516, 1353461512, 1353461509, 1353461506, 1353461504, 1353461502, 1353461463, 1353461445, 1353461440, 1353461402, 1353461399, 1353461396, 1353461390, 1353461386, 1353461294, 1353461289, 1353461282, 1353461277, 1353461066, 1353461062, 1353460896, 1353460867, 1353460855, 1353460814, 1353460693, 1353460689, 1353460655, 1353460648, 1353460610, 1353460607, 1353460604]} ##### 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.015628814697265625 #### 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 Thu Apr 24 21:40: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 (22398957) 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 : 22398957 get user id for portfolio 22398957 get sub ptf for main ptf 22398957, type 3726 and hashtags ['Teint_Dans_La_Masse', 'Carton_gris', 'autre_refus', 'cartonnette', 'kraft', 'Carton_brun', 'mal_croppe', 'flou', 'plastique', 'metal', 'environnement', 'papier'] 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`=22398957 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','Carton_gris','autre_refus','cartonnette','kraft','Carton_brun','mal_croppe','flou','plastique','metal','environnement','papier')) 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`=22398957 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','Carton_gris','autre_refus','cartonnette','kraft','Carton_brun','mal_croppe','flou','plastique','metal','environnement','papier')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 22398957, 'sub_port_id': 22398964, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14848336, 'last_updated_at': datetime.datetime(2025, 4, 24, 21, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 21, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 21, 34, 57)}, 'kraft': {'main_port_id': 22398957, 'sub_port_id': 22398965, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14848337, 'last_updated_at': datetime.datetime(2025, 4, 24, 21, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 21, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 21, 34, 57)}, 'flou': {'main_port_id': 22398957, 'sub_port_id': 22398966, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14848338, 'last_updated_at': datetime.datetime(2025, 4, 24, 21, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 21, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 21, 34, 57)}, 'mal_croppe': {'main_port_id': 22398957, 'sub_port_id': 22398967, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14848339, 'last_updated_at': datetime.datetime(2025, 4, 24, 21, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 21, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 21, 34, 57)}, 'papier': {'main_port_id': 22398957, 'sub_port_id': 22398968, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14848340, 'last_updated_at': datetime.datetime(2025, 4, 24, 21, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 21, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 21, 34, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 22398957, 'sub_port_id': 22398969, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14848341, 'last_updated_at': datetime.datetime(2025, 4, 24, 21, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 21, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 21, 34, 57)}, 'cartonnette': {'main_port_id': 22398957, 'sub_port_id': 22398970, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14848342, 'last_updated_at': datetime.datetime(2025, 4, 24, 21, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 21, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 21, 34, 57)}, 'Carton_brun': {'main_port_id': 22398957, 'sub_port_id': 22398971, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14848343, 'last_updated_at': datetime.datetime(2025, 4, 24, 21, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 21, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 21, 34, 57)}, 'metal': {'main_port_id': 22398957, 'sub_port_id': 22398972, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14848344, 'last_updated_at': datetime.datetime(2025, 4, 24, 21, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 21, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 21, 34, 57)}, 'plastique': {'main_port_id': 22398957, 'sub_port_id': 22398973, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14848345, 'last_updated_at': datetime.datetime(2025, 4, 24, 21, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 21, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 21, 34, 57)}, 'autre_refus': {'main_port_id': 22398957, 'sub_port_id': 22398974, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14848346, 'last_updated_at': datetime.datetime(2025, 4, 24, 21, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 21, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 21, 34, 57)}, 'environnement': {'main_port_id': 22398957, 'sub_port_id': 22398975, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14848347, 'last_updated_at': datetime.datetime(2025, 4, 24, 21, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 21, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 21, 34, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22398964 , 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=22398957 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 (22398964) result : ((1353461188,), (1353461189,), (1353461190,), (1353461191,), (1353461278,), (1353461424,), (1353461425,), (1353461433,), (1353461454,), (1353461455,), (1353461490,), (1353461491,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22398957) result : ((1353460604,), (1353460607,), (1353460610,), (1353460648,), (1353460655,), (1353460689,), (1353460693,), (1353460814,), (1353460855,), (1353460867,), (1353460896,), (1353461062,), (1353461066,), (1353461277,), (1353461282,), (1353461289,), (1353461294,), (1353461386,), (1353461390,), (1353461396,), (1353461399,), (1353461402,), (1353461440,), (1353461445,), (1353461463,), (1353461502,), (1353461504,), (1353461506,), (1353461509,), (1353461512,), (1353461516,), (1353461743,), (1353461769,), (1353461794,), (1353461818,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22398965 , 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=22398957 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 (22398965) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22398957) result : ((1353460604,), (1353460607,), (1353460610,), (1353460648,), (1353460655,), (1353460689,), (1353460693,), (1353460814,), (1353460855,), (1353460867,), (1353460896,), (1353461062,), (1353461066,), (1353461277,), (1353461282,), (1353461289,), (1353461294,), (1353461386,), (1353461390,), (1353461396,), (1353461399,), (1353461402,), (1353461440,), (1353461445,), (1353461463,), (1353461502,), (1353461504,), (1353461506,), (1353461509,), (1353461512,), (1353461516,), (1353461743,), (1353461769,), (1353461794,), (1353461818,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22398966 , 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=22398957 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 (22398966) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22398957) result : ((1353460604,), (1353460607,), (1353460610,), (1353460648,), (1353460655,), (1353460689,), (1353460693,), (1353460814,), (1353460855,), (1353460867,), (1353460896,), (1353461062,), (1353461066,), (1353461277,), (1353461282,), (1353461289,), (1353461294,), (1353461386,), (1353461390,), (1353461396,), (1353461399,), (1353461402,), (1353461440,), (1353461445,), (1353461463,), (1353461502,), (1353461504,), (1353461506,), (1353461509,), (1353461512,), (1353461516,), (1353461743,), (1353461769,), (1353461794,), (1353461818,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22398967 , 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=22398957 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 (22398967) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22398957) result : ((1353460604,), (1353460607,), (1353460610,), (1353460648,), (1353460655,), (1353460689,), (1353460693,), (1353460814,), (1353460855,), (1353460867,), (1353460896,), (1353461062,), (1353461066,), (1353461277,), (1353461282,), (1353461289,), (1353461294,), (1353461386,), (1353461390,), (1353461396,), (1353461399,), (1353461402,), (1353461440,), (1353461445,), (1353461463,), (1353461502,), (1353461504,), (1353461506,), (1353461509,), (1353461512,), (1353461516,), (1353461743,), (1353461769,), (1353461794,), (1353461818,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22398968 , 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=22398957 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 (22398968) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22398957) result : ((1353460604,), (1353460607,), (1353460610,), (1353460648,), (1353460655,), (1353460689,), (1353460693,), (1353460814,), (1353460855,), (1353460867,), (1353460896,), (1353461062,), (1353461066,), (1353461277,), (1353461282,), (1353461289,), (1353461294,), (1353461386,), (1353461390,), (1353461396,), (1353461399,), (1353461402,), (1353461440,), (1353461445,), (1353461463,), (1353461502,), (1353461504,), (1353461506,), (1353461509,), (1353461512,), (1353461516,), (1353461743,), (1353461769,), (1353461794,), (1353461818,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22398969 , 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=22398957 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 (22398969) result : ((1353461185,), (1353461186,), (1353461275,), (1353461276,), (1353461370,), (1353461418,), (1353461419,), (1353461420,), (1353461421,), (1353461422,), (1353461430,), (1353461431,), (1353461448,), (1353461450,), (1353461484,), (1353461485,), (1353461486,), (1353461487,), (1353461488,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22398957) result : ((1353460604,), (1353460607,), (1353460610,), (1353460648,), (1353460655,), (1353460689,), (1353460693,), (1353460814,), (1353460855,), (1353460867,), (1353460896,), (1353461062,), (1353461066,), (1353461277,), (1353461282,), (1353461289,), (1353461294,), (1353461386,), (1353461390,), (1353461396,), (1353461399,), (1353461402,), (1353461440,), (1353461445,), (1353461463,), (1353461502,), (1353461504,), (1353461506,), (1353461509,), (1353461512,), (1353461516,), (1353461743,), (1353461769,), (1353461794,), (1353461818,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22398970 , 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=22398957 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 (22398970) result : ((1353461426,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22398957) result : ((1353460604,), (1353460607,), (1353460610,), (1353460648,), (1353460655,), (1353460689,), (1353460693,), (1353460814,), (1353460855,), (1353460867,), (1353460896,), (1353461062,), (1353461066,), (1353461277,), (1353461282,), (1353461289,), (1353461294,), (1353461386,), (1353461390,), (1353461396,), (1353461399,), (1353461402,), (1353461440,), (1353461445,), (1353461463,), (1353461502,), (1353461504,), (1353461506,), (1353461509,), (1353461512,), (1353461516,), (1353461743,), (1353461769,), (1353461794,), (1353461818,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22398971 , 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=22398957 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 (22398971) result : ((1353461193,), (1353461194,), (1353461372,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22398957) result : ((1353460604,), (1353460607,), (1353460610,), (1353460648,), (1353460655,), (1353460689,), (1353460693,), (1353460814,), (1353460855,), (1353460867,), (1353460896,), (1353461062,), (1353461066,), (1353461277,), (1353461282,), (1353461289,), (1353461294,), (1353461386,), (1353461390,), (1353461396,), (1353461399,), (1353461402,), (1353461440,), (1353461445,), (1353461463,), (1353461502,), (1353461504,), (1353461506,), (1353461509,), (1353461512,), (1353461516,), (1353461743,), (1353461769,), (1353461794,), (1353461818,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22398972 , 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=22398957 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 (22398972) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22398957) result : ((1353460604,), (1353460607,), (1353460610,), (1353460648,), (1353460655,), (1353460689,), (1353460693,), (1353460814,), (1353460855,), (1353460867,), (1353460896,), (1353461062,), (1353461066,), (1353461277,), (1353461282,), (1353461289,), (1353461294,), (1353461386,), (1353461390,), (1353461396,), (1353461399,), (1353461402,), (1353461440,), (1353461445,), (1353461463,), (1353461502,), (1353461504,), (1353461506,), (1353461509,), (1353461512,), (1353461516,), (1353461743,), (1353461769,), (1353461794,), (1353461818,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22398973 , 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=22398957 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 (22398973) result : ((1353461458,), (1353461459,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22398957) result : ((1353460604,), (1353460607,), (1353460610,), (1353460648,), (1353460655,), (1353460689,), (1353460693,), (1353460814,), (1353460855,), (1353460867,), (1353460896,), (1353461062,), (1353461066,), (1353461277,), (1353461282,), (1353461289,), (1353461294,), (1353461386,), (1353461390,), (1353461396,), (1353461399,), (1353461402,), (1353461440,), (1353461445,), (1353461463,), (1353461502,), (1353461504,), (1353461506,), (1353461509,), (1353461512,), (1353461516,), (1353461743,), (1353461769,), (1353461794,), (1353461818,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22398974 , 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=22398957 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 (22398974) result : ((1353461522,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22398957) result : ((1353460604,), (1353460607,), (1353460610,), (1353460648,), (1353460655,), (1353460689,), (1353460693,), (1353460814,), (1353460855,), (1353460867,), (1353460896,), (1353461062,), (1353461066,), (1353461277,), (1353461282,), (1353461289,), (1353461294,), (1353461386,), (1353461390,), (1353461396,), (1353461399,), (1353461402,), (1353461440,), (1353461445,), (1353461463,), (1353461502,), (1353461504,), (1353461506,), (1353461509,), (1353461512,), (1353461516,), (1353461743,), (1353461769,), (1353461794,), (1353461818,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22398975 , 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=22398957 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 (22398975) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22398957) result : ((1353460604,), (1353460607,), (1353460610,), (1353460648,), (1353460655,), (1353460689,), (1353460693,), (1353460814,), (1353460855,), (1353460867,), (1353460896,), (1353461062,), (1353461066,), (1353461277,), (1353461282,), (1353461289,), (1353461294,), (1353461386,), (1353461390,), (1353461396,), (1353461399,), (1353461402,), (1353461440,), (1353461445,), (1353461463,), (1353461502,), (1353461504,), (1353461506,), (1353461509,), (1353461512,), (1353461516,), (1353461743,), (1353461769,), (1353461794,), (1353461818,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") 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`=22398957 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','Carton_gris','autre_refus','cartonnette','kraft','Carton_brun','mal_croppe','flou','plastique','metal','environnement','papier')) 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`=22398957 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','Carton_gris','autre_refus','cartonnette','kraft','Carton_brun','mal_croppe','flou','plastique','metal','environnement','papier')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 22398957, 'sub_port_id': 22398976, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14848348, 'last_updated_at': datetime.datetime(2025, 4, 24, 21, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 21, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 21, 34, 58)}, 'kraft': {'main_port_id': 22398957, 'sub_port_id': 22398977, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14848349, 'last_updated_at': datetime.datetime(2025, 4, 24, 21, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 21, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 21, 34, 58)}, 'flou': {'main_port_id': 22398957, 'sub_port_id': 22398978, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14848350, 'last_updated_at': datetime.datetime(2025, 4, 24, 21, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 21, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 21, 34, 58)}, 'mal_croppe': {'main_port_id': 22398957, 'sub_port_id': 22398979, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14848351, 'last_updated_at': datetime.datetime(2025, 4, 24, 21, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 21, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 21, 34, 58)}, 'papier': {'main_port_id': 22398957, 'sub_port_id': 22398980, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14848352, 'last_updated_at': datetime.datetime(2025, 4, 24, 21, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 21, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 21, 34, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 22398957, 'sub_port_id': 22398981, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14848353, 'last_updated_at': datetime.datetime(2025, 4, 24, 21, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 21, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 21, 34, 58)}, 'cartonnette': {'main_port_id': 22398957, 'sub_port_id': 22398982, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14848354, 'last_updated_at': datetime.datetime(2025, 4, 24, 21, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 21, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 21, 34, 58)}, 'Carton_brun': {'main_port_id': 22398957, 'sub_port_id': 22398983, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14848355, 'last_updated_at': datetime.datetime(2025, 4, 24, 21, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 21, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 21, 34, 58)}, 'metal': {'main_port_id': 22398957, 'sub_port_id': 22398984, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14848356, 'last_updated_at': datetime.datetime(2025, 4, 24, 21, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 21, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 21, 34, 58)}, 'plastique': {'main_port_id': 22398957, 'sub_port_id': 22398985, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14848357, 'last_updated_at': datetime.datetime(2025, 4, 24, 21, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 21, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 21, 34, 58)}, 'autre_refus': {'main_port_id': 22398957, 'sub_port_id': 22398986, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14848358, 'last_updated_at': datetime.datetime(2025, 4, 24, 21, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 21, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 21, 34, 58)}, 'environnement': {'main_port_id': 22398957, 'sub_port_id': 22398987, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14848359, 'last_updated_at': datetime.datetime(2025, 4, 24, 21, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 21, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 21, 34, 58)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22398976,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22398964 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22398977,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22398965 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22398978,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22398966 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22398979,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22398967 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22398980,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22398968 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22398981,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22398969 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22398982,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22398970 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22398983,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22398971 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22398984,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22398972 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22398985,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22398973 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22398986,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22398974 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22398987,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22398975 lien utilise dans velours : https://www.fotonower.com/velours/22398976,22398977,22398978,22398979,22398980,22398981,22398982,22398983,22398984,22398985,22398986,22398987?tags=Carton_gris,kraft,flou,mal_croppe,papier,Teint_Dans_La_Masse,cartonnette,Carton_brun,metal,plastique,autre_refus,environnement After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22398957]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1353461818, 1353461794, 1353461769, 1353461743, 1353461516, 1353461512, 1353461509, 1353461506, 1353461504, 1353461502, 1353461463, 1353461445, 1353461440, 1353461402, 1353461399, 1353461396, 1353461390, 1353461386, 1353461294, 1353461289, 1353461282, 1353461277] map_info['map_portfolio_photo'] : {22398957: [1353461818, 1353461794, 1353461769, 1353461743, 1353461516, 1353461512, 1353461509, 1353461506, 1353461504, 1353461502, 1353461463, 1353461445, 1353461440, 1353461402, 1353461399, 1353461396, 1353461390, 1353461386, 1353461294, 1353461289, 1353461282, 1353461277, 1353461066, 1353461062, 1353460896, 1353460867, 1353460855, 1353460814, 1353460693, 1353460689, 1353460655, 1353460648, 1353460610, 1353460607, 1353460604]} final : False mtd_id 4302 list_pids : [1353461818, 1353461794, 1353461769, 1353461743, 1353461516, 1353461512, 1353461509, 1353461506, 1353461504, 1353461502, 1353461463, 1353461445, 1353461440, 1353461402, 1353461399, 1353461396, 1353461390, 1353461386, 1353461294, 1353461289, 1353461282, 1353461277] Looping around the photos to save general results len do output : 1 /22398957. 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, '2759179') ('4302', '22398957', '1353461818', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461794', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461769', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461743', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461516', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461512', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461509', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461506', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461504', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461502', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461463', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461445', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461440', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461402', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461399', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461396', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461390', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461386', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461294', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461289', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461282', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461277', None, None, None, None, None, '2759179') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 23 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, '22398957', "{'Carton_gris': 22398964, 'kraft': 22398965, 'flou': 22398966, 'mal_croppe': 22398967, 'papier': 22398968, 'Teint_Dans_La_Masse': 22398969, 'cartonnette': 22398970, 'Carton_brun': 22398971, 'metal': 22398972, 'plastique': 22398973, 'autre_refus': 22398974, 'environnement': 22398975}", None, None, None, None, '2759179'), ('4302', '22398957', '1353461818', None, None, None, None, None, '2759179'), ('4302', '22398957', '1353461794', None, None, None, None, None, '2759179'), ('4302', '22398957', '1353461769', None, None, None, None, None, '2759179'), ('4302', '22398957', '1353461743', None, None, None, None, None, '2759179'), ('4302', '22398957', '1353461516', None, None, None, None, None, '2759179'), ('4302', '22398957', '1353461512', None, None, None, None, None, '2759179'), ('4302', '22398957', '1353461509', None, None, None, None, None, '2759179'), ('4302', '22398957', '1353461506', None, None, None, None, None, '2759179'), ('4302', '22398957', '1353461504', None, None, None, None, None, '2759179'), ('4302', '22398957', '1353461502', None, None, None, None, None, '2759179'), ('4302', '22398957', '1353461463', None, None, None, None, None, '2759179'), ('4302', '22398957', '1353461445', None, None, None, None, None, '2759179'), ('4302', '22398957', '1353461440', None, None, None, None, None, '2759179'), ('4302', '22398957', '1353461402', None, None, None, None, None, '2759179'), ('4302', '22398957', '1353461399', None, None, None, None, None, '2759179'), ('4302', '22398957', '1353461396', None, None, None, None, None, '2759179'), ('4302', '22398957', '1353461390', None, None, None, None, None, '2759179'), ('4302', '22398957', '1353461386', None, None, None, None, None, '2759179'), ('4302', '22398957', '1353461294', None, None, None, None, None, '2759179'), ('4302', '22398957', '1353461289', None, None, None, None, None, '2759179'), ('4302', '22398957', '1353461282', None, None, None, None, None, '2759179'), ('4302', '22398957', '1353461277', None, None, None, None, None, '2759179')] time used for this insertion : 0.01614999771118164 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.518251657485962 time spend to save output : 0.01644110679626465 total time spend for step 1 : 1.5346927642822266 step2:final Thu Apr 24 21:41:00 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 (22398957) 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 22398957 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1353460610,1353460607,1353460604,1353460655,1353460648,1353460814,1353460693,1353460689,1353460896,1353460867,1353460855,1353461066,1353461062,1353461294,1353461289,1353461282,1353461277,1353461402,1353461399,1353461396,1353461390,1353461386,1353461463,1353461445,1353461440,1353461516,1353461512,1353461509,1353461506,1353461504,1353461502,1353461818,1353461794,1353461769,1353461743); 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([22398957]) Inside saveOutput : final : False verbose : True original output for save of step final : {1353461818: ('0.06345807106340413',), 1353461794: ('0.06345807106340413',), 1353461769: ('0.06345807106340413',), 1353461743: ('0.06345807106340413',), 1353461516: ('0.06345807106340413',), 1353461512: ('0.06345807106340413',), 1353461509: ('0.06345807106340413',), 1353461506: ('0.06345807106340413',), 1353461504: ('0.06345807106340413',), 1353461502: ('0.06345807106340413',), 1353461463: ('0.06345807106340413',), 1353461445: ('0.06345807106340413',), 1353461440: ('0.06345807106340413',), 1353461402: ('0.06345807106340413',), 1353461399: ('0.06345807106340413',), 1353461396: ('0.06345807106340413',), 1353461390: ('0.06345807106340413',), 1353461386: ('0.06345807106340413',), 1353461294: ('0.06345807106340413',), 1353461289: ('0.06345807106340413',), 1353461282: ('0.06345807106340413',), 1353461277: ('0.06345807106340413',)} new output for save of step final : {1353461818: ('0.06345807106340413',), 1353461794: ('0.06345807106340413',), 1353461769: ('0.06345807106340413',), 1353461743: ('0.06345807106340413',), 1353461516: ('0.06345807106340413',), 1353461512: ('0.06345807106340413',), 1353461509: ('0.06345807106340413',), 1353461506: ('0.06345807106340413',), 1353461504: ('0.06345807106340413',), 1353461502: ('0.06345807106340413',), 1353461463: ('0.06345807106340413',), 1353461445: ('0.06345807106340413',), 1353461440: ('0.06345807106340413',), 1353461402: ('0.06345807106340413',), 1353461399: ('0.06345807106340413',), 1353461396: ('0.06345807106340413',), 1353461390: ('0.06345807106340413',), 1353461386: ('0.06345807106340413',), 1353461294: ('0.06345807106340413',), 1353461289: ('0.06345807106340413',), 1353461282: ('0.06345807106340413',), 1353461277: ('0.06345807106340413',)} [1353461818, 1353461794, 1353461769, 1353461743, 1353461516, 1353461512, 1353461509, 1353461506, 1353461504, 1353461502, 1353461463, 1353461445, 1353461440, 1353461402, 1353461399, 1353461396, 1353461390, 1353461386, 1353461294, 1353461289, 1353461282, 1353461277] map_info['map_portfolio_photo'] : {22398957: [1353461818, 1353461794, 1353461769, 1353461743, 1353461516, 1353461512, 1353461509, 1353461506, 1353461504, 1353461502, 1353461463, 1353461445, 1353461440, 1353461402, 1353461399, 1353461396, 1353461390, 1353461386, 1353461294, 1353461289, 1353461282, 1353461277, 1353461066, 1353461062, 1353460896, 1353460867, 1353460855, 1353460814, 1353460693, 1353460689, 1353460655, 1353460648, 1353460610, 1353460607, 1353460604]} final : False mtd_id 4302 list_pids : [1353461818, 1353461794, 1353461769, 1353461743, 1353461516, 1353461512, 1353461509, 1353461506, 1353461504, 1353461502, 1353461463, 1353461445, 1353461440, 1353461402, 1353461399, 1353461396, 1353461390, 1353461386, 1353461294, 1353461289, 1353461282, 1353461277] Looping around the photos to save general results len do output : 22 /1353461818.Didn't retrieve data . /1353461794.Didn't retrieve data . /1353461769.Didn't retrieve data . /1353461743.Didn't retrieve data . /1353461516.Didn't retrieve data . /1353461512.Didn't retrieve data . /1353461509.Didn't retrieve data . /1353461506.Didn't retrieve data . /1353461504.Didn't retrieve data . /1353461502.Didn't retrieve data . /1353461463.Didn't retrieve data . /1353461445.Didn't retrieve data . /1353461440.Didn't retrieve data . /1353461402.Didn't retrieve data . /1353461399.Didn't retrieve data . /1353461396.Didn't retrieve data . /1353461390.Didn't retrieve data . /1353461386.Didn't retrieve data . /1353461294.Didn't retrieve data . /1353461289.Didn't retrieve data . /1353461282.Didn't retrieve data . /1353461277.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, '2759179') ('4302', '22398957', '1353461818', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461794', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461769', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461743', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461516', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461512', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461509', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461506', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461504', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461502', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461463', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461445', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461440', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461402', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461399', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461396', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461390', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461386', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461294', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461289', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461282', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461277', None, None, None, None, None, '2759179') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 66 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', '22398957', '1353461818', '0.06345807106340413', None, None, None, None, '2759179'), ('4302', '22398957', '1353461794', '0.06345807106340413', None, None, None, None, '2759179'), ('4302', '22398957', '1353461769', '0.06345807106340413', None, None, None, None, '2759179'), ('4302', '22398957', '1353461743', '0.06345807106340413', None, None, None, None, '2759179'), ('4302', '22398957', '1353461516', '0.06345807106340413', None, None, None, None, '2759179'), ('4302', '22398957', '1353461512', '0.06345807106340413', None, None, None, None, '2759179'), ('4302', '22398957', '1353461509', '0.06345807106340413', None, None, None, None, '2759179'), ('4302', '22398957', '1353461506', '0.06345807106340413', None, None, None, None, '2759179'), ('4302', '22398957', '1353461504', '0.06345807106340413', None, None, None, None, '2759179'), ('4302', '22398957', '1353461502', '0.06345807106340413', None, None, None, None, '2759179'), ('4302', '22398957', '1353461463', '0.06345807106340413', None, None, None, None, '2759179'), ('4302', '22398957', '1353461445', '0.06345807106340413', None, None, None, None, '2759179'), ('4302', '22398957', '1353461440', '0.06345807106340413', None, None, None, None, '2759179'), ('4302', '22398957', '1353461402', '0.06345807106340413', None, None, None, None, '2759179'), ('4302', '22398957', '1353461399', '0.06345807106340413', None, None, None, None, '2759179'), ('4302', '22398957', '1353461396', '0.06345807106340413', None, None, None, None, '2759179'), ('4302', '22398957', '1353461390', '0.06345807106340413', None, None, None, None, '2759179'), ('4302', '22398957', '1353461386', '0.06345807106340413', None, None, None, None, '2759179'), ('4302', '22398957', '1353461294', '0.06345807106340413', None, None, None, None, '2759179'), ('4302', '22398957', '1353461289', '0.06345807106340413', None, None, None, None, '2759179'), ('4302', '22398957', '1353461282', '0.06345807106340413', None, None, None, None, '2759179'), ('4302', '22398957', '1353461277', '0.06345807106340413', None, None, None, None, '2759179')] time used for this insertion : 0.021239519119262695 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07080626487731934 time spend to save output : 0.022089242935180664 total time spend for step 2 : 0.0928955078125 step3:velours_tree Thu Apr 24 21:41:00 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 : {22398957: [{'Carton_gris': 22398964, 'kraft': 22398965, 'flou': 22398966, 'mal_croppe': 22398967, 'papier': 22398968, 'Teint_Dans_La_Masse': 22398969, 'cartonnette': 22398970, 'Carton_brun': 22398971, 'metal': 22398972, 'plastique': 22398973, 'autre_refus': 22398974, 'environnement': 22398975}]} input_args_next_step : {22398957: ()} output_args : {22398957: [{'Carton_gris': 22398964, 'kraft': 22398965, 'flou': 22398966, 'mal_croppe': 22398967, 'papier': 22398968, 'Teint_Dans_La_Masse': 22398969, 'cartonnette': 22398970, 'Carton_brun': 22398971, 'metal': 22398972, 'plastique': 22398973, 'autre_refus': 22398974, 'environnement': 22398975}]} args : 22398957 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_gris': 22398964, 'kraft': 22398965, 'flou': 22398966, 'mal_croppe': 22398967, 'papier': 22398968, 'Teint_Dans_La_Masse': 22398969, 'cartonnette': 22398970, 'Carton_brun': 22398971, 'metal': 22398972, 'plastique': 22398973, 'autre_refus': 22398974, 'environnement': 22398975},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22398957) 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([22398957]) 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.35295605659484863 time spend to save output : 6.175041198730469e-05 total time spend for step 3 : 0.35301780700683594 step4:send_mail_cod Thu Apr 24 21:41:00 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 : {1353461818: ('0.06345807106340413',), 1353461794: ('0.06345807106340413',), 1353461769: ('0.06345807106340413',), 1353461743: ('0.06345807106340413',), 1353461516: ('0.06345807106340413',), 1353461512: ('0.06345807106340413',), 1353461509: ('0.06345807106340413',), 1353461506: ('0.06345807106340413',), 1353461504: ('0.06345807106340413',), 1353461502: ('0.06345807106340413',), 1353461463: ('0.06345807106340413',), 1353461445: ('0.06345807106340413',), 1353461440: ('0.06345807106340413',), 1353461402: ('0.06345807106340413',), 1353461399: ('0.06345807106340413',), 1353461396: ('0.06345807106340413',), 1353461390: ('0.06345807106340413',), 1353461386: ('0.06345807106340413',), 1353461294: ('0.06345807106340413',), 1353461289: ('0.06345807106340413',), 1353461282: ('0.06345807106340413',), 1353461277: ('0.06345807106340413',)} input_args_next_step : {1353461818: ()} output_args : {1353461818: ('0.06345807106340413',), 1353461794: ('0.06345807106340413',), 1353461769: ('0.06345807106340413',), 1353461743: ('0.06345807106340413',), 1353461516: ('0.06345807106340413',), 1353461512: ('0.06345807106340413',), 1353461509: ('0.06345807106340413',), 1353461506: ('0.06345807106340413',), 1353461504: ('0.06345807106340413',), 1353461502: ('0.06345807106340413',), 1353461463: ('0.06345807106340413',), 1353461445: ('0.06345807106340413',), 1353461440: ('0.06345807106340413',), 1353461402: ('0.06345807106340413',), 1353461399: ('0.06345807106340413',), 1353461396: ('0.06345807106340413',), 1353461390: ('0.06345807106340413',), 1353461386: ('0.06345807106340413',), 1353461294: ('0.06345807106340413',), 1353461289: ('0.06345807106340413',), 1353461282: ('0.06345807106340413',), 1353461277: ('0.06345807106340413',)} args : 1353461818 depend.output_id : 0 input_args_next_step : {1353461818: ('0.06345807106340413',), 1353461794: ()} output_args : {1353461818: ('0.06345807106340413',), 1353461794: ('0.06345807106340413',), 1353461769: ('0.06345807106340413',), 1353461743: ('0.06345807106340413',), 1353461516: ('0.06345807106340413',), 1353461512: ('0.06345807106340413',), 1353461509: ('0.06345807106340413',), 1353461506: ('0.06345807106340413',), 1353461504: ('0.06345807106340413',), 1353461502: ('0.06345807106340413',), 1353461463: ('0.06345807106340413',), 1353461445: ('0.06345807106340413',), 1353461440: ('0.06345807106340413',), 1353461402: ('0.06345807106340413',), 1353461399: ('0.06345807106340413',), 1353461396: ('0.06345807106340413',), 1353461390: ('0.06345807106340413',), 1353461386: ('0.06345807106340413',), 1353461294: ('0.06345807106340413',), 1353461289: ('0.06345807106340413',), 1353461282: ('0.06345807106340413',), 1353461277: ('0.06345807106340413',)} args : 1353461794 depend.output_id : 0 input_args_next_step : {1353461818: ('0.06345807106340413',), 1353461794: ('0.06345807106340413',), 1353461769: ()} output_args : {1353461818: ('0.06345807106340413',), 1353461794: ('0.06345807106340413',), 1353461769: ('0.06345807106340413',), 1353461743: ('0.06345807106340413',), 1353461516: ('0.06345807106340413',), 1353461512: ('0.06345807106340413',), 1353461509: ('0.06345807106340413',), 1353461506: ('0.06345807106340413',), 1353461504: ('0.06345807106340413',), 1353461502: ('0.06345807106340413',), 1353461463: ('0.06345807106340413',), 1353461445: ('0.06345807106340413',), 1353461440: ('0.06345807106340413',), 1353461402: ('0.06345807106340413',), 1353461399: ('0.06345807106340413',), 1353461396: ('0.06345807106340413',), 1353461390: ('0.06345807106340413',), 1353461386: ('0.06345807106340413',), 1353461294: ('0.06345807106340413',), 1353461289: ('0.06345807106340413',), 1353461282: ('0.06345807106340413',), 1353461277: ('0.06345807106340413',)} args : 1353461769 depend.output_id : 0 input_args_next_step : {1353461818: ('0.06345807106340413',), 1353461794: ('0.06345807106340413',), 1353461769: ('0.06345807106340413',), 1353461743: ()} output_args : {1353461818: ('0.06345807106340413',), 1353461794: ('0.06345807106340413',), 1353461769: ('0.06345807106340413',), 1353461743: ('0.06345807106340413',), 1353461516: ('0.06345807106340413',), 1353461512: ('0.06345807106340413',), 1353461509: ('0.06345807106340413',), 1353461506: ('0.06345807106340413',), 1353461504: ('0.06345807106340413',), 1353461502: ('0.06345807106340413',), 1353461463: ('0.06345807106340413',), 1353461445: ('0.06345807106340413',), 1353461440: ('0.06345807106340413',), 1353461402: ('0.06345807106340413',), 1353461399: ('0.06345807106340413',), 1353461396: ('0.06345807106340413',), 1353461390: ('0.06345807106340413',), 1353461386: ('0.06345807106340413',), 1353461294: ('0.06345807106340413',), 1353461289: ('0.06345807106340413',), 1353461282: ('0.06345807106340413',), 1353461277: ('0.06345807106340413',)} args : 1353461743 depend.output_id : 0 input_args_next_step : {1353461818: ('0.06345807106340413',), 1353461794: ('0.06345807106340413',), 1353461769: ('0.06345807106340413',), 1353461743: ('0.06345807106340413',), 1353461516: ()} output_args : {1353461818: ('0.06345807106340413',), 1353461794: ('0.06345807106340413',), 1353461769: ('0.06345807106340413',), 1353461743: ('0.06345807106340413',), 1353461516: ('0.06345807106340413',), 1353461512: ('0.06345807106340413',), 1353461509: ('0.06345807106340413',), 1353461506: ('0.06345807106340413',), 1353461504: ('0.06345807106340413',), 1353461502: ('0.06345807106340413',), 1353461463: ('0.06345807106340413',), 1353461445: ('0.06345807106340413',), 1353461440: ('0.06345807106340413',), 1353461402: ('0.06345807106340413',), 1353461399: ('0.06345807106340413',), 1353461396: ('0.06345807106340413',), 1353461390: ('0.06345807106340413',), 1353461386: ('0.06345807106340413',), 1353461294: ('0.06345807106340413',), 1353461289: ('0.06345807106340413',), 1353461282: ('0.06345807106340413',), 1353461277: ('0.06345807106340413',)} args : 1353461516 depend.output_id : 0 input_args_next_step : {1353461818: ('0.06345807106340413',), 1353461794: ('0.06345807106340413',), 1353461769: ('0.06345807106340413',), 1353461743: ('0.06345807106340413',), 1353461516: ('0.06345807106340413',), 1353461512: ()} output_args : {1353461818: ('0.06345807106340413',), 1353461794: ('0.06345807106340413',), 1353461769: ('0.06345807106340413',), 1353461743: ('0.06345807106340413',), 1353461516: ('0.06345807106340413',), 1353461512: ('0.06345807106340413',), 1353461509: ('0.06345807106340413',), 1353461506: ('0.06345807106340413',), 1353461504: ('0.06345807106340413',), 1353461502: ('0.06345807106340413',), 1353461463: ('0.06345807106340413',), 1353461445: ('0.06345807106340413',), 1353461440: ('0.06345807106340413',), 1353461402: ('0.06345807106340413',), 1353461399: ('0.06345807106340413',), 1353461396: ('0.06345807106340413',), 1353461390: ('0.06345807106340413',), 1353461386: ('0.06345807106340413',), 1353461294: ('0.06345807106340413',), 1353461289: ('0.06345807106340413',), 1353461282: ('0.06345807106340413',), 1353461277: ('0.06345807106340413',)} args : 1353461512 depend.output_id : 0 input_args_next_step : {1353461818: ('0.06345807106340413',), 1353461794: ('0.06345807106340413',), 1353461769: ('0.06345807106340413',), 1353461743: ('0.06345807106340413',), 1353461516: ('0.06345807106340413',), 1353461512: ('0.06345807106340413',), 1353461509: ()} output_args : {1353461818: ('0.06345807106340413',), 1353461794: ('0.06345807106340413',), 1353461769: ('0.06345807106340413',), 1353461743: ('0.06345807106340413',), 1353461516: ('0.06345807106340413',), 1353461512: ('0.06345807106340413',), 1353461509: ('0.06345807106340413',), 1353461506: ('0.06345807106340413',), 1353461504: ('0.06345807106340413',), 1353461502: ('0.06345807106340413',), 1353461463: ('0.06345807106340413',), 1353461445: ('0.06345807106340413',), 1353461440: ('0.06345807106340413',), 1353461402: ('0.06345807106340413',), 1353461399: ('0.06345807106340413',), 1353461396: ('0.06345807106340413',), 1353461390: ('0.06345807106340413',), 1353461386: ('0.06345807106340413',), 1353461294: ('0.06345807106340413',), 1353461289: ('0.06345807106340413',), 1353461282: ('0.06345807106340413',), 1353461277: ('0.06345807106340413',)} args : 1353461509 depend.output_id : 0 input_args_next_step : {1353461818: ('0.06345807106340413',), 1353461794: ('0.06345807106340413',), 1353461769: ('0.06345807106340413',), 1353461743: ('0.06345807106340413',), 1353461516: ('0.06345807106340413',), 1353461512: ('0.06345807106340413',), 1353461509: ('0.06345807106340413',), 1353461506: ()} output_args : {1353461818: ('0.06345807106340413',), 1353461794: ('0.06345807106340413',), 1353461769: ('0.06345807106340413',), 1353461743: ('0.06345807106340413',), 1353461516: ('0.06345807106340413',), 1353461512: ('0.06345807106340413',), 1353461509: ('0.06345807106340413',), 1353461506: ('0.06345807106340413',), 1353461504: ('0.06345807106340413',), 1353461502: ('0.06345807106340413',), 1353461463: ('0.06345807106340413',), 1353461445: ('0.06345807106340413',), 1353461440: ('0.06345807106340413',), 1353461402: ('0.06345807106340413',), 1353461399: ('0.06345807106340413',), 1353461396: ('0.06345807106340413',), 1353461390: ('0.06345807106340413',), 1353461386: ('0.06345807106340413',), 1353461294: ('0.06345807106340413',), 1353461289: ('0.06345807106340413',), 1353461282: ('0.06345807106340413',), 1353461277: ('0.06345807106340413',)} args : 1353461506 depend.output_id : 0 input_args_next_step : {1353461818: ('0.06345807106340413',), 1353461794: ('0.06345807106340413',), 1353461769: ('0.06345807106340413',), 1353461743: ('0.06345807106340413',), 1353461516: ('0.06345807106340413',), 1353461512: ('0.06345807106340413',), 1353461509: ('0.06345807106340413',), 1353461506: ('0.06345807106340413',), 1353461504: ()} output_args : {1353461818: ('0.06345807106340413',), 1353461794: ('0.06345807106340413',), 1353461769: ('0.06345807106340413',), 1353461743: ('0.06345807106340413',), 1353461516: ('0.06345807106340413',), 1353461512: ('0.06345807106340413',), 1353461509: ('0.06345807106340413',), 1353461506: ('0.06345807106340413',), 1353461504: ('0.06345807106340413',), 1353461502: ('0.06345807106340413',), 1353461463: ('0.06345807106340413',), 1353461445: ('0.06345807106340413',), 1353461440: ('0.06345807106340413',), 1353461402: ('0.06345807106340413',), 1353461399: ('0.06345807106340413',), 1353461396: ('0.06345807106340413',), 1353461390: ('0.06345807106340413',), 1353461386: ('0.06345807106340413',), 1353461294: ('0.06345807106340413',), 1353461289: ('0.06345807106340413',), 1353461282: ('0.06345807106340413',), 1353461277: ('0.06345807106340413',)} args : 1353461504 depend.output_id : 0 input_args_next_step : {1353461818: ('0.06345807106340413',), 1353461794: ('0.06345807106340413',), 1353461769: ('0.06345807106340413',), 1353461743: ('0.06345807106340413',), 1353461516: ('0.06345807106340413',), 1353461512: ('0.06345807106340413',), 1353461509: ('0.06345807106340413',), 1353461506: ('0.06345807106340413',), 1353461504: ('0.06345807106340413',), 1353461502: ()} output_args : {1353461818: ('0.06345807106340413',), 1353461794: ('0.06345807106340413',), 1353461769: ('0.06345807106340413',), 1353461743: ('0.06345807106340413',), 1353461516: ('0.06345807106340413',), 1353461512: ('0.06345807106340413',), 1353461509: ('0.06345807106340413',), 1353461506: ('0.06345807106340413',), 1353461504: ('0.06345807106340413',), 1353461502: ('0.06345807106340413',), 1353461463: ('0.06345807106340413',), 1353461445: ('0.06345807106340413',), 1353461440: ('0.06345807106340413',), 1353461402: ('0.06345807106340413',), 1353461399: ('0.06345807106340413',), 1353461396: ('0.06345807106340413',), 1353461390: ('0.06345807106340413',), 1353461386: ('0.06345807106340413',), 1353461294: ('0.06345807106340413',), 1353461289: ('0.06345807106340413',), 1353461282: ('0.06345807106340413',), 1353461277: ('0.06345807106340413',)} args : 1353461502 depend.output_id : 0 input_args_next_step : {1353461818: ('0.06345807106340413',), 1353461794: ('0.06345807106340413',), 1353461769: ('0.06345807106340413',), 1353461743: ('0.06345807106340413',), 1353461516: ('0.06345807106340413',), 1353461512: ('0.06345807106340413',), 1353461509: ('0.06345807106340413',), 1353461506: ('0.06345807106340413',), 1353461504: ('0.06345807106340413',), 1353461502: ('0.06345807106340413',), 1353461463: ()} output_args : {1353461818: ('0.06345807106340413',), 1353461794: ('0.06345807106340413',), 1353461769: ('0.06345807106340413',), 1353461743: ('0.06345807106340413',), 1353461516: ('0.06345807106340413',), 1353461512: ('0.06345807106340413',), 1353461509: ('0.06345807106340413',), 1353461506: ('0.06345807106340413',), 1353461504: ('0.06345807106340413',), 1353461502: ('0.06345807106340413',), 1353461463: ('0.06345807106340413',), 1353461445: ('0.06345807106340413',), 1353461440: ('0.06345807106340413',), 1353461402: ('0.06345807106340413',), 1353461399: ('0.06345807106340413',), 1353461396: ('0.06345807106340413',), 1353461390: ('0.06345807106340413',), 1353461386: ('0.06345807106340413',), 1353461294: ('0.06345807106340413',), 1353461289: ('0.06345807106340413',), 1353461282: ('0.06345807106340413',), 1353461277: ('0.06345807106340413',)} args : 1353461463 depend.output_id : 0 input_args_next_step : {1353461818: ('0.06345807106340413',), 1353461794: ('0.06345807106340413',), 1353461769: ('0.06345807106340413',), 1353461743: ('0.06345807106340413',), 1353461516: ('0.06345807106340413',), 1353461512: ('0.06345807106340413',), 1353461509: ('0.06345807106340413',), 1353461506: ('0.06345807106340413',), 1353461504: ('0.06345807106340413',), 1353461502: ('0.06345807106340413',), 1353461463: ('0.06345807106340413',), 1353461445: ()} output_args : {1353461818: ('0.06345807106340413',), 1353461794: ('0.06345807106340413',), 1353461769: ('0.06345807106340413',), 1353461743: ('0.06345807106340413',), 1353461516: ('0.06345807106340413',), 1353461512: ('0.06345807106340413',), 1353461509: ('0.06345807106340413',), 1353461506: ('0.06345807106340413',), 1353461504: ('0.06345807106340413',), 1353461502: ('0.06345807106340413',), 1353461463: ('0.06345807106340413',), 1353461445: ('0.06345807106340413',), 1353461440: ('0.06345807106340413',), 1353461402: ('0.06345807106340413',), 1353461399: ('0.06345807106340413',), 1353461396: ('0.06345807106340413',), 1353461390: ('0.06345807106340413',), 1353461386: ('0.06345807106340413',), 1353461294: ('0.06345807106340413',), 1353461289: ('0.06345807106340413',), 1353461282: ('0.06345807106340413',), 1353461277: ('0.06345807106340413',)} args : 1353461445 depend.output_id : 0 input_args_next_step : {1353461818: ('0.06345807106340413',), 1353461794: ('0.06345807106340413',), 1353461769: ('0.06345807106340413',), 1353461743: ('0.06345807106340413',), 1353461516: ('0.06345807106340413',), 1353461512: ('0.06345807106340413',), 1353461509: ('0.06345807106340413',), 1353461506: ('0.06345807106340413',), 1353461504: ('0.06345807106340413',), 1353461502: ('0.06345807106340413',), 1353461463: ('0.06345807106340413',), 1353461445: ('0.06345807106340413',), 1353461440: ()} output_args : {1353461818: ('0.06345807106340413',), 1353461794: ('0.06345807106340413',), 1353461769: ('0.06345807106340413',), 1353461743: ('0.06345807106340413',), 1353461516: ('0.06345807106340413',), 1353461512: ('0.06345807106340413',), 1353461509: ('0.06345807106340413',), 1353461506: ('0.06345807106340413',), 1353461504: ('0.06345807106340413',), 1353461502: ('0.06345807106340413',), 1353461463: ('0.06345807106340413',), 1353461445: ('0.06345807106340413',), 1353461440: ('0.06345807106340413',), 1353461402: ('0.06345807106340413',), 1353461399: ('0.06345807106340413',), 1353461396: ('0.06345807106340413',), 1353461390: ('0.06345807106340413',), 1353461386: ('0.06345807106340413',), 1353461294: ('0.06345807106340413',), 1353461289: ('0.06345807106340413',), 1353461282: ('0.06345807106340413',), 1353461277: ('0.06345807106340413',)} args : 1353461440 depend.output_id : 0 input_args_next_step : {1353461818: ('0.06345807106340413',), 1353461794: ('0.06345807106340413',), 1353461769: ('0.06345807106340413',), 1353461743: ('0.06345807106340413',), 1353461516: ('0.06345807106340413',), 1353461512: ('0.06345807106340413',), 1353461509: ('0.06345807106340413',), 1353461506: ('0.06345807106340413',), 1353461504: ('0.06345807106340413',), 1353461502: ('0.06345807106340413',), 1353461463: ('0.06345807106340413',), 1353461445: ('0.06345807106340413',), 1353461440: ('0.06345807106340413',), 1353461402: ()} output_args : {1353461818: ('0.06345807106340413',), 1353461794: ('0.06345807106340413',), 1353461769: ('0.06345807106340413',), 1353461743: ('0.06345807106340413',), 1353461516: ('0.06345807106340413',), 1353461512: ('0.06345807106340413',), 1353461509: ('0.06345807106340413',), 1353461506: ('0.06345807106340413',), 1353461504: ('0.06345807106340413',), 1353461502: ('0.06345807106340413',), 1353461463: ('0.06345807106340413',), 1353461445: ('0.06345807106340413',), 1353461440: ('0.06345807106340413',), 1353461402: ('0.06345807106340413',), 1353461399: ('0.06345807106340413',), 1353461396: ('0.06345807106340413',), 1353461390: ('0.06345807106340413',), 1353461386: ('0.06345807106340413',), 1353461294: ('0.06345807106340413',), 1353461289: ('0.06345807106340413',), 1353461282: ('0.06345807106340413',), 1353461277: ('0.06345807106340413',)} args : 1353461402 depend.output_id : 0 input_args_next_step : {1353461818: ('0.06345807106340413',), 1353461794: ('0.06345807106340413',), 1353461769: ('0.06345807106340413',), 1353461743: ('0.06345807106340413',), 1353461516: ('0.06345807106340413',), 1353461512: ('0.06345807106340413',), 1353461509: ('0.06345807106340413',), 1353461506: ('0.06345807106340413',), 1353461504: ('0.06345807106340413',), 1353461502: ('0.06345807106340413',), 1353461463: ('0.06345807106340413',), 1353461445: ('0.06345807106340413',), 1353461440: ('0.06345807106340413',), 1353461402: ('0.06345807106340413',), 1353461399: ()} output_args : {1353461818: ('0.06345807106340413',), 1353461794: ('0.06345807106340413',), 1353461769: ('0.06345807106340413',), 1353461743: ('0.06345807106340413',), 1353461516: ('0.06345807106340413',), 1353461512: ('0.06345807106340413',), 1353461509: ('0.06345807106340413',), 1353461506: ('0.06345807106340413',), 1353461504: ('0.06345807106340413',), 1353461502: ('0.06345807106340413',), 1353461463: ('0.06345807106340413',), 1353461445: ('0.06345807106340413',), 1353461440: ('0.06345807106340413',), 1353461402: ('0.06345807106340413',), 1353461399: ('0.06345807106340413',), 1353461396: ('0.06345807106340413',), 1353461390: ('0.06345807106340413',), 1353461386: ('0.06345807106340413',), 1353461294: ('0.06345807106340413',), 1353461289: ('0.06345807106340413',), 1353461282: ('0.06345807106340413',), 1353461277: ('0.06345807106340413',)} args : 1353461399 depend.output_id : 0 input_args_next_step : {1353461818: ('0.06345807106340413',), 1353461794: ('0.06345807106340413',), 1353461769: ('0.06345807106340413',), 1353461743: ('0.06345807106340413',), 1353461516: ('0.06345807106340413',), 1353461512: ('0.06345807106340413',), 1353461509: ('0.06345807106340413',), 1353461506: ('0.06345807106340413',), 1353461504: ('0.06345807106340413',), 1353461502: ('0.06345807106340413',), 1353461463: ('0.06345807106340413',), 1353461445: ('0.06345807106340413',), 1353461440: ('0.06345807106340413',), 1353461402: ('0.06345807106340413',), 1353461399: ('0.06345807106340413',), 1353461396: ()} output_args : {1353461818: ('0.06345807106340413',), 1353461794: ('0.06345807106340413',), 1353461769: ('0.06345807106340413',), 1353461743: ('0.06345807106340413',), 1353461516: ('0.06345807106340413',), 1353461512: ('0.06345807106340413',), 1353461509: ('0.06345807106340413',), 1353461506: ('0.06345807106340413',), 1353461504: ('0.06345807106340413',), 1353461502: ('0.06345807106340413',), 1353461463: ('0.06345807106340413',), 1353461445: ('0.06345807106340413',), 1353461440: ('0.06345807106340413',), 1353461402: ('0.06345807106340413',), 1353461399: ('0.06345807106340413',), 1353461396: ('0.06345807106340413',), 1353461390: ('0.06345807106340413',), 1353461386: ('0.06345807106340413',), 1353461294: ('0.06345807106340413',), 1353461289: ('0.06345807106340413',), 1353461282: ('0.06345807106340413',), 1353461277: ('0.06345807106340413',)} args : 1353461396 depend.output_id : 0 input_args_next_step : {1353461818: ('0.06345807106340413',), 1353461794: ('0.06345807106340413',), 1353461769: ('0.06345807106340413',), 1353461743: ('0.06345807106340413',), 1353461516: ('0.06345807106340413',), 1353461512: ('0.06345807106340413',), 1353461509: ('0.06345807106340413',), 1353461506: ('0.06345807106340413',), 1353461504: ('0.06345807106340413',), 1353461502: ('0.06345807106340413',), 1353461463: ('0.06345807106340413',), 1353461445: ('0.06345807106340413',), 1353461440: ('0.06345807106340413',), 1353461402: ('0.06345807106340413',), 1353461399: ('0.06345807106340413',), 1353461396: ('0.06345807106340413',), 1353461390: ()} output_args : {1353461818: ('0.06345807106340413',), 1353461794: ('0.06345807106340413',), 1353461769: ('0.06345807106340413',), 1353461743: ('0.06345807106340413',), 1353461516: ('0.06345807106340413',), 1353461512: ('0.06345807106340413',), 1353461509: ('0.06345807106340413',), 1353461506: ('0.06345807106340413',), 1353461504: ('0.06345807106340413',), 1353461502: ('0.06345807106340413',), 1353461463: ('0.06345807106340413',), 1353461445: ('0.06345807106340413',), 1353461440: ('0.06345807106340413',), 1353461402: ('0.06345807106340413',), 1353461399: ('0.06345807106340413',), 1353461396: ('0.06345807106340413',), 1353461390: ('0.06345807106340413',), 1353461386: ('0.06345807106340413',), 1353461294: ('0.06345807106340413',), 1353461289: ('0.06345807106340413',), 1353461282: ('0.06345807106340413',), 1353461277: ('0.06345807106340413',)} args : 1353461390 depend.output_id : 0 input_args_next_step : {1353461818: ('0.06345807106340413',), 1353461794: ('0.06345807106340413',), 1353461769: ('0.06345807106340413',), 1353461743: ('0.06345807106340413',), 1353461516: ('0.06345807106340413',), 1353461512: ('0.06345807106340413',), 1353461509: ('0.06345807106340413',), 1353461506: ('0.06345807106340413',), 1353461504: ('0.06345807106340413',), 1353461502: ('0.06345807106340413',), 1353461463: ('0.06345807106340413',), 1353461445: ('0.06345807106340413',), 1353461440: ('0.06345807106340413',), 1353461402: ('0.06345807106340413',), 1353461399: ('0.06345807106340413',), 1353461396: ('0.06345807106340413',), 1353461390: ('0.06345807106340413',), 1353461386: ()} output_args : {1353461818: ('0.06345807106340413',), 1353461794: ('0.06345807106340413',), 1353461769: ('0.06345807106340413',), 1353461743: ('0.06345807106340413',), 1353461516: ('0.06345807106340413',), 1353461512: ('0.06345807106340413',), 1353461509: ('0.06345807106340413',), 1353461506: ('0.06345807106340413',), 1353461504: ('0.06345807106340413',), 1353461502: ('0.06345807106340413',), 1353461463: ('0.06345807106340413',), 1353461445: ('0.06345807106340413',), 1353461440: ('0.06345807106340413',), 1353461402: ('0.06345807106340413',), 1353461399: ('0.06345807106340413',), 1353461396: ('0.06345807106340413',), 1353461390: ('0.06345807106340413',), 1353461386: ('0.06345807106340413',), 1353461294: ('0.06345807106340413',), 1353461289: ('0.06345807106340413',), 1353461282: ('0.06345807106340413',), 1353461277: ('0.06345807106340413',)} args : 1353461386 depend.output_id : 0 input_args_next_step : {1353461818: ('0.06345807106340413',), 1353461794: ('0.06345807106340413',), 1353461769: ('0.06345807106340413',), 1353461743: ('0.06345807106340413',), 1353461516: ('0.06345807106340413',), 1353461512: ('0.06345807106340413',), 1353461509: ('0.06345807106340413',), 1353461506: ('0.06345807106340413',), 1353461504: ('0.06345807106340413',), 1353461502: ('0.06345807106340413',), 1353461463: ('0.06345807106340413',), 1353461445: ('0.06345807106340413',), 1353461440: ('0.06345807106340413',), 1353461402: ('0.06345807106340413',), 1353461399: ('0.06345807106340413',), 1353461396: ('0.06345807106340413',), 1353461390: ('0.06345807106340413',), 1353461386: ('0.06345807106340413',), 1353461294: ()} output_args : {1353461818: ('0.06345807106340413',), 1353461794: ('0.06345807106340413',), 1353461769: ('0.06345807106340413',), 1353461743: ('0.06345807106340413',), 1353461516: ('0.06345807106340413',), 1353461512: ('0.06345807106340413',), 1353461509: ('0.06345807106340413',), 1353461506: ('0.06345807106340413',), 1353461504: ('0.06345807106340413',), 1353461502: ('0.06345807106340413',), 1353461463: ('0.06345807106340413',), 1353461445: ('0.06345807106340413',), 1353461440: ('0.06345807106340413',), 1353461402: ('0.06345807106340413',), 1353461399: ('0.06345807106340413',), 1353461396: ('0.06345807106340413',), 1353461390: ('0.06345807106340413',), 1353461386: ('0.06345807106340413',), 1353461294: ('0.06345807106340413',), 1353461289: ('0.06345807106340413',), 1353461282: ('0.06345807106340413',), 1353461277: ('0.06345807106340413',)} args : 1353461294 depend.output_id : 0 input_args_next_step : {1353461818: ('0.06345807106340413',), 1353461794: ('0.06345807106340413',), 1353461769: ('0.06345807106340413',), 1353461743: ('0.06345807106340413',), 1353461516: ('0.06345807106340413',), 1353461512: ('0.06345807106340413',), 1353461509: ('0.06345807106340413',), 1353461506: ('0.06345807106340413',), 1353461504: ('0.06345807106340413',), 1353461502: ('0.06345807106340413',), 1353461463: ('0.06345807106340413',), 1353461445: ('0.06345807106340413',), 1353461440: ('0.06345807106340413',), 1353461402: ('0.06345807106340413',), 1353461399: ('0.06345807106340413',), 1353461396: ('0.06345807106340413',), 1353461390: ('0.06345807106340413',), 1353461386: ('0.06345807106340413',), 1353461294: ('0.06345807106340413',), 1353461289: ()} output_args : {1353461818: ('0.06345807106340413',), 1353461794: ('0.06345807106340413',), 1353461769: ('0.06345807106340413',), 1353461743: ('0.06345807106340413',), 1353461516: ('0.06345807106340413',), 1353461512: ('0.06345807106340413',), 1353461509: ('0.06345807106340413',), 1353461506: ('0.06345807106340413',), 1353461504: ('0.06345807106340413',), 1353461502: ('0.06345807106340413',), 1353461463: ('0.06345807106340413',), 1353461445: ('0.06345807106340413',), 1353461440: ('0.06345807106340413',), 1353461402: ('0.06345807106340413',), 1353461399: ('0.06345807106340413',), 1353461396: ('0.06345807106340413',), 1353461390: ('0.06345807106340413',), 1353461386: ('0.06345807106340413',), 1353461294: ('0.06345807106340413',), 1353461289: ('0.06345807106340413',), 1353461282: ('0.06345807106340413',), 1353461277: ('0.06345807106340413',)} args : 1353461289 depend.output_id : 0 input_args_next_step : {1353461818: ('0.06345807106340413',), 1353461794: ('0.06345807106340413',), 1353461769: ('0.06345807106340413',), 1353461743: ('0.06345807106340413',), 1353461516: ('0.06345807106340413',), 1353461512: ('0.06345807106340413',), 1353461509: ('0.06345807106340413',), 1353461506: ('0.06345807106340413',), 1353461504: ('0.06345807106340413',), 1353461502: ('0.06345807106340413',), 1353461463: ('0.06345807106340413',), 1353461445: ('0.06345807106340413',), 1353461440: ('0.06345807106340413',), 1353461402: ('0.06345807106340413',), 1353461399: ('0.06345807106340413',), 1353461396: ('0.06345807106340413',), 1353461390: ('0.06345807106340413',), 1353461386: ('0.06345807106340413',), 1353461294: ('0.06345807106340413',), 1353461289: ('0.06345807106340413',), 1353461282: ()} output_args : {1353461818: ('0.06345807106340413',), 1353461794: ('0.06345807106340413',), 1353461769: ('0.06345807106340413',), 1353461743: ('0.06345807106340413',), 1353461516: ('0.06345807106340413',), 1353461512: ('0.06345807106340413',), 1353461509: ('0.06345807106340413',), 1353461506: ('0.06345807106340413',), 1353461504: ('0.06345807106340413',), 1353461502: ('0.06345807106340413',), 1353461463: ('0.06345807106340413',), 1353461445: ('0.06345807106340413',), 1353461440: ('0.06345807106340413',), 1353461402: ('0.06345807106340413',), 1353461399: ('0.06345807106340413',), 1353461396: ('0.06345807106340413',), 1353461390: ('0.06345807106340413',), 1353461386: ('0.06345807106340413',), 1353461294: ('0.06345807106340413',), 1353461289: ('0.06345807106340413',), 1353461282: ('0.06345807106340413',), 1353461277: ('0.06345807106340413',)} args : 1353461282 depend.output_id : 0 input_args_next_step : {1353461818: ('0.06345807106340413',), 1353461794: ('0.06345807106340413',), 1353461769: ('0.06345807106340413',), 1353461743: ('0.06345807106340413',), 1353461516: ('0.06345807106340413',), 1353461512: ('0.06345807106340413',), 1353461509: ('0.06345807106340413',), 1353461506: ('0.06345807106340413',), 1353461504: ('0.06345807106340413',), 1353461502: ('0.06345807106340413',), 1353461463: ('0.06345807106340413',), 1353461445: ('0.06345807106340413',), 1353461440: ('0.06345807106340413',), 1353461402: ('0.06345807106340413',), 1353461399: ('0.06345807106340413',), 1353461396: ('0.06345807106340413',), 1353461390: ('0.06345807106340413',), 1353461386: ('0.06345807106340413',), 1353461294: ('0.06345807106340413',), 1353461289: ('0.06345807106340413',), 1353461282: ('0.06345807106340413',), 1353461277: ()} output_args : {1353461818: ('0.06345807106340413',), 1353461794: ('0.06345807106340413',), 1353461769: ('0.06345807106340413',), 1353461743: ('0.06345807106340413',), 1353461516: ('0.06345807106340413',), 1353461512: ('0.06345807106340413',), 1353461509: ('0.06345807106340413',), 1353461506: ('0.06345807106340413',), 1353461504: ('0.06345807106340413',), 1353461502: ('0.06345807106340413',), 1353461463: ('0.06345807106340413',), 1353461445: ('0.06345807106340413',), 1353461440: ('0.06345807106340413',), 1353461402: ('0.06345807106340413',), 1353461399: ('0.06345807106340413',), 1353461396: ('0.06345807106340413',), 1353461390: ('0.06345807106340413',), 1353461386: ('0.06345807106340413',), 1353461294: ('0.06345807106340413',), 1353461289: ('0.06345807106340413',), 1353461282: ('0.06345807106340413',), 1353461277: ('0.06345807106340413',)} args : 1353461277 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 : {22398957: [{'Carton_gris': 22398964, 'kraft': 22398965, 'flou': 22398966, 'mal_croppe': 22398967, 'papier': 22398968, 'Teint_Dans_La_Masse': 22398969, 'cartonnette': 22398970, 'Carton_brun': 22398971, 'metal': 22398972, 'plastique': 22398973, 'autre_refus': 22398974, 'environnement': 22398975}]} input_args_next_step : {1353461818: ('0.06345807106340413',), 1353461794: ('0.06345807106340413',), 1353461769: ('0.06345807106340413',), 1353461743: ('0.06345807106340413',), 1353461516: ('0.06345807106340413',), 1353461512: ('0.06345807106340413',), 1353461509: ('0.06345807106340413',), 1353461506: ('0.06345807106340413',), 1353461504: ('0.06345807106340413',), 1353461502: ('0.06345807106340413',), 1353461463: ('0.06345807106340413',), 1353461445: ('0.06345807106340413',), 1353461440: ('0.06345807106340413',), 1353461402: ('0.06345807106340413',), 1353461399: ('0.06345807106340413',), 1353461396: ('0.06345807106340413',), 1353461390: ('0.06345807106340413',), 1353461386: ('0.06345807106340413',), 1353461294: ('0.06345807106340413',), 1353461289: ('0.06345807106340413',), 1353461282: ('0.06345807106340413',), 1353461277: ('0.06345807106340413',), 22398957: ()} output_args : {22398957: [{'Carton_gris': 22398964, 'kraft': 22398965, 'flou': 22398966, 'mal_croppe': 22398967, 'papier': 22398968, 'Teint_Dans_La_Masse': 22398969, 'cartonnette': 22398970, 'Carton_brun': 22398971, 'metal': 22398972, 'plastique': 22398973, 'autre_refus': 22398974, 'environnement': 22398975}]} args : 22398957 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 :23, first value : ('0.06345807106340413',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22398957) 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 (1353461818,1353461794,1353461769,1353461743,1353461516,1353461512,1353461509,1353461506,1353461504,1353461502,1353461463,1353461445,1353461440,1353461402,1353461399,1353461396,1353461390,1353461386,1353461294,1353461289,1353461282,1353461277) Found this number of photos: 22 ##### Call download_photos : nb_thread : 5 begin to download photo : 1353461277 begin to download photo : 1353461390 begin to download photo : 1353461445 begin to download photo : 1353461509 begin to download photo : 1353461794 download finish for photo 1353461509 begin to download photo : 1353461512 download finish for photo 1353461390 begin to download photo : 1353461396 download finish for photo 1353461277 begin to download photo : 1353461282 download finish for photo 1353461794 begin to download photo : 1353461818 download finish for photo 1353461445 begin to download photo : 1353461463 download finish for photo 1353461512 begin to download photo : 1353461516 download finish for photo 1353461818 download finish for photo 1353461282 begin to download photo : 1353461289 download finish for photo 1353461396 begin to download photo : 1353461399 download finish for photo 1353461463 begin to download photo : 1353461502 download finish for photo 1353461516 begin to download photo : 1353461743 download finish for photo 1353461399 begin to download photo : 1353461402 download finish for photo 1353461502 begin to download photo : 1353461504 download finish for photo 1353461289 begin to download photo : 1353461294 download finish for photo 1353461743 begin to download photo : 1353461769 download finish for photo 1353461504 begin to download photo : 1353461506 download finish for photo 1353461294 begin to download photo : 1353461386 download finish for photo 1353461402 begin to download photo : 1353461440 download finish for photo 1353461769 download finish for photo 1353461506 download finish for photo 1353461386 download finish for photo 1353461440 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette223989651745523661/ imagette223989661745523661/ imagette223989671745523661/ length of list_filenames : 22 ; length of list_pids : 22 ; length of list_args : 22 results_Auto_P22398957_24-04-2025_21_41_01.pdf 22398965 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=22398965 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223989651745523661 22398966 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=22398966 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223989661745523661 22398967 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=22398967 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223989671745523661 22398970 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=22398970 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353461426: '1745523432_1240076_1353461282_ad10537028e1ee87a0c65d7ccec06a85_rle_crop_3768008456_0.png'} change filename to text .imagette223989701745523661/ imagette223989701745523661/1745523432_1240076_1353461282_ad10537028e1ee87a0c65d7ccec06a85_rle_crop_3768008456_0.png.png imagette223989721745523661/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/7d2c93bdbb50995ece49fa137318203d_21866848.png imagette223989701745523661 22398972 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=22398972 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223989721745523661 22398973 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=22398973 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353461458: '1745523467_520623_1353461294_51cb55deb0df0c0b6fa80d56372d8f9a_rle_crop_3768008717_0.png', 1353461459: '1745523467_520623_1353461062_62da288063f74c3206ef7ce8a1f8fbb5_rle_crop_3768008731_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/99b72e87f3519a80f069d2156fbbbd5b_75224481.png change filename to text .imagette223989731745523661/ imagette223989731745523661/1745523467_520623_1353461294_51cb55deb0df0c0b6fa80d56372d8f9a_rle_crop_3768008717_0.png.png imagette223989731745523661/1745523467_520623_1353461062_62da288063f74c3206ef7ce8a1f8fbb5_rle_crop_3768008731_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/92f821320ec9464b0bd7cedac5f5bb21_36196316.png imagette223989731745523661 22398974 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=22398974 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353461522: '1745523551_1241048_1353461402_e7fd8903a6ae71c9dfe7618f84b416d0_rle_crop_3768017266_0.png'} change filename to text .imagette223989741745523661/ imagette223989741745523661/1745523551_1241048_1353461402_e7fd8903a6ae71c9dfe7618f84b416d0_rle_crop_3768017266_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/49ffdbff556c2a9069d71d2bf1b122f3_37439539.png imagette223989741745523661 22398964 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=22398964 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353461188: '1745523311_1238933_1353460867_67275e8a3511a33a47d2fc4624a0057e_rle_crop_3768001189_0.png', 1353461189: '1745523311_1238933_1353460855_24e3a0a922af1b49264b4472d1e620f8_rle_crop_3768001214_0.png', 1353461190: '1745523311_1238933_1353460855_24e3a0a922af1b49264b4472d1e620f8_rle_crop_3768001219_0.png', 1353461191: '1745523311_1238933_1353460855_24e3a0a922af1b49264b4472d1e620f8_rle_crop_3768001213_0.png', 1353461278: '1745523342_517341_1353460896_580f0b1ccbe74184c60f4ef89f356559_rle_crop_3768001284_0.png', 1353461424: '1745523432_1240076_1353461282_ad10537028e1ee87a0c65d7ccec06a85_rle_crop_3768008459_0.png', 1353461425: '1745523432_1240076_1353461277_ecfac30b339aebfeeed24c866eca614e_rle_crop_3768008474_0.png', 1353461433: '1745523447_439379_1353461066_1883f74b79cfc499651465e8c39f65e9_rle_crop_3768008491_0.png', 1353461454: '1745523467_520623_1353461062_62da288063f74c3206ef7ce8a1f8fbb5_rle_crop_3768008729_0.png', 1353461455: '1745523467_520623_1353461062_62da288063f74c3206ef7ce8a1f8fbb5_rle_crop_3768008730_0.png', 1353461490: '1745523492_1240562_1353460607_95599b045d6b3301eae191de305e5f35_rle_crop_3768008926_0.png', 1353461491: '1745523492_1240562_1353460604_e336da80ecc78b43a07d06694e93dfcd_rle_crop_3768008941_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/b3d2f975db6e26d39a7b47d441a26486_9130114.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/813779c49a9b6c52b833516fd3c852a6_26363587.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/63a18c2c0e7ae21e82ea5e5079ac4bba_78599503.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/02cfcf0b37ae2c83e87dc1df474eb2c5_29287351.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/fbd7b2973e097805ff34524487050553_53056985.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/b8afe8a5a660c4f592f981d8d5161c8d_38629957.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/e61fe1f9849134db3ad85edee25f22b9_2145596.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/b0ef6feb5ebd865403fc7a4f43ded85e_18229954.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/a69f76ec23b5244e690d4cf28ce13380_61776371.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/be706558ee17ef7ffd7d5adea1b95560_36809298.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/070fc022981f62501cfb49acfe7f3993_52958228.png change filename to text .imagette223989641745523661/ imagette223989641745523661/1745523311_1238933_1353460855_24e3a0a922af1b49264b4472d1e620f8_rle_crop_3768001213_0.png.png imagette223989641745523661/1745523311_1238933_1353460867_67275e8a3511a33a47d2fc4624a0057e_rle_crop_3768001189_0.png.png imagette223989641745523661/1745523342_517341_1353460896_580f0b1ccbe74184c60f4ef89f356559_rle_crop_3768001284_0.png.png imagette223989641745523661/1745523447_439379_1353461066_1883f74b79cfc499651465e8c39f65e9_rle_crop_3768008491_0.png.png imagette223989641745523661/1745523467_520623_1353461062_62da288063f74c3206ef7ce8a1f8fbb5_rle_crop_3768008729_0.png.png imagette223989641745523661/1745523432_1240076_1353461277_ecfac30b339aebfeeed24c866eca614e_rle_crop_3768008474_0.png.png imagette223989641745523661/1745523467_520623_1353461062_62da288063f74c3206ef7ce8a1f8fbb5_rle_crop_3768008730_0.png.png imagette223989641745523661/1745523492_1240562_1353460604_e336da80ecc78b43a07d06694e93dfcd_rle_crop_3768008941_0.png.png imagette223989641745523661/1745523492_1240562_1353460607_95599b045d6b3301eae191de305e5f35_rle_crop_3768008926_0.png.png imagette223989641745523661/1745523432_1240076_1353461282_ad10537028e1ee87a0c65d7ccec06a85_rle_crop_3768008459_0.png.png imagette223989641745523661/1745523311_1238933_1353460855_24e3a0a922af1b49264b4472d1e620f8_rle_crop_3768001214_0.png.png imagette223989641745523661/1745523311_1238933_1353460855_24e3a0a922af1b49264b4472d1e620f8_rle_crop_3768001219_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/7c1453f2d0aadc34d226dad01b5fb3cd_9470023.png imagette223989641745523661 22398969 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=22398969 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353461422: '1745523432_1240076_1353461277_ecfac30b339aebfeeed24c866eca614e_rle_crop_3768008481_0.png', 1353461488: '1745523492_1240562_1353460604_e336da80ecc78b43a07d06694e93dfcd_rle_crop_3768008946_0.png', 1353461487: '1745523492_1240562_1353460607_95599b045d6b3301eae191de305e5f35_rle_crop_3768008925_0.png', 1353461486: '1745523492_1240562_1353460607_95599b045d6b3301eae191de305e5f35_rle_crop_3768008929_0.png', 1353461485: '1745523492_1240562_1353460610_cf011a5d1f4b123176e031125263afbd_rle_crop_3768008911_0.png', 1353461484: '1745523492_1240562_1353460655_a412bbc35cf38c8fef79a0191a886263_rle_crop_3768008905_0.png', 1353461450: '1745523467_520623_1353461062_62da288063f74c3206ef7ce8a1f8fbb5_rle_crop_3768008732_0.png', 1353461448: '1745523467_520623_1353461294_51cb55deb0df0c0b6fa80d56372d8f9a_rle_crop_3768008720_0.png', 1353461431: '1745523447_439379_1353461066_1883f74b79cfc499651465e8c39f65e9_rle_crop_3768008493_0.png', 1353461430: '1745523447_439379_1353461066_1883f74b79cfc499651465e8c39f65e9_rle_crop_3768008498_0.png', 1353461185: '1745523311_1238933_1353460867_67275e8a3511a33a47d2fc4624a0057e_rle_crop_3768001195_0.png', 1353461421: '1745523432_1240076_1353461277_ecfac30b339aebfeeed24c866eca614e_rle_crop_3768008480_0.png', 1353461420: '1745523432_1240076_1353461282_ad10537028e1ee87a0c65d7ccec06a85_rle_crop_3768008460_0.png', 1353461419: '1745523432_1240076_1353461282_ad10537028e1ee87a0c65d7ccec06a85_rle_crop_3768008461_0.png', 1353461418: '1745523432_1240076_1353461289_968f45a5d5728465ecb526d84b944964_rle_crop_3768008447_0.png', 1353461370: '1745523372_1239488_1353460648_29797591776aaaa35bea61f887228a3b_rle_crop_3768001412_0.png', 1353461276: '1745523342_517341_1353460689_caec60a3270375f3313eb7f76688d6af_rle_crop_3768001304_0.png', 1353461275: '1745523342_517341_1353460896_580f0b1ccbe74184c60f4ef89f356559_rle_crop_3768001290_0.png', 1353461186: '1745523311_1238933_1353460855_24e3a0a922af1b49264b4472d1e620f8_rle_crop_3768001224_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/4cea990fb2b34953cc0bdab275a7dc98_16261991.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/daffe1bfb181100d2535aec13695f465_42439173.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/78fdba1aa0bba8bf5358fa90b450e739_41101960.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/35afcfe82d89ec6c44fbce058bad6245_63570438.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/22b6d620f82a499baba6db3f0aea8a22_27978791.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/9f2c5455a2902e07d9ace8094f29ed5b_10110504.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/25bfa00168a72a848419a4d29825bdb1_14091989.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/fcb6070c3a870bc7e47ecae2b36daa2c_209416.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/0123ecee2682c9d9a12068fa4d846409_77033904.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/401e9def5bdcf3b6b8a396758d7248b6_36144073.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/f7a28fd085e7fc1aa830a83f31419840_99219944.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/ddc19b28dbae344f2dadbc9777b8df5b_28363028.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/18bb6d1210c751cfeec8c5d214d01b4f_53976733.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/d6234e80e0944220e28fd39e3287ef3a_21578716.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/c1d2f10fa719a31e4b5d4b8b0820bc04_12121421.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/edaba8ba45a61194a918a0649484ef27_68884578.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/a3944136ccfa9aead0f30b602eca03ef_58987544.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/b997b5fb3e9d27598d484687aec337dd_41911739.png change filename to text .imagette223989691745523662/ imagette223989691745523662/1745523342_517341_1353460896_580f0b1ccbe74184c60f4ef89f356559_rle_crop_3768001290_0.png.png imagette223989691745523662/1745523432_1240076_1353461277_ecfac30b339aebfeeed24c866eca614e_rle_crop_3768008480_0.png.png imagette223989691745523662/1745523311_1238933_1353460867_67275e8a3511a33a47d2fc4624a0057e_rle_crop_3768001195_0.png.png imagette223989691745523662/1745523492_1240562_1353460604_e336da80ecc78b43a07d06694e93dfcd_rle_crop_3768008946_0.png.png imagette223989691745523662/1745523467_520623_1353461062_62da288063f74c3206ef7ce8a1f8fbb5_rle_crop_3768008732_0.png.png imagette223989691745523662/1745523372_1239488_1353460648_29797591776aaaa35bea61f887228a3b_rle_crop_3768001412_0.png.png imagette223989691745523662/1745523432_1240076_1353461282_ad10537028e1ee87a0c65d7ccec06a85_rle_crop_3768008460_0.png.png imagette223989691745523662/1745523447_439379_1353461066_1883f74b79cfc499651465e8c39f65e9_rle_crop_3768008493_0.png.png imagette223989691745523662/1745523432_1240076_1353461282_ad10537028e1ee87a0c65d7ccec06a85_rle_crop_3768008461_0.png.png imagette223989691745523662/1745523432_1240076_1353461289_968f45a5d5728465ecb526d84b944964_rle_crop_3768008447_0.png.png imagette223989691745523662/1745523342_517341_1353460689_caec60a3270375f3313eb7f76688d6af_rle_crop_3768001304_0.png.png imagette223989691745523662/1745523492_1240562_1353460610_cf011a5d1f4b123176e031125263afbd_rle_crop_3768008911_0.png.png imagette223989691745523662/1745523492_1240562_1353460655_a412bbc35cf38c8fef79a0191a886263_rle_crop_3768008905_0.png.png imagette223989691745523662/1745523492_1240562_1353460607_95599b045d6b3301eae191de305e5f35_rle_crop_3768008929_0.png.png imagette223989691745523662/1745523492_1240562_1353460607_95599b045d6b3301eae191de305e5f35_rle_crop_3768008925_0.png.png imagette223989691745523662/1745523432_1240076_1353461277_ecfac30b339aebfeeed24c866eca614e_rle_crop_3768008481_0.png.png imagette223989691745523662/1745523467_520623_1353461294_51cb55deb0df0c0b6fa80d56372d8f9a_rle_crop_3768008720_0.png.png imagette223989691745523662/1745523447_439379_1353461066_1883f74b79cfc499651465e8c39f65e9_rle_crop_3768008498_0.png.png imagette223989691745523662/1745523311_1238933_1353460855_24e3a0a922af1b49264b4472d1e620f8_rle_crop_3768001224_0.png.png wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/36f8d9c36af2d9072aca37d90083606b_23741834.png imagette223989691745523662 22398971 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=22398971 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353461193: '1745523311_1238933_1353460855_24e3a0a922af1b49264b4472d1e620f8_rle_crop_3768001222_0.png', 1353461194: '1745523311_1238933_1353460855_24e3a0a922af1b49264b4472d1e620f8_rle_crop_3768001218_0.png', 1353461372: '1745523372_1239488_1353460648_29797591776aaaa35bea61f887228a3b_rle_crop_3768001406_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/5d40a7c1a5bfafd99897e419da29b382_80446381.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/1be864b380b9cfc319c807a824cd29bd_71042062.png change filename to text .imagette223989711745523663/ imagette223989711745523663/1745523311_1238933_1353460855_24e3a0a922af1b49264b4472d1e620f8_rle_crop_3768001218_0.png.png imagette223989711745523663/1745523311_1238933_1353460855_24e3a0a922af1b49264b4472d1e620f8_rle_crop_3768001222_0.png.png imagette223989711745523663/1745523372_1239488_1353460648_29797591776aaaa35bea61f887228a3b_rle_crop_3768001406_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/ebe9e0dce60ff2e9de89ae3834ec81c8_66349612.png imagette223989711745523663 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22398957 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22398976,22398977,22398978,22398979,22398980,22398981,22398982,22398983,22398984,22398985,22398986,22398987?tags=Carton_gris,kraft,flou,mal_croppe,papier,Teint_Dans_La_Masse,cartonnette,Carton_brun,metal,plastique,autre_refus,environnement your option no_mail is active, we will not send the real mail to your client args[1353461818] : ('0.06345807106340413',) no score found for photo 1353461818 We are sending mail with results at report@fotonower.com args[1353461794] : ('0.06345807106340413',) no score found for photo 1353461794 We are sending mail with results at report@fotonower.com args[1353461769] : ('0.06345807106340413',) no score found for photo 1353461769 We are sending mail with results at report@fotonower.com args[1353461743] : ('0.06345807106340413',) no score found for photo 1353461743 We are sending mail with results at report@fotonower.com args[1353461516] : ('0.06345807106340413',) no score found for photo 1353461516 We are sending mail with results at report@fotonower.com args[1353461512] : ('0.06345807106340413',) no score found for photo 1353461512 We are sending mail with results at report@fotonower.com args[1353461509] : ('0.06345807106340413',) no score found for photo 1353461509 We are sending mail with results at report@fotonower.com args[1353461506] : ('0.06345807106340413',) no score found for photo 1353461506 We are sending mail with results at report@fotonower.com args[1353461504] : ('0.06345807106340413',) no score found for photo 1353461504 We are sending mail with results at report@fotonower.com args[1353461502] : ('0.06345807106340413',) no score found for photo 1353461502 We are sending mail with results at report@fotonower.com args[1353461463] : ('0.06345807106340413',) no score found for photo 1353461463 We are sending mail with results at report@fotonower.com args[1353461445] : ('0.06345807106340413',) no score found for photo 1353461445 We are sending mail with results at report@fotonower.com args[1353461440] : ('0.06345807106340413',) no score found for photo 1353461440 We are sending mail with results at report@fotonower.com args[1353461402] : ('0.06345807106340413',) no score found for photo 1353461402 We are sending mail with results at report@fotonower.com args[1353461399] : ('0.06345807106340413',) no score found for photo 1353461399 We are sending mail with results at report@fotonower.com args[1353461396] : ('0.06345807106340413',) no score found for photo 1353461396 We are sending mail with results at report@fotonower.com args[1353461390] : ('0.06345807106340413',) no score found for photo 1353461390 We are sending mail with results at report@fotonower.com args[1353461386] : ('0.06345807106340413',) no score found for photo 1353461386 We are sending mail with results at report@fotonower.com args[1353461294] : ('0.06345807106340413',) no score found for photo 1353461294 We are sending mail with results at report@fotonower.com args[1353461289] : ('0.06345807106340413',) no score found for photo 1353461289 We are sending mail with results at report@fotonower.com args[1353461282] : ('0.06345807106340413',) no score found for photo 1353461282 We are sending mail with results at report@fotonower.com args[1353461277] : ('0.06345807106340413',) no score found for photo 1353461277 We are sending mail with results at report@fotonower.com refus_total : 0.06345807106340413 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=22398957 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_P22398957_24-04-2025_21_41_01.pdf results_Auto_P22398957_24-04-2025_21_41_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22398957_24-04-2025_21_41_01.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','22398957','results_Auto_P22398957_24-04-2025_21_41_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22398957_24-04-2025_21_41_01.pdf','pdf','','0.29','0.06345807106340413') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22398957]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1353461818, 1353461794, 1353461769, 1353461743, 1353461516, 1353461512, 1353461509, 1353461506, 1353461504, 1353461502, 1353461463, 1353461445, 1353461440, 1353461402, 1353461399, 1353461396, 1353461390, 1353461386, 1353461294, 1353461289, 1353461282, 1353461277] map_info['map_portfolio_photo'] : {22398957: [1353461818, 1353461794, 1353461769, 1353461743, 1353461516, 1353461512, 1353461509, 1353461506, 1353461504, 1353461502, 1353461463, 1353461445, 1353461440, 1353461402, 1353461399, 1353461396, 1353461390, 1353461386, 1353461294, 1353461289, 1353461282, 1353461277, 1353461066, 1353461062, 1353460896, 1353460867, 1353460855, 1353460814, 1353460693, 1353460689, 1353460655, 1353460648, 1353460610, 1353460607, 1353460604]} final : False mtd_id 4302 list_pids : [1353461818, 1353461794, 1353461769, 1353461743, 1353461516, 1353461512, 1353461509, 1353461506, 1353461504, 1353461502, 1353461463, 1353461445, 1353461440, 1353461402, 1353461399, 1353461396, 1353461390, 1353461386, 1353461294, 1353461289, 1353461282, 1353461277] 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, '2759179') ('4302', '22398957', '1353461818', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461794', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461769', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461743', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461516', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461512', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461509', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461506', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461504', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461502', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461463', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461445', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461440', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461402', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461399', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461396', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461390', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461386', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461294', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461289', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461282', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461277', None, None, None, None, None, '2759179') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 22 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', '22398957', '1353461818', None, None, None, None, None, '2759179'), ('4302', '22398957', '1353461794', None, None, None, None, None, '2759179'), ('4302', '22398957', '1353461769', None, None, None, None, None, '2759179'), ('4302', '22398957', '1353461743', None, None, None, None, None, '2759179'), ('4302', '22398957', '1353461516', None, None, None, None, None, '2759179'), ('4302', '22398957', '1353461512', None, None, None, None, None, '2759179'), ('4302', '22398957', '1353461509', None, None, None, None, None, '2759179'), ('4302', '22398957', '1353461506', None, None, None, None, None, '2759179'), ('4302', '22398957', '1353461504', None, None, None, None, None, '2759179'), ('4302', '22398957', '1353461502', None, None, None, None, None, '2759179'), ('4302', '22398957', '1353461463', None, None, None, None, None, '2759179'), ('4302', '22398957', '1353461445', None, None, None, None, None, '2759179'), ('4302', '22398957', '1353461440', None, None, None, None, None, '2759179'), ('4302', '22398957', '1353461402', None, None, None, None, None, '2759179'), ('4302', '22398957', '1353461399', None, None, None, None, None, '2759179'), ('4302', '22398957', '1353461396', None, None, None, None, None, '2759179'), ('4302', '22398957', '1353461390', None, None, None, None, None, '2759179'), ('4302', '22398957', '1353461386', None, None, None, None, None, '2759179'), ('4302', '22398957', '1353461294', None, None, None, None, None, '2759179'), ('4302', '22398957', '1353461289', None, None, None, None, None, '2759179'), ('4302', '22398957', '1353461282', None, None, None, None, None, '2759179'), ('4302', '22398957', '1353461277', None, None, None, None, None, '2759179')] time used for this insertion : 0.015011787414550781 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.539539098739624 time spend to save output : 0.015330791473388672 total time spend for step 4 : 4.554869890213013 step5:split_time_score Thu Apr 24 21:41:05 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['22398957'] 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 : [('22398957',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22398957) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1353461794: {'path': 'temp/1745523660_2579027_1353461794_c2ec9298261ee71e7006e4c06e8d3c63.jpg', 'extension': 'jpg'}, 1353461818: {'path': 'temp/1745523660_2579027_1353461818_fd99536f01062bfa87b589fae71a84bf.jpg', 'extension': 'jpg'}, 1353461509: {'path': 'temp/1745523660_2579027_1353461509_0016198fe1f06af40833cc4ce074d313.jpg', 'extension': 'jpg'}, 1353461512: {'path': 'temp/1745523660_2579027_1353461512_b968ac269aac0820501c9fa05a030ef2.jpg', 'extension': 'jpg'}, 1353461516: {'path': 'temp/1745523660_2579027_1353461516_d0feca66dd6f274a222013aa4d302858.jpg', 'extension': 'jpg'}, 1353461743: {'path': 'temp/1745523660_2579027_1353461743_54a6e999a0d0353ab3dd188eb9c1774d.jpg', 'extension': 'jpg'}, 1353461769: {'path': 'temp/1745523660_2579027_1353461769_95ce5e616f0e6a5f7c2522c53951e110.jpg', 'extension': 'jpg'}, 1353461445: {'path': 'temp/1745523660_2579027_1353461445_7c36c4c398f73383299b242ecfa02a25.jpg', 'extension': 'jpg'}, 1353461463: {'path': 'temp/1745523660_2579027_1353461463_c239ebc8de88d943dfa7e6fc425ad1a9.jpg', 'extension': 'jpg'}, 1353461502: {'path': 'temp/1745523660_2579027_1353461502_d9e36ebd5194f8be9ad6102cab2c174b.jpg', 'extension': 'jpg'}, 1353461504: {'path': 'temp/1745523660_2579027_1353461504_213ffb257bb51b09aa6fce261a325b9a.jpg', 'extension': 'jpg'}, 1353461506: {'path': 'temp/1745523660_2579027_1353461506_e2f60a7c4e3716ca59a35769e18e5087.jpg', 'extension': 'jpg'}, 1353461277: {'path': 'temp/1745523660_2579027_1353461277_ecfac30b339aebfeeed24c866eca614e.jpg', 'extension': 'jpg'}, 1353461282: {'path': 'temp/1745523660_2579027_1353461282_ad10537028e1ee87a0c65d7ccec06a85.jpg', 'extension': 'jpg'}, 1353461289: {'path': 'temp/1745523660_2579027_1353461289_968f45a5d5728465ecb526d84b944964.jpg', 'extension': 'jpg'}, 1353461294: {'path': 'temp/1745523660_2579027_1353461294_51cb55deb0df0c0b6fa80d56372d8f9a.jpg', 'extension': 'jpg'}, 1353461386: {'path': 'temp/1745523660_2579027_1353461386_df0a25e219ab12c5b00e70673a84d3aa.jpg', 'extension': 'jpg'}, 1353461390: {'path': 'temp/1745523660_2579027_1353461390_a015120bb2237a5608756b9be74ac70b.jpg', 'extension': 'jpg'}, 1353461396: {'path': 'temp/1745523660_2579027_1353461396_8f9dde67407a5b7260bcc87d17af99d5.jpg', 'extension': 'jpg'}, 1353461399: {'path': 'temp/1745523660_2579027_1353461399_625d7013480198e6124408719902674b.jpg', 'extension': 'jpg'}, 1353461402: {'path': 'temp/1745523660_2579027_1353461402_e7fd8903a6ae71c9dfe7618f84b416d0.jpg', 'extension': 'jpg'}, 1353461440: {'path': 'temp/1745523660_2579027_1353461440_e4ae849c4d83343d0bec7174283210f2.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 = 22398957; (('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 = 22398957 group by h (('21', 35),) 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=22398957 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 (22398957) 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 (22398957) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 24042025 22398957 Nombre de photos uploadées : 35 / 23040 (0%) 24042025 22398957 Nombre de photos taguées (types de déchets): 0 / 35 (0%) 24042025 22398957 Nombre de photos taguées (volume) : 0 / 35 (0%) [{'photo_id': 1353460610, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/cf011a5d1f4b123176e031125263afbd.jpg', 'username': None, 'uploaded_at': 1745523067, 'text': 'image_24042025_21_30_14_010141m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1353460607, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/95599b045d6b3301eae191de305e5f35.jpg', 'username': None, 'uploaded_at': 1745523067, 'text': 'image_24042025_21_30_34_010136m0.jpg 2e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1353460604, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/e336da80ecc78b43a07d06694e93dfcd.jpg', 'username': None, 'uploaded_at': 1745523067, 'text': 'image_24042025_21_30_44_010138m0.jpg 3.0000000000000004e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1353460655, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/a412bbc35cf38c8fef79a0191a886263.jpg', 'username': None, 'uploaded_at': 1745523128, 'text': 'image_24042025_21_30_54_010135m0.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.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 6.4373016357421875e-06 ??????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002324342727661133 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22398957, '2025-04-24' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1743777,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.03167414665222168 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= 1743777 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1743777, 'dashboard_run_id': 1754659, 'mtr_portfolio_id': 22398306, 'dashboard_result_id': 10082871, '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_P22398306_24-04-2025_21_18_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22398308, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22398309, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22398310, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22398311, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22398312, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22398313, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22398314, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22398315, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22398316, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22398317, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22398318, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22398319, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1754659, 'mtr_portfolio_id': 22398412, 'dashboard_result_id': 10082872, '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_P22398412_24-04-2025_21_32_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22398418, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22398419, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22398420, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22398421, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22398422, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22398423, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22398424, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22398425, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22398426, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22398427, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22398428, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22398429, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1754659, 'mtr_portfolio_id': 22398957, 'dashboard_result_id': 10082873, '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_P22398957_24-04-2025_21_36_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22398964, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22398965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22398966, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22398967, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22398968, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22398969, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22398970, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22398971, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22398972, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22398973, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22398974, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22398975, '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 = 22398306 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': 2759077, 'mtr_portfolio_id': 22398306, 'created_at': datetime.datetime(2025, 4, 24, 21, 18, 58), 'result': '0.050588397314892807', 'result_long': None, 'result_double': None}] Qualite : 0.050588397314892807 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22398306 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22398306_24-04-2025_21_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22398306 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_P22398306_24-04-2025_21_18_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22398308, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22398309, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22398310, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22398311, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22398312, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22398313, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22398314, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22398315, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22398316, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22398317, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22398318, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22398319, 'pht': 3726}}" where mtr_portfolio_id = 22398306 and dashboard_run_id = 1754659 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`=22398306 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10082871, 0.050588397314892807, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22398306_24-04-2025_21_18_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22398308, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22398309, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22398310, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22398311, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22398312, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22398313, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22398314, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22398315, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22398316, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22398317, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22398318, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22398319, '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 = 22398412 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': 2759094, 'mtr_portfolio_id': 22398412, 'created_at': datetime.datetime(2025, 4, 24, 21, 32, 31), 'result': '0.07546698692383626', 'result_long': None, 'result_double': None}] Qualite : 0.07546698692383626 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22398412 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22398412_24-04-2025_21_32_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22398412 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_P22398412_24-04-2025_21_32_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22398418, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22398419, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22398420, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22398421, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22398422, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22398423, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22398424, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22398425, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22398426, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22398427, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22398428, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22398429, 'pht': 3726}}" where mtr_portfolio_id = 22398412 and dashboard_run_id = 1754659 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`=22398412 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10082872, 0.07546698692383626, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22398412_24-04-2025_21_32_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22398418, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22398419, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22398420, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22398421, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22398422, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22398423, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22398424, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22398425, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22398426, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22398427, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22398428, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22398429, '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 = 22398957 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': 2759179, 'mtr_portfolio_id': 22398957, 'created_at': datetime.datetime(2025, 4, 24, 21, 41), 'result': '0.06345807106340413', 'result_long': None, 'result_double': None}] Qualite : 0.06345807106340413 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22398957 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22398957_24-04-2025_21_41_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22398957 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_P22398957_24-04-2025_21_41_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22398964, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22398965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22398966, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22398967, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22398968, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22398969, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22398970, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22398971, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22398972, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22398973, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22398974, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22398975, 'pht': 3726}}" where mtr_portfolio_id = 22398957 and dashboard_run_id = 1754659 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`=22398957 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10082873, 0.06345807106340413, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22398957_24-04-2025_21_41_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22398964, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22398965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22398966, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22398967, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22398968, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22398969, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22398970, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22398971, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22398972, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22398973, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22398974, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22398975, '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 (22398306,22398412,22398957) result : ((1353459174,), (1353459211,), (1353459307,), (1353459419,), (1353459469,), (1353459472,), (1353459476,), (1353459480,), (1353459482,), (1353459516,), (1353459520,), (1353459523,), (1353459526,), (1353459556,), (1353459559,), (1353459596,), (1353459600,), (1353459611,), (1353459618,), (1353459625,), (1353459639,), (1353459676,), (1353459680,), (1353459683,), (1353459685,), (1353459689,), (1353459734,), (1353459720,), (1353459723,), (1353459728,), (1353459731,), (1353459776,), (1353459779,), (1353459782,), (1353459786,), (1353459820,), (1353459831,), (1353459834,), (1353459857,), (1353459862,), (1353459866,), (1353459871,), (1353459875,), (1353459879,), (1353459921,), (1353459924,), (1353459928,), (1353459932,), (1353459936,), (1353459940,), (1353459977,), (1353459981,), (1353459986,), (1353459990,), (1353460025,), (1353460028,), (1353460032,), (1353460038,), (1353460040,), (1353460089,), (1353460101,), (1353460213,), (1353460216,), (1353460220,), (1353460227,), (1353460237,), (1353460285,), (1353460290,), (1353460344,), (1353460346,), (1353460349,), (1353460352,), (1353460357,), (1353460360,), (1353460396,), (1353460399,), (1353460403,), (1353460408,), (1353460412,), (1353460418,), (1353460439,), (1353460444,), (1353460446,), (1353460496,), (1353460499,), (1353460507,), (1353460511,), (1353460547,), (1353460552,), (1353460556,), (1353460559,), (1353460618,), (1353460604,), (1353460607,), (1353460610,), (1353460648,), (1353460655,), (1353460689,), (1353460693,), (1353460814,), (1353460855,), (1353460867,), (1353460896,), (1353461062,), (1353461066,), (1353461277,), (1353461282,), (1353461289,), (1353461294,), (1353461386,), (1353461390,), (1353461396,), (1353461399,), (1353461402,), (1353461440,), (1353461445,), (1353461463,), (1353461502,), (1353461504,), (1353461506,), (1353461509,), (1353461512,), (1353461516,), (1353461743,), (1353461769,), (1353461794,), (1353461818,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'24042025': {'nb_upload': 35, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22398957]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1353461818, 1353461794, 1353461769, 1353461743, 1353461516, 1353461512, 1353461509, 1353461506, 1353461504, 1353461502, 1353461463, 1353461445, 1353461440, 1353461402, 1353461399, 1353461396, 1353461390, 1353461386, 1353461294, 1353461289, 1353461282, 1353461277] map_info['map_portfolio_photo'] : {22398957: [1353461818, 1353461794, 1353461769, 1353461743, 1353461516, 1353461512, 1353461509, 1353461506, 1353461504, 1353461502, 1353461463, 1353461445, 1353461440, 1353461402, 1353461399, 1353461396, 1353461390, 1353461386, 1353461294, 1353461289, 1353461282, 1353461277, 1353461066, 1353461062, 1353460896, 1353460867, 1353460855, 1353460814, 1353460693, 1353460689, 1353460655, 1353460648, 1353460610, 1353460607, 1353460604]} final : True mtd_id 4302 list_pids : [1353461818, 1353461794, 1353461769, 1353461743, 1353461516, 1353461512, 1353461509, 1353461506, 1353461504, 1353461502, 1353461463, 1353461445, 1353461440, 1353461402, 1353461399, 1353461396, 1353461390, 1353461386, 1353461294, 1353461289, 1353461282, 1353461277] Looping around the photos to save general results len do output : 1 /22398957Didn'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, '2759179') ('4302', '22398957', '1353461818', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461794', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461769', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461743', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461516', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461512', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461509', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461506', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461504', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461502', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461463', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461445', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461440', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461402', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461399', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461396', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461390', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461386', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461294', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461289', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461282', None, None, None, None, None, '2759179') ('4302', None, None, None, None, None, None, None, '2759179') ('4302', '22398957', '1353461277', None, None, None, None, None, '2759179') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 23 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, '22398957', 'None', None, None, None, None, '2759179'), ('4302', '22398957', '1353461818', None, None, None, None, None, '2759179'), ('4302', '22398957', '1353461794', None, None, None, None, None, '2759179'), ('4302', '22398957', '1353461769', None, None, None, None, None, '2759179'), ('4302', '22398957', '1353461743', None, None, None, None, None, '2759179'), ('4302', '22398957', '1353461516', None, None, None, None, None, '2759179'), ('4302', '22398957', '1353461512', None, None, None, None, None, '2759179'), ('4302', '22398957', '1353461509', None, None, None, None, None, '2759179'), ('4302', '22398957', '1353461506', None, None, None, None, None, '2759179'), ('4302', '22398957', '1353461504', None, None, None, None, None, '2759179'), ('4302', '22398957', '1353461502', None, None, None, None, None, '2759179'), ('4302', '22398957', '1353461463', None, None, None, None, None, '2759179'), ('4302', '22398957', '1353461445', None, None, None, None, None, '2759179'), ('4302', '22398957', '1353461440', None, None, None, None, None, '2759179'), ('4302', '22398957', '1353461402', None, None, None, None, None, '2759179'), ('4302', '22398957', '1353461399', None, None, None, None, None, '2759179'), ('4302', '22398957', '1353461396', None, None, None, None, None, '2759179'), ('4302', '22398957', '1353461390', None, None, None, None, None, '2759179'), ('4302', '22398957', '1353461386', None, None, None, None, None, '2759179'), ('4302', '22398957', '1353461294', None, None, None, None, None, '2759179'), ('4302', '22398957', '1353461289', None, None, None, None, None, '2759179'), ('4302', '22398957', '1353461282', None, None, None, None, None, '2759179'), ('4302', '22398957', '1353461277', None, None, None, None, None, '2759179')] time used for this insertion : 0.019283533096313477 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3011434078216553 time spend to save output : 0.019637107849121094 total time spend for step 5 : 0.32078051567077637 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 (2759179) 2.44user 2.51system 0:09.45elapsed 52%CPU (0avgtext+0avgdata 161072maxresident)k 592inputs+19152outputs (22major+75508minor)pagefaults 0swaps