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 (2731557) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2731557) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22134541 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2731557'] with mtr_portfolio_ids : ['22134541'] and first list_photo_ids : [] new path : /proc/73211/ Name: python3 Umask: 0002 State: R (running) Tgid: 73211 Ngid: 0 Pid: 73211 PPid: 73210 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 73211 NSpid: 73211 NSpgid: 70747 NSsid: 70747 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98416 kB VmRSS: 98416 kB RssAnon: 59756 kB RssFile: 38660 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 608 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: 50 nonvoluntary_ctxt_switches: 88 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '73211', 'Ngid': '0', 'Pid': '73211', 'PPid': '73210', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '73211', 'NSpid': '73211', 'NSpgid': '70747', 'NSsid': '70747', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98416 kB', 'VmRSS': '98416 kB', 'RssAnon': '59756 kB', 'RssFile': '38660 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '608 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': '50', 'nonvoluntary_ctxt_switches': '88'} ('datou_batch_current', '73211', '1106844', '0', '1106844', '865592', '98416', b'', 'marlene', '2731557') 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 (22134541) 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 (2731557 ) ) 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 (22134541) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1350545390, 'portfolio_id': 22134541}, {'photo_id': 1350545387, 'portfolio_id': 22134541}, {'photo_id': 1350545384, 'portfolio_id': 22134541}, {'photo_id': 1350545377, 'portfolio_id': 22134541}, {'photo_id': 1350545349, 'portfolio_id': 22134541}, {'photo_id': 1350545215, 'portfolio_id': 22134541}, {'photo_id': 1350545179, 'portfolio_id': 22134541}, {'photo_id': 1350545172, 'portfolio_id': 22134541}, {'photo_id': 1350545169, 'portfolio_id': 22134541}, {'photo_id': 1350545148, 'portfolio_id': 22134541}, {'photo_id': 1350545132, 'portfolio_id': 22134541}, {'photo_id': 1350545129, 'portfolio_id': 22134541}, {'photo_id': 1350545119, 'portfolio_id': 22134541}, {'photo_id': 1350545114, 'portfolio_id': 22134541}, {'photo_id': 1350545110, 'portfolio_id': 22134541}, {'photo_id': 1350545107, 'portfolio_id': 22134541}, {'photo_id': 1350545093, 'portfolio_id': 22134541}, {'photo_id': 1350545080, 'portfolio_id': 22134541}, {'photo_id': 1350545074, 'portfolio_id': 22134541}, {'photo_id': 1350545062, 'portfolio_id': 22134541}, {'photo_id': 1350545056, 'portfolio_id': 22134541}, {'photo_id': 1350545044, 'portfolio_id': 22134541}, {'photo_id': 1350545029, 'portfolio_id': 22134541}, {'photo_id': 1350545004, 'portfolio_id': 22134541}, {'photo_id': 1350545002, 'portfolio_id': 22134541}, {'photo_id': 1350544998, 'portfolio_id': 22134541}, {'photo_id': 1350544968, 'portfolio_id': 22134541}, {'photo_id': 1350544962, 'portfolio_id': 22134541}, {'photo_id': 1350544961, 'portfolio_id': 22134541}, {'photo_id': 1350544955, 'portfolio_id': 22134541}, {'photo_id': 1350544953, 'portfolio_id': 22134541}, {'photo_id': 1350544952, 'portfolio_id': 22134541}, {'photo_id': 1350544943, 'portfolio_id': 22134541}, {'photo_id': 1350544936, 'portfolio_id': 22134541}, {'photo_id': 1350544927, 'portfolio_id': 22134541}, {'photo_id': 1350544921, 'portfolio_id': 22134541}, {'photo_id': 1350544917, 'portfolio_id': 22134541}, {'photo_id': 1350544912, 'portfolio_id': 22134541}, {'photo_id': 1350544811, 'portfolio_id': 22134541}, {'photo_id': 1350544786, 'portfolio_id': 22134541}, {'photo_id': 1350544765, 'portfolio_id': 22134541}, {'photo_id': 1350544414, 'portfolio_id': 22134541}, {'photo_id': 1350544407, 'portfolio_id': 22134541}, {'photo_id': 1350544369, 'portfolio_id': 22134541}, {'photo_id': 1350544069, 'portfolio_id': 22134541}, {'photo_id': 1350544064, 'portfolio_id': 22134541}, {'photo_id': 1350544040, 'portfolio_id': 22134541}, {'photo_id': 1350544014, 'portfolio_id': 22134541}, {'photo_id': 1350543225, 'portfolio_id': 22134541}] map_portfolio_id_photo_id: {22134541: [1350545390, 1350545387, 1350545384, 1350545377, 1350545349, 1350545215, 1350545179, 1350545172, 1350545169, 1350545148, 1350545132, 1350545129, 1350545119, 1350545114, 1350545110, 1350545107, 1350545093, 1350545080, 1350545074, 1350545062, 1350545056, 1350545044, 1350545029, 1350545004, 1350545002, 1350544998, 1350544968, 1350544962, 1350544961, 1350544955, 1350544953, 1350544952, 1350544943, 1350544936, 1350544927, 1350544921, 1350544917, 1350544912, 1350544811, 1350544786, 1350544765, 1350544414, 1350544407, 1350544369, 1350544069, 1350544064, 1350544040, 1350544014, 1350543225]} ##### 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.01479196548461914 #### 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 Tue Apr 8 07:22:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22134541) 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 : 22134541 get user id for portfolio 22134541 get sub ptf for main ptf 22134541, type 3726 and hashtags ['Carton_brun', 'plastique', 'cartonnette', 'metal', 'Teint_Dans_La_Masse', 'autre_refus', 'environnement', 'kraft', 'mal_croppe', 'Carton_gris', 'papier', 'flou'] 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`=22134541 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','plastique','cartonnette','metal','Teint_Dans_La_Masse','autre_refus','environnement','kraft','mal_croppe','Carton_gris','papier','flou')) 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`=22134541 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','plastique','cartonnette','metal','Teint_Dans_La_Masse','autre_refus','environnement','kraft','mal_croppe','Carton_gris','papier','flou')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 22134541, 'sub_port_id': 22134560, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14614911, 'last_updated_at': datetime.datetime(2025, 4, 8, 7, 20, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 8, 7, 20, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 8, 7, 8, 59)}, 'plastique': {'main_port_id': 22134541, 'sub_port_id': 22134562, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14614912, 'last_updated_at': datetime.datetime(2025, 4, 8, 7, 20, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 8, 7, 20, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 8, 7, 8, 59)}, 'Carton_gris': {'main_port_id': 22134541, 'sub_port_id': 22134565, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14614913, 'last_updated_at': datetime.datetime(2025, 4, 8, 7, 20, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 8, 7, 20, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 8, 7, 8, 59)}, 'autre_refus': {'main_port_id': 22134541, 'sub_port_id': 22134567, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14614914, 'last_updated_at': datetime.datetime(2025, 4, 8, 7, 20, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 8, 7, 20, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 8, 7, 8, 59)}, 'Carton_brun': {'main_port_id': 22134541, 'sub_port_id': 22134568, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14614915, 'last_updated_at': datetime.datetime(2025, 4, 8, 7, 20, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 8, 7, 20, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 8, 7, 8, 59)}, 'metal': {'main_port_id': 22134541, 'sub_port_id': 22134569, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14614916, 'last_updated_at': datetime.datetime(2025, 4, 8, 7, 20, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 8, 7, 20, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 8, 7, 8, 59)}, 'cartonnette': {'main_port_id': 22134541, 'sub_port_id': 22134570, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14614917, 'last_updated_at': datetime.datetime(2025, 4, 8, 7, 20, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 8, 7, 20, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 8, 7, 8, 59)}, 'environnement': {'main_port_id': 22134541, 'sub_port_id': 22134571, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14614918, 'last_updated_at': datetime.datetime(2025, 4, 8, 7, 20, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 8, 7, 20, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 8, 7, 8, 59)}, 'mal_croppe': {'main_port_id': 22134541, 'sub_port_id': 22134572, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14614919, 'last_updated_at': datetime.datetime(2025, 4, 8, 7, 20, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 8, 7, 20, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 8, 7, 8, 59)}, 'flou': {'main_port_id': 22134541, 'sub_port_id': 22134573, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14614920, 'last_updated_at': datetime.datetime(2025, 4, 8, 7, 20, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 8, 7, 20, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 8, 7, 8, 59)}, 'papier': {'main_port_id': 22134541, 'sub_port_id': 22134574, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14614921, 'last_updated_at': datetime.datetime(2025, 4, 8, 7, 20, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 8, 7, 20, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 8, 7, 8, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 22134541, 'sub_port_id': 22134575, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14614922, 'last_updated_at': datetime.datetime(2025, 4, 8, 7, 20, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 8, 7, 20, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 8, 7, 8, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22134560 , 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=22134541 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 (22134560) result : ((1350544960,), (1350545178,), (1350545205,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22134541) result : ((1350543225,), (1350544014,), (1350544040,), (1350544064,), (1350544069,), (1350544369,), (1350544407,), (1350544414,), (1350544765,), (1350544786,), (1350544811,), (1350544912,), (1350544917,), (1350544921,), (1350544927,), (1350544936,), (1350544943,), (1350544952,), (1350544953,), (1350544955,), (1350544961,), (1350544962,), (1350544968,), (1350544998,), (1350545002,), (1350545004,), (1350545029,), (1350545044,), (1350545056,), (1350545062,), (1350545074,), (1350545080,), (1350545093,), (1350545107,), (1350545110,), (1350545114,), (1350545119,), (1350545129,), (1350545132,), (1350545148,), (1350545169,), (1350545172,), (1350545179,), (1350545215,), (1350545349,), (1350545377,), (1350545384,), (1350545387,), (1350545390,)) 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 22134562 , 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=22134541 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 (22134562) result : ((1350545154,), (1350545176,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22134541) result : ((1350543225,), (1350544014,), (1350544040,), (1350544064,), (1350544069,), (1350544369,), (1350544407,), (1350544414,), (1350544765,), (1350544786,), (1350544811,), (1350544912,), (1350544917,), (1350544921,), (1350544927,), (1350544936,), (1350544943,), (1350544952,), (1350544953,), (1350544955,), (1350544961,), (1350544962,), (1350544968,), (1350544998,), (1350545002,), (1350545004,), (1350545029,), (1350545044,), (1350545056,), (1350545062,), (1350545074,), (1350545080,), (1350545093,), (1350545107,), (1350545110,), (1350545114,), (1350545119,), (1350545129,), (1350545132,), (1350545148,), (1350545169,), (1350545172,), (1350545179,), (1350545215,), (1350545349,), (1350545377,), (1350545384,), (1350545387,), (1350545390,)) 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 22134565 , 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=22134541 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 (22134565) result : ((1350545141,), (1350545174,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22134541) result : ((1350543225,), (1350544014,), (1350544040,), (1350544064,), (1350544069,), (1350544369,), (1350544407,), (1350544414,), (1350544765,), (1350544786,), (1350544811,), (1350544912,), (1350544917,), (1350544921,), (1350544927,), (1350544936,), (1350544943,), (1350544952,), (1350544953,), (1350544955,), (1350544961,), (1350544962,), (1350544968,), (1350544998,), (1350545002,), (1350545004,), (1350545029,), (1350545044,), (1350545056,), (1350545062,), (1350545074,), (1350545080,), (1350545093,), (1350545107,), (1350545110,), (1350545114,), (1350545119,), (1350545129,), (1350545132,), (1350545148,), (1350545169,), (1350545172,), (1350545179,), (1350545215,), (1350545349,), (1350545377,), (1350545384,), (1350545387,), (1350545390,)) 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 22134567 , 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=22134541 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 (22134567) result : ((1350545134,), (1350545241,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22134541) result : ((1350543225,), (1350544014,), (1350544040,), (1350544064,), (1350544069,), (1350544369,), (1350544407,), (1350544414,), (1350544765,), (1350544786,), (1350544811,), (1350544912,), (1350544917,), (1350544921,), (1350544927,), (1350544936,), (1350544943,), (1350544952,), (1350544953,), (1350544955,), (1350544961,), (1350544962,), (1350544968,), (1350544998,), (1350545002,), (1350545004,), (1350545029,), (1350545044,), (1350545056,), (1350545062,), (1350545074,), (1350545080,), (1350545093,), (1350545107,), (1350545110,), (1350545114,), (1350545119,), (1350545129,), (1350545132,), (1350545148,), (1350545169,), (1350545172,), (1350545179,), (1350545215,), (1350545349,), (1350545377,), (1350545384,), (1350545387,), (1350545390,)) 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 22134568 , 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=22134541 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 (22134568) result : ((1350545139,), (1350545140,), (1350545146,), (1350545200,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22134541) result : ((1350543225,), (1350544014,), (1350544040,), (1350544064,), (1350544069,), (1350544369,), (1350544407,), (1350544414,), (1350544765,), (1350544786,), (1350544811,), (1350544912,), (1350544917,), (1350544921,), (1350544927,), (1350544936,), (1350544943,), (1350544952,), (1350544953,), (1350544955,), (1350544961,), (1350544962,), (1350544968,), (1350544998,), (1350545002,), (1350545004,), (1350545029,), (1350545044,), (1350545056,), (1350545062,), (1350545074,), (1350545080,), (1350545093,), (1350545107,), (1350545110,), (1350545114,), (1350545119,), (1350545129,), (1350545132,), (1350545148,), (1350545169,), (1350545172,), (1350545179,), (1350545215,), (1350545349,), (1350545377,), (1350545384,), (1350545387,), (1350545390,)) 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 22134569 , 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=22134541 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 (22134569) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22134541) result : ((1350543225,), (1350544014,), (1350544040,), (1350544064,), (1350544069,), (1350544369,), (1350544407,), (1350544414,), (1350544765,), (1350544786,), (1350544811,), (1350544912,), (1350544917,), (1350544921,), (1350544927,), (1350544936,), (1350544943,), (1350544952,), (1350544953,), (1350544955,), (1350544961,), (1350544962,), (1350544968,), (1350544998,), (1350545002,), (1350545004,), (1350545029,), (1350545044,), (1350545056,), (1350545062,), (1350545074,), (1350545080,), (1350545093,), (1350545107,), (1350545110,), (1350545114,), (1350545119,), (1350545129,), (1350545132,), (1350545148,), (1350545169,), (1350545172,), (1350545179,), (1350545215,), (1350545349,), (1350545377,), (1350545384,), (1350545387,), (1350545390,)) 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 22134570 , 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=22134541 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 (22134570) result : ((1350544957,), (1350544958,), (1350544959,), (1350545138,), (1350545198,), (1350545199,), (1350545357,), (1350545358,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22134541) result : ((1350543225,), (1350544014,), (1350544040,), (1350544064,), (1350544069,), (1350544369,), (1350544407,), (1350544414,), (1350544765,), (1350544786,), (1350544811,), (1350544912,), (1350544917,), (1350544921,), (1350544927,), (1350544936,), (1350544943,), (1350544952,), (1350544953,), (1350544955,), (1350544961,), (1350544962,), (1350544968,), (1350544998,), (1350545002,), (1350545004,), (1350545029,), (1350545044,), (1350545056,), (1350545062,), (1350545074,), (1350545080,), (1350545093,), (1350545107,), (1350545110,), (1350545114,), (1350545119,), (1350545129,), (1350545132,), (1350545148,), (1350545169,), (1350545172,), (1350545179,), (1350545215,), (1350545349,), (1350545377,), (1350545384,), (1350545387,), (1350545390,)) 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 22134571 , 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=22134541 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 (22134571) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22134541) result : ((1350543225,), (1350544014,), (1350544040,), (1350544064,), (1350544069,), (1350544369,), (1350544407,), (1350544414,), (1350544765,), (1350544786,), (1350544811,), (1350544912,), (1350544917,), (1350544921,), (1350544927,), (1350544936,), (1350544943,), (1350544952,), (1350544953,), (1350544955,), (1350544961,), (1350544962,), (1350544968,), (1350544998,), (1350545002,), (1350545004,), (1350545029,), (1350545044,), (1350545056,), (1350545062,), (1350545074,), (1350545080,), (1350545093,), (1350545107,), (1350545110,), (1350545114,), (1350545119,), (1350545129,), (1350545132,), (1350545148,), (1350545169,), (1350545172,), (1350545179,), (1350545215,), (1350545349,), (1350545377,), (1350545384,), (1350545387,), (1350545390,)) 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 22134572 , 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=22134541 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 (22134572) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22134541) result : ((1350543225,), (1350544014,), (1350544040,), (1350544064,), (1350544069,), (1350544369,), (1350544407,), (1350544414,), (1350544765,), (1350544786,), (1350544811,), (1350544912,), (1350544917,), (1350544921,), (1350544927,), (1350544936,), (1350544943,), (1350544952,), (1350544953,), (1350544955,), (1350544961,), (1350544962,), (1350544968,), (1350544998,), (1350545002,), (1350545004,), (1350545029,), (1350545044,), (1350545056,), (1350545062,), (1350545074,), (1350545080,), (1350545093,), (1350545107,), (1350545110,), (1350545114,), (1350545119,), (1350545129,), (1350545132,), (1350545148,), (1350545169,), (1350545172,), (1350545179,), (1350545215,), (1350545349,), (1350545377,), (1350545384,), (1350545387,), (1350545390,)) 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 22134573 , 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=22134541 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 (22134573) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22134541) result : ((1350543225,), (1350544014,), (1350544040,), (1350544064,), (1350544069,), (1350544369,), (1350544407,), (1350544414,), (1350544765,), (1350544786,), (1350544811,), (1350544912,), (1350544917,), (1350544921,), (1350544927,), (1350544936,), (1350544943,), (1350544952,), (1350544953,), (1350544955,), (1350544961,), (1350544962,), (1350544968,), (1350544998,), (1350545002,), (1350545004,), (1350545029,), (1350545044,), (1350545056,), (1350545062,), (1350545074,), (1350545080,), (1350545093,), (1350545107,), (1350545110,), (1350545114,), (1350545119,), (1350545129,), (1350545132,), (1350545148,), (1350545169,), (1350545172,), (1350545179,), (1350545215,), (1350545349,), (1350545377,), (1350545384,), (1350545387,), (1350545390,)) 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 22134574 , 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=22134541 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 (22134574) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22134541) result : ((1350543225,), (1350544014,), (1350544040,), (1350544064,), (1350544069,), (1350544369,), (1350544407,), (1350544414,), (1350544765,), (1350544786,), (1350544811,), (1350544912,), (1350544917,), (1350544921,), (1350544927,), (1350544936,), (1350544943,), (1350544952,), (1350544953,), (1350544955,), (1350544961,), (1350544962,), (1350544968,), (1350544998,), (1350545002,), (1350545004,), (1350545029,), (1350545044,), (1350545056,), (1350545062,), (1350545074,), (1350545080,), (1350545093,), (1350545107,), (1350545110,), (1350545114,), (1350545119,), (1350545129,), (1350545132,), (1350545148,), (1350545169,), (1350545172,), (1350545179,), (1350545215,), (1350545349,), (1350545377,), (1350545384,), (1350545387,), (1350545390,)) 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 22134575 , 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=22134541 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 (22134575) result : ((1350544956,), (1350545133,), (1350545135,), (1350545136,), (1350545137,), (1350545196,), (1350545234,), (1350545235,), (1350545339,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22134541) result : ((1350543225,), (1350544014,), (1350544040,), (1350544064,), (1350544069,), (1350544369,), (1350544407,), (1350544414,), (1350544765,), (1350544786,), (1350544811,), (1350544912,), (1350544917,), (1350544921,), (1350544927,), (1350544936,), (1350544943,), (1350544952,), (1350544953,), (1350544955,), (1350544961,), (1350544962,), (1350544968,), (1350544998,), (1350545002,), (1350545004,), (1350545029,), (1350545044,), (1350545056,), (1350545062,), (1350545074,), (1350545080,), (1350545093,), (1350545107,), (1350545110,), (1350545114,), (1350545119,), (1350545129,), (1350545132,), (1350545148,), (1350545169,), (1350545172,), (1350545179,), (1350545215,), (1350545349,), (1350545377,), (1350545384,), (1350545387,), (1350545390,)) 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`=22134541 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','plastique','cartonnette','metal','Teint_Dans_La_Masse','autre_refus','environnement','kraft','mal_croppe','Carton_gris','papier','flou')) 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`=22134541 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','plastique','cartonnette','metal','Teint_Dans_La_Masse','autre_refus','environnement','kraft','mal_croppe','Carton_gris','papier','flou')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 22134541, 'sub_port_id': 22134576, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14614923, 'last_updated_at': datetime.datetime(2025, 4, 8, 7, 9, 3), 'last_updated_at_desc': datetime.datetime(2025, 4, 8, 7, 9, 3), 'last_updated_at_asc': datetime.datetime(2025, 4, 8, 7, 9, 3)}, 'plastique': {'main_port_id': 22134541, 'sub_port_id': 22134577, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14614924, 'last_updated_at': datetime.datetime(2025, 4, 8, 7, 9, 3), 'last_updated_at_desc': datetime.datetime(2025, 4, 8, 7, 9, 3), 'last_updated_at_asc': datetime.datetime(2025, 4, 8, 7, 9, 3)}, 'Carton_gris': {'main_port_id': 22134541, 'sub_port_id': 22134578, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14614925, 'last_updated_at': datetime.datetime(2025, 4, 8, 7, 9, 3), 'last_updated_at_desc': datetime.datetime(2025, 4, 8, 7, 9, 3), 'last_updated_at_asc': datetime.datetime(2025, 4, 8, 7, 9, 3)}, 'autre_refus': {'main_port_id': 22134541, 'sub_port_id': 22134579, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14614926, 'last_updated_at': datetime.datetime(2025, 4, 8, 7, 9, 3), 'last_updated_at_desc': datetime.datetime(2025, 4, 8, 7, 9, 3), 'last_updated_at_asc': datetime.datetime(2025, 4, 8, 7, 9, 3)}, 'Carton_brun': {'main_port_id': 22134541, 'sub_port_id': 22134580, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14614927, 'last_updated_at': datetime.datetime(2025, 4, 8, 7, 9, 3), 'last_updated_at_desc': datetime.datetime(2025, 4, 8, 7, 9, 3), 'last_updated_at_asc': datetime.datetime(2025, 4, 8, 7, 9, 3)}, 'metal': {'main_port_id': 22134541, 'sub_port_id': 22134581, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14614928, 'last_updated_at': datetime.datetime(2025, 4, 8, 7, 9, 3), 'last_updated_at_desc': datetime.datetime(2025, 4, 8, 7, 9, 3), 'last_updated_at_asc': datetime.datetime(2025, 4, 8, 7, 9, 3)}, 'cartonnette': {'main_port_id': 22134541, 'sub_port_id': 22134582, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14614929, 'last_updated_at': datetime.datetime(2025, 4, 8, 7, 9, 3), 'last_updated_at_desc': datetime.datetime(2025, 4, 8, 7, 9, 3), 'last_updated_at_asc': datetime.datetime(2025, 4, 8, 7, 9, 3)}, 'environnement': {'main_port_id': 22134541, 'sub_port_id': 22134583, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14614930, 'last_updated_at': datetime.datetime(2025, 4, 8, 7, 9, 3), 'last_updated_at_desc': datetime.datetime(2025, 4, 8, 7, 9, 3), 'last_updated_at_asc': datetime.datetime(2025, 4, 8, 7, 9, 3)}, 'mal_croppe': {'main_port_id': 22134541, 'sub_port_id': 22134584, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14614931, 'last_updated_at': datetime.datetime(2025, 4, 8, 7, 9, 3), 'last_updated_at_desc': datetime.datetime(2025, 4, 8, 7, 9, 3), 'last_updated_at_asc': datetime.datetime(2025, 4, 8, 7, 9, 3)}, 'flou': {'main_port_id': 22134541, 'sub_port_id': 22134585, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14614932, 'last_updated_at': datetime.datetime(2025, 4, 8, 7, 9, 3), 'last_updated_at_desc': datetime.datetime(2025, 4, 8, 7, 9, 3), 'last_updated_at_asc': datetime.datetime(2025, 4, 8, 7, 9, 3)}, 'papier': {'main_port_id': 22134541, 'sub_port_id': 22134586, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14614933, 'last_updated_at': datetime.datetime(2025, 4, 8, 7, 9, 3), 'last_updated_at_desc': datetime.datetime(2025, 4, 8, 7, 9, 3), 'last_updated_at_asc': datetime.datetime(2025, 4, 8, 7, 9, 3)}, 'Teint_Dans_La_Masse': {'main_port_id': 22134541, 'sub_port_id': 22134587, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14614934, 'last_updated_at': datetime.datetime(2025, 4, 8, 7, 20, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 8, 7, 20, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 8, 7, 9, 3)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22134576,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22134560 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22134577,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22134562 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22134578,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22134565 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22134579,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22134567 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22134580,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22134568 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22134581,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22134569 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22134582,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22134570 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22134583,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22134571 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22134584,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22134572 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22134585,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22134573 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22134586,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22134574 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22134587,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22134575 lien utilise dans velours : https://www.fotonower.com/velours/22134576,22134577,22134578,22134579,22134580,22134581,22134582,22134583,22134584,22134585,22134586,22134587?tags=kraft,plastique,Carton_gris,autre_refus,Carton_brun,metal,cartonnette,environnement,mal_croppe,flou,papier,Teint_Dans_La_Masse After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22134541]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1350545390, 1350545387, 1350545384, 1350545377, 1350545349] map_info['map_portfolio_photo'] : {22134541: [1350545390, 1350545387, 1350545384, 1350545377, 1350545349, 1350545215, 1350545179, 1350545172, 1350545169, 1350545148, 1350545132, 1350545129, 1350545119, 1350545114, 1350545110, 1350545107, 1350545093, 1350545080, 1350545074, 1350545062, 1350545056, 1350545044, 1350545029, 1350545004, 1350545002, 1350544998, 1350544968, 1350544962, 1350544961, 1350544955, 1350544953, 1350544952, 1350544943, 1350544936, 1350544927, 1350544921, 1350544917, 1350544912, 1350544811, 1350544786, 1350544765, 1350544414, 1350544407, 1350544369, 1350544069, 1350544064, 1350544040, 1350544014, 1350543225]} final : False mtd_id 4302 list_pids : [1350545390, 1350545387, 1350545384, 1350545377, 1350545349] Looping around the photos to save general results len do output : 1 /22134541. 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, '2731557') ('4302', '22134541', '1350545390', None, None, None, None, None, '2731557') ('4302', None, None, None, None, None, None, None, '2731557') ('4302', '22134541', '1350545387', None, None, None, None, None, '2731557') ('4302', None, None, None, None, None, None, None, '2731557') ('4302', '22134541', '1350545384', None, None, None, None, None, '2731557') ('4302', None, None, None, None, None, None, None, '2731557') ('4302', '22134541', '1350545377', None, None, None, None, None, '2731557') ('4302', None, None, None, None, None, None, None, '2731557') ('4302', '22134541', '1350545349', None, None, None, None, None, '2731557') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 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, '22134541', "{'kraft': 22134560, 'plastique': 22134562, 'Carton_gris': 22134565, 'autre_refus': 22134567, 'Carton_brun': 22134568, 'metal': 22134569, 'cartonnette': 22134570, 'environnement': 22134571, 'mal_croppe': 22134572, 'flou': 22134573, 'papier': 22134574, 'Teint_Dans_La_Masse': 22134575}", None, None, None, None, '2731557'), ('4302', '22134541', '1350545390', None, None, None, None, None, '2731557'), ('4302', '22134541', '1350545387', None, None, None, None, None, '2731557'), ('4302', '22134541', '1350545384', None, None, None, None, None, '2731557'), ('4302', '22134541', '1350545377', None, None, None, None, None, '2731557'), ('4302', '22134541', '1350545349', None, None, None, None, None, '2731557')] time used for this insertion : 0.012171506881713867 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.3811795711517334 time spend to save output : 0.012384414672851562 total time spend for step 1 : 1.393563985824585 step2:final Tue Apr 8 07:23:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22134541) 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 22134541 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1350543225,1350544069,1350544064,1350544040,1350544014,1350544414,1350544407,1350544369,1350544811,1350544786,1350544765,1350545390,1350545387,1350545384,1350545377,1350545349,1350545215,1350545179,1350545172,1350545169,1350545148,1350545132,1350545129,1350545119,1350545114,1350545110,1350545107,1350545093,1350545080,1350545074,1350544943,1350545062,1350544936,1350545056,1350544927,1350545044,1350544921,1350545029,1350545004,1350544917,1350545002,1350544912,1350544968,1350544962,1350544961,1350544955,1350544953,1350544952,1350544998); 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([22134541]) Inside saveOutput : final : False verbose : True original output for save of step final : {1350545390: ('0.04811930915393692',), 1350545387: ('0.04811930915393692',), 1350545384: ('0.04811930915393692',), 1350545377: ('0.04811930915393692',), 1350545349: ('0.04811930915393692',)} new output for save of step final : {1350545390: ('0.04811930915393692',), 1350545387: ('0.04811930915393692',), 1350545384: ('0.04811930915393692',), 1350545377: ('0.04811930915393692',), 1350545349: ('0.04811930915393692',)} [1350545390, 1350545387, 1350545384, 1350545377, 1350545349] map_info['map_portfolio_photo'] : {22134541: [1350545390, 1350545387, 1350545384, 1350545377, 1350545349, 1350545215, 1350545179, 1350545172, 1350545169, 1350545148, 1350545132, 1350545129, 1350545119, 1350545114, 1350545110, 1350545107, 1350545093, 1350545080, 1350545074, 1350545062, 1350545056, 1350545044, 1350545029, 1350545004, 1350545002, 1350544998, 1350544968, 1350544962, 1350544961, 1350544955, 1350544953, 1350544952, 1350544943, 1350544936, 1350544927, 1350544921, 1350544917, 1350544912, 1350544811, 1350544786, 1350544765, 1350544414, 1350544407, 1350544369, 1350544069, 1350544064, 1350544040, 1350544014, 1350543225]} final : False mtd_id 4302 list_pids : [1350545390, 1350545387, 1350545384, 1350545377, 1350545349] Looping around the photos to save general results len do output : 5 /1350545390.Didn't retrieve data . /1350545387.Didn't retrieve data . /1350545384.Didn't retrieve data . /1350545377.Didn't retrieve data . /1350545349.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, '2731557') ('4302', '22134541', '1350545390', None, None, None, None, None, '2731557') ('4302', None, None, None, None, None, None, None, '2731557') ('4302', '22134541', '1350545387', None, None, None, None, None, '2731557') ('4302', None, None, None, None, None, None, None, '2731557') ('4302', '22134541', '1350545384', None, None, None, None, None, '2731557') ('4302', None, None, None, None, None, None, None, '2731557') ('4302', '22134541', '1350545377', None, None, None, None, None, '2731557') ('4302', None, None, None, None, None, None, None, '2731557') ('4302', '22134541', '1350545349', None, None, None, None, None, '2731557') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22134541', '1350545390', '0.04811930915393692', None, None, None, None, '2731557'), ('4302', '22134541', '1350545387', '0.04811930915393692', None, None, None, None, '2731557'), ('4302', '22134541', '1350545384', '0.04811930915393692', None, None, None, None, '2731557'), ('4302', '22134541', '1350545377', '0.04811930915393692', None, None, None, None, '2731557'), ('4302', '22134541', '1350545349', '0.04811930915393692', None, None, None, None, '2731557')] time used for this insertion : 0.013209104537963867 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06621456146240234 time spend to save output : 0.013554573059082031 total time spend for step 2 : 0.07976913452148438 step3:velours_tree Tue Apr 8 07:23:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {22134541: [{'kraft': 22134560, 'plastique': 22134562, 'Carton_gris': 22134565, 'autre_refus': 22134567, 'Carton_brun': 22134568, 'metal': 22134569, 'cartonnette': 22134570, 'environnement': 22134571, 'mal_croppe': 22134572, 'flou': 22134573, 'papier': 22134574, 'Teint_Dans_La_Masse': 22134575}]} input_args_next_step : {22134541: ()} output_args : {22134541: [{'kraft': 22134560, 'plastique': 22134562, 'Carton_gris': 22134565, 'autre_refus': 22134567, 'Carton_brun': 22134568, 'metal': 22134569, 'cartonnette': 22134570, 'environnement': 22134571, 'mal_croppe': 22134572, 'flou': 22134573, 'papier': 22134574, 'Teint_Dans_La_Masse': 22134575}]} args : 22134541 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 : ({'kraft': 22134560, 'plastique': 22134562, 'Carton_gris': 22134565, 'autre_refus': 22134567, 'Carton_brun': 22134568, 'metal': 22134569, 'cartonnette': 22134570, 'environnement': 22134571, 'mal_croppe': 22134572, 'flou': 22134573, 'papier': 22134574, 'Teint_Dans_La_Masse': 22134575},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22134541) 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([22134541]) 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.3116476535797119 time spend to save output : 6.008148193359375e-05 total time spend for step 3 : 0.3117077350616455 step4:send_mail_cod Tue Apr 8 07:23:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1350545390: ('0.04811930915393692',), 1350545387: ('0.04811930915393692',), 1350545384: ('0.04811930915393692',), 1350545377: ('0.04811930915393692',), 1350545349: ('0.04811930915393692',)} input_args_next_step : {1350545390: ()} output_args : {1350545390: ('0.04811930915393692',), 1350545387: ('0.04811930915393692',), 1350545384: ('0.04811930915393692',), 1350545377: ('0.04811930915393692',), 1350545349: ('0.04811930915393692',)} args : 1350545390 depend.output_id : 0 input_args_next_step : {1350545390: ('0.04811930915393692',), 1350545387: ()} output_args : {1350545390: ('0.04811930915393692',), 1350545387: ('0.04811930915393692',), 1350545384: ('0.04811930915393692',), 1350545377: ('0.04811930915393692',), 1350545349: ('0.04811930915393692',)} args : 1350545387 depend.output_id : 0 input_args_next_step : {1350545390: ('0.04811930915393692',), 1350545387: ('0.04811930915393692',), 1350545384: ()} output_args : {1350545390: ('0.04811930915393692',), 1350545387: ('0.04811930915393692',), 1350545384: ('0.04811930915393692',), 1350545377: ('0.04811930915393692',), 1350545349: ('0.04811930915393692',)} args : 1350545384 depend.output_id : 0 input_args_next_step : {1350545390: ('0.04811930915393692',), 1350545387: ('0.04811930915393692',), 1350545384: ('0.04811930915393692',), 1350545377: ()} output_args : {1350545390: ('0.04811930915393692',), 1350545387: ('0.04811930915393692',), 1350545384: ('0.04811930915393692',), 1350545377: ('0.04811930915393692',), 1350545349: ('0.04811930915393692',)} args : 1350545377 depend.output_id : 0 input_args_next_step : {1350545390: ('0.04811930915393692',), 1350545387: ('0.04811930915393692',), 1350545384: ('0.04811930915393692',), 1350545377: ('0.04811930915393692',), 1350545349: ()} output_args : {1350545390: ('0.04811930915393692',), 1350545387: ('0.04811930915393692',), 1350545384: ('0.04811930915393692',), 1350545377: ('0.04811930915393692',), 1350545349: ('0.04811930915393692',)} args : 1350545349 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 : {22134541: [{'kraft': 22134560, 'plastique': 22134562, 'Carton_gris': 22134565, 'autre_refus': 22134567, 'Carton_brun': 22134568, 'metal': 22134569, 'cartonnette': 22134570, 'environnement': 22134571, 'mal_croppe': 22134572, 'flou': 22134573, 'papier': 22134574, 'Teint_Dans_La_Masse': 22134575}]} input_args_next_step : {1350545390: ('0.04811930915393692',), 1350545387: ('0.04811930915393692',), 1350545384: ('0.04811930915393692',), 1350545377: ('0.04811930915393692',), 1350545349: ('0.04811930915393692',), 22134541: ()} output_args : {22134541: [{'kraft': 22134560, 'plastique': 22134562, 'Carton_gris': 22134565, 'autre_refus': 22134567, 'Carton_brun': 22134568, 'metal': 22134569, 'cartonnette': 22134570, 'environnement': 22134571, 'mal_croppe': 22134572, 'flou': 22134573, 'papier': 22134574, 'Teint_Dans_La_Masse': 22134575}]} args : 22134541 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 :6, first value : ('0.04811930915393692',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22134541) 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 (1350545390,1350545387,1350545384,1350545377,1350545349) Found this number of photos: 5 ##### Call download_photos : nb_thread : 5 begin to download photo : 1350545349 begin to download photo : 1350545384 begin to download photo : 1350545390 download finish for photo 1350545390 download finish for photo 1350545349 begin to download photo : 1350545377 download finish for photo 1350545384 begin to download photo : 1350545387 download finish for photo 1350545377 download finish for photo 1350545387 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 5 ; length of list_pids : 5 ; length of list_args : 5 results_Auto_P22134541_08-04-2025_07_23_01.pdf 22134560 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=22134560 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350544960: '1744089332_1865207_1350544014_3ea57b303e1dfabd244861850ec24103_rle_crop_3750387654_0.png', 1350545178: '1744089532_1866942_1350544968_046144ef4db635493d83bf3a05df8316_rle_crop_3750388911_0.png', 1350545205: '1744089551_1867243_1350544765_229ccdf7b72ff4bc714271f9e431af54_rle_crop_3750389442_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/cc201579010d0eb6d250032e05735e9a_69315086.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/91ef08144351ec72bff0c7884ff807fe_30431827.png change filename to text .imagette221345601744089781/ imagette221345601744089781/1744089332_1865207_1350544014_3ea57b303e1dfabd244861850ec24103_rle_crop_3750387654_0.png.png imagette221345601744089781/1744089551_1867243_1350544765_229ccdf7b72ff4bc714271f9e431af54_rle_crop_3750389442_0.png.png imagette221345601744089781/1744089532_1866942_1350544968_046144ef4db635493d83bf3a05df8316_rle_crop_3750388911_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/31e217d7aa04bf840a8f6eaad503a2b3_97445247.png imagette221345601744089781 22134562 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=22134562 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350545154: '1744089506_1603222_1350544962_e6d8cb96c53d3ebf757c6034a8609994_rle_crop_3750388762_0.png', 1350545176: '1744089532_1866942_1350544968_046144ef4db635493d83bf3a05df8316_rle_crop_3750388917_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/548648ad74cdf8c343a2187f481a70a2_20676385.png change filename to text .imagette221345621744089782/ imagette221345621744089782/1744089532_1866942_1350544968_046144ef4db635493d83bf3a05df8316_rle_crop_3750388917_0.png.png imagette221345621744089782/1744089506_1603222_1350544962_e6d8cb96c53d3ebf757c6034a8609994_rle_crop_3750388762_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/ab48273038496db819c21bb06052eb0a_25829168.png imagette221345621744089782 22134567 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=22134567 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350545134: '1744089511_1866758_1350544927_fda2c8001d83ef517acd13bc2ba8f41e_rle_crop_3750388900_0.png', 1350545241: '1744089573_1867538_1350544369_373dd9adeb5763197e44c0c19aa9bd33_rle_crop_3750389552_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/134a66b3f4febe42b81720061adc7eae_66097788.png change filename to text .imagette221345671744089782/ imagette221345671744089782/1744089511_1866758_1350544927_fda2c8001d83ef517acd13bc2ba8f41e_rle_crop_3750388900_0.png.png imagette221345671744089782/1744089573_1867538_1350544369_373dd9adeb5763197e44c0c19aa9bd33_rle_crop_3750389552_0.png.png imagette221345691744089782/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/9b0779e7c4b282608121a9d4bb7bf8fe_31491599.png imagette221345671744089782 22134569 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=22134569 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221345691744089782 22134570 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=22134570 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350544957: '1744089332_1865207_1350544064_264c12d73047abf27d973a9df4251352_rle_crop_3750387632_0.png', 1350544958: '1744089332_1865207_1350544040_3bac642fbcf60b44fba1f261eaac31b9_rle_crop_3750387641_0.png', 1350544959: '1744089332_1865207_1350544014_3ea57b303e1dfabd244861850ec24103_rle_crop_3750387656_0.png', 1350545138: '1744089511_1866758_1350544927_fda2c8001d83ef517acd13bc2ba8f41e_rle_crop_3750388893_0.png', 1350545198: '1744089551_1867243_1350544765_229ccdf7b72ff4bc714271f9e431af54_rle_crop_3750389444_0.png', 1350545199: '1744089551_1867243_1350544765_229ccdf7b72ff4bc714271f9e431af54_rle_crop_3750389443_0.png', 1350545357: '1744089591_1867811_1350544069_3b2241ff60706cabff3dc39c71d083aa_rle_crop_3750389614_0.png', 1350545358: '1744089591_1867811_1350543225_e450d29b95131cc16fe475ebd3c46706_rle_crop_3750389623_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/b3036e540781e5916426dd800a932569_99580108.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/c4686df1c79bd16a21e23d61d11af89d_80570699.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/5b4e1da60cfe153f6883ba8f474bfc5f_90293030.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/971ef5087284628b5ee1308639aab76f_38674129.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/9e5747756ccd86c16eb3f2a8028ac9fd_7485832.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/c4afa4e6ba2320a8398b9ee50fc24f20_65382840.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/e521b40f5da718f571d89c8524912937_46917221.png change filename to text .imagette221345701744089782/ imagette221345701744089782/1744089332_1865207_1350544064_264c12d73047abf27d973a9df4251352_rle_crop_3750387632_0.png.png imagette221345701744089782/1744089551_1867243_1350544765_229ccdf7b72ff4bc714271f9e431af54_rle_crop_3750389444_0.png.png imagette221345701744089782/1744089332_1865207_1350544014_3ea57b303e1dfabd244861850ec24103_rle_crop_3750387656_0.png.png imagette221345701744089782/1744089551_1867243_1350544765_229ccdf7b72ff4bc714271f9e431af54_rle_crop_3750389443_0.png.png imagette221345701744089782/1744089591_1867811_1350544069_3b2241ff60706cabff3dc39c71d083aa_rle_crop_3750389614_0.png.png imagette221345701744089782/1744089591_1867811_1350543225_e450d29b95131cc16fe475ebd3c46706_rle_crop_3750389623_0.png.png imagette221345701744089782/1744089332_1865207_1350544040_3bac642fbcf60b44fba1f261eaac31b9_rle_crop_3750387641_0.png.png imagette221345701744089782/1744089511_1866758_1350544927_fda2c8001d83ef517acd13bc2ba8f41e_rle_crop_3750388893_0.png.png imagette221345721744089782/ imagette221345731744089782/ wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/5c3b30b191b533c56e68a65a43487b65_55570224.png imagette221345701744089782 22134572 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=22134572 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221345721744089782 22134573 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=22134573 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221345731744089782 22134565 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=22134565 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350545141: '1744089506_1603222_1350544952_eadd9eb4a5028a2c32e5ef29fa46c986_rle_crop_3750388847_0.png', 1350545174: '1744089532_1866942_1350544912_d39231ffd834ef0ab5014a04eb353f45_rle_crop_3750388925_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/82e41681bfe77bf46eb0a931ae04cccb_13125222.png change filename to text .imagette221345651744089782/ imagette221345651744089782/1744089532_1866942_1350544912_d39231ffd834ef0ab5014a04eb353f45_rle_crop_3750388925_0.png.png imagette221345651744089782/1744089506_1603222_1350544952_eadd9eb4a5028a2c32e5ef29fa46c986_rle_crop_3750388847_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/9ce05c772e63db5c3c368d44396025bc_15525448.png imagette221345651744089782 22134568 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=22134568 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350545139: '1744089511_1866758_1350544943_67d1a39fea4eb28d39ef4a96c95a2210_rle_crop_3750388808_0.png', 1350545140: '1744089511_1866758_1350544936_a2b5f90157ea2c130f0f1f0ed8ea006e_rle_crop_3750388835_0.png', 1350545146: '1744089506_1603222_1350544953_717dfdc1ef7a7670970e9a3ecc4a93c9_rle_crop_3750388815_0.png', 1350545200: '1744089551_1867243_1350544786_18ea4a22334f3bd0b6d5715ae566134e_rle_crop_3750389436_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/35f5b31a861c98379541218b867aa4dc_9142243.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/7efb5c6da43b3ad361d48e9d9108bceb_15594203.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/0e5bbf05823136cbc09162e4bcee284d_74952601.png change filename to text .imagette221345681744089782/ imagette221345681744089782/1744089506_1603222_1350544953_717dfdc1ef7a7670970e9a3ecc4a93c9_rle_crop_3750388815_0.png.png imagette221345681744089782/1744089511_1866758_1350544943_67d1a39fea4eb28d39ef4a96c95a2210_rle_crop_3750388808_0.png.png imagette221345681744089782/1744089551_1867243_1350544786_18ea4a22334f3bd0b6d5715ae566134e_rle_crop_3750389436_0.png.png imagette221345681744089782/1744089511_1866758_1350544936_a2b5f90157ea2c130f0f1f0ed8ea006e_rle_crop_3750388835_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/5994e1b8a48d5fa098df93a693de29ad_77624523.png imagette221345681744089782 22134575 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=22134575 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350544956: '1744089332_1865207_1350544064_264c12d73047abf27d973a9df4251352_rle_crop_3750387630_0.png', 1350545133: '1744089511_1866758_1350544936_a2b5f90157ea2c130f0f1f0ed8ea006e_rle_crop_3750388837_0.png', 1350545135: '1744089506_1603222_1350544962_e6d8cb96c53d3ebf757c6034a8609994_rle_crop_3750388759_0.png', 1350545136: '1744089506_1603222_1350544955_b1a0182b5b3b52dd4cd7977ed5ff96f9_rle_crop_3750388787_0.png', 1350545137: '1744089506_1603222_1350544953_717dfdc1ef7a7670970e9a3ecc4a93c9_rle_crop_3750388822_0.png', 1350545196: '1744089551_1867243_1350544786_18ea4a22334f3bd0b6d5715ae566134e_rle_crop_3750389433_0.png', 1350545234: '1744089573_1867538_1350544407_6a81df9003bc05f1a8921c60e5eff8ad_rle_crop_3750389541_0.png', 1350545235: '1744089573_1867538_1350544369_373dd9adeb5763197e44c0c19aa9bd33_rle_crop_3750389554_0.png', 1350545339: '1744089591_1867811_1350544069_3b2241ff60706cabff3dc39c71d083aa_rle_crop_3750389611_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/a73ae5e8367e384b6627ac631369879b_32341233.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/a0b04b602b01d9a5f5cbaf7a52adb2b3_59144693.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/b49f6606bfa566238112303046cbbaec_34229190.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/861bcf8a786c7194a75a49d5be25dced_84722835.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/2b4ea68b06ded6112ace7906bb571fdf_11889896.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/94cd58718799544d461e74348014ec3b_94150684.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/9484ca8159748e9b18985389f2e3d9c8_91565298.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/58a4929505af8e1f9e15808d740f5272_97798233.png change filename to text .imagette221345751744089783/ imagette221345751744089783/1744089573_1867538_1350544369_373dd9adeb5763197e44c0c19aa9bd33_rle_crop_3750389554_0.png.png imagette221345751744089783/1744089332_1865207_1350544064_264c12d73047abf27d973a9df4251352_rle_crop_3750387630_0.png.png imagette221345751744089783/1744089506_1603222_1350544953_717dfdc1ef7a7670970e9a3ecc4a93c9_rle_crop_3750388822_0.png.png imagette221345751744089783/1744089511_1866758_1350544936_a2b5f90157ea2c130f0f1f0ed8ea006e_rle_crop_3750388837_0.png.png imagette221345751744089783/1744089551_1867243_1350544786_18ea4a22334f3bd0b6d5715ae566134e_rle_crop_3750389433_0.png.png imagette221345751744089783/1744089573_1867538_1350544407_6a81df9003bc05f1a8921c60e5eff8ad_rle_crop_3750389541_0.png.png imagette221345751744089783/1744089506_1603222_1350544962_e6d8cb96c53d3ebf757c6034a8609994_rle_crop_3750388759_0.png.png imagette221345751744089783/1744089506_1603222_1350544955_b1a0182b5b3b52dd4cd7977ed5ff96f9_rle_crop_3750388787_0.png.png imagette221345751744089783/1744089591_1867811_1350544069_3b2241ff60706cabff3dc39c71d083aa_rle_crop_3750389611_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/e16d8201e58c4ced6dc62ca3bc7b7c33_16842271.png imagette221345751744089783 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22134541 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22134576,22134577,22134578,22134579,22134580,22134581,22134582,22134583,22134584,22134585,22134586,22134587?tags=kraft,plastique,Carton_gris,autre_refus,Carton_brun,metal,cartonnette,environnement,mal_croppe,flou,papier,Teint_Dans_La_Masse your option no_mail is active, we will not send the real mail to your client args[1350545390] : ('0.04811930915393692',) no score found for photo 1350545390 We are sending mail with results at report@fotonower.com args[1350545387] : ('0.04811930915393692',) no score found for photo 1350545387 We are sending mail with results at report@fotonower.com args[1350545384] : ('0.04811930915393692',) no score found for photo 1350545384 We are sending mail with results at report@fotonower.com args[1350545377] : ('0.04811930915393692',) no score found for photo 1350545377 We are sending mail with results at report@fotonower.com args[1350545349] : ('0.04811930915393692',) no score found for photo 1350545349 We are sending mail with results at report@fotonower.com refus_total : 0.04811930915393692 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=22134541 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_P22134541_08-04-2025_07_23_01.pdf results_Auto_P22134541_08-04-2025_07_23_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22134541_08-04-2025_07_23_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','22134541','results_Auto_P22134541_08-04-2025_07_23_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22134541_08-04-2025_07_23_01.pdf','pdf','','0.14','0.04811930915393692') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22134541]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1350545390, 1350545387, 1350545384, 1350545377, 1350545349] map_info['map_portfolio_photo'] : {22134541: [1350545390, 1350545387, 1350545384, 1350545377, 1350545349, 1350545215, 1350545179, 1350545172, 1350545169, 1350545148, 1350545132, 1350545129, 1350545119, 1350545114, 1350545110, 1350545107, 1350545093, 1350545080, 1350545074, 1350545062, 1350545056, 1350545044, 1350545029, 1350545004, 1350545002, 1350544998, 1350544968, 1350544962, 1350544961, 1350544955, 1350544953, 1350544952, 1350544943, 1350544936, 1350544927, 1350544921, 1350544917, 1350544912, 1350544811, 1350544786, 1350544765, 1350544414, 1350544407, 1350544369, 1350544069, 1350544064, 1350544040, 1350544014, 1350543225]} final : False mtd_id 4302 list_pids : [1350545390, 1350545387, 1350545384, 1350545377, 1350545349] 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, '2731557') ('4302', '22134541', '1350545390', None, None, None, None, None, '2731557') ('4302', None, None, None, None, None, None, None, '2731557') ('4302', '22134541', '1350545387', None, None, None, None, None, '2731557') ('4302', None, None, None, None, None, None, None, '2731557') ('4302', '22134541', '1350545384', None, None, None, None, None, '2731557') ('4302', None, None, None, None, None, None, None, '2731557') ('4302', '22134541', '1350545377', None, None, None, None, None, '2731557') ('4302', None, None, None, None, None, None, None, '2731557') ('4302', '22134541', '1350545349', None, None, None, None, None, '2731557') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 5 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', '22134541', '1350545390', None, None, None, None, None, '2731557'), ('4302', '22134541', '1350545387', None, None, None, None, None, '2731557'), ('4302', '22134541', '1350545384', None, None, None, None, None, '2731557'), ('4302', '22134541', '1350545377', None, None, None, None, None, '2731557'), ('4302', '22134541', '1350545349', None, None, None, None, None, '2731557')] time used for this insertion : 0.012677192687988281 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.9073216915130615 time spend to save output : 0.012900352478027344 total time spend for step 4 : 2.920222043991089 step5:split_time_score Tue Apr 8 07:23:04 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['22134541'] 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 : [('22134541',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22134541) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1350545390: {'path': 'temp/1744089781_73211_1350545390_2cc2fe02a9163748dbe772fbafaaef8d.jpg', 'extension': 'jpg'}, 1350545349: {'path': 'temp/1744089781_73211_1350545349_d32fff5b61c493c880eef798180e3628.jpg', 'extension': 'jpg'}, 1350545377: {'path': 'temp/1744089781_73211_1350545377_36afb96d3ee6d6daef71fbb910da532b.jpg', 'extension': 'jpg'}, 1350545384: {'path': 'temp/1744089781_73211_1350545384_f075b5f1d1b8c53b253704b9a68cd318.jpg', 'extension': 'jpg'}, 1350545387: {'path': 'temp/1744089781_73211_1350545387_a4cc3dfcd31d8f4664123cd28b7f591c.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 = 22134541; (('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 = 22134541 group by h (('07', 49),) 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=22134541 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 (22134541) 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 (22134541) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 08042025 22134541 Nombre de photos uploadées : 49 / 23040 (0%) 08042025 22134541 Nombre de photos taguées (types de déchets): 0 / 49 (0%) 08042025 22134541 Nombre de photos taguées (volume) : 0 / 49 (0%) [{'photo_id': 1350543225, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/e450d29b95131cc16fe475ebd3c46706.jpg', 'username': None, 'uploaded_at': 1744088767, 'text': 'image_08042025_07_05_14_10137.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1350544069, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/3b2241ff60706cabff3dc39c71d083aa.jpg', 'username': None, 'uploaded_at': 1744088832, 'text': 'image_08042025_07_05_54_10138.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1350544064, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/264c12d73047abf27d973a9df4251352.jpg', 'username': None, 'uploaded_at': 1744088832, 'text': 'image_08042025_07_06_24_010134m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1350544040, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/3bac642fbcf60b44fba1f261eaac31b9.jpg', 'username': None, 'uploaded_at': 1744088832, 'text': 'image_08042025_07_06_34_010140m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 5.7220458984375e-06 elapsed_time : order_list_meta_photo_and_scores 1.049041748046875e-05 ????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.004149436950683594 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22134541, '2025-04-08' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1722494,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.022821426391601562 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= 1722494 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1722494, 'dashboard_run_id': 1731009, 'mtr_portfolio_id': 22133542, 'dashboard_result_id': 9926160, '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_P22133542_08-04-2025_06_46_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22133590, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22133591, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22133592, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22133593, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22133594, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22133595, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22133596, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22133597, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22133598, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22133599, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22133600, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22133601, 'pht': 3726}}"}, {'dashboat_entry_day': 1722494, 'dashboard_run_id': 1731009, 'mtr_portfolio_id': 22133903, 'dashboard_result_id': 9926161, '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_P22133903_08-04-2025_07_07_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22133931, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22133932, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22133933, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22133934, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22133935, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22133936, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22133937, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22133938, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22133939, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22133940, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22133941, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22133942, 'pht': 3726}}"}, {'dashboat_entry_day': 1722494, 'dashboard_run_id': 1731009, 'mtr_portfolio_id': 22134541, 'dashboard_result_id': 9926162, '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_P22134541_08-04-2025_07_20_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22134560, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22134562, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22134565, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22134567, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22134568, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22134569, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22134570, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22134571, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22134572, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22134573, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22134574, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22134575, 'pht': 3726}}"}, {'dashboat_entry_day': 1722494, 'dashboard_run_id': 1731009, 'mtr_portfolio_id': 22134675, 'dashboard_result_id': 9926163, '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_P22134675_08-04-2025_07_21_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22134724, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22134725, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22134726, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22134727, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22134728, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22134729, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22134730, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22134731, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22134732, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22134733, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22134734, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22134735, '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 = 22133542 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': 2731416, 'mtr_portfolio_id': 22133542, 'created_at': datetime.datetime(2025, 4, 8, 6, 46, 57), 'result': '0.05908386718722602', 'result_long': None, 'result_double': None}] Qualite : 0.05908386718722602 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22133542 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22133542_08-04-2025_06_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22133542 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_P22133542_08-04-2025_06_46_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22133590, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22133591, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22133592, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22133593, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22133594, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22133595, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22133596, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22133597, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22133598, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22133599, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22133600, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22133601, 'pht': 3726}}" where mtr_portfolio_id = 22133542 and dashboard_run_id = 1731009 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`=22133542 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9926160, 0.05908386718722602, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22133542_08-04-2025_06_46_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22133590, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22133591, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22133592, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22133593, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22133594, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22133595, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22133596, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22133597, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22133598, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22133599, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22133600, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22133601, '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 = 22133903 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': 2731442, 'mtr_portfolio_id': 22133903, 'created_at': datetime.datetime(2025, 4, 8, 7, 7, 2), 'result': '0.02432890207536342', 'result_long': None, 'result_double': None}] Qualite : 0.02432890207536342 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22133903 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22133903_08-04-2025_07_07_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22133903 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_P22133903_08-04-2025_07_07_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22133931, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22133932, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22133933, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22133934, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22133935, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22133936, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22133937, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22133938, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22133939, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22133940, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22133941, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22133942, 'pht': 3726}}" where mtr_portfolio_id = 22133903 and dashboard_run_id = 1731009 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`=22133903 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9926161, 0.02432890207536342, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22133903_08-04-2025_07_07_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22133931, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22133932, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22133933, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22133934, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22133935, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22133936, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22133937, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22133938, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22133939, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22133940, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22133941, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22133942, '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 = 22134541 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': 2731557, 'mtr_portfolio_id': 22134541, 'created_at': datetime.datetime(2025, 4, 8, 7, 23, 1), 'result': '0.04811930915393692', 'result_long': None, 'result_double': None}] Qualite : 0.04811930915393692 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22134541 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22134541_08-04-2025_07_23_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22134541 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_P22134541_08-04-2025_07_23_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22134560, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22134562, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22134565, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22134567, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22134568, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22134569, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22134570, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22134571, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22134572, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22134573, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22134574, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22134575, 'pht': 3726}}" where mtr_portfolio_id = 22134541 and dashboard_run_id = 1731009 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`=22134541 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9926162, 0.04811930915393692, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22134541_08-04-2025_07_23_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22134560, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22134562, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22134565, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22134567, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22134568, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22134569, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22134570, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22134571, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22134572, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22134573, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22134574, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22134575, '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 = 22134675 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 22134675 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 22134675 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22134675 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22134675 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22134675 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22134675_08-04-2025_07_21_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22134675 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_P22134675_08-04-2025_07_21_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22134724, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22134725, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22134726, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22134727, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22134728, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22134729, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22134730, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22134731, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22134732, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22134733, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22134734, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22134735, 'pht': 3726}}" where mtr_portfolio_id = 22134675 and dashboard_run_id = 1731009 SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22133542,22133903,22134541,22134675) result : ((1350537690,), (1350537693,), (1350537696,), (1350537852,), (1350537855,), (1350537858,), (1350537883,), (1350537889,), (1350537952,), (1350537955,), (1350537959,), (1350537965,), (1350538042,), (1350538047,), (1350538048,), (1350538059,), (1350538087,), (1350538100,), (1350538126,), (1350538144,), (1350538165,), (1350538184,), (1350538282,), (1350538291,), (1350538300,), (1350538307,), (1350538352,), (1350538355,), (1350538359,), (1350538362,), (1350538364,), (1350538420,), (1350538430,), (1350538444,), (1350538556,), (1350538813,), (1350538815,), (1350538818,), (1350538820,), (1350538822,), (1350538826,), (1350538859,), (1350538862,), (1350538876,), (1350538953,), (1350538954,), (1350538955,), (1350538956,), (1350538959,), (1350539110,), (1350539133,), (1350539147,), (1350539161,), (1350539165,), (1350539168,), (1350539275,), (1350539273,), (1350539316,), (1350539317,), (1350539318,), (1350539319,), (1350539321,), (1350539348,), (1350539354,), (1350539363,), (1350539602,), (1350539610,), (1350539611,), (1350539612,), (1350539665,), (1350539670,), (1350539673,), (1350539720,), (1350539724,), (1350539726,), (1350539730,), (1350539733,), (1350539818,), (1350539822,), (1350539826,), (1350539842,), (1350539864,), (1350539944,), (1350539946,), (1350539949,), (1350539953,), (1350539980,), (1350539981,), (1350540035,), (1350540202,), (1350540338,), (1350540815,), (1350543373,), (1350543225,), (1350544014,), (1350544040,), (1350544064,), (1350544069,), (1350544369,), (1350544407,), (1350544414,), (1350544765,), (1350544786,), (1350544811,), (1350544912,), (1350544917,), (1350544921,), (1350544927,), (1350544936,), (1350544943,), (1350544952,), (1350544953,), (1350544955,), (1350544961,), (1350544962,), (1350544968,), (1350544998,), (1350545002,), (1350545004,), (1350545029,), (1350545044,), (1350545056,), (1350545062,), (1350545074,), (1350545080,), (1350545093,), (1350545107,), (1350545110,), (1350545114,), (1350545119,), (1350545129,), (1350545132,), (1350545148,), (1350545169,), (1350545172,), (1350545179,), (1350545215,), (1350545349,), (1350545377,), (1350545384,), (1350545387,), (1350545390,), (1350544981,), (1350544985,), (1350544992,), (1350545013,), (1350545014,), (1350545018,), (1350545021,), (1350545025,), (1350545101,), (1350545104,), (1350545190,), (1350545194,), (1350545201,), (1350545207,), (1350545211,), (1350545249,), (1350545268,), (1350545287,), (1350545309,), (1350545330,), (1350545398,), (1350545414,), (1350545419,), (1350545425,), (1350545430,), (1350545436,), (1350545459,), (1350545461,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'08042025': {'nb_upload': 49, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22134541]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1350545390, 1350545387, 1350545384, 1350545377, 1350545349] map_info['map_portfolio_photo'] : {22134541: [1350545390, 1350545387, 1350545384, 1350545377, 1350545349, 1350545215, 1350545179, 1350545172, 1350545169, 1350545148, 1350545132, 1350545129, 1350545119, 1350545114, 1350545110, 1350545107, 1350545093, 1350545080, 1350545074, 1350545062, 1350545056, 1350545044, 1350545029, 1350545004, 1350545002, 1350544998, 1350544968, 1350544962, 1350544961, 1350544955, 1350544953, 1350544952, 1350544943, 1350544936, 1350544927, 1350544921, 1350544917, 1350544912, 1350544811, 1350544786, 1350544765, 1350544414, 1350544407, 1350544369, 1350544069, 1350544064, 1350544040, 1350544014, 1350543225]} final : True mtd_id 4302 list_pids : [1350545390, 1350545387, 1350545384, 1350545377, 1350545349] Looping around the photos to save general results len do output : 1 /22134541Didn'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, '2731557') ('4302', '22134541', '1350545390', None, None, None, None, None, '2731557') ('4302', None, None, None, None, None, None, None, '2731557') ('4302', '22134541', '1350545387', None, None, None, None, None, '2731557') ('4302', None, None, None, None, None, None, None, '2731557') ('4302', '22134541', '1350545384', None, None, None, None, None, '2731557') ('4302', None, None, None, None, None, None, None, '2731557') ('4302', '22134541', '1350545377', None, None, None, None, None, '2731557') ('4302', None, None, None, None, None, None, None, '2731557') ('4302', '22134541', '1350545349', None, None, None, None, None, '2731557') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 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, '22134541', 'None', None, None, None, None, '2731557'), ('4302', '22134541', '1350545390', None, None, None, None, None, '2731557'), ('4302', '22134541', '1350545387', None, None, None, None, None, '2731557'), ('4302', '22134541', '1350545384', None, None, None, None, None, '2731557'), ('4302', '22134541', '1350545377', None, None, None, None, None, '2731557'), ('4302', '22134541', '1350545349', None, None, None, None, None, '2731557')] time used for this insertion : 0.01368260383605957 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.42575907707214355 time spend to save output : 0.013901710510253906 total time spend for step 5 : 0.43966078758239746 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 (2731557) 1.87user 2.21system 0:09.06elapsed 45%CPU (0avgtext+0avgdata 157604maxresident)k 928inputs+6880outputs (17major+63774minor)pagefaults 0swaps