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 (2695939) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2695939) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21770821 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2695939'] with mtr_portfolio_ids : ['21770821'] and first list_photo_ids : [] new path : /proc/2548609/ Name: python3 Umask: 0002 State: R (running) Tgid: 2548609 Ngid: 0 Pid: 2548609 PPid: 2548608 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2548609 NSpid: 2548609 NSpgid: 2546026 NSsid: 2546026 VmPeak: 1106928 kB VmSize: 1106928 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98752 kB VmRSS: 98752 kB RssAnon: 59748 kB RssFile: 39004 kB RssShmem: 0 kB VmData: 865676 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 612 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: 53 nonvoluntary_ctxt_switches: 92 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2548609', 'Ngid': '0', 'Pid': '2548609', 'PPid': '2548608', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2548609', 'NSpid': '2548609', 'NSpgid': '2546026', 'NSsid': '2546026', 'VmPeak': '1106928 kB', 'VmSize': '1106928 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98752 kB', 'VmRSS': '98752 kB', 'RssAnon': '59748 kB', 'RssFile': '39004 kB', 'RssShmem': '0 kB', 'VmData': '865676 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '612 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': '53', 'nonvoluntary_ctxt_switches': '92'} ('datou_batch_current', '2548609', '1106928', '0', '1106928', '865676', '98752', b'', 'marlene', '2695939') 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 (21770821) 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 (2695939 ) ) 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 (21770821) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1347756080, 'portfolio_id': 21770821}, {'photo_id': 1347756079, 'portfolio_id': 21770821}, {'photo_id': 1347756075, 'portfolio_id': 21770821}, {'photo_id': 1347756073, 'portfolio_id': 21770821}, {'photo_id': 1347756032, 'portfolio_id': 21770821}, {'photo_id': 1347756028, 'portfolio_id': 21770821}, {'photo_id': 1347756025, 'portfolio_id': 21770821}, {'photo_id': 1347756021, 'portfolio_id': 21770821}, {'photo_id': 1347756016, 'portfolio_id': 21770821}, {'photo_id': 1347756014, 'portfolio_id': 21770821}, {'photo_id': 1347755985, 'portfolio_id': 21770821}, {'photo_id': 1347755971, 'portfolio_id': 21770821}, {'photo_id': 1347755969, 'portfolio_id': 21770821}, {'photo_id': 1347755937, 'portfolio_id': 21770821}, {'photo_id': 1347755932, 'portfolio_id': 21770821}, {'photo_id': 1347755931, 'portfolio_id': 21770821}, {'photo_id': 1347755926, 'portfolio_id': 21770821}, {'photo_id': 1347755925, 'portfolio_id': 21770821}, {'photo_id': 1347755892, 'portfolio_id': 21770821}, {'photo_id': 1347755888, 'portfolio_id': 21770821}, {'photo_id': 1347755885, 'portfolio_id': 21770821}, {'photo_id': 1347755884, 'portfolio_id': 21770821}, {'photo_id': 1347755801, 'portfolio_id': 21770821}, {'photo_id': 1347755753, 'portfolio_id': 21770821}, {'photo_id': 1347755701, 'portfolio_id': 21770821}, {'photo_id': 1347755697, 'portfolio_id': 21770821}, {'photo_id': 1347755691, 'portfolio_id': 21770821}, {'photo_id': 1347755687, 'portfolio_id': 21770821}, {'photo_id': 1347755655, 'portfolio_id': 21770821}, {'photo_id': 1347755623, 'portfolio_id': 21770821}, {'photo_id': 1347755572, 'portfolio_id': 21770821}, {'photo_id': 1347755569, 'portfolio_id': 21770821}, {'photo_id': 1347755562, 'portfolio_id': 21770821}, {'photo_id': 1347755548, 'portfolio_id': 21770821}] map_portfolio_id_photo_id: {21770821: [1347756080, 1347756079, 1347756075, 1347756073, 1347756032, 1347756028, 1347756025, 1347756021, 1347756016, 1347756014, 1347755985, 1347755971, 1347755969, 1347755937, 1347755932, 1347755931, 1347755926, 1347755925, 1347755892, 1347755888, 1347755885, 1347755884, 1347755801, 1347755753, 1347755701, 1347755697, 1347755691, 1347755687, 1347755655, 1347755623, 1347755572, 1347755569, 1347755562, 1347755548]} ##### 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.01513051986694336 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Thu Mar 27 05:39: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 (21770821) 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 : 21770821 get user id for portfolio 21770821 get sub ptf for main ptf 21770821, type 3726 and hashtags ['environnement', 'kraft', 'metal', 'cartonnette', 'papier', 'Carton_gris', 'Teint_Dans_La_Masse', 'flou', 'Carton_brun', 'mal_croppe', 'plastique', 'autre_refus'] 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`=21770821 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','kraft','metal','cartonnette','papier','Carton_gris','Teint_Dans_La_Masse','flou','Carton_brun','mal_croppe','plastique','autre_refus')) 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`=21770821 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','kraft','metal','cartonnette','papier','Carton_gris','Teint_Dans_La_Masse','flou','Carton_brun','mal_croppe','plastique','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 21770821, 'sub_port_id': 21770822, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14293312, 'last_updated_at': datetime.datetime(2025, 3, 27, 5, 37, 56), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 5, 37, 56), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 5, 34, 57)}, 'kraft': {'main_port_id': 21770821, 'sub_port_id': 21770823, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14293313, 'last_updated_at': datetime.datetime(2025, 3, 27, 5, 37, 56), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 5, 37, 56), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 5, 34, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 21770821, 'sub_port_id': 21770824, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14293314, 'last_updated_at': datetime.datetime(2025, 3, 27, 5, 37, 56), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 5, 37, 56), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 5, 34, 57)}, 'Carton_brun': {'main_port_id': 21770821, 'sub_port_id': 21770825, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14293315, 'last_updated_at': datetime.datetime(2025, 3, 27, 5, 37, 56), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 5, 37, 56), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 5, 34, 57)}, 'plastique': {'main_port_id': 21770821, 'sub_port_id': 21770826, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14293316, 'last_updated_at': datetime.datetime(2025, 3, 27, 5, 37, 56), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 5, 37, 56), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 5, 34, 57)}, 'metal': {'main_port_id': 21770821, 'sub_port_id': 21770827, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14293317, 'last_updated_at': datetime.datetime(2025, 3, 27, 5, 37, 56), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 5, 37, 56), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 5, 34, 57)}, 'flou': {'main_port_id': 21770821, 'sub_port_id': 21770828, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14293318, 'last_updated_at': datetime.datetime(2025, 3, 27, 5, 37, 56), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 5, 37, 56), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 5, 34, 57)}, 'Carton_gris': {'main_port_id': 21770821, 'sub_port_id': 21770829, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14293319, 'last_updated_at': datetime.datetime(2025, 3, 27, 5, 37, 56), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 5, 37, 56), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 5, 34, 57)}, 'autre_refus': {'main_port_id': 21770821, 'sub_port_id': 21770830, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14293320, 'last_updated_at': datetime.datetime(2025, 3, 27, 5, 37, 56), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 5, 37, 56), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 5, 34, 57)}, 'papier': {'main_port_id': 21770821, 'sub_port_id': 21770831, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14293321, 'last_updated_at': datetime.datetime(2025, 3, 27, 5, 37, 56), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 5, 37, 56), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 5, 34, 57)}, 'mal_croppe': {'main_port_id': 21770821, 'sub_port_id': 21770832, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14293322, 'last_updated_at': datetime.datetime(2025, 3, 27, 5, 37, 56), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 5, 37, 56), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 5, 34, 57)}, 'cartonnette': {'main_port_id': 21770821, 'sub_port_id': 21770833, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14293323, 'last_updated_at': datetime.datetime(2025, 3, 27, 5, 37, 56), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 5, 37, 56), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 5, 34, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21770822 , 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=21770821 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 (21770822) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21770821) result : ((1347755548,), (1347755562,), (1347755569,), (1347755572,), (1347755623,), (1347755655,), (1347755687,), (1347755691,), (1347755697,), (1347755701,), (1347755753,), (1347755801,), (1347755884,), (1347755885,), (1347755888,), (1347755892,), (1347755925,), (1347755926,), (1347755931,), (1347755932,), (1347755937,), (1347755969,), (1347755971,), (1347755985,), (1347756014,), (1347756016,), (1347756021,), (1347756025,), (1347756028,), (1347756032,), (1347756073,), (1347756075,), (1347756079,), (1347756080,)) 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 21770823 , 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=21770821 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 (21770823) result : ((1347755879,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21770821) result : ((1347755548,), (1347755562,), (1347755569,), (1347755572,), (1347755623,), (1347755655,), (1347755687,), (1347755691,), (1347755697,), (1347755701,), (1347755753,), (1347755801,), (1347755884,), (1347755885,), (1347755888,), (1347755892,), (1347755925,), (1347755926,), (1347755931,), (1347755932,), (1347755937,), (1347755969,), (1347755971,), (1347755985,), (1347756014,), (1347756016,), (1347756021,), (1347756025,), (1347756028,), (1347756032,), (1347756073,), (1347756075,), (1347756079,), (1347756080,)) 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 21770824 , 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=21770821 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 (21770824) result : ((1347755865,), (1347755866,), (1347755946,), (1347755947,), (1347756067,), (1347756068,), (1347756069,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21770821) result : ((1347755548,), (1347755562,), (1347755569,), (1347755572,), (1347755623,), (1347755655,), (1347755687,), (1347755691,), (1347755697,), (1347755701,), (1347755753,), (1347755801,), (1347755884,), (1347755885,), (1347755888,), (1347755892,), (1347755925,), (1347755926,), (1347755931,), (1347755932,), (1347755937,), (1347755969,), (1347755971,), (1347755985,), (1347756014,), (1347756016,), (1347756021,), (1347756025,), (1347756028,), (1347756032,), (1347756073,), (1347756075,), (1347756079,), (1347756080,)) 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 21770825 , 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=21770821 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 (21770825) result : ((1347755871,), (1347755872,), (1347755873,), (1347755874,), (1347755958,), (1347756047,), (1347756048,), (1347756049,), (1347756050,), (1347756051,), (1347756052,), (1347756053,), (1347756054,), (1347756055,), (1347756071,), (1347756072,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21770821) result : ((1347755548,), (1347755562,), (1347755569,), (1347755572,), (1347755623,), (1347755655,), (1347755687,), (1347755691,), (1347755697,), (1347755701,), (1347755753,), (1347755801,), (1347755884,), (1347755885,), (1347755888,), (1347755892,), (1347755925,), (1347755926,), (1347755931,), (1347755932,), (1347755937,), (1347755969,), (1347755971,), (1347755985,), (1347756014,), (1347756016,), (1347756021,), (1347756025,), (1347756028,), (1347756032,), (1347756073,), (1347756075,), (1347756079,), (1347756080,)) 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 21770826 , 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=21770821 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 (21770826) result : ((1347755878,), (1347755960,), (1347755961,), (1347756061,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21770821) result : ((1347755548,), (1347755562,), (1347755569,), (1347755572,), (1347755623,), (1347755655,), (1347755687,), (1347755691,), (1347755697,), (1347755701,), (1347755753,), (1347755801,), (1347755884,), (1347755885,), (1347755888,), (1347755892,), (1347755925,), (1347755926,), (1347755931,), (1347755932,), (1347755937,), (1347755969,), (1347755971,), (1347755985,), (1347756014,), (1347756016,), (1347756021,), (1347756025,), (1347756028,), (1347756032,), (1347756073,), (1347756075,), (1347756079,), (1347756080,)) 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 21770827 , 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=21770821 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 (21770827) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21770821) result : ((1347755548,), (1347755562,), (1347755569,), (1347755572,), (1347755623,), (1347755655,), (1347755687,), (1347755691,), (1347755697,), (1347755701,), (1347755753,), (1347755801,), (1347755884,), (1347755885,), (1347755888,), (1347755892,), (1347755925,), (1347755926,), (1347755931,), (1347755932,), (1347755937,), (1347755969,), (1347755971,), (1347755985,), (1347756014,), (1347756016,), (1347756021,), (1347756025,), (1347756028,), (1347756032,), (1347756073,), (1347756075,), (1347756079,), (1347756080,)) 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 21770828 , 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=21770821 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 (21770828) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21770821) result : ((1347755548,), (1347755562,), (1347755569,), (1347755572,), (1347755623,), (1347755655,), (1347755687,), (1347755691,), (1347755697,), (1347755701,), (1347755753,), (1347755801,), (1347755884,), (1347755885,), (1347755888,), (1347755892,), (1347755925,), (1347755926,), (1347755931,), (1347755932,), (1347755937,), (1347755969,), (1347755971,), (1347755985,), (1347756014,), (1347756016,), (1347756021,), (1347756025,), (1347756028,), (1347756032,), (1347756073,), (1347756075,), (1347756079,), (1347756080,)) 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 21770829 , 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=21770821 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 (21770829) result : ((1347755867,), (1347755955,), (1347755956,), (1347755957,), (1347756043,), (1347756044,), (1347756045,), (1347756057,), (1347756058,), (1347756060,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21770821) result : ((1347755548,), (1347755562,), (1347755569,), (1347755572,), (1347755623,), (1347755655,), (1347755687,), (1347755691,), (1347755697,), (1347755701,), (1347755753,), (1347755801,), (1347755884,), (1347755885,), (1347755888,), (1347755892,), (1347755925,), (1347755926,), (1347755931,), (1347755932,), (1347755937,), (1347755969,), (1347755971,), (1347755985,), (1347756014,), (1347756016,), (1347756021,), (1347756025,), (1347756028,), (1347756032,), (1347756073,), (1347756075,), (1347756079,), (1347756080,)) 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 21770830 , 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=21770821 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 (21770830) result : ((1347755950,), (1347755951,), (1347755952,), (1347756041,), (1347756042,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21770821) result : ((1347755548,), (1347755562,), (1347755569,), (1347755572,), (1347755623,), (1347755655,), (1347755687,), (1347755691,), (1347755697,), (1347755701,), (1347755753,), (1347755801,), (1347755884,), (1347755885,), (1347755888,), (1347755892,), (1347755925,), (1347755926,), (1347755931,), (1347755932,), (1347755937,), (1347755969,), (1347755971,), (1347755985,), (1347756014,), (1347756016,), (1347756021,), (1347756025,), (1347756028,), (1347756032,), (1347756073,), (1347756075,), (1347756079,), (1347756080,)) 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 21770831 , 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=21770821 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 (21770831) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21770821) result : ((1347755548,), (1347755562,), (1347755569,), (1347755572,), (1347755623,), (1347755655,), (1347755687,), (1347755691,), (1347755697,), (1347755701,), (1347755753,), (1347755801,), (1347755884,), (1347755885,), (1347755888,), (1347755892,), (1347755925,), (1347755926,), (1347755931,), (1347755932,), (1347755937,), (1347755969,), (1347755971,), (1347755985,), (1347756014,), (1347756016,), (1347756021,), (1347756025,), (1347756028,), (1347756032,), (1347756073,), (1347756075,), (1347756079,), (1347756080,)) 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 21770832 , 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=21770821 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 (21770832) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21770821) result : ((1347755548,), (1347755562,), (1347755569,), (1347755572,), (1347755623,), (1347755655,), (1347755687,), (1347755691,), (1347755697,), (1347755701,), (1347755753,), (1347755801,), (1347755884,), (1347755885,), (1347755888,), (1347755892,), (1347755925,), (1347755926,), (1347755931,), (1347755932,), (1347755937,), (1347755969,), (1347755971,), (1347755985,), (1347756014,), (1347756016,), (1347756021,), (1347756025,), (1347756028,), (1347756032,), (1347756073,), (1347756075,), (1347756079,), (1347756080,)) 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 21770833 , 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=21770821 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 (21770833) result : ((1347755868,), (1347756070,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21770821) result : ((1347755548,), (1347755562,), (1347755569,), (1347755572,), (1347755623,), (1347755655,), (1347755687,), (1347755691,), (1347755697,), (1347755701,), (1347755753,), (1347755801,), (1347755884,), (1347755885,), (1347755888,), (1347755892,), (1347755925,), (1347755926,), (1347755931,), (1347755932,), (1347755937,), (1347755969,), (1347755971,), (1347755985,), (1347756014,), (1347756016,), (1347756021,), (1347756025,), (1347756028,), (1347756032,), (1347756073,), (1347756075,), (1347756079,), (1347756080,)) 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`=21770821 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','kraft','metal','cartonnette','papier','Carton_gris','Teint_Dans_La_Masse','flou','Carton_brun','mal_croppe','plastique','autre_refus')) 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`=21770821 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','kraft','metal','cartonnette','papier','Carton_gris','Teint_Dans_La_Masse','flou','Carton_brun','mal_croppe','plastique','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 21770821, 'sub_port_id': 21770834, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14293324, 'last_updated_at': datetime.datetime(2025, 3, 27, 5, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 5, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 5, 34, 59)}, 'kraft': {'main_port_id': 21770821, 'sub_port_id': 21770835, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14293325, 'last_updated_at': datetime.datetime(2025, 3, 27, 5, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 5, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 5, 34, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 21770821, 'sub_port_id': 21770836, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14293326, 'last_updated_at': datetime.datetime(2025, 3, 27, 5, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 5, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 5, 34, 59)}, 'Carton_brun': {'main_port_id': 21770821, 'sub_port_id': 21770837, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14293327, 'last_updated_at': datetime.datetime(2025, 3, 27, 5, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 5, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 5, 34, 59)}, 'plastique': {'main_port_id': 21770821, 'sub_port_id': 21770838, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14293328, 'last_updated_at': datetime.datetime(2025, 3, 27, 5, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 5, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 5, 34, 59)}, 'metal': {'main_port_id': 21770821, 'sub_port_id': 21770839, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14293329, 'last_updated_at': datetime.datetime(2025, 3, 27, 5, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 5, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 5, 34, 59)}, 'flou': {'main_port_id': 21770821, 'sub_port_id': 21770840, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14293330, 'last_updated_at': datetime.datetime(2025, 3, 27, 5, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 5, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 5, 34, 59)}, 'Carton_gris': {'main_port_id': 21770821, 'sub_port_id': 21770841, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14293331, 'last_updated_at': datetime.datetime(2025, 3, 27, 5, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 5, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 5, 34, 59)}, 'autre_refus': {'main_port_id': 21770821, 'sub_port_id': 21770842, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14293332, 'last_updated_at': datetime.datetime(2025, 3, 27, 5, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 5, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 5, 34, 59)}, 'papier': {'main_port_id': 21770821, 'sub_port_id': 21770843, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14293333, 'last_updated_at': datetime.datetime(2025, 3, 27, 5, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 5, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 5, 34, 59)}, 'mal_croppe': {'main_port_id': 21770821, 'sub_port_id': 21770844, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14293334, 'last_updated_at': datetime.datetime(2025, 3, 27, 5, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 5, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 5, 34, 59)}, 'cartonnette': {'main_port_id': 21770821, 'sub_port_id': 21770845, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14293335, 'last_updated_at': datetime.datetime(2025, 3, 27, 5, 37, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 5, 37, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 5, 34, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21770834,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21770822 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21770835,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21770823 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21770836,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21770824 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21770837,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21770825 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21770838,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21770826 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21770839,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21770827 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21770840,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21770828 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21770841,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21770829 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21770842,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21770830 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21770843,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21770831 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21770844,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21770832 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21770845,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21770833 lien utilise dans velours : https://www.fotonower.com/velours/21770834,21770835,21770836,21770837,21770838,21770839,21770840,21770841,21770842,21770843,21770844,21770845?tags=environnement,kraft,Teint_Dans_La_Masse,Carton_brun,plastique,metal,flou,Carton_gris,autre_refus,papier,mal_croppe,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21770821]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1347756080, 1347756079, 1347756075, 1347756073, 1347756032, 1347756028, 1347756025, 1347756021, 1347756016, 1347756014] map_info['map_portfolio_photo'] : {21770821: [1347756080, 1347756079, 1347756075, 1347756073, 1347756032, 1347756028, 1347756025, 1347756021, 1347756016, 1347756014, 1347755985, 1347755971, 1347755969, 1347755937, 1347755932, 1347755931, 1347755926, 1347755925, 1347755892, 1347755888, 1347755885, 1347755884, 1347755801, 1347755753, 1347755701, 1347755697, 1347755691, 1347755687, 1347755655, 1347755623, 1347755572, 1347755569, 1347755562, 1347755548]} final : False mtd_id 4302 list_pids : [1347756080, 1347756079, 1347756075, 1347756073, 1347756032, 1347756028, 1347756025, 1347756021, 1347756016, 1347756014] Looping around the photos to save general results len do output : 1 /21770821. 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, '2695939') ('4302', '21770821', '1347756080', None, None, None, None, None, '2695939') ('4302', None, None, None, None, None, None, None, '2695939') ('4302', '21770821', '1347756079', None, None, None, None, None, '2695939') ('4302', None, None, None, None, None, None, None, '2695939') ('4302', '21770821', '1347756075', None, None, None, None, None, '2695939') ('4302', None, None, None, None, None, None, None, '2695939') ('4302', '21770821', '1347756073', None, None, None, None, None, '2695939') ('4302', None, None, None, None, None, None, None, '2695939') ('4302', '21770821', '1347756032', None, None, None, None, None, '2695939') ('4302', None, None, None, None, None, None, None, '2695939') ('4302', '21770821', '1347756028', None, None, None, None, None, '2695939') ('4302', None, None, None, None, None, None, None, '2695939') ('4302', '21770821', '1347756025', None, None, None, None, None, '2695939') ('4302', None, None, None, None, None, None, None, '2695939') ('4302', '21770821', '1347756021', None, None, None, None, None, '2695939') ('4302', None, None, None, None, None, None, None, '2695939') ('4302', '21770821', '1347756016', None, None, None, None, None, '2695939') ('4302', None, None, None, None, None, None, None, '2695939') ('4302', '21770821', '1347756014', None, None, None, None, None, '2695939') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21770821', "{'environnement': 21770822, 'kraft': 21770823, 'Teint_Dans_La_Masse': 21770824, 'Carton_brun': 21770825, 'plastique': 21770826, 'metal': 21770827, 'flou': 21770828, 'Carton_gris': 21770829, 'autre_refus': 21770830, 'papier': 21770831, 'mal_croppe': 21770832, 'cartonnette': 21770833}", None, None, None, None, '2695939'), ('4302', '21770821', '1347756080', None, None, None, None, None, '2695939'), ('4302', '21770821', '1347756079', None, None, None, None, None, '2695939'), ('4302', '21770821', '1347756075', None, None, None, None, None, '2695939'), ('4302', '21770821', '1347756073', None, None, None, None, None, '2695939'), ('4302', '21770821', '1347756032', None, None, None, None, None, '2695939'), ('4302', '21770821', '1347756028', None, None, None, None, None, '2695939'), ('4302', '21770821', '1347756025', None, None, None, None, None, '2695939'), ('4302', '21770821', '1347756021', None, None, None, None, None, '2695939'), ('4302', '21770821', '1347756016', None, None, None, None, None, '2695939'), ('4302', '21770821', '1347756014', None, None, None, None, None, '2695939')] time used for this insertion : 0.013732194900512695 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.6465702056884766 time spend to save output : 0.014126062393188477 total time spend for step 1 : 1.660696268081665 step2:final Thu Mar 27 05:40:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21770821) 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 21770821 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1347755572,1347755569,1347755562,1347755548,1347755701,1347755697,1347755691,1347755687,1347755655,1347755623,1347755801,1347755753,1347755892,1347755888,1347755885,1347755884,1347755937,1347755932,1347755931,1347755926,1347755925,1347755985,1347755971,1347755969,1347756032,1347756028,1347756025,1347756021,1347756016,1347756014,1347756080,1347756079,1347756075,1347756073); 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([21770821]) Inside saveOutput : final : False verbose : True original output for save of step final : {1347756080: ('0.07122072538122168',), 1347756079: ('0.07122072538122168',), 1347756075: ('0.07122072538122168',), 1347756073: ('0.07122072538122168',), 1347756032: ('0.07122072538122168',), 1347756028: ('0.07122072538122168',), 1347756025: ('0.07122072538122168',), 1347756021: ('0.07122072538122168',), 1347756016: ('0.07122072538122168',), 1347756014: ('0.07122072538122168',)} new output for save of step final : {1347756080: ('0.07122072538122168',), 1347756079: ('0.07122072538122168',), 1347756075: ('0.07122072538122168',), 1347756073: ('0.07122072538122168',), 1347756032: ('0.07122072538122168',), 1347756028: ('0.07122072538122168',), 1347756025: ('0.07122072538122168',), 1347756021: ('0.07122072538122168',), 1347756016: ('0.07122072538122168',), 1347756014: ('0.07122072538122168',)} [1347756080, 1347756079, 1347756075, 1347756073, 1347756032, 1347756028, 1347756025, 1347756021, 1347756016, 1347756014] map_info['map_portfolio_photo'] : {21770821: [1347756080, 1347756079, 1347756075, 1347756073, 1347756032, 1347756028, 1347756025, 1347756021, 1347756016, 1347756014, 1347755985, 1347755971, 1347755969, 1347755937, 1347755932, 1347755931, 1347755926, 1347755925, 1347755892, 1347755888, 1347755885, 1347755884, 1347755801, 1347755753, 1347755701, 1347755697, 1347755691, 1347755687, 1347755655, 1347755623, 1347755572, 1347755569, 1347755562, 1347755548]} final : False mtd_id 4302 list_pids : [1347756080, 1347756079, 1347756075, 1347756073, 1347756032, 1347756028, 1347756025, 1347756021, 1347756016, 1347756014] Looping around the photos to save general results len do output : 10 /1347756080.Didn't retrieve data . /1347756079.Didn't retrieve data . /1347756075.Didn't retrieve data . /1347756073.Didn't retrieve data . /1347756032.Didn't retrieve data . /1347756028.Didn't retrieve data . /1347756025.Didn't retrieve data . /1347756021.Didn't retrieve data . /1347756016.Didn't retrieve data . /1347756014.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, '2695939') ('4302', '21770821', '1347756080', None, None, None, None, None, '2695939') ('4302', None, None, None, None, None, None, None, '2695939') ('4302', '21770821', '1347756079', None, None, None, None, None, '2695939') ('4302', None, None, None, None, None, None, None, '2695939') ('4302', '21770821', '1347756075', None, None, None, None, None, '2695939') ('4302', None, None, None, None, None, None, None, '2695939') ('4302', '21770821', '1347756073', None, None, None, None, None, '2695939') ('4302', None, None, None, None, None, None, None, '2695939') ('4302', '21770821', '1347756032', None, None, None, None, None, '2695939') ('4302', None, None, None, None, None, None, None, '2695939') ('4302', '21770821', '1347756028', None, None, None, None, None, '2695939') ('4302', None, None, None, None, None, None, None, '2695939') ('4302', '21770821', '1347756025', None, None, None, None, None, '2695939') ('4302', None, None, None, None, None, None, None, '2695939') ('4302', '21770821', '1347756021', None, None, None, None, None, '2695939') ('4302', None, None, None, None, None, None, None, '2695939') ('4302', '21770821', '1347756016', None, None, None, None, None, '2695939') ('4302', None, None, None, None, None, None, None, '2695939') ('4302', '21770821', '1347756014', None, None, None, None, None, '2695939') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 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', '21770821', '1347756080', '0.07122072538122168', None, None, None, None, '2695939'), ('4302', '21770821', '1347756079', '0.07122072538122168', None, None, None, None, '2695939'), ('4302', '21770821', '1347756075', '0.07122072538122168', None, None, None, None, '2695939'), ('4302', '21770821', '1347756073', '0.07122072538122168', None, None, None, None, '2695939'), ('4302', '21770821', '1347756032', '0.07122072538122168', None, None, None, None, '2695939'), ('4302', '21770821', '1347756028', '0.07122072538122168', None, None, None, None, '2695939'), ('4302', '21770821', '1347756025', '0.07122072538122168', None, None, None, None, '2695939'), ('4302', '21770821', '1347756021', '0.07122072538122168', None, None, None, None, '2695939'), ('4302', '21770821', '1347756016', '0.07122072538122168', None, None, None, None, '2695939'), ('4302', '21770821', '1347756014', '0.07122072538122168', None, None, None, None, '2695939')] time used for this insertion : 0.013520479202270508 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0639646053314209 time spend to save output : 0.014031648635864258 total time spend for step 2 : 0.07799625396728516 step3:velours_tree Thu Mar 27 05:40:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {21770821: [{'environnement': 21770822, 'kraft': 21770823, 'Teint_Dans_La_Masse': 21770824, 'Carton_brun': 21770825, 'plastique': 21770826, 'metal': 21770827, 'flou': 21770828, 'Carton_gris': 21770829, 'autre_refus': 21770830, 'papier': 21770831, 'mal_croppe': 21770832, 'cartonnette': 21770833}]} input_args_next_step : {21770821: ()} output_args : {21770821: [{'environnement': 21770822, 'kraft': 21770823, 'Teint_Dans_La_Masse': 21770824, 'Carton_brun': 21770825, 'plastique': 21770826, 'metal': 21770827, 'flou': 21770828, 'Carton_gris': 21770829, 'autre_refus': 21770830, 'papier': 21770831, 'mal_croppe': 21770832, 'cartonnette': 21770833}]} args : 21770821 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 : ({'environnement': 21770822, 'kraft': 21770823, 'Teint_Dans_La_Masse': 21770824, 'Carton_brun': 21770825, 'plastique': 21770826, 'metal': 21770827, 'flou': 21770828, 'Carton_gris': 21770829, 'autre_refus': 21770830, 'papier': 21770831, 'mal_croppe': 21770832, 'cartonnette': 21770833},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21770821) 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([21770821]) 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.3333749771118164 time spend to save output : 7.939338684082031e-05 total time spend for step 3 : 0.3334543704986572 step4:send_mail_cod Thu Mar 27 05:40: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 : {1347756080: ('0.07122072538122168',), 1347756079: ('0.07122072538122168',), 1347756075: ('0.07122072538122168',), 1347756073: ('0.07122072538122168',), 1347756032: ('0.07122072538122168',), 1347756028: ('0.07122072538122168',), 1347756025: ('0.07122072538122168',), 1347756021: ('0.07122072538122168',), 1347756016: ('0.07122072538122168',), 1347756014: ('0.07122072538122168',)} input_args_next_step : {1347756080: ()} output_args : {1347756080: ('0.07122072538122168',), 1347756079: ('0.07122072538122168',), 1347756075: ('0.07122072538122168',), 1347756073: ('0.07122072538122168',), 1347756032: ('0.07122072538122168',), 1347756028: ('0.07122072538122168',), 1347756025: ('0.07122072538122168',), 1347756021: ('0.07122072538122168',), 1347756016: ('0.07122072538122168',), 1347756014: ('0.07122072538122168',)} args : 1347756080 depend.output_id : 0 input_args_next_step : {1347756080: ('0.07122072538122168',), 1347756079: ()} output_args : {1347756080: ('0.07122072538122168',), 1347756079: ('0.07122072538122168',), 1347756075: ('0.07122072538122168',), 1347756073: ('0.07122072538122168',), 1347756032: ('0.07122072538122168',), 1347756028: ('0.07122072538122168',), 1347756025: ('0.07122072538122168',), 1347756021: ('0.07122072538122168',), 1347756016: ('0.07122072538122168',), 1347756014: ('0.07122072538122168',)} args : 1347756079 depend.output_id : 0 input_args_next_step : {1347756080: ('0.07122072538122168',), 1347756079: ('0.07122072538122168',), 1347756075: ()} output_args : {1347756080: ('0.07122072538122168',), 1347756079: ('0.07122072538122168',), 1347756075: ('0.07122072538122168',), 1347756073: ('0.07122072538122168',), 1347756032: ('0.07122072538122168',), 1347756028: ('0.07122072538122168',), 1347756025: ('0.07122072538122168',), 1347756021: ('0.07122072538122168',), 1347756016: ('0.07122072538122168',), 1347756014: ('0.07122072538122168',)} args : 1347756075 depend.output_id : 0 input_args_next_step : {1347756080: ('0.07122072538122168',), 1347756079: ('0.07122072538122168',), 1347756075: ('0.07122072538122168',), 1347756073: ()} output_args : {1347756080: ('0.07122072538122168',), 1347756079: ('0.07122072538122168',), 1347756075: ('0.07122072538122168',), 1347756073: ('0.07122072538122168',), 1347756032: ('0.07122072538122168',), 1347756028: ('0.07122072538122168',), 1347756025: ('0.07122072538122168',), 1347756021: ('0.07122072538122168',), 1347756016: ('0.07122072538122168',), 1347756014: ('0.07122072538122168',)} args : 1347756073 depend.output_id : 0 input_args_next_step : {1347756080: ('0.07122072538122168',), 1347756079: ('0.07122072538122168',), 1347756075: ('0.07122072538122168',), 1347756073: ('0.07122072538122168',), 1347756032: ()} output_args : {1347756080: ('0.07122072538122168',), 1347756079: ('0.07122072538122168',), 1347756075: ('0.07122072538122168',), 1347756073: ('0.07122072538122168',), 1347756032: ('0.07122072538122168',), 1347756028: ('0.07122072538122168',), 1347756025: ('0.07122072538122168',), 1347756021: ('0.07122072538122168',), 1347756016: ('0.07122072538122168',), 1347756014: ('0.07122072538122168',)} args : 1347756032 depend.output_id : 0 input_args_next_step : {1347756080: ('0.07122072538122168',), 1347756079: ('0.07122072538122168',), 1347756075: ('0.07122072538122168',), 1347756073: ('0.07122072538122168',), 1347756032: ('0.07122072538122168',), 1347756028: ()} output_args : {1347756080: ('0.07122072538122168',), 1347756079: ('0.07122072538122168',), 1347756075: ('0.07122072538122168',), 1347756073: ('0.07122072538122168',), 1347756032: ('0.07122072538122168',), 1347756028: ('0.07122072538122168',), 1347756025: ('0.07122072538122168',), 1347756021: ('0.07122072538122168',), 1347756016: ('0.07122072538122168',), 1347756014: ('0.07122072538122168',)} args : 1347756028 depend.output_id : 0 input_args_next_step : {1347756080: ('0.07122072538122168',), 1347756079: ('0.07122072538122168',), 1347756075: ('0.07122072538122168',), 1347756073: ('0.07122072538122168',), 1347756032: ('0.07122072538122168',), 1347756028: ('0.07122072538122168',), 1347756025: ()} output_args : {1347756080: ('0.07122072538122168',), 1347756079: ('0.07122072538122168',), 1347756075: ('0.07122072538122168',), 1347756073: ('0.07122072538122168',), 1347756032: ('0.07122072538122168',), 1347756028: ('0.07122072538122168',), 1347756025: ('0.07122072538122168',), 1347756021: ('0.07122072538122168',), 1347756016: ('0.07122072538122168',), 1347756014: ('0.07122072538122168',)} args : 1347756025 depend.output_id : 0 input_args_next_step : {1347756080: ('0.07122072538122168',), 1347756079: ('0.07122072538122168',), 1347756075: ('0.07122072538122168',), 1347756073: ('0.07122072538122168',), 1347756032: ('0.07122072538122168',), 1347756028: ('0.07122072538122168',), 1347756025: ('0.07122072538122168',), 1347756021: ()} output_args : {1347756080: ('0.07122072538122168',), 1347756079: ('0.07122072538122168',), 1347756075: ('0.07122072538122168',), 1347756073: ('0.07122072538122168',), 1347756032: ('0.07122072538122168',), 1347756028: ('0.07122072538122168',), 1347756025: ('0.07122072538122168',), 1347756021: ('0.07122072538122168',), 1347756016: ('0.07122072538122168',), 1347756014: ('0.07122072538122168',)} args : 1347756021 depend.output_id : 0 input_args_next_step : {1347756080: ('0.07122072538122168',), 1347756079: ('0.07122072538122168',), 1347756075: ('0.07122072538122168',), 1347756073: ('0.07122072538122168',), 1347756032: ('0.07122072538122168',), 1347756028: ('0.07122072538122168',), 1347756025: ('0.07122072538122168',), 1347756021: ('0.07122072538122168',), 1347756016: ()} output_args : {1347756080: ('0.07122072538122168',), 1347756079: ('0.07122072538122168',), 1347756075: ('0.07122072538122168',), 1347756073: ('0.07122072538122168',), 1347756032: ('0.07122072538122168',), 1347756028: ('0.07122072538122168',), 1347756025: ('0.07122072538122168',), 1347756021: ('0.07122072538122168',), 1347756016: ('0.07122072538122168',), 1347756014: ('0.07122072538122168',)} args : 1347756016 depend.output_id : 0 input_args_next_step : {1347756080: ('0.07122072538122168',), 1347756079: ('0.07122072538122168',), 1347756075: ('0.07122072538122168',), 1347756073: ('0.07122072538122168',), 1347756032: ('0.07122072538122168',), 1347756028: ('0.07122072538122168',), 1347756025: ('0.07122072538122168',), 1347756021: ('0.07122072538122168',), 1347756016: ('0.07122072538122168',), 1347756014: ()} output_args : {1347756080: ('0.07122072538122168',), 1347756079: ('0.07122072538122168',), 1347756075: ('0.07122072538122168',), 1347756073: ('0.07122072538122168',), 1347756032: ('0.07122072538122168',), 1347756028: ('0.07122072538122168',), 1347756025: ('0.07122072538122168',), 1347756021: ('0.07122072538122168',), 1347756016: ('0.07122072538122168',), 1347756014: ('0.07122072538122168',)} args : 1347756014 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 : {21770821: [{'environnement': 21770822, 'kraft': 21770823, 'Teint_Dans_La_Masse': 21770824, 'Carton_brun': 21770825, 'plastique': 21770826, 'metal': 21770827, 'flou': 21770828, 'Carton_gris': 21770829, 'autre_refus': 21770830, 'papier': 21770831, 'mal_croppe': 21770832, 'cartonnette': 21770833}]} input_args_next_step : {1347756080: ('0.07122072538122168',), 1347756079: ('0.07122072538122168',), 1347756075: ('0.07122072538122168',), 1347756073: ('0.07122072538122168',), 1347756032: ('0.07122072538122168',), 1347756028: ('0.07122072538122168',), 1347756025: ('0.07122072538122168',), 1347756021: ('0.07122072538122168',), 1347756016: ('0.07122072538122168',), 1347756014: ('0.07122072538122168',), 21770821: ()} output_args : {21770821: [{'environnement': 21770822, 'kraft': 21770823, 'Teint_Dans_La_Masse': 21770824, 'Carton_brun': 21770825, 'plastique': 21770826, 'metal': 21770827, 'flou': 21770828, 'Carton_gris': 21770829, 'autre_refus': 21770830, 'papier': 21770831, 'mal_croppe': 21770832, 'cartonnette': 21770833}]} args : 21770821 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :11, first value : ('0.07122072538122168',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21770821) 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 (1347756080,1347756079,1347756075,1347756073,1347756032,1347756028,1347756025,1347756021,1347756016,1347756014) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1347756014 begin to download photo : 1347756025 begin to download photo : 1347756073 begin to download photo : 1347756080 download finish for photo 1347756073 begin to download photo : 1347756075 download finish for photo 1347756080 download finish for photo 1347756025 begin to download photo : 1347756028 download finish for photo 1347756014 begin to download photo : 1347756016 download finish for photo 1347756075 begin to download photo : 1347756079 download finish for photo 1347756028 begin to download photo : 1347756032 download finish for photo 1347756016 begin to download photo : 1347756021 download finish for photo 1347756079 download finish for photo 1347756032 download finish for photo 1347756021 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P21770821_27-03-2025_05_40_01.pdf 21770823 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=21770823 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347755879: '1743050051_2904265_1347755562_ffa27cefcbb24eeeda126b36ac0f0fe0_rle_crop_3733048249_0.png'} change filename to text .imagette217708231743050401/ imagette217708231743050401/1743050051_2904265_1347755562_ffa27cefcbb24eeeda126b36ac0f0fe0_rle_crop_3733048249_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/442cb8a8ff5961a7c02090e393814db7_45972806.png imagette217708231743050401 21770826 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=21770826 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347755878: '1743050051_2904265_1347755548_102d71915316b17294329d10e0c16f41_rle_crop_3733048346_0.png', 1347755960: '1743050151_2904837_1347755801_8c73a5a2ac33d1ffc222574d167f0238_rle_crop_3733048662_0.png', 1347755961: '1743050151_2904837_1347755655_75d74afbbcdcfe1d1680e6e83f64d260_rle_crop_3733048818_0.png', 1347756061: '1743050323_216640_1347755753_f20dbf94d8c7103b2d9b5269076ec29f_rle_crop_3733049608_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/17aebf4e2a6c84a073e5c86ab3703d04_29555566.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/a65c6fd5d2496e2d708cccd67e54fa12_62212474.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/cb3138118d5ca335525672b6b39a51dd_58886747.png change filename to text .imagette217708261743050401/ imagette217708261743050401/1743050151_2904837_1347755655_75d74afbbcdcfe1d1680e6e83f64d260_rle_crop_3733048818_0.png.png imagette217708261743050401/1743050323_216640_1347755753_f20dbf94d8c7103b2d9b5269076ec29f_rle_crop_3733049608_0.png.png imagette217708261743050401/1743050151_2904837_1347755801_8c73a5a2ac33d1ffc222574d167f0238_rle_crop_3733048662_0.png.png imagette217708261743050401/1743050051_2904265_1347755548_102d71915316b17294329d10e0c16f41_rle_crop_3733048346_0.png.png imagette217708271743050401/ imagette217708281743050401/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/e567e26e621f07cb35fa1d9634ad5437_97471288.png imagette217708261743050401 21770827 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=21770827 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217708271743050401 21770828 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=21770828 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217708281743050401 21770830 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=21770830 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347755950: '1743050151_2904837_1347755691_410e41d3bf61cfb715d204d0a1f08fd1_rle_crop_3733048742_0.png', 1347755951: '1743050151_2904837_1347755655_75d74afbbcdcfe1d1680e6e83f64d260_rle_crop_3733048827_0.png', 1347755952: '1743050151_2904837_1347755623_c33649f72922f650863dd0e7eda65bf6_rle_crop_3733048845_0.png', 1347756041: '1743050292_2905877_1347755931_f9b6ca010d45b2d6dfa7d4bb1086048f_rle_crop_3733049429_0.png', 1347756042: '1743050292_2905877_1347755925_4836c6b8cdc5bb843ca2fe7ff0782510_rle_crop_3733049574_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/060b56664eba3f93e4c7460d694fb311_79146025.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/2d4fb4e9229715bc00cb6ec4ab34cb68_21860048.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/ee3d574f1ac5149bdf14797ce1da2683_68314203.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/71a19e13d25b09703c8fc818aae1eae0_13500737.png change filename to text .imagette217708301743050401/ imagette217708301743050401/1743050151_2904837_1347755623_c33649f72922f650863dd0e7eda65bf6_rle_crop_3733048845_0.png.png imagette217708301743050401/1743050292_2905877_1347755925_4836c6b8cdc5bb843ca2fe7ff0782510_rle_crop_3733049574_0.png.png imagette217708301743050401/1743050292_2905877_1347755931_f9b6ca010d45b2d6dfa7d4bb1086048f_rle_crop_3733049429_0.png.png imagette217708301743050401/1743050151_2904837_1347755691_410e41d3bf61cfb715d204d0a1f08fd1_rle_crop_3733048742_0.png.png imagette217708301743050401/1743050151_2904837_1347755655_75d74afbbcdcfe1d1680e6e83f64d260_rle_crop_3733048827_0.png.png imagette217708321743050402/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/30c41126713ed75d978c94bae22697e4_36714736.png imagette217708301743050401 21770832 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=21770832 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217708321743050402 21770833 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=21770833 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347755868: '1743050051_2904265_1347755548_102d71915316b17294329d10e0c16f41_rle_crop_3733048341_0.png', 1347756070: '1743050312_2906027_1347755937_c90890fd272d5afdea6a17442bf422db_rle_crop_3733049613_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/78236a040f1da140629c240343f8589c_38401252.png change filename to text .imagette217708331743050402/ imagette217708331743050402/1743050312_2906027_1347755937_c90890fd272d5afdea6a17442bf422db_rle_crop_3733049613_0.png.png imagette217708331743050402/1743050051_2904265_1347755548_102d71915316b17294329d10e0c16f41_rle_crop_3733048341_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/8de108cbeb3b169060f52f8ca255a3ab_56784947.png imagette217708331743050402 21770824 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=21770824 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347755865: '1743050051_2904265_1347755562_ffa27cefcbb24eeeda126b36ac0f0fe0_rle_crop_3733048255_0.png', 1347755866: '1743050051_2904265_1347755548_102d71915316b17294329d10e0c16f41_rle_crop_3733048350_0.png', 1347755946: '1743050151_2904837_1347755801_8c73a5a2ac33d1ffc222574d167f0238_rle_crop_3733048667_0.png', 1347755947: '1743050151_2904837_1347755623_c33649f72922f650863dd0e7eda65bf6_rle_crop_3733048841_0.png', 1347756067: '1743050312_2906027_1347755937_c90890fd272d5afdea6a17442bf422db_rle_crop_3733049624_0.png', 1347756068: '1743050312_2906027_1347755888_2894c419ba5b2f01f1f8532508178e00_rle_crop_3733049633_0.png', 1347756069: '1743050312_2906027_1347755884_cf9875f558f10b49d6b22a9d766fa8ae_rle_crop_3733049639_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/1b283199c0bcb64d8e3ee8be736b539e_27056311.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/f70279f6a96b779c78550e59ddb1d207_99475593.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/5cf61134c517c7e395a6b36994647414_16422714.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/275315e1d57b7151b0a49a58376d69ef_59438810.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/e36f0a23a38f54a910b08774a0664f32_51375651.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/ac8f4c7b9eefd7d095eea7aeda7c4198_5494601.png change filename to text .imagette217708241743050402/ imagette217708241743050402/1743050312_2906027_1347755884_cf9875f558f10b49d6b22a9d766fa8ae_rle_crop_3733049639_0.png.png imagette217708241743050402/1743050051_2904265_1347755562_ffa27cefcbb24eeeda126b36ac0f0fe0_rle_crop_3733048255_0.png.png imagette217708241743050402/1743050151_2904837_1347755801_8c73a5a2ac33d1ffc222574d167f0238_rle_crop_3733048667_0.png.png imagette217708241743050402/1743050151_2904837_1347755623_c33649f72922f650863dd0e7eda65bf6_rle_crop_3733048841_0.png.png imagette217708241743050402/1743050312_2906027_1347755888_2894c419ba5b2f01f1f8532508178e00_rle_crop_3733049633_0.png.png imagette217708241743050402/1743050312_2906027_1347755937_c90890fd272d5afdea6a17442bf422db_rle_crop_3733049624_0.png.png imagette217708241743050402/1743050051_2904265_1347755548_102d71915316b17294329d10e0c16f41_rle_crop_3733048350_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/d8e6d0dceda97d9c4bb670ddf0f5ff47_34233693.png imagette217708241743050402 21770825 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=21770825 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347755871: '1743050051_2904265_1347755569_67ba50cf7d7550b83a790caa774f6e13_rle_crop_3733048242_0.png', 1347755872: '1743050051_2904265_1347755562_ffa27cefcbb24eeeda126b36ac0f0fe0_rle_crop_3733048257_0.png', 1347755873: '1743050051_2904265_1347755562_ffa27cefcbb24eeeda126b36ac0f0fe0_rle_crop_3733048262_0.png', 1347755874: '1743050051_2904265_1347755562_ffa27cefcbb24eeeda126b36ac0f0fe0_rle_crop_3733048260_0.png', 1347755958: '1743050151_2904837_1347755687_ddec520f7135e473170f7305cfdfacd8_rle_crop_3733048811_0.png', 1347756047: '1743050292_2905877_1347755932_1e9001b9b96737bdf202e5bebcd38931_rle_crop_3733049356_0.png', 1347756048: '1743050292_2905877_1347755932_1e9001b9b96737bdf202e5bebcd38931_rle_crop_3733049357_0.png', 1347756049: '1743050292_2905877_1347755932_1e9001b9b96737bdf202e5bebcd38931_rle_crop_3733049352_0.png', 1347756050: '1743050292_2905877_1347755932_1e9001b9b96737bdf202e5bebcd38931_rle_crop_3733049353_0.png', 1347756051: '1743050292_2905877_1347755931_f9b6ca010d45b2d6dfa7d4bb1086048f_rle_crop_3733049426_0.png', 1347756052: '1743050292_2905877_1347755925_4836c6b8cdc5bb843ca2fe7ff0782510_rle_crop_3733049571_0.png', 1347756053: '1743050292_2905877_1347755925_4836c6b8cdc5bb843ca2fe7ff0782510_rle_crop_3733049577_0.png', 1347756054: '1743050292_2905877_1347755925_4836c6b8cdc5bb843ca2fe7ff0782510_rle_crop_3733049573_0.png', 1347756055: '1743050292_2905877_1347755925_4836c6b8cdc5bb843ca2fe7ff0782510_rle_crop_3733049579_0.png', 1347756071: '1743050312_2906027_1347755937_c90890fd272d5afdea6a17442bf422db_rle_crop_3733049622_0.png', 1347756072: '1743050312_2906027_1347755888_2894c419ba5b2f01f1f8532508178e00_rle_crop_3733049630_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/8c3a3119b10507309948a23b8c8598e5_97370437.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/b0c472f050b4e561d6a6115cb2f3e097_14473606.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/d6d17b132f12ecea64fc88719e9031a7_40762645.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/43c41951f46131260538771263878ef1_69732323.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/a6f56f4dc0de36ff815bcce86cfedada_65994286.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/eb6c0e49492240202938f14db8b5cda5_11247622.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/8143517fe6af269c0a7d7de80ae4b0f2_4256792.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/41c8018485f8065d1f23e3aa7d77879a_25866413.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/055eb63b3a99f55a0bf46a67733690fa_90050603.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/e3fd12a2f9016dda9f9307b17c4edaea_27551869.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/90a2a10367d26f8704ae7689746c00db_8378857.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/438498437a9c688a753acc4b4c7212fa_56109543.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/3d9f1c389973cbe5f782f391396cb074_52159953.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/a3c1f1815331e8f7819efe94265709c9_49033275.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/f323fbc68c3c692006d7762306e99315_9563102.png change filename to text .imagette217708251743050402/ imagette217708251743050402/1743050051_2904265_1347755562_ffa27cefcbb24eeeda126b36ac0f0fe0_rle_crop_3733048260_0.png.png imagette217708251743050402/1743050151_2904837_1347755687_ddec520f7135e473170f7305cfdfacd8_rle_crop_3733048811_0.png.png imagette217708251743050402/1743050292_2905877_1347755925_4836c6b8cdc5bb843ca2fe7ff0782510_rle_crop_3733049577_0.png.png imagette217708251743050402/1743050292_2905877_1347755931_f9b6ca010d45b2d6dfa7d4bb1086048f_rle_crop_3733049426_0.png.png imagette217708251743050402/1743050312_2906027_1347755937_c90890fd272d5afdea6a17442bf422db_rle_crop_3733049622_0.png.png imagette217708251743050402/1743050292_2905877_1347755932_1e9001b9b96737bdf202e5bebcd38931_rle_crop_3733049353_0.png.png imagette217708251743050402/1743050051_2904265_1347755562_ffa27cefcbb24eeeda126b36ac0f0fe0_rle_crop_3733048257_0.png.png imagette217708251743050402/1743050292_2905877_1347755925_4836c6b8cdc5bb843ca2fe7ff0782510_rle_crop_3733049579_0.png.png imagette217708251743050402/1743050292_2905877_1347755932_1e9001b9b96737bdf202e5bebcd38931_rle_crop_3733049357_0.png.png imagette217708251743050402/1743050292_2905877_1347755925_4836c6b8cdc5bb843ca2fe7ff0782510_rle_crop_3733049573_0.png.png imagette217708251743050402/1743050292_2905877_1347755932_1e9001b9b96737bdf202e5bebcd38931_rle_crop_3733049352_0.png.png imagette217708251743050402/1743050292_2905877_1347755932_1e9001b9b96737bdf202e5bebcd38931_rle_crop_3733049356_0.png.png imagette217708251743050402/1743050051_2904265_1347755562_ffa27cefcbb24eeeda126b36ac0f0fe0_rle_crop_3733048262_0.png.png imagette217708251743050402/1743050292_2905877_1347755925_4836c6b8cdc5bb843ca2fe7ff0782510_rle_crop_3733049571_0.png.png imagette217708251743050402/1743050051_2904265_1347755569_67ba50cf7d7550b83a790caa774f6e13_rle_crop_3733048242_0.png.png imagette217708251743050402/1743050312_2906027_1347755888_2894c419ba5b2f01f1f8532508178e00_rle_crop_3733049630_0.png.png wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/172a88346eab1f89bbbabe9761097961_75296830.png imagette217708251743050402 21770829 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=21770829 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347755867: '1743050051_2904265_1347755562_ffa27cefcbb24eeeda126b36ac0f0fe0_rle_crop_3733048253_0.png', 1347755955: '1743050151_2904837_1347755687_ddec520f7135e473170f7305cfdfacd8_rle_crop_3733048805_0.png', 1347755956: '1743050151_2904837_1347755623_c33649f72922f650863dd0e7eda65bf6_rle_crop_3733048840_0.png', 1347755957: '1743050151_2904837_1347755623_c33649f72922f650863dd0e7eda65bf6_rle_crop_3733048836_0.png', 1347756043: '1743050292_2905877_1347755932_1e9001b9b96737bdf202e5bebcd38931_rle_crop_3733049355_0.png', 1347756044: '1743050292_2905877_1347755932_1e9001b9b96737bdf202e5bebcd38931_rle_crop_3733049354_0.png', 1347756045: '1743050292_2905877_1347755932_1e9001b9b96737bdf202e5bebcd38931_rle_crop_3733049351_0.png', 1347756057: '1743050323_216640_1347755753_f20dbf94d8c7103b2d9b5269076ec29f_rle_crop_3733049600_0.png', 1347756058: '1743050323_216640_1347755753_f20dbf94d8c7103b2d9b5269076ec29f_rle_crop_3733049606_0.png', 1347756060: '1743050323_216640_1347755753_f20dbf94d8c7103b2d9b5269076ec29f_rle_crop_3733049601_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/f47b279e9abdc4a889bdeb6e6493cfda_77070315.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/03d143f4f8f7d57b014629b020babf66_45812607.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/a7fabcb083f782abea20ee7851cb4aad_77009266.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/4457a0d4ee78d192160ffe7381b6982e_53740936.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/e10ba70c2f1e8cb753fba5b11a27c458_9863792.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/c11995872d2c8d414b43380090267e39_11888034.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/8d280df3a482c1b9e7f73dd146ea77b1_34292356.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/6ce065fc963e2049efaff5805aa0f0a7_63304242.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/66b9e592815379ea7cb755e06a446147_67739849.png change filename to text .imagette217708291743050404/ imagette217708291743050404/1743050292_2905877_1347755932_1e9001b9b96737bdf202e5bebcd38931_rle_crop_3733049354_0.png.png imagette217708291743050404/1743050323_216640_1347755753_f20dbf94d8c7103b2d9b5269076ec29f_rle_crop_3733049600_0.png.png imagette217708291743050404/1743050292_2905877_1347755932_1e9001b9b96737bdf202e5bebcd38931_rle_crop_3733049351_0.png.png imagette217708291743050404/1743050323_216640_1347755753_f20dbf94d8c7103b2d9b5269076ec29f_rle_crop_3733049601_0.png.png imagette217708291743050404/1743050292_2905877_1347755932_1e9001b9b96737bdf202e5bebcd38931_rle_crop_3733049355_0.png.png imagette217708291743050404/1743050151_2904837_1347755687_ddec520f7135e473170f7305cfdfacd8_rle_crop_3733048805_0.png.png imagette217708291743050404/1743050051_2904265_1347755562_ffa27cefcbb24eeeda126b36ac0f0fe0_rle_crop_3733048253_0.png.png imagette217708291743050404/1743050151_2904837_1347755623_c33649f72922f650863dd0e7eda65bf6_rle_crop_3733048840_0.png.png imagette217708291743050404/1743050323_216640_1347755753_f20dbf94d8c7103b2d9b5269076ec29f_rle_crop_3733049606_0.png.png imagette217708291743050404/1743050151_2904837_1347755623_c33649f72922f650863dd0e7eda65bf6_rle_crop_3733048836_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/c25d692c6935fc285694707b9240fbea_41904080.png imagette217708291743050404 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21770821 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21770834,21770835,21770836,21770837,21770838,21770839,21770840,21770841,21770842,21770843,21770844,21770845?tags=environnement,kraft,Teint_Dans_La_Masse,Carton_brun,plastique,metal,flou,Carton_gris,autre_refus,papier,mal_croppe,cartonnette your option no_mail is active, we will not send the real mail to your client args[1347756080] : ('0.07122072538122168',) no score found for photo 1347756080 We are sending mail with results at report@fotonower.com args[1347756079] : ('0.07122072538122168',) no score found for photo 1347756079 We are sending mail with results at report@fotonower.com args[1347756075] : ('0.07122072538122168',) no score found for photo 1347756075 We are sending mail with results at report@fotonower.com args[1347756073] : ('0.07122072538122168',) no score found for photo 1347756073 We are sending mail with results at report@fotonower.com args[1347756032] : ('0.07122072538122168',) no score found for photo 1347756032 We are sending mail with results at report@fotonower.com args[1347756028] : ('0.07122072538122168',) no score found for photo 1347756028 We are sending mail with results at report@fotonower.com args[1347756025] : ('0.07122072538122168',) no score found for photo 1347756025 We are sending mail with results at report@fotonower.com args[1347756021] : ('0.07122072538122168',) no score found for photo 1347756021 We are sending mail with results at report@fotonower.com args[1347756016] : ('0.07122072538122168',) no score found for photo 1347756016 We are sending mail with results at report@fotonower.com args[1347756014] : ('0.07122072538122168',) no score found for photo 1347756014 We are sending mail with results at report@fotonower.com refus_total : 0.07122072538122168 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=21770821 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_P21770821_27-03-2025_05_40_01.pdf results_Auto_P21770821_27-03-2025_05_40_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21770821_27-03-2025_05_40_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','21770821','results_Auto_P21770821_27-03-2025_05_40_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21770821_27-03-2025_05_40_01.pdf','pdf','','0.24','0.07122072538122168') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21770821]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1347756080, 1347756079, 1347756075, 1347756073, 1347756032, 1347756028, 1347756025, 1347756021, 1347756016, 1347756014] map_info['map_portfolio_photo'] : {21770821: [1347756080, 1347756079, 1347756075, 1347756073, 1347756032, 1347756028, 1347756025, 1347756021, 1347756016, 1347756014, 1347755985, 1347755971, 1347755969, 1347755937, 1347755932, 1347755931, 1347755926, 1347755925, 1347755892, 1347755888, 1347755885, 1347755884, 1347755801, 1347755753, 1347755701, 1347755697, 1347755691, 1347755687, 1347755655, 1347755623, 1347755572, 1347755569, 1347755562, 1347755548]} final : False mtd_id 4302 list_pids : [1347756080, 1347756079, 1347756075, 1347756073, 1347756032, 1347756028, 1347756025, 1347756021, 1347756016, 1347756014] 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, '2695939') ('4302', '21770821', '1347756080', None, None, None, None, None, '2695939') ('4302', None, None, None, None, None, None, None, '2695939') ('4302', '21770821', '1347756079', None, None, None, None, None, '2695939') ('4302', None, None, None, None, None, None, None, '2695939') ('4302', '21770821', '1347756075', None, None, None, None, None, '2695939') ('4302', None, None, None, None, None, None, None, '2695939') ('4302', '21770821', '1347756073', None, None, None, None, None, '2695939') ('4302', None, None, None, None, None, None, None, '2695939') ('4302', '21770821', '1347756032', None, None, None, None, None, '2695939') ('4302', None, None, None, None, None, None, None, '2695939') ('4302', '21770821', '1347756028', None, None, None, None, None, '2695939') ('4302', None, None, None, None, None, None, None, '2695939') ('4302', '21770821', '1347756025', None, None, None, None, None, '2695939') ('4302', None, None, None, None, None, None, None, '2695939') ('4302', '21770821', '1347756021', None, None, None, None, None, '2695939') ('4302', None, None, None, None, None, None, None, '2695939') ('4302', '21770821', '1347756016', None, None, None, None, None, '2695939') ('4302', None, None, None, None, None, None, None, '2695939') ('4302', '21770821', '1347756014', None, None, None, None, None, '2695939') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21770821', '1347756080', None, None, None, None, None, '2695939'), ('4302', '21770821', '1347756079', None, None, None, None, None, '2695939'), ('4302', '21770821', '1347756075', None, None, None, None, None, '2695939'), ('4302', '21770821', '1347756073', None, None, None, None, None, '2695939'), ('4302', '21770821', '1347756032', None, None, None, None, None, '2695939'), ('4302', '21770821', '1347756028', None, None, None, None, None, '2695939'), ('4302', '21770821', '1347756025', None, None, None, None, None, '2695939'), ('4302', '21770821', '1347756021', None, None, None, None, None, '2695939'), ('4302', '21770821', '1347756016', None, None, None, None, None, '2695939'), ('4302', '21770821', '1347756014', None, None, None, None, None, '2695939')] time used for this insertion : 0.016407251358032227 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.637955188751221 time spend to save output : 0.01666259765625 total time spend for step 4 : 6.654617786407471 step5:split_time_score Thu Mar 27 05:40:07 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 : ['21770821'] 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 : [('21770821',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21770821) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1347756080: {'path': 'temp/1743050401_2548609_1347756080_a14ab27bf091d06b37668d4986de1bd5.jpg', 'extension': 'jpg'}, 1347756073: {'path': 'temp/1743050401_2548609_1347756073_090929beea45ddb649ee3fb59fc895f4.jpg', 'extension': 'jpg'}, 1347756075: {'path': 'temp/1743050401_2548609_1347756075_a51af7cdbb5d0b71f8b9455ed8761012.jpg', 'extension': 'jpg'}, 1347756079: {'path': 'temp/1743050401_2548609_1347756079_66f4801c971bf851f2b38fd516f49fb5.jpg', 'extension': 'jpg'}, 1347756025: {'path': 'temp/1743050401_2548609_1347756025_693bfda9e3be1de55b682eb0ac9eb898.jpg', 'extension': 'jpg'}, 1347756028: {'path': 'temp/1743050401_2548609_1347756028_0e32b61652eef704afd99a1aa117859f.jpg', 'extension': 'jpg'}, 1347756032: {'path': 'temp/1743050401_2548609_1347756032_6b18aec5db16c6ddc08bb98b0f3d7e7c.jpg', 'extension': 'jpg'}, 1347756014: {'path': 'temp/1743050401_2548609_1347756014_5d7737faa0171355124039ce2e45d69d.jpg', 'extension': 'jpg'}, 1347756016: {'path': 'temp/1743050401_2548609_1347756016_7660de2380a2d996da0c78a590b9a0e0.jpg', 'extension': 'jpg'}, 1347756021: {'path': 'temp/1743050401_2548609_1347756021_b2843b8b9c9e485a5a31b595307c33c0.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 = 21770821; (('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 = 21770821 group by h (('05', 34),) 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=21770821 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 (21770821) 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 (21770821) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 27032025 21770821 Nombre de photos uploadées : 34 / 23040 (0%) 27032025 21770821 Nombre de photos taguées (types de déchets): 0 / 34 (0%) 27032025 21770821 Nombre de photos taguées (volume) : 0 / 34 (0%) [{'photo_id': 1347755572, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/dd080336a619876d913ec91048d405a5.jpg', 'username': None, 'uploaded_at': 1743049935, 'text': 'image_27032025_05_30_14_9124.jpg'}, {'photo_id': 1347755569, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/67ba50cf7d7550b83a790caa774f6e13.jpg', 'username': None, 'uploaded_at': 1743049935, 'text': 'image_27032025_05_30_24_10138.jpg'}, {'photo_id': 1347755562, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/ffa27cefcbb24eeeda126b36ac0f0fe0.jpg', 'username': None, 'uploaded_at': 1743049935, 'text': 'image_27032025_05_30_34_10136.jpg'}, {'photo_id': 1347755548, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/102d71915316b17294329d10e0c16f41.jpg', 'username': None, 'uploaded_at': 1743049935, 'text': 'image_27032025_05_30_44_10140.jpg'}] 0 [] elapsed_time : load_data_split_time_score 2.1457672119140625e-06 elapsed_time : order_list_meta_photo_and_scores 6.67572021484375e-06 ?????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0015339851379394531 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21770821, '2025-03-27' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1692045,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.029519081115722656 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= 1692045 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1692045, 'dashboard_run_id': 1700289, 'mtr_portfolio_id': 21770204, 'dashboard_result_id': 9664592, '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_P21770204_27-03-2025_05_18_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21770205, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21770206, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21770207, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21770208, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21770209, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21770210, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21770211, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21770212, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21770213, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21770214, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21770215, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21770216, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1700289, 'mtr_portfolio_id': 21770457, 'dashboard_result_id': 9664594, '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_P21770457_27-03-2025_05_33_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21770458, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21770459, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21770460, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21770461, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21770462, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21770463, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21770464, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21770465, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21770466, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21770467, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21770468, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21770469, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1700289, 'mtr_portfolio_id': 21770821, 'dashboard_result_id': 9664596, '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_P21770821_27-03-2025_05_37_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21770822, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21770823, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21770824, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21770825, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21770826, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21770827, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21770828, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21770829, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21770830, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21770831, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21770832, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21770833, '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 = 21770204 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': 2695762, 'mtr_portfolio_id': 21770204, 'created_at': datetime.datetime(2025, 3, 27, 5, 18, 57), 'result': '0.029916636309748473', 'result_long': None, 'result_double': None}] Qualite : 0.029916636309748473 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21770204 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21770204_27-03-2025_05_18_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21770204 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_P21770204_27-03-2025_05_18_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21770205, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21770206, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21770207, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21770208, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21770209, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21770210, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21770211, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21770212, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21770213, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21770214, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21770215, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21770216, 'pht': 3726}}" where mtr_portfolio_id = 21770204 and dashboard_run_id = 1700289 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`=21770204 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9664592, 0.029916636309748473, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21770204_27-03-2025_05_18_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21770205, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21770206, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21770207, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21770208, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21770209, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21770210, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21770211, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21770212, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21770213, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21770214, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21770215, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21770216, '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 = 21770457 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': 2695781, 'mtr_portfolio_id': 21770457, 'created_at': datetime.datetime(2025, 3, 27, 5, 33, 1), 'result': '0.052067349498075885', 'result_long': None, 'result_double': None}] Qualite : 0.052067349498075885 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21770457 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21770457_27-03-2025_05_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21770457 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_P21770457_27-03-2025_05_33_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21770458, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21770459, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21770460, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21770461, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21770462, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21770463, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21770464, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21770465, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21770466, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21770467, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21770468, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21770469, 'pht': 3726}}" where mtr_portfolio_id = 21770457 and dashboard_run_id = 1700289 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`=21770457 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9664594, 0.052067349498075885, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21770457_27-03-2025_05_33_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21770458, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21770459, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21770460, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21770461, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21770462, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21770463, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21770464, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21770465, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21770466, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21770467, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21770468, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21770469, '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 = 21770821 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': 2695939, 'mtr_portfolio_id': 21770821, 'created_at': datetime.datetime(2025, 3, 27, 5, 40), 'result': '0.07122072538122168', 'result_long': None, 'result_double': None}] Qualite : 0.07122072538122168 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21770821 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21770821_27-03-2025_05_40_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21770821 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_P21770821_27-03-2025_05_40_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21770822, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21770823, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21770824, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21770825, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21770826, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21770827, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21770828, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21770829, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21770830, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21770831, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21770832, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21770833, 'pht': 3726}}" where mtr_portfolio_id = 21770821 and dashboard_run_id = 1700289 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`=21770821 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9664596, 0.07122072538122168, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21770821_27-03-2025_05_40_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21770822, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21770823, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21770824, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21770825, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21770826, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21770827, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21770828, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21770829, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21770830, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21770831, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21770832, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21770833, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21770204,21770457,21770821) result : ((1347750365,), (1347750474,), (1347751033,), (1347751077,), (1347751472,), (1347751800,), (1347752102,), (1347752496,), (1347752534,), (1347752573,), (1347752620,), (1347753048,), (1347753124,), (1347753153,), (1347753339,), (1347753362,), (1347753418,), (1347753419,), (1347753422,), (1347753447,), (1347753448,), (1347753451,), (1347753452,), (1347753457,), (1347753461,), (1347753508,), (1347753512,), (1347753515,), (1347753520,), (1347753524,), (1347753528,), (1347753541,), (1347753547,), (1347753550,), (1347753554,), (1347753651,), (1347753603,), (1347753620,), (1347753630,), (1347753638,), (1347753677,), (1347753681,), (1347753685,), (1347753781,), (1347753791,), (1347753800,), (1347753903,), (1347753916,), (1347753990,), (1347753991,), (1347753994,), (1347753998,), (1347754003,), (1347754008,), (1347754028,), (1347754030,), (1347754034,), (1347754036,), (1347754057,), (1347754058,), (1347754061,), (1347754064,), (1347754069,), (1347754074,), (1347754108,), (1347754113,), (1347754116,), (1347754120,), (1347754382,), (1347754383,), (1347754389,), (1347754399,), (1347754404,), (1347754519,), (1347754522,), (1347754534,), (1347754548,), (1347754575,), (1347754654,), (1347754749,), (1347754759,), (1347754795,), (1347754797,), (1347754848,), (1347754935,), (1347754960,), (1347755054,), (1347755055,), (1347755081,), (1347755171,), (1347755182,), (1347755195,), (1347755575,), (1347755548,), (1347755562,), (1347755569,), (1347755572,), (1347755623,), (1347755655,), (1347755687,), (1347755691,), (1347755697,), (1347755701,), (1347755753,), (1347755801,), (1347755884,), (1347755885,), (1347755888,), (1347755892,), (1347755925,), (1347755926,), (1347755931,), (1347755932,), (1347755937,), (1347755969,), (1347755971,), (1347755985,), (1347756014,), (1347756016,), (1347756021,), (1347756025,), (1347756028,), (1347756032,), (1347756073,), (1347756075,), (1347756079,), (1347756080,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'27032025': {'nb_upload': 34, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21770821]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1347756080, 1347756079, 1347756075, 1347756073, 1347756032, 1347756028, 1347756025, 1347756021, 1347756016, 1347756014] map_info['map_portfolio_photo'] : {21770821: [1347756080, 1347756079, 1347756075, 1347756073, 1347756032, 1347756028, 1347756025, 1347756021, 1347756016, 1347756014, 1347755985, 1347755971, 1347755969, 1347755937, 1347755932, 1347755931, 1347755926, 1347755925, 1347755892, 1347755888, 1347755885, 1347755884, 1347755801, 1347755753, 1347755701, 1347755697, 1347755691, 1347755687, 1347755655, 1347755623, 1347755572, 1347755569, 1347755562, 1347755548]} final : True mtd_id 4302 list_pids : [1347756080, 1347756079, 1347756075, 1347756073, 1347756032, 1347756028, 1347756025, 1347756021, 1347756016, 1347756014] Looping around the photos to save general results len do output : 1 /21770821Didn'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, '2695939') ('4302', '21770821', '1347756080', None, None, None, None, None, '2695939') ('4302', None, None, None, None, None, None, None, '2695939') ('4302', '21770821', '1347756079', None, None, None, None, None, '2695939') ('4302', None, None, None, None, None, None, None, '2695939') ('4302', '21770821', '1347756075', None, None, None, None, None, '2695939') ('4302', None, None, None, None, None, None, None, '2695939') ('4302', '21770821', '1347756073', None, None, None, None, None, '2695939') ('4302', None, None, None, None, None, None, None, '2695939') ('4302', '21770821', '1347756032', None, None, None, None, None, '2695939') ('4302', None, None, None, None, None, None, None, '2695939') ('4302', '21770821', '1347756028', None, None, None, None, None, '2695939') ('4302', None, None, None, None, None, None, None, '2695939') ('4302', '21770821', '1347756025', None, None, None, None, None, '2695939') ('4302', None, None, None, None, None, None, None, '2695939') ('4302', '21770821', '1347756021', None, None, None, None, None, '2695939') ('4302', None, None, None, None, None, None, None, '2695939') ('4302', '21770821', '1347756016', None, None, None, None, None, '2695939') ('4302', None, None, None, None, None, None, None, '2695939') ('4302', '21770821', '1347756014', None, None, None, None, None, '2695939') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21770821', 'None', None, None, None, None, '2695939'), ('4302', '21770821', '1347756080', None, None, None, None, None, '2695939'), ('4302', '21770821', '1347756079', None, None, None, None, None, '2695939'), ('4302', '21770821', '1347756075', None, None, None, None, None, '2695939'), ('4302', '21770821', '1347756073', None, None, None, None, None, '2695939'), ('4302', '21770821', '1347756032', None, None, None, None, None, '2695939'), ('4302', '21770821', '1347756028', None, None, None, None, None, '2695939'), ('4302', '21770821', '1347756025', None, None, None, None, None, '2695939'), ('4302', '21770821', '1347756021', None, None, None, None, None, '2695939'), ('4302', '21770821', '1347756016', None, None, None, None, None, '2695939'), ('4302', '21770821', '1347756014', None, None, None, None, None, '2695939')] time used for this insertion : 0.013920783996582031 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3060481548309326 time spend to save output : 0.014203310012817383 total time spend for step 5 : 0.32025146484375 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 (2695939) 2.15user 2.34system 0:13.30elapsed 33%CPU (0avgtext+0avgdata 159956maxresident)k 632inputs+13224outputs (20major+71718minor)pagefaults 0swaps