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 (2697697) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2697697) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21793383 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2697697'] with mtr_portfolio_ids : ['21793383'] and first list_photo_ids : [] new path : /proc/686342/ Name: python3 Umask: 0002 State: R (running) Tgid: 686342 Ngid: 0 Pid: 686342 PPid: 686341 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 686342 NSpid: 686342 NSpgid: 682971 NSsid: 682971 VmPeak: 1106928 kB VmSize: 1106928 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98912 kB VmRSS: 98912 kB RssAnon: 59760 kB RssFile: 39152 kB RssShmem: 0 kB VmData: 865676 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 584 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: 61 nonvoluntary_ctxt_switches: 99 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '686342', 'Ngid': '0', 'Pid': '686342', 'PPid': '686341', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '686342', 'NSpid': '686342', 'NSpgid': '682971', 'NSsid': '682971', 'VmPeak': '1106928 kB', 'VmSize': '1106928 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98912 kB', 'VmRSS': '98912 kB', 'RssAnon': '59760 kB', 'RssFile': '39152 kB', 'RssShmem': '0 kB', 'VmData': '865676 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '584 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': '61', 'nonvoluntary_ctxt_switches': '99'} ('datou_batch_current', '686342', '1106928', '0', '1106928', '865676', '98912', b'', 'marlene', '2697697') 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 (21793383) 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 (2697697 ) ) 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 (21793383) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1347878656, 'portfolio_id': 21793383}, {'photo_id': 1347878649, 'portfolio_id': 21793383}, {'photo_id': 1347878644, 'portfolio_id': 21793383}, {'photo_id': 1347878641, 'portfolio_id': 21793383}, {'photo_id': 1347878507, 'portfolio_id': 21793383}, {'photo_id': 1347878474, 'portfolio_id': 21793383}, {'photo_id': 1347878450, 'portfolio_id': 21793383}, {'photo_id': 1347878418, 'portfolio_id': 21793383}, {'photo_id': 1347878396, 'portfolio_id': 21793383}, {'photo_id': 1347878308, 'portfolio_id': 21793383}, {'photo_id': 1347878296, 'portfolio_id': 21793383}, {'photo_id': 1347878291, 'portfolio_id': 21793383}, {'photo_id': 1347878272, 'portfolio_id': 21793383}, {'photo_id': 1347878255, 'portfolio_id': 21793383}, {'photo_id': 1347878225, 'portfolio_id': 21793383}, {'photo_id': 1347878122, 'portfolio_id': 21793383}, {'photo_id': 1347878118, 'portfolio_id': 21793383}, {'photo_id': 1347878113, 'portfolio_id': 21793383}, {'photo_id': 1347878107, 'portfolio_id': 21793383}, {'photo_id': 1347878105, 'portfolio_id': 21793383}, {'photo_id': 1347877985, 'portfolio_id': 21793383}, {'photo_id': 1347877960, 'portfolio_id': 21793383}, {'photo_id': 1347877954, 'portfolio_id': 21793383}, {'photo_id': 1347877499, 'portfolio_id': 21793383}, {'photo_id': 1347877391, 'portfolio_id': 21793383}, {'photo_id': 1347877326, 'portfolio_id': 21793383}, {'photo_id': 1347877320, 'portfolio_id': 21793383}, {'photo_id': 1347877308, 'portfolio_id': 21793383}, {'photo_id': 1347877298, 'portfolio_id': 21793383}, {'photo_id': 1347877159, 'portfolio_id': 21793383}, {'photo_id': 1347877154, 'portfolio_id': 21793383}, {'photo_id': 1347877130, 'portfolio_id': 21793383}, {'photo_id': 1347877127, 'portfolio_id': 21793383}, {'photo_id': 1347877061, 'portfolio_id': 21793383}, {'photo_id': 1347877055, 'portfolio_id': 21793383}, {'photo_id': 1347877052, 'portfolio_id': 21793383}, {'photo_id': 1347877033, 'portfolio_id': 21793383}, {'photo_id': 1347877027, 'portfolio_id': 21793383}, {'photo_id': 1347877019, 'portfolio_id': 21793383}, {'photo_id': 1347877011, 'portfolio_id': 21793383}, {'photo_id': 1347877003, 'portfolio_id': 21793383}, {'photo_id': 1347876996, 'portfolio_id': 21793383}, {'photo_id': 1347876948, 'portfolio_id': 21793383}, {'photo_id': 1347876921, 'portfolio_id': 21793383}, {'photo_id': 1347876839, 'portfolio_id': 21793383}, {'photo_id': 1347876834, 'portfolio_id': 21793383}, {'photo_id': 1347876828, 'portfolio_id': 21793383}, {'photo_id': 1347876824, 'portfolio_id': 21793383}, {'photo_id': 1347876703, 'portfolio_id': 21793383}, {'photo_id': 1347876698, 'portfolio_id': 21793383}, {'photo_id': 1347876528, 'portfolio_id': 21793383}, {'photo_id': 1347876509, 'portfolio_id': 21793383}, {'photo_id': 1347876504, 'portfolio_id': 21793383}, {'photo_id': 1347876492, 'portfolio_id': 21793383}, {'photo_id': 1347876476, 'portfolio_id': 21793383}] map_portfolio_id_photo_id: {21793383: [1347878656, 1347878649, 1347878644, 1347878641, 1347878507, 1347878474, 1347878450, 1347878418, 1347878396, 1347878308, 1347878296, 1347878291, 1347878272, 1347878255, 1347878225, 1347878122, 1347878118, 1347878113, 1347878107, 1347878105, 1347877985, 1347877960, 1347877954, 1347877499, 1347877391, 1347877326, 1347877320, 1347877308, 1347877298, 1347877159, 1347877154, 1347877130, 1347877127, 1347877061, 1347877055, 1347877052, 1347877033, 1347877027, 1347877019, 1347877011, 1347877003, 1347876996, 1347876948, 1347876921, 1347876839, 1347876834, 1347876828, 1347876824, 1347876703, 1347876698, 1347876528, 1347876509, 1347876504, 1347876492, 1347876476]} ##### 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.015254735946655273 #### 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 14:44:56 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 (21793383) 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 : 21793383 get user id for portfolio 21793383 get sub ptf for main ptf 21793383, type 3726 and hashtags ['autre_refus', 'papier', 'metal', 'Carton_gris', 'cartonnette', 'mal_croppe', 'Teint_Dans_La_Masse', 'plastique', 'Carton_brun', 'kraft', 'environnement', 'flou'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21793383 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','papier','metal','Carton_gris','cartonnette','mal_croppe','Teint_Dans_La_Masse','plastique','Carton_brun','kraft','environnement','flou')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21793383 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','papier','metal','Carton_gris','cartonnette','mal_croppe','Teint_Dans_La_Masse','plastique','Carton_brun','kraft','environnement','flou')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 21793383, 'sub_port_id': 21793384, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14313649, 'last_updated_at': datetime.datetime(2025, 3, 27, 14, 41, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 14, 41, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 14, 35, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 21793383, 'sub_port_id': 21793385, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14313650, 'last_updated_at': datetime.datetime(2025, 3, 27, 14, 41, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 14, 41, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 14, 35, 58)}, 'metal': {'main_port_id': 21793383, 'sub_port_id': 21793386, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14313651, 'last_updated_at': datetime.datetime(2025, 3, 27, 14, 41, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 14, 41, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 14, 35, 58)}, 'flou': {'main_port_id': 21793383, 'sub_port_id': 21793387, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14313652, 'last_updated_at': datetime.datetime(2025, 3, 27, 14, 41, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 14, 41, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 14, 35, 58)}, 'papier': {'main_port_id': 21793383, 'sub_port_id': 21793388, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14313653, 'last_updated_at': datetime.datetime(2025, 3, 27, 14, 41, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 14, 41, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 14, 35, 58)}, 'plastique': {'main_port_id': 21793383, 'sub_port_id': 21793389, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14313654, 'last_updated_at': datetime.datetime(2025, 3, 27, 14, 41, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 14, 41, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 14, 35, 58)}, 'environnement': {'main_port_id': 21793383, 'sub_port_id': 21793390, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14313655, 'last_updated_at': datetime.datetime(2025, 3, 27, 14, 41, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 14, 41, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 14, 35, 58)}, 'cartonnette': {'main_port_id': 21793383, 'sub_port_id': 21793391, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14313656, 'last_updated_at': datetime.datetime(2025, 3, 27, 14, 41, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 14, 41, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 14, 35, 58)}, 'Carton_brun': {'main_port_id': 21793383, 'sub_port_id': 21793392, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14313657, 'last_updated_at': datetime.datetime(2025, 3, 27, 14, 41, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 14, 41, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 14, 35, 58)}, 'mal_croppe': {'main_port_id': 21793383, 'sub_port_id': 21793393, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14313658, 'last_updated_at': datetime.datetime(2025, 3, 27, 14, 41, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 14, 41, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 14, 35, 58)}, 'autre_refus': {'main_port_id': 21793383, 'sub_port_id': 21793394, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14313659, 'last_updated_at': datetime.datetime(2025, 3, 27, 14, 41, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 14, 41, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 14, 35, 58)}, 'Carton_gris': {'main_port_id': 21793383, 'sub_port_id': 21793395, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14313660, 'last_updated_at': datetime.datetime(2025, 3, 27, 14, 41, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 14, 41, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 14, 35, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21793384 , 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=21793383 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 (21793384) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21793383) result : ((1347876476,), (1347876492,), (1347876504,), (1347876509,), (1347876528,), (1347876698,), (1347876703,), (1347876824,), (1347876828,), (1347876834,), (1347876839,), (1347876921,), (1347876948,), (1347876996,), (1347877003,), (1347877011,), (1347877019,), (1347877027,), (1347877033,), (1347877052,), (1347877055,), (1347877061,), (1347877127,), (1347877130,), (1347877154,), (1347877159,), (1347877298,), (1347877308,), (1347877320,), (1347877326,), (1347877391,), (1347877499,), (1347877954,), (1347877960,), (1347877985,), (1347878105,), (1347878107,), (1347878113,), (1347878118,), (1347878122,), (1347878225,), (1347878255,), (1347878272,), (1347878291,), (1347878296,), (1347878308,), (1347878396,), (1347878418,), (1347878450,), (1347878474,), (1347878507,), (1347878641,), (1347878644,), (1347878649,), (1347878656,)) 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 21793385 , 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=21793383 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 (21793385) result : ((1347877017,), (1347877972,), (1347877974,), (1347877975,), (1347878305,), (1347878306,), (1347878334,), (1347878335,), (1347878336,), (1347878337,), (1347878338,), (1347878339,), (1347878340,), (1347878341,), (1347878342,), (1347878343,), (1347878344,), (1347878345,), (1347878346,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21793383) result : ((1347876476,), (1347876492,), (1347876504,), (1347876509,), (1347876528,), (1347876698,), (1347876703,), (1347876824,), (1347876828,), (1347876834,), (1347876839,), (1347876921,), (1347876948,), (1347876996,), (1347877003,), (1347877011,), (1347877019,), (1347877027,), (1347877033,), (1347877052,), (1347877055,), (1347877061,), (1347877127,), (1347877130,), (1347877154,), (1347877159,), (1347877298,), (1347877308,), (1347877320,), (1347877326,), (1347877391,), (1347877499,), (1347877954,), (1347877960,), (1347877985,), (1347878105,), (1347878107,), (1347878113,), (1347878118,), (1347878122,), (1347878225,), (1347878255,), (1347878272,), (1347878291,), (1347878296,), (1347878308,), (1347878396,), (1347878418,), (1347878450,), (1347878474,), (1347878507,), (1347878641,), (1347878644,), (1347878649,), (1347878656,)) 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 21793386 , 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=21793383 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 (21793386) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21793383) result : ((1347876476,), (1347876492,), (1347876504,), (1347876509,), (1347876528,), (1347876698,), (1347876703,), (1347876824,), (1347876828,), (1347876834,), (1347876839,), (1347876921,), (1347876948,), (1347876996,), (1347877003,), (1347877011,), (1347877019,), (1347877027,), (1347877033,), (1347877052,), (1347877055,), (1347877061,), (1347877127,), (1347877130,), (1347877154,), (1347877159,), (1347877298,), (1347877308,), (1347877320,), (1347877326,), (1347877391,), (1347877499,), (1347877954,), (1347877960,), (1347877985,), (1347878105,), (1347878107,), (1347878113,), (1347878118,), (1347878122,), (1347878225,), (1347878255,), (1347878272,), (1347878291,), (1347878296,), (1347878308,), (1347878396,), (1347878418,), (1347878450,), (1347878474,), (1347878507,), (1347878641,), (1347878644,), (1347878649,), (1347878656,)) 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 21793387 , 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=21793383 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 (21793387) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21793383) result : ((1347876476,), (1347876492,), (1347876504,), (1347876509,), (1347876528,), (1347876698,), (1347876703,), (1347876824,), (1347876828,), (1347876834,), (1347876839,), (1347876921,), (1347876948,), (1347876996,), (1347877003,), (1347877011,), (1347877019,), (1347877027,), (1347877033,), (1347877052,), (1347877055,), (1347877061,), (1347877127,), (1347877130,), (1347877154,), (1347877159,), (1347877298,), (1347877308,), (1347877320,), (1347877326,), (1347877391,), (1347877499,), (1347877954,), (1347877960,), (1347877985,), (1347878105,), (1347878107,), (1347878113,), (1347878118,), (1347878122,), (1347878225,), (1347878255,), (1347878272,), (1347878291,), (1347878296,), (1347878308,), (1347878396,), (1347878418,), (1347878450,), (1347878474,), (1347878507,), (1347878641,), (1347878644,), (1347878649,), (1347878656,)) 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 21793388 , 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=21793383 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 (21793388) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21793383) result : ((1347876476,), (1347876492,), (1347876504,), (1347876509,), (1347876528,), (1347876698,), (1347876703,), (1347876824,), (1347876828,), (1347876834,), (1347876839,), (1347876921,), (1347876948,), (1347876996,), (1347877003,), (1347877011,), (1347877019,), (1347877027,), (1347877033,), (1347877052,), (1347877055,), (1347877061,), (1347877127,), (1347877130,), (1347877154,), (1347877159,), (1347877298,), (1347877308,), (1347877320,), (1347877326,), (1347877391,), (1347877499,), (1347877954,), (1347877960,), (1347877985,), (1347878105,), (1347878107,), (1347878113,), (1347878118,), (1347878122,), (1347878225,), (1347878255,), (1347878272,), (1347878291,), (1347878296,), (1347878308,), (1347878396,), (1347878418,), (1347878450,), (1347878474,), (1347878507,), (1347878641,), (1347878644,), (1347878649,), (1347878656,)) 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 21793389 , 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=21793383 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 (21793389) result : ((1347877022,), (1347877945,), (1347877990,), (1347878320,), (1347878353,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21793383) result : ((1347876476,), (1347876492,), (1347876504,), (1347876509,), (1347876528,), (1347876698,), (1347876703,), (1347876824,), (1347876828,), (1347876834,), (1347876839,), (1347876921,), (1347876948,), (1347876996,), (1347877003,), (1347877011,), (1347877019,), (1347877027,), (1347877033,), (1347877052,), (1347877055,), (1347877061,), (1347877127,), (1347877130,), (1347877154,), (1347877159,), (1347877298,), (1347877308,), (1347877320,), (1347877326,), (1347877391,), (1347877499,), (1347877954,), (1347877960,), (1347877985,), (1347878105,), (1347878107,), (1347878113,), (1347878118,), (1347878122,), (1347878225,), (1347878255,), (1347878272,), (1347878291,), (1347878296,), (1347878308,), (1347878396,), (1347878418,), (1347878450,), (1347878474,), (1347878507,), (1347878641,), (1347878644,), (1347878649,), (1347878656,)) 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 21793390 , 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=21793383 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 (21793390) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21793383) result : ((1347876476,), (1347876492,), (1347876504,), (1347876509,), (1347876528,), (1347876698,), (1347876703,), (1347876824,), (1347876828,), (1347876834,), (1347876839,), (1347876921,), (1347876948,), (1347876996,), (1347877003,), (1347877011,), (1347877019,), (1347877027,), (1347877033,), (1347877052,), (1347877055,), (1347877061,), (1347877127,), (1347877130,), (1347877154,), (1347877159,), (1347877298,), (1347877308,), (1347877320,), (1347877326,), (1347877391,), (1347877499,), (1347877954,), (1347877960,), (1347877985,), (1347878105,), (1347878107,), (1347878113,), (1347878118,), (1347878122,), (1347878225,), (1347878255,), (1347878272,), (1347878291,), (1347878296,), (1347878308,), (1347878396,), (1347878418,), (1347878450,), (1347878474,), (1347878507,), (1347878641,), (1347878644,), (1347878649,), (1347878656,)) 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 21793391 , 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=21793383 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 (21793391) result : ((1347877021,), (1347878317,), (1347878318,), (1347878350,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21793383) result : ((1347876476,), (1347876492,), (1347876504,), (1347876509,), (1347876528,), (1347876698,), (1347876703,), (1347876824,), (1347876828,), (1347876834,), (1347876839,), (1347876921,), (1347876948,), (1347876996,), (1347877003,), (1347877011,), (1347877019,), (1347877027,), (1347877033,), (1347877052,), (1347877055,), (1347877061,), (1347877127,), (1347877130,), (1347877154,), (1347877159,), (1347877298,), (1347877308,), (1347877320,), (1347877326,), (1347877391,), (1347877499,), (1347877954,), (1347877960,), (1347877985,), (1347878105,), (1347878107,), (1347878113,), (1347878118,), (1347878122,), (1347878225,), (1347878255,), (1347878272,), (1347878291,), (1347878296,), (1347878308,), (1347878396,), (1347878418,), (1347878450,), (1347878474,), (1347878507,), (1347878641,), (1347878644,), (1347878649,), (1347878656,)) 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 21793392 , 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=21793383 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 (21793392) result : ((1347877944,), (1347878352,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21793383) result : ((1347876476,), (1347876492,), (1347876504,), (1347876509,), (1347876528,), (1347876698,), (1347876703,), (1347876824,), (1347876828,), (1347876834,), (1347876839,), (1347876921,), (1347876948,), (1347876996,), (1347877003,), (1347877011,), (1347877019,), (1347877027,), (1347877033,), (1347877052,), (1347877055,), (1347877061,), (1347877127,), (1347877130,), (1347877154,), (1347877159,), (1347877298,), (1347877308,), (1347877320,), (1347877326,), (1347877391,), (1347877499,), (1347877954,), (1347877960,), (1347877985,), (1347878105,), (1347878107,), (1347878113,), (1347878118,), (1347878122,), (1347878225,), (1347878255,), (1347878272,), (1347878291,), (1347878296,), (1347878308,), (1347878396,), (1347878418,), (1347878450,), (1347878474,), (1347878507,), (1347878641,), (1347878644,), (1347878649,), (1347878656,)) 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 21793393 , 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=21793383 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 (21793393) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21793383) result : ((1347876476,), (1347876492,), (1347876504,), (1347876509,), (1347876528,), (1347876698,), (1347876703,), (1347876824,), (1347876828,), (1347876834,), (1347876839,), (1347876921,), (1347876948,), (1347876996,), (1347877003,), (1347877011,), (1347877019,), (1347877027,), (1347877033,), (1347877052,), (1347877055,), (1347877061,), (1347877127,), (1347877130,), (1347877154,), (1347877159,), (1347877298,), (1347877308,), (1347877320,), (1347877326,), (1347877391,), (1347877499,), (1347877954,), (1347877960,), (1347877985,), (1347878105,), (1347878107,), (1347878113,), (1347878118,), (1347878122,), (1347878225,), (1347878255,), (1347878272,), (1347878291,), (1347878296,), (1347878308,), (1347878396,), (1347878418,), (1347878450,), (1347878474,), (1347878507,), (1347878641,), (1347878644,), (1347878649,), (1347878656,)) 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 21793394 , 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=21793383 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 (21793394) result : ((1347877977,), (1347878642,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21793383) result : ((1347876476,), (1347876492,), (1347876504,), (1347876509,), (1347876528,), (1347876698,), (1347876703,), (1347876824,), (1347876828,), (1347876834,), (1347876839,), (1347876921,), (1347876948,), (1347876996,), (1347877003,), (1347877011,), (1347877019,), (1347877027,), (1347877033,), (1347877052,), (1347877055,), (1347877061,), (1347877127,), (1347877130,), (1347877154,), (1347877159,), (1347877298,), (1347877308,), (1347877320,), (1347877326,), (1347877391,), (1347877499,), (1347877954,), (1347877960,), (1347877985,), (1347878105,), (1347878107,), (1347878113,), (1347878118,), (1347878122,), (1347878225,), (1347878255,), (1347878272,), (1347878291,), (1347878296,), (1347878308,), (1347878396,), (1347878418,), (1347878450,), (1347878474,), (1347878507,), (1347878641,), (1347878644,), (1347878649,), (1347878656,)) 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 21793395 , 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=21793383 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 (21793395) result : ((1347877018,), (1347877987,), (1347877988,), (1347878312,), (1347878347,), (1347878348,), (1347878349,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21793383) result : ((1347876476,), (1347876492,), (1347876504,), (1347876509,), (1347876528,), (1347876698,), (1347876703,), (1347876824,), (1347876828,), (1347876834,), (1347876839,), (1347876921,), (1347876948,), (1347876996,), (1347877003,), (1347877011,), (1347877019,), (1347877027,), (1347877033,), (1347877052,), (1347877055,), (1347877061,), (1347877127,), (1347877130,), (1347877154,), (1347877159,), (1347877298,), (1347877308,), (1347877320,), (1347877326,), (1347877391,), (1347877499,), (1347877954,), (1347877960,), (1347877985,), (1347878105,), (1347878107,), (1347878113,), (1347878118,), (1347878122,), (1347878225,), (1347878255,), (1347878272,), (1347878291,), (1347878296,), (1347878308,), (1347878396,), (1347878418,), (1347878450,), (1347878474,), (1347878507,), (1347878641,), (1347878644,), (1347878649,), (1347878656,)) 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`=21793383 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','papier','metal','Carton_gris','cartonnette','mal_croppe','Teint_Dans_La_Masse','plastique','Carton_brun','kraft','environnement','flou')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21793383 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','papier','metal','Carton_gris','cartonnette','mal_croppe','Teint_Dans_La_Masse','plastique','Carton_brun','kraft','environnement','flou')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 21793383, 'sub_port_id': 21793396, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14313661, 'last_updated_at': datetime.datetime(2025, 3, 27, 14, 36), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 14, 36), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 14, 36)}, 'Teint_Dans_La_Masse': {'main_port_id': 21793383, 'sub_port_id': 21793397, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14313662, 'last_updated_at': datetime.datetime(2025, 3, 27, 14, 36), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 14, 36), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 14, 36)}, 'metal': {'main_port_id': 21793383, 'sub_port_id': 21793398, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14313663, 'last_updated_at': datetime.datetime(2025, 3, 27, 14, 36), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 14, 36), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 14, 36)}, 'flou': {'main_port_id': 21793383, 'sub_port_id': 21793399, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14313664, 'last_updated_at': datetime.datetime(2025, 3, 27, 14, 36), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 14, 36), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 14, 36)}, 'papier': {'main_port_id': 21793383, 'sub_port_id': 21793400, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14313665, 'last_updated_at': datetime.datetime(2025, 3, 27, 14, 36), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 14, 36), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 14, 36)}, 'plastique': {'main_port_id': 21793383, 'sub_port_id': 21793401, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14313666, 'last_updated_at': datetime.datetime(2025, 3, 27, 14, 36), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 14, 36), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 14, 36)}, 'environnement': {'main_port_id': 21793383, 'sub_port_id': 21793402, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14313667, 'last_updated_at': datetime.datetime(2025, 3, 27, 14, 36), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 14, 36), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 14, 36)}, 'cartonnette': {'main_port_id': 21793383, 'sub_port_id': 21793403, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14313668, 'last_updated_at': datetime.datetime(2025, 3, 27, 14, 36), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 14, 36), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 14, 36)}, 'Carton_brun': {'main_port_id': 21793383, 'sub_port_id': 21793404, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14313669, 'last_updated_at': datetime.datetime(2025, 3, 27, 14, 36), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 14, 36), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 14, 36)}, 'mal_croppe': {'main_port_id': 21793383, 'sub_port_id': 21793405, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14313670, 'last_updated_at': datetime.datetime(2025, 3, 27, 14, 36), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 14, 36), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 14, 36)}, 'autre_refus': {'main_port_id': 21793383, 'sub_port_id': 21793406, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14313671, 'last_updated_at': datetime.datetime(2025, 3, 27, 14, 36), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 14, 36), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 14, 36)}, 'Carton_gris': {'main_port_id': 21793383, 'sub_port_id': 21793407, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14313672, 'last_updated_at': datetime.datetime(2025, 3, 27, 14, 41, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 14, 41, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 14, 36)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21793396,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21793384 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21793397,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21793385 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21793398,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21793386 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21793399,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21793387 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21793400,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21793388 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21793401,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21793389 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21793402,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21793390 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21793403,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21793391 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21793404,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21793392 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21793405,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21793393 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21793406,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21793394 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21793407,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21793395 lien utilise dans velours : https://www.fotonower.com/velours/21793396,21793397,21793398,21793399,21793400,21793401,21793402,21793403,21793404,21793405,21793406,21793407?tags=kraft,Teint_Dans_La_Masse,metal,flou,papier,plastique,environnement,cartonnette,Carton_brun,mal_croppe,autre_refus,Carton_gris After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21793383]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1347878656, 1347878649, 1347878644, 1347878641, 1347878507, 1347878474, 1347878450, 1347878418, 1347878396, 1347878308, 1347878296, 1347878291, 1347878272, 1347878255, 1347878225] map_info['map_portfolio_photo'] : {21793383: [1347878656, 1347878649, 1347878644, 1347878641, 1347878507, 1347878474, 1347878450, 1347878418, 1347878396, 1347878308, 1347878296, 1347878291, 1347878272, 1347878255, 1347878225, 1347878122, 1347878118, 1347878113, 1347878107, 1347878105, 1347877985, 1347877960, 1347877954, 1347877499, 1347877391, 1347877326, 1347877320, 1347877308, 1347877298, 1347877159, 1347877154, 1347877130, 1347877127, 1347877061, 1347877055, 1347877052, 1347877033, 1347877027, 1347877019, 1347877011, 1347877003, 1347876996, 1347876948, 1347876921, 1347876839, 1347876834, 1347876828, 1347876824, 1347876703, 1347876698, 1347876528, 1347876509, 1347876504, 1347876492, 1347876476]} final : False mtd_id 4302 list_pids : [1347878656, 1347878649, 1347878644, 1347878641, 1347878507, 1347878474, 1347878450, 1347878418, 1347878396, 1347878308, 1347878296, 1347878291, 1347878272, 1347878255, 1347878225] Looping around the photos to save general results len do output : 1 /21793383. 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, '2697697') ('4302', '21793383', '1347878656', None, None, None, None, None, '2697697') ('4302', None, None, None, None, None, None, None, '2697697') ('4302', '21793383', '1347878649', None, None, None, None, None, '2697697') ('4302', None, None, None, None, None, None, None, '2697697') ('4302', '21793383', '1347878644', None, None, None, None, None, '2697697') ('4302', None, None, None, None, None, None, None, '2697697') ('4302', '21793383', '1347878641', None, None, None, None, None, '2697697') ('4302', None, None, None, None, None, None, None, '2697697') ('4302', '21793383', '1347878507', None, None, None, None, None, '2697697') ('4302', None, None, None, None, None, None, None, '2697697') ('4302', '21793383', '1347878474', None, None, None, None, None, '2697697') ('4302', None, None, None, None, None, None, None, '2697697') ('4302', '21793383', '1347878450', None, None, None, None, None, '2697697') ('4302', None, None, None, None, None, None, None, '2697697') ('4302', '21793383', '1347878418', None, None, None, None, None, '2697697') ('4302', None, None, None, None, None, None, None, '2697697') ('4302', '21793383', '1347878396', None, None, None, None, None, '2697697') ('4302', None, None, None, None, None, None, None, '2697697') ('4302', '21793383', '1347878308', None, None, None, None, None, '2697697') ('4302', None, None, None, None, None, None, None, '2697697') ('4302', '21793383', '1347878296', None, None, None, None, None, '2697697') ('4302', None, None, None, None, None, None, None, '2697697') ('4302', '21793383', '1347878291', None, None, None, None, None, '2697697') ('4302', None, None, None, None, None, None, None, '2697697') ('4302', '21793383', '1347878272', None, None, None, None, None, '2697697') ('4302', None, None, None, None, None, None, None, '2697697') ('4302', '21793383', '1347878255', None, None, None, None, None, '2697697') ('4302', None, None, None, None, None, None, None, '2697697') ('4302', '21793383', '1347878225', None, None, None, None, None, '2697697') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 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, '21793383', "{'kraft': 21793384, 'Teint_Dans_La_Masse': 21793385, 'metal': 21793386, 'flou': 21793387, 'papier': 21793388, 'plastique': 21793389, 'environnement': 21793390, 'cartonnette': 21793391, 'Carton_brun': 21793392, 'mal_croppe': 21793393, 'autre_refus': 21793394, 'Carton_gris': 21793395}", None, None, None, None, '2697697'), ('4302', '21793383', '1347878656', None, None, None, None, None, '2697697'), ('4302', '21793383', '1347878649', None, None, None, None, None, '2697697'), ('4302', '21793383', '1347878644', None, None, None, None, None, '2697697'), ('4302', '21793383', '1347878641', None, None, None, None, None, '2697697'), ('4302', '21793383', '1347878507', None, None, None, None, None, '2697697'), ('4302', '21793383', '1347878474', None, None, None, None, None, '2697697'), ('4302', '21793383', '1347878450', None, None, None, None, None, '2697697'), ('4302', '21793383', '1347878418', None, None, None, None, None, '2697697'), ('4302', '21793383', '1347878396', None, None, None, None, None, '2697697'), ('4302', '21793383', '1347878308', None, None, None, None, None, '2697697'), ('4302', '21793383', '1347878296', None, None, None, None, None, '2697697'), ('4302', '21793383', '1347878291', None, None, None, None, None, '2697697'), ('4302', '21793383', '1347878272', None, None, None, None, None, '2697697'), ('4302', '21793383', '1347878255', None, None, None, None, None, '2697697'), ('4302', '21793383', '1347878225', None, None, None, None, None, '2697697')] time used for this insertion : 0.013334512710571289 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4950644969940186 time spend to save output : 0.013696670532226562 total time spend for step 1 : 1.5087611675262451 step2:final Thu Mar 27 14:44:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21793383) 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 21793383 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1347876528,1347876509,1347876504,1347876492,1347876476,1347876703,1347876948,1347876698,1347876921,1347876839,1347876834,1347876828,1347876824,1347877033,1347877027,1347877019,1347877011,1347877003,1347876996,1347877061,1347877055,1347877052,1347877159,1347877154,1347877130,1347877127,1347877499,1347877391,1347877326,1347877320,1347877308,1347877298,1347877985,1347877960,1347877954,1347878122,1347878118,1347878113,1347878107,1347878105,1347878308,1347878296,1347878291,1347878272,1347878255,1347878225,1347878507,1347878474,1347878450,1347878418,1347878396,1347878656,1347878649,1347878644,1347878641); 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([21793383]) Inside saveOutput : final : False verbose : True original output for save of step final : {1347878656: ('0.02696734521455173',), 1347878649: ('0.02696734521455173',), 1347878644: ('0.02696734521455173',), 1347878641: ('0.02696734521455173',), 1347878507: ('0.02696734521455173',), 1347878474: ('0.02696734521455173',), 1347878450: ('0.02696734521455173',), 1347878418: ('0.02696734521455173',), 1347878396: ('0.02696734521455173',), 1347878308: ('0.02696734521455173',), 1347878296: ('0.02696734521455173',), 1347878291: ('0.02696734521455173',), 1347878272: ('0.02696734521455173',), 1347878255: ('0.02696734521455173',), 1347878225: ('0.02696734521455173',)} new output for save of step final : {1347878656: ('0.02696734521455173',), 1347878649: ('0.02696734521455173',), 1347878644: ('0.02696734521455173',), 1347878641: ('0.02696734521455173',), 1347878507: ('0.02696734521455173',), 1347878474: ('0.02696734521455173',), 1347878450: ('0.02696734521455173',), 1347878418: ('0.02696734521455173',), 1347878396: ('0.02696734521455173',), 1347878308: ('0.02696734521455173',), 1347878296: ('0.02696734521455173',), 1347878291: ('0.02696734521455173',), 1347878272: ('0.02696734521455173',), 1347878255: ('0.02696734521455173',), 1347878225: ('0.02696734521455173',)} [1347878656, 1347878649, 1347878644, 1347878641, 1347878507, 1347878474, 1347878450, 1347878418, 1347878396, 1347878308, 1347878296, 1347878291, 1347878272, 1347878255, 1347878225] map_info['map_portfolio_photo'] : {21793383: [1347878656, 1347878649, 1347878644, 1347878641, 1347878507, 1347878474, 1347878450, 1347878418, 1347878396, 1347878308, 1347878296, 1347878291, 1347878272, 1347878255, 1347878225, 1347878122, 1347878118, 1347878113, 1347878107, 1347878105, 1347877985, 1347877960, 1347877954, 1347877499, 1347877391, 1347877326, 1347877320, 1347877308, 1347877298, 1347877159, 1347877154, 1347877130, 1347877127, 1347877061, 1347877055, 1347877052, 1347877033, 1347877027, 1347877019, 1347877011, 1347877003, 1347876996, 1347876948, 1347876921, 1347876839, 1347876834, 1347876828, 1347876824, 1347876703, 1347876698, 1347876528, 1347876509, 1347876504, 1347876492, 1347876476]} final : False mtd_id 4302 list_pids : [1347878656, 1347878649, 1347878644, 1347878641, 1347878507, 1347878474, 1347878450, 1347878418, 1347878396, 1347878308, 1347878296, 1347878291, 1347878272, 1347878255, 1347878225] Looping around the photos to save general results len do output : 15 /1347878656.Didn't retrieve data . /1347878649.Didn't retrieve data . /1347878644.Didn't retrieve data . /1347878641.Didn't retrieve data . /1347878507.Didn't retrieve data . /1347878474.Didn't retrieve data . /1347878450.Didn't retrieve data . /1347878418.Didn't retrieve data . /1347878396.Didn't retrieve data . /1347878308.Didn't retrieve data . /1347878296.Didn't retrieve data . /1347878291.Didn't retrieve data . /1347878272.Didn't retrieve data . /1347878255.Didn't retrieve data . /1347878225.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, '2697697') ('4302', '21793383', '1347878656', None, None, None, None, None, '2697697') ('4302', None, None, None, None, None, None, None, '2697697') ('4302', '21793383', '1347878649', None, None, None, None, None, '2697697') ('4302', None, None, None, None, None, None, None, '2697697') ('4302', '21793383', '1347878644', None, None, None, None, None, '2697697') ('4302', None, None, None, None, None, None, None, '2697697') ('4302', '21793383', '1347878641', None, None, None, None, None, '2697697') ('4302', None, None, None, None, None, None, None, '2697697') ('4302', '21793383', '1347878507', None, None, None, None, None, '2697697') ('4302', None, None, None, None, None, None, None, '2697697') ('4302', '21793383', '1347878474', None, None, None, None, None, '2697697') ('4302', None, None, None, None, None, None, None, '2697697') ('4302', '21793383', '1347878450', None, None, None, None, None, '2697697') ('4302', None, None, None, None, None, None, None, '2697697') ('4302', '21793383', '1347878418', None, None, None, None, None, '2697697') ('4302', None, None, None, None, None, None, None, '2697697') ('4302', '21793383', '1347878396', None, None, None, None, None, '2697697') ('4302', None, None, None, None, None, None, None, '2697697') ('4302', '21793383', '1347878308', None, None, None, None, None, '2697697') ('4302', None, None, None, None, None, None, None, '2697697') ('4302', '21793383', '1347878296', None, None, None, None, None, '2697697') ('4302', None, None, None, None, None, None, None, '2697697') ('4302', '21793383', '1347878291', None, None, None, None, None, '2697697') ('4302', None, None, None, None, None, None, None, '2697697') ('4302', '21793383', '1347878272', None, None, None, None, None, '2697697') ('4302', None, None, None, None, None, None, None, '2697697') ('4302', '21793383', '1347878255', None, None, None, None, None, '2697697') ('4302', None, None, None, None, None, None, None, '2697697') ('4302', '21793383', '1347878225', None, None, None, None, None, '2697697') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 45 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', '21793383', '1347878656', '0.02696734521455173', None, None, None, None, '2697697'), ('4302', '21793383', '1347878649', '0.02696734521455173', None, None, None, None, '2697697'), ('4302', '21793383', '1347878644', '0.02696734521455173', None, None, None, None, '2697697'), ('4302', '21793383', '1347878641', '0.02696734521455173', None, None, None, None, '2697697'), ('4302', '21793383', '1347878507', '0.02696734521455173', None, None, None, None, '2697697'), ('4302', '21793383', '1347878474', '0.02696734521455173', None, None, None, None, '2697697'), ('4302', '21793383', '1347878450', '0.02696734521455173', None, None, None, None, '2697697'), ('4302', '21793383', '1347878418', '0.02696734521455173', None, None, None, None, '2697697'), ('4302', '21793383', '1347878396', '0.02696734521455173', None, None, None, None, '2697697'), ('4302', '21793383', '1347878308', '0.02696734521455173', None, None, None, None, '2697697'), ('4302', '21793383', '1347878296', '0.02696734521455173', None, None, None, None, '2697697'), ('4302', '21793383', '1347878291', '0.02696734521455173', None, None, None, None, '2697697'), ('4302', '21793383', '1347878272', '0.02696734521455173', None, None, None, None, '2697697'), ('4302', '21793383', '1347878255', '0.02696734521455173', None, None, None, None, '2697697'), ('4302', '21793383', '1347878225', '0.02696734521455173', None, None, None, None, '2697697')] time used for this insertion : 0.013828039169311523 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06521368026733398 time spend to save output : 0.014695882797241211 total time spend for step 2 : 0.0799095630645752 step3:velours_tree Thu Mar 27 14:44:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {21793383: [{'kraft': 21793384, 'Teint_Dans_La_Masse': 21793385, 'metal': 21793386, 'flou': 21793387, 'papier': 21793388, 'plastique': 21793389, 'environnement': 21793390, 'cartonnette': 21793391, 'Carton_brun': 21793392, 'mal_croppe': 21793393, 'autre_refus': 21793394, 'Carton_gris': 21793395}]} input_args_next_step : {21793383: ()} output_args : {21793383: [{'kraft': 21793384, 'Teint_Dans_La_Masse': 21793385, 'metal': 21793386, 'flou': 21793387, 'papier': 21793388, 'plastique': 21793389, 'environnement': 21793390, 'cartonnette': 21793391, 'Carton_brun': 21793392, 'mal_croppe': 21793393, 'autre_refus': 21793394, 'Carton_gris': 21793395}]} args : 21793383 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'kraft': 21793384, 'Teint_Dans_La_Masse': 21793385, 'metal': 21793386, 'flou': 21793387, 'papier': 21793388, 'plastique': 21793389, 'environnement': 21793390, 'cartonnette': 21793391, 'Carton_brun': 21793392, 'mal_croppe': 21793393, 'autre_refus': 21793394, 'Carton_gris': 21793395},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21793383) 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([21793383]) 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.3594319820404053 time spend to save output : 4.673004150390625e-05 total time spend for step 3 : 0.3594787120819092 step4:send_mail_cod Thu Mar 27 14:44:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1347878656: ('0.02696734521455173',), 1347878649: ('0.02696734521455173',), 1347878644: ('0.02696734521455173',), 1347878641: ('0.02696734521455173',), 1347878507: ('0.02696734521455173',), 1347878474: ('0.02696734521455173',), 1347878450: ('0.02696734521455173',), 1347878418: ('0.02696734521455173',), 1347878396: ('0.02696734521455173',), 1347878308: ('0.02696734521455173',), 1347878296: ('0.02696734521455173',), 1347878291: ('0.02696734521455173',), 1347878272: ('0.02696734521455173',), 1347878255: ('0.02696734521455173',), 1347878225: ('0.02696734521455173',)} input_args_next_step : {1347878656: ()} output_args : {1347878656: ('0.02696734521455173',), 1347878649: ('0.02696734521455173',), 1347878644: ('0.02696734521455173',), 1347878641: ('0.02696734521455173',), 1347878507: ('0.02696734521455173',), 1347878474: ('0.02696734521455173',), 1347878450: ('0.02696734521455173',), 1347878418: ('0.02696734521455173',), 1347878396: ('0.02696734521455173',), 1347878308: ('0.02696734521455173',), 1347878296: ('0.02696734521455173',), 1347878291: ('0.02696734521455173',), 1347878272: ('0.02696734521455173',), 1347878255: ('0.02696734521455173',), 1347878225: ('0.02696734521455173',)} args : 1347878656 depend.output_id : 0 input_args_next_step : {1347878656: ('0.02696734521455173',), 1347878649: ()} output_args : {1347878656: ('0.02696734521455173',), 1347878649: ('0.02696734521455173',), 1347878644: ('0.02696734521455173',), 1347878641: ('0.02696734521455173',), 1347878507: ('0.02696734521455173',), 1347878474: ('0.02696734521455173',), 1347878450: ('0.02696734521455173',), 1347878418: ('0.02696734521455173',), 1347878396: ('0.02696734521455173',), 1347878308: ('0.02696734521455173',), 1347878296: ('0.02696734521455173',), 1347878291: ('0.02696734521455173',), 1347878272: ('0.02696734521455173',), 1347878255: ('0.02696734521455173',), 1347878225: ('0.02696734521455173',)} args : 1347878649 depend.output_id : 0 input_args_next_step : {1347878656: ('0.02696734521455173',), 1347878649: ('0.02696734521455173',), 1347878644: ()} output_args : {1347878656: ('0.02696734521455173',), 1347878649: ('0.02696734521455173',), 1347878644: ('0.02696734521455173',), 1347878641: ('0.02696734521455173',), 1347878507: ('0.02696734521455173',), 1347878474: ('0.02696734521455173',), 1347878450: ('0.02696734521455173',), 1347878418: ('0.02696734521455173',), 1347878396: ('0.02696734521455173',), 1347878308: ('0.02696734521455173',), 1347878296: ('0.02696734521455173',), 1347878291: ('0.02696734521455173',), 1347878272: ('0.02696734521455173',), 1347878255: ('0.02696734521455173',), 1347878225: ('0.02696734521455173',)} args : 1347878644 depend.output_id : 0 input_args_next_step : {1347878656: ('0.02696734521455173',), 1347878649: ('0.02696734521455173',), 1347878644: ('0.02696734521455173',), 1347878641: ()} output_args : {1347878656: ('0.02696734521455173',), 1347878649: ('0.02696734521455173',), 1347878644: ('0.02696734521455173',), 1347878641: ('0.02696734521455173',), 1347878507: ('0.02696734521455173',), 1347878474: ('0.02696734521455173',), 1347878450: ('0.02696734521455173',), 1347878418: ('0.02696734521455173',), 1347878396: ('0.02696734521455173',), 1347878308: ('0.02696734521455173',), 1347878296: ('0.02696734521455173',), 1347878291: ('0.02696734521455173',), 1347878272: ('0.02696734521455173',), 1347878255: ('0.02696734521455173',), 1347878225: ('0.02696734521455173',)} args : 1347878641 depend.output_id : 0 input_args_next_step : {1347878656: ('0.02696734521455173',), 1347878649: ('0.02696734521455173',), 1347878644: ('0.02696734521455173',), 1347878641: ('0.02696734521455173',), 1347878507: ()} output_args : {1347878656: ('0.02696734521455173',), 1347878649: ('0.02696734521455173',), 1347878644: ('0.02696734521455173',), 1347878641: ('0.02696734521455173',), 1347878507: ('0.02696734521455173',), 1347878474: ('0.02696734521455173',), 1347878450: ('0.02696734521455173',), 1347878418: ('0.02696734521455173',), 1347878396: ('0.02696734521455173',), 1347878308: ('0.02696734521455173',), 1347878296: ('0.02696734521455173',), 1347878291: ('0.02696734521455173',), 1347878272: ('0.02696734521455173',), 1347878255: ('0.02696734521455173',), 1347878225: ('0.02696734521455173',)} args : 1347878507 depend.output_id : 0 input_args_next_step : {1347878656: ('0.02696734521455173',), 1347878649: ('0.02696734521455173',), 1347878644: ('0.02696734521455173',), 1347878641: ('0.02696734521455173',), 1347878507: ('0.02696734521455173',), 1347878474: ()} output_args : {1347878656: ('0.02696734521455173',), 1347878649: ('0.02696734521455173',), 1347878644: ('0.02696734521455173',), 1347878641: ('0.02696734521455173',), 1347878507: ('0.02696734521455173',), 1347878474: ('0.02696734521455173',), 1347878450: ('0.02696734521455173',), 1347878418: ('0.02696734521455173',), 1347878396: ('0.02696734521455173',), 1347878308: ('0.02696734521455173',), 1347878296: ('0.02696734521455173',), 1347878291: ('0.02696734521455173',), 1347878272: ('0.02696734521455173',), 1347878255: ('0.02696734521455173',), 1347878225: ('0.02696734521455173',)} args : 1347878474 depend.output_id : 0 input_args_next_step : {1347878656: ('0.02696734521455173',), 1347878649: ('0.02696734521455173',), 1347878644: ('0.02696734521455173',), 1347878641: ('0.02696734521455173',), 1347878507: ('0.02696734521455173',), 1347878474: ('0.02696734521455173',), 1347878450: ()} output_args : {1347878656: ('0.02696734521455173',), 1347878649: ('0.02696734521455173',), 1347878644: ('0.02696734521455173',), 1347878641: ('0.02696734521455173',), 1347878507: ('0.02696734521455173',), 1347878474: ('0.02696734521455173',), 1347878450: ('0.02696734521455173',), 1347878418: ('0.02696734521455173',), 1347878396: ('0.02696734521455173',), 1347878308: ('0.02696734521455173',), 1347878296: ('0.02696734521455173',), 1347878291: ('0.02696734521455173',), 1347878272: ('0.02696734521455173',), 1347878255: ('0.02696734521455173',), 1347878225: ('0.02696734521455173',)} args : 1347878450 depend.output_id : 0 input_args_next_step : {1347878656: ('0.02696734521455173',), 1347878649: ('0.02696734521455173',), 1347878644: ('0.02696734521455173',), 1347878641: ('0.02696734521455173',), 1347878507: ('0.02696734521455173',), 1347878474: ('0.02696734521455173',), 1347878450: ('0.02696734521455173',), 1347878418: ()} output_args : {1347878656: ('0.02696734521455173',), 1347878649: ('0.02696734521455173',), 1347878644: ('0.02696734521455173',), 1347878641: ('0.02696734521455173',), 1347878507: ('0.02696734521455173',), 1347878474: ('0.02696734521455173',), 1347878450: ('0.02696734521455173',), 1347878418: ('0.02696734521455173',), 1347878396: ('0.02696734521455173',), 1347878308: ('0.02696734521455173',), 1347878296: ('0.02696734521455173',), 1347878291: ('0.02696734521455173',), 1347878272: ('0.02696734521455173',), 1347878255: ('0.02696734521455173',), 1347878225: ('0.02696734521455173',)} args : 1347878418 depend.output_id : 0 input_args_next_step : {1347878656: ('0.02696734521455173',), 1347878649: ('0.02696734521455173',), 1347878644: ('0.02696734521455173',), 1347878641: ('0.02696734521455173',), 1347878507: ('0.02696734521455173',), 1347878474: ('0.02696734521455173',), 1347878450: ('0.02696734521455173',), 1347878418: ('0.02696734521455173',), 1347878396: ()} output_args : {1347878656: ('0.02696734521455173',), 1347878649: ('0.02696734521455173',), 1347878644: ('0.02696734521455173',), 1347878641: ('0.02696734521455173',), 1347878507: ('0.02696734521455173',), 1347878474: ('0.02696734521455173',), 1347878450: ('0.02696734521455173',), 1347878418: ('0.02696734521455173',), 1347878396: ('0.02696734521455173',), 1347878308: ('0.02696734521455173',), 1347878296: ('0.02696734521455173',), 1347878291: ('0.02696734521455173',), 1347878272: ('0.02696734521455173',), 1347878255: ('0.02696734521455173',), 1347878225: ('0.02696734521455173',)} args : 1347878396 depend.output_id : 0 input_args_next_step : {1347878656: ('0.02696734521455173',), 1347878649: ('0.02696734521455173',), 1347878644: ('0.02696734521455173',), 1347878641: ('0.02696734521455173',), 1347878507: ('0.02696734521455173',), 1347878474: ('0.02696734521455173',), 1347878450: ('0.02696734521455173',), 1347878418: ('0.02696734521455173',), 1347878396: ('0.02696734521455173',), 1347878308: ()} output_args : {1347878656: ('0.02696734521455173',), 1347878649: ('0.02696734521455173',), 1347878644: ('0.02696734521455173',), 1347878641: ('0.02696734521455173',), 1347878507: ('0.02696734521455173',), 1347878474: ('0.02696734521455173',), 1347878450: ('0.02696734521455173',), 1347878418: ('0.02696734521455173',), 1347878396: ('0.02696734521455173',), 1347878308: ('0.02696734521455173',), 1347878296: ('0.02696734521455173',), 1347878291: ('0.02696734521455173',), 1347878272: ('0.02696734521455173',), 1347878255: ('0.02696734521455173',), 1347878225: ('0.02696734521455173',)} args : 1347878308 depend.output_id : 0 input_args_next_step : {1347878656: ('0.02696734521455173',), 1347878649: ('0.02696734521455173',), 1347878644: ('0.02696734521455173',), 1347878641: ('0.02696734521455173',), 1347878507: ('0.02696734521455173',), 1347878474: ('0.02696734521455173',), 1347878450: ('0.02696734521455173',), 1347878418: ('0.02696734521455173',), 1347878396: ('0.02696734521455173',), 1347878308: ('0.02696734521455173',), 1347878296: ()} output_args : {1347878656: ('0.02696734521455173',), 1347878649: ('0.02696734521455173',), 1347878644: ('0.02696734521455173',), 1347878641: ('0.02696734521455173',), 1347878507: ('0.02696734521455173',), 1347878474: ('0.02696734521455173',), 1347878450: ('0.02696734521455173',), 1347878418: ('0.02696734521455173',), 1347878396: ('0.02696734521455173',), 1347878308: ('0.02696734521455173',), 1347878296: ('0.02696734521455173',), 1347878291: ('0.02696734521455173',), 1347878272: ('0.02696734521455173',), 1347878255: ('0.02696734521455173',), 1347878225: ('0.02696734521455173',)} args : 1347878296 depend.output_id : 0 input_args_next_step : {1347878656: ('0.02696734521455173',), 1347878649: ('0.02696734521455173',), 1347878644: ('0.02696734521455173',), 1347878641: ('0.02696734521455173',), 1347878507: ('0.02696734521455173',), 1347878474: ('0.02696734521455173',), 1347878450: ('0.02696734521455173',), 1347878418: ('0.02696734521455173',), 1347878396: ('0.02696734521455173',), 1347878308: ('0.02696734521455173',), 1347878296: ('0.02696734521455173',), 1347878291: ()} output_args : {1347878656: ('0.02696734521455173',), 1347878649: ('0.02696734521455173',), 1347878644: ('0.02696734521455173',), 1347878641: ('0.02696734521455173',), 1347878507: ('0.02696734521455173',), 1347878474: ('0.02696734521455173',), 1347878450: ('0.02696734521455173',), 1347878418: ('0.02696734521455173',), 1347878396: ('0.02696734521455173',), 1347878308: ('0.02696734521455173',), 1347878296: ('0.02696734521455173',), 1347878291: ('0.02696734521455173',), 1347878272: ('0.02696734521455173',), 1347878255: ('0.02696734521455173',), 1347878225: ('0.02696734521455173',)} args : 1347878291 depend.output_id : 0 input_args_next_step : {1347878656: ('0.02696734521455173',), 1347878649: ('0.02696734521455173',), 1347878644: ('0.02696734521455173',), 1347878641: ('0.02696734521455173',), 1347878507: ('0.02696734521455173',), 1347878474: ('0.02696734521455173',), 1347878450: ('0.02696734521455173',), 1347878418: ('0.02696734521455173',), 1347878396: ('0.02696734521455173',), 1347878308: ('0.02696734521455173',), 1347878296: ('0.02696734521455173',), 1347878291: ('0.02696734521455173',), 1347878272: ()} output_args : {1347878656: ('0.02696734521455173',), 1347878649: ('0.02696734521455173',), 1347878644: ('0.02696734521455173',), 1347878641: ('0.02696734521455173',), 1347878507: ('0.02696734521455173',), 1347878474: ('0.02696734521455173',), 1347878450: ('0.02696734521455173',), 1347878418: ('0.02696734521455173',), 1347878396: ('0.02696734521455173',), 1347878308: ('0.02696734521455173',), 1347878296: ('0.02696734521455173',), 1347878291: ('0.02696734521455173',), 1347878272: ('0.02696734521455173',), 1347878255: ('0.02696734521455173',), 1347878225: ('0.02696734521455173',)} args : 1347878272 depend.output_id : 0 input_args_next_step : {1347878656: ('0.02696734521455173',), 1347878649: ('0.02696734521455173',), 1347878644: ('0.02696734521455173',), 1347878641: ('0.02696734521455173',), 1347878507: ('0.02696734521455173',), 1347878474: ('0.02696734521455173',), 1347878450: ('0.02696734521455173',), 1347878418: ('0.02696734521455173',), 1347878396: ('0.02696734521455173',), 1347878308: ('0.02696734521455173',), 1347878296: ('0.02696734521455173',), 1347878291: ('0.02696734521455173',), 1347878272: ('0.02696734521455173',), 1347878255: ()} output_args : {1347878656: ('0.02696734521455173',), 1347878649: ('0.02696734521455173',), 1347878644: ('0.02696734521455173',), 1347878641: ('0.02696734521455173',), 1347878507: ('0.02696734521455173',), 1347878474: ('0.02696734521455173',), 1347878450: ('0.02696734521455173',), 1347878418: ('0.02696734521455173',), 1347878396: ('0.02696734521455173',), 1347878308: ('0.02696734521455173',), 1347878296: ('0.02696734521455173',), 1347878291: ('0.02696734521455173',), 1347878272: ('0.02696734521455173',), 1347878255: ('0.02696734521455173',), 1347878225: ('0.02696734521455173',)} args : 1347878255 depend.output_id : 0 input_args_next_step : {1347878656: ('0.02696734521455173',), 1347878649: ('0.02696734521455173',), 1347878644: ('0.02696734521455173',), 1347878641: ('0.02696734521455173',), 1347878507: ('0.02696734521455173',), 1347878474: ('0.02696734521455173',), 1347878450: ('0.02696734521455173',), 1347878418: ('0.02696734521455173',), 1347878396: ('0.02696734521455173',), 1347878308: ('0.02696734521455173',), 1347878296: ('0.02696734521455173',), 1347878291: ('0.02696734521455173',), 1347878272: ('0.02696734521455173',), 1347878255: ('0.02696734521455173',), 1347878225: ()} output_args : {1347878656: ('0.02696734521455173',), 1347878649: ('0.02696734521455173',), 1347878644: ('0.02696734521455173',), 1347878641: ('0.02696734521455173',), 1347878507: ('0.02696734521455173',), 1347878474: ('0.02696734521455173',), 1347878450: ('0.02696734521455173',), 1347878418: ('0.02696734521455173',), 1347878396: ('0.02696734521455173',), 1347878308: ('0.02696734521455173',), 1347878296: ('0.02696734521455173',), 1347878291: ('0.02696734521455173',), 1347878272: ('0.02696734521455173',), 1347878255: ('0.02696734521455173',), 1347878225: ('0.02696734521455173',)} args : 1347878225 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 : {21793383: [{'kraft': 21793384, 'Teint_Dans_La_Masse': 21793385, 'metal': 21793386, 'flou': 21793387, 'papier': 21793388, 'plastique': 21793389, 'environnement': 21793390, 'cartonnette': 21793391, 'Carton_brun': 21793392, 'mal_croppe': 21793393, 'autre_refus': 21793394, 'Carton_gris': 21793395}]} input_args_next_step : {1347878656: ('0.02696734521455173',), 1347878649: ('0.02696734521455173',), 1347878644: ('0.02696734521455173',), 1347878641: ('0.02696734521455173',), 1347878507: ('0.02696734521455173',), 1347878474: ('0.02696734521455173',), 1347878450: ('0.02696734521455173',), 1347878418: ('0.02696734521455173',), 1347878396: ('0.02696734521455173',), 1347878308: ('0.02696734521455173',), 1347878296: ('0.02696734521455173',), 1347878291: ('0.02696734521455173',), 1347878272: ('0.02696734521455173',), 1347878255: ('0.02696734521455173',), 1347878225: ('0.02696734521455173',), 21793383: ()} output_args : {21793383: [{'kraft': 21793384, 'Teint_Dans_La_Masse': 21793385, 'metal': 21793386, 'flou': 21793387, 'papier': 21793388, 'plastique': 21793389, 'environnement': 21793390, 'cartonnette': 21793391, 'Carton_brun': 21793392, 'mal_croppe': 21793393, 'autre_refus': 21793394, 'Carton_gris': 21793395}]} args : 21793383 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 :16, first value : ('0.02696734521455173',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21793383) 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 (1347878656,1347878649,1347878644,1347878641,1347878507,1347878474,1347878450,1347878418,1347878396,1347878308,1347878296,1347878291,1347878272,1347878255,1347878225) Found this number of photos: 15 ##### Call download_photos : nb_thread : 5 begin to download photo : 1347878225 begin to download photo : 1347878296 begin to download photo : 1347878450 begin to download photo : 1347878644 download finish for photo 1347878450 begin to download photo : 1347878474 download finish for photo 1347878644 begin to download photo : 1347878649 download finish for photo 1347878296 begin to download photo : 1347878308 download finish for photo 1347878225 begin to download photo : 1347878255 download finish for photo 1347878474 begin to download photo : 1347878507 download finish for photo 1347878649 begin to download photo : 1347878656 download finish for photo 1347878255 begin to download photo : 1347878272 download finish for photo 1347878308 begin to download photo : 1347878396 download finish for photo 1347878656 download finish for photo 1347878507 begin to download photo : 1347878641 download finish for photo 1347878272 begin to download photo : 1347878291 download finish for photo 1347878396 begin to download photo : 1347878418 download finish for photo 1347878641 download finish for photo 1347878418 download finish for photo 1347878291 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette217933841743083099/ imagette217933861743083099/ imagette217933871743083099/ length of list_filenames : 15 ; length of list_pids : 15 ; length of list_args : 15 results_Auto_P21793383_27-03-2025_14_44_59.pdf 21793384 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=21793384 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217933841743083099 21793386 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=21793386 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217933861743083099 21793387 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=21793387 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217933871743083099 21793389 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=21793389 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347877022: '1743082482_734580_1347876504_61196778383a7cd25f0386e463e3dfce_rle_crop_3733814080_0.png', 1347877945: '1743082722_740193_1347877055_a6528162eca3ff9db7c310ff87934846_rle_crop_3733819331_0.png', 1347877990: '1743082693_3637835_1347877003_74b6bc28e5d3ca3ef7fd3efb0197cf7f_rle_crop_3733819478_0.png', 1347878320: '1743082854_3642059_1347877127_3eda59b4adb3a0014f6e817e13edfa92_rle_crop_3733822936_0.png', 1347878353: '1743082863_3642163_1347877320_468788401b40930624732635eb0236c6_rle_crop_3733823138_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/fa489e8b3dd7de229be5e100dbbe2d94_11448146.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/bc591c8b7088c398b70502b8509465e5_46010813.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/d70f82f0aa0c641fba340390203641fd_97601524.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/b8c3e079278587d4db7e2dafe0d8f3a4_21426995.png change filename to text .imagette217933891743083099/ imagette217933891743083099/1743082482_734580_1347876504_61196778383a7cd25f0386e463e3dfce_rle_crop_3733814080_0.png.png imagette217933891743083099/1743082722_740193_1347877055_a6528162eca3ff9db7c310ff87934846_rle_crop_3733819331_0.png.png imagette217933891743083099/1743082693_3637835_1347877003_74b6bc28e5d3ca3ef7fd3efb0197cf7f_rle_crop_3733819478_0.png.png imagette217933891743083099/1743082854_3642059_1347877127_3eda59b4adb3a0014f6e817e13edfa92_rle_crop_3733822936_0.png.png imagette217933891743083099/1743082863_3642163_1347877320_468788401b40930624732635eb0236c6_rle_crop_3733823138_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/b87ebe187b001d74be950f9b89dae12a_88716488.png imagette217933891743083099 21793391 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=21793391 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347877021: '1743082482_734580_1347876528_83bd624d7efa21af1029892a2a77e7f4_rle_crop_3733814061_0.png', 1347878317: '1743082854_3642059_1347877154_aafbba4bd2aa0ac2c7fa700de1ce2aac_rle_crop_3733822890_0.png', 1347878318: '1743082854_3642059_1347877130_d189de7075a72eac02ee9053e40c96ce_rle_crop_3733822925_0.png', 1347878350: '1743082863_3642163_1347877298_b1b56aa6c2f8d0e3d733c2fe124e2887_rle_crop_3733823258_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/72a9828fa8f7c9311fe9c763c5fed550_9926075.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/bc374ce479b446f50b5c43d0f8da722b_21946441.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/5d41c3dda304fff64a74425ea126e954_71175134.png change filename to text .imagette217933911743083099/ imagette217933911743083099/1743082854_3642059_1347877130_d189de7075a72eac02ee9053e40c96ce_rle_crop_3733822925_0.png.png imagette217933911743083099/1743082482_734580_1347876528_83bd624d7efa21af1029892a2a77e7f4_rle_crop_3733814061_0.png.png imagette217933911743083099/1743082863_3642163_1347877298_b1b56aa6c2f8d0e3d733c2fe124e2887_rle_crop_3733823258_0.png.png imagette217933911743083099/1743082854_3642059_1347877154_aafbba4bd2aa0ac2c7fa700de1ce2aac_rle_crop_3733822890_0.png.png imagette217933931743083099/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/aa6a177b0e842655879185ed99ec4005_38670508.png imagette217933911743083099 21793393 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=21793393 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217933931743083099 21793394 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=21793394 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347877977: '1743082693_3637835_1347877003_74b6bc28e5d3ca3ef7fd3efb0197cf7f_rle_crop_3733819472_0.png', 1347878642: '1743082935_3642888_1347878105_1ca85ce8310f834f148713f42284443c_rle_crop_3733824154_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/f5f640ce0ad49f89b4b50abca7fc54dd_32284649.png change filename to text .imagette217933941743083099/ imagette217933941743083099/1743082693_3637835_1347877003_74b6bc28e5d3ca3ef7fd3efb0197cf7f_rle_crop_3733819472_0.png.png imagette217933941743083099/1743082935_3642888_1347878105_1ca85ce8310f834f148713f42284443c_rle_crop_3733824154_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/40c4793fed2ce6584bd346fd1684cc00_14401414.png imagette217933941743083099 21793385 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=21793385 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347878337: '1743082863_3642163_1347877391_6226debb21de3d7df05fdb72ce2ac55c_rle_crop_3733823064_0.png', 1347878346: '1743082863_3642163_1347877298_b1b56aa6c2f8d0e3d733c2fe124e2887_rle_crop_3733823262_0.png', 1347878345: '1743082863_3642163_1347877298_b1b56aa6c2f8d0e3d733c2fe124e2887_rle_crop_3733823261_0.png', 1347878344: '1743082863_3642163_1347877308_4899877462dcd0e3172a2d25ba4d201e_rle_crop_3733823236_0.png', 1347878343: '1743082863_3642163_1347877308_4899877462dcd0e3172a2d25ba4d201e_rle_crop_3733823233_0.png', 1347878342: '1743082863_3642163_1347877320_468788401b40930624732635eb0236c6_rle_crop_3733823140_0.png', 1347878341: '1743082863_3642163_1347877320_468788401b40930624732635eb0236c6_rle_crop_3733823142_0.png', 1347878340: '1743082863_3642163_1347877326_392ed61493f8c2dbc8ae01e6e877c55e_rle_crop_3733823127_0.png', 1347878339: '1743082863_3642163_1347877326_392ed61493f8c2dbc8ae01e6e877c55e_rle_crop_3733823124_0.png', 1347878338: '1743082863_3642163_1347877326_392ed61493f8c2dbc8ae01e6e877c55e_rle_crop_3733823129_0.png', 1347877017: '1743082482_734580_1347876476_1f5bdb33bc0eba099f6e282229617298_rle_crop_3733814094_0.png', 1347878336: '1743082863_3642163_1347877391_6226debb21de3d7df05fdb72ce2ac55c_rle_crop_3733823063_0.png', 1347878335: '1743082863_3642163_1347877391_6226debb21de3d7df05fdb72ce2ac55c_rle_crop_3733823061_0.png', 1347878334: '1743082863_3642163_1347877391_6226debb21de3d7df05fdb72ce2ac55c_rle_crop_3733823062_0.png', 1347878306: '1743082854_3642059_1347877127_3eda59b4adb3a0014f6e817e13edfa92_rle_crop_3733822940_0.png', 1347878305: '1743082854_3642059_1347877499_89aac1e00816b5f758bca08754bfb86d_rle_crop_3733822856_0.png', 1347877975: '1743082693_3637835_1347877003_74b6bc28e5d3ca3ef7fd3efb0197cf7f_rle_crop_3733819473_0.png', 1347877974: '1743082693_3637835_1347877027_c0896851af68cd1ead6b44d485310a0b_rle_crop_3733819418_0.png', 1347877972: '1743082693_3637835_1347877027_c0896851af68cd1ead6b44d485310a0b_rle_crop_3733819419_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/0dcd5b44373dd1817bc43f6f3f1fc92b_6362495.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/bac7d33cab4f9018ebaa66b983d488ac_83176351.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/74062c0b30ab288b4ec1c08635315084_13417325.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/821546b99b32468d047581ab4b3cf1e3_33409993.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/fa1fb1ad19d0a2828cd7fc5e1ce89dfa_81959773.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/b97233fa0dec6fba6fb49b4a2767fd88_31494694.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/aa242f3d4d164aacc34be69fbb7f5c7d_69670157.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/90bf6c6e5c9f8da6c13b4bc7731b5129_80475491.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/b5f60a7fe6b7bd5859df3096a3f5dfb4_17036557.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/95a30cc736bf94305e9d5341022407e3_19324997.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/acdfde90d84b1529427f5ec935f699b0_71957015.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/57d8aa1a3d15b8cb83c5816bc254e61d_22935071.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/a51362eaf29b3dc3d31b41aa116d81be_12937666.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/98d05a05947a8ec0501a535c67b0747d_98147133.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/20c8a894db4790c4e30ca09aab158cee_42269896.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/37960026ca5799e6a6401d7275657989_15026157.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/15e2ec59c675b8d722bb1ca4b92f4ecd_92806999.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/8d74adc1da46ad09d2ac47d473648686_92909112.png change filename to text .imagette217933851743083100/ imagette217933851743083100/1743082863_3642163_1347877326_392ed61493f8c2dbc8ae01e6e877c55e_rle_crop_3733823129_0.png.png imagette217933851743083100/1743082863_3642163_1347877326_392ed61493f8c2dbc8ae01e6e877c55e_rle_crop_3733823124_0.png.png imagette217933851743083100/1743082863_3642163_1347877391_6226debb21de3d7df05fdb72ce2ac55c_rle_crop_3733823062_0.png.png imagette217933851743083100/1743082863_3642163_1347877308_4899877462dcd0e3172a2d25ba4d201e_rle_crop_3733823233_0.png.png imagette217933851743083100/1743082863_3642163_1347877391_6226debb21de3d7df05fdb72ce2ac55c_rle_crop_3733823061_0.png.png imagette217933851743083100/1743082863_3642163_1347877320_468788401b40930624732635eb0236c6_rle_crop_3733823142_0.png.png imagette217933851743083100/1743082863_3642163_1347877391_6226debb21de3d7df05fdb72ce2ac55c_rle_crop_3733823063_0.png.png imagette217933851743083100/1743082693_3637835_1347877003_74b6bc28e5d3ca3ef7fd3efb0197cf7f_rle_crop_3733819473_0.png.png imagette217933851743083100/1743082854_3642059_1347877499_89aac1e00816b5f758bca08754bfb86d_rle_crop_3733822856_0.png.png imagette217933851743083100/1743082863_3642163_1347877308_4899877462dcd0e3172a2d25ba4d201e_rle_crop_3733823236_0.png.png imagette217933851743083100/1743082482_734580_1347876476_1f5bdb33bc0eba099f6e282229617298_rle_crop_3733814094_0.png.png imagette217933851743083100/1743082693_3637835_1347877027_c0896851af68cd1ead6b44d485310a0b_rle_crop_3733819418_0.png.png imagette217933851743083100/1743082863_3642163_1347877298_b1b56aa6c2f8d0e3d733c2fe124e2887_rle_crop_3733823262_0.png.png imagette217933851743083100/1743082863_3642163_1347877320_468788401b40930624732635eb0236c6_rle_crop_3733823140_0.png.png imagette217933851743083100/1743082693_3637835_1347877027_c0896851af68cd1ead6b44d485310a0b_rle_crop_3733819419_0.png.png imagette217933851743083100/1743082863_3642163_1347877298_b1b56aa6c2f8d0e3d733c2fe124e2887_rle_crop_3733823261_0.png.png imagette217933851743083100/1743082863_3642163_1347877326_392ed61493f8c2dbc8ae01e6e877c55e_rle_crop_3733823127_0.png.png imagette217933851743083100/1743082863_3642163_1347877391_6226debb21de3d7df05fdb72ce2ac55c_rle_crop_3733823064_0.png.png imagette217933851743083100/1743082854_3642059_1347877127_3eda59b4adb3a0014f6e817e13edfa92_rle_crop_3733822940_0.png.png wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/a362f7a2ad458c2a4ca4fe64bcc98d4f_86767588.png imagette217933851743083100 21793392 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=21793392 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347877944: '1743082722_740193_1347877055_a6528162eca3ff9db7c310ff87934846_rle_crop_3733819330_0.png', 1347878352: '1743082863_3642163_1347877298_b1b56aa6c2f8d0e3d733c2fe124e2887_rle_crop_3733823257_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/ddc0902f15e82d425b34b37bcc582936_59587115.png change filename to text .imagette217933921743083101/ imagette217933921743083101/1743082722_740193_1347877055_a6528162eca3ff9db7c310ff87934846_rle_crop_3733819330_0.png.png imagette217933921743083101/1743082863_3642163_1347877298_b1b56aa6c2f8d0e3d733c2fe124e2887_rle_crop_3733823257_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/d7b3a644ef508fc3a4df25b9fa7df10e_59292190.png imagette217933921743083101 21793395 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=21793395 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347877018: '1743082482_734580_1347876509_87a1c658a483380fa63d128da79a93b5_rle_crop_3733814074_0.png', 1347877987: '1743082693_3637835_1347877019_920fd1292ee459dabe7f58eaa85a9775_rle_crop_3733819439_0.png', 1347877988: '1743082693_3637835_1347876996_e60301744e944d8088808b4abc4cd8c0_rle_crop_3733819528_0.png', 1347878312: '1743082854_3642059_1347877154_aafbba4bd2aa0ac2c7fa700de1ce2aac_rle_crop_3733822888_0.png', 1347878347: '1743082863_3642163_1347877391_6226debb21de3d7df05fdb72ce2ac55c_rle_crop_3733823060_0.png', 1347878348: '1743082863_3642163_1347877326_392ed61493f8c2dbc8ae01e6e877c55e_rle_crop_3733823123_0.png', 1347878349: '1743082863_3642163_1347877326_392ed61493f8c2dbc8ae01e6e877c55e_rle_crop_3733823118_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/0d9f91ac83f82ea1975da2f487430921_2751141.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/db079fb7311e44d2234bd929a557935c_5539417.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/3d8bc77c856f2f7028cb27f31cf8b588_87398520.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/595b277b2bf1af672ff17b464b0f0f01_41436230.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/e11ed1df7e2a968a4be452bd38367451_22555759.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/dba7b89aec05a2bfbeddffb152746198_98919945.png change filename to text .imagette217933951743083101/ imagette217933951743083101/1743082863_3642163_1347877326_392ed61493f8c2dbc8ae01e6e877c55e_rle_crop_3733823118_0.png.png imagette217933951743083101/1743082863_3642163_1347877326_392ed61493f8c2dbc8ae01e6e877c55e_rle_crop_3733823123_0.png.png imagette217933951743083101/1743082693_3637835_1347877019_920fd1292ee459dabe7f58eaa85a9775_rle_crop_3733819439_0.png.png imagette217933951743083101/1743082693_3637835_1347876996_e60301744e944d8088808b4abc4cd8c0_rle_crop_3733819528_0.png.png imagette217933951743083101/1743082482_734580_1347876509_87a1c658a483380fa63d128da79a93b5_rle_crop_3733814074_0.png.png imagette217933951743083101/1743082863_3642163_1347877391_6226debb21de3d7df05fdb72ce2ac55c_rle_crop_3733823060_0.png.png imagette217933951743083101/1743082854_3642059_1347877154_aafbba4bd2aa0ac2c7fa700de1ce2aac_rle_crop_3733822888_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/223a972a1c5f80b8d22284c5ad182005_41764305.png imagette217933951743083101 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21793383 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21793396,21793397,21793398,21793399,21793400,21793401,21793402,21793403,21793404,21793405,21793406,21793407?tags=kraft,Teint_Dans_La_Masse,metal,flou,papier,plastique,environnement,cartonnette,Carton_brun,mal_croppe,autre_refus,Carton_gris your option no_mail is active, we will not send the real mail to your client args[1347878656] : ('0.02696734521455173',) no score found for photo 1347878656 We are sending mail with results at report@fotonower.com args[1347878649] : ('0.02696734521455173',) no score found for photo 1347878649 We are sending mail with results at report@fotonower.com args[1347878644] : ('0.02696734521455173',) no score found for photo 1347878644 We are sending mail with results at report@fotonower.com args[1347878641] : ('0.02696734521455173',) no score found for photo 1347878641 We are sending mail with results at report@fotonower.com args[1347878507] : ('0.02696734521455173',) no score found for photo 1347878507 We are sending mail with results at report@fotonower.com args[1347878474] : ('0.02696734521455173',) no score found for photo 1347878474 We are sending mail with results at report@fotonower.com args[1347878450] : ('0.02696734521455173',) no score found for photo 1347878450 We are sending mail with results at report@fotonower.com args[1347878418] : ('0.02696734521455173',) no score found for photo 1347878418 We are sending mail with results at report@fotonower.com args[1347878396] : ('0.02696734521455173',) no score found for photo 1347878396 We are sending mail with results at report@fotonower.com args[1347878308] : ('0.02696734521455173',) no score found for photo 1347878308 We are sending mail with results at report@fotonower.com args[1347878296] : ('0.02696734521455173',) no score found for photo 1347878296 We are sending mail with results at report@fotonower.com args[1347878291] : ('0.02696734521455173',) no score found for photo 1347878291 We are sending mail with results at report@fotonower.com args[1347878272] : ('0.02696734521455173',) no score found for photo 1347878272 We are sending mail with results at report@fotonower.com args[1347878255] : ('0.02696734521455173',) no score found for photo 1347878255 We are sending mail with results at report@fotonower.com args[1347878225] : ('0.02696734521455173',) no score found for photo 1347878225 We are sending mail with results at report@fotonower.com refus_total : 0.02696734521455173 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=21793383 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_P21793383_27-03-2025_14_44_59.pdf results_Auto_P21793383_27-03-2025_14_44_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21793383_27-03-2025_14_44_59.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','21793383','results_Auto_P21793383_27-03-2025_14_44_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21793383_27-03-2025_14_44_59.pdf','pdf','','0.24','0.02696734521455173') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21793383]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1347878656, 1347878649, 1347878644, 1347878641, 1347878507, 1347878474, 1347878450, 1347878418, 1347878396, 1347878308, 1347878296, 1347878291, 1347878272, 1347878255, 1347878225] map_info['map_portfolio_photo'] : {21793383: [1347878656, 1347878649, 1347878644, 1347878641, 1347878507, 1347878474, 1347878450, 1347878418, 1347878396, 1347878308, 1347878296, 1347878291, 1347878272, 1347878255, 1347878225, 1347878122, 1347878118, 1347878113, 1347878107, 1347878105, 1347877985, 1347877960, 1347877954, 1347877499, 1347877391, 1347877326, 1347877320, 1347877308, 1347877298, 1347877159, 1347877154, 1347877130, 1347877127, 1347877061, 1347877055, 1347877052, 1347877033, 1347877027, 1347877019, 1347877011, 1347877003, 1347876996, 1347876948, 1347876921, 1347876839, 1347876834, 1347876828, 1347876824, 1347876703, 1347876698, 1347876528, 1347876509, 1347876504, 1347876492, 1347876476]} final : False mtd_id 4302 list_pids : [1347878656, 1347878649, 1347878644, 1347878641, 1347878507, 1347878474, 1347878450, 1347878418, 1347878396, 1347878308, 1347878296, 1347878291, 1347878272, 1347878255, 1347878225] 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, '2697697') ('4302', '21793383', '1347878656', None, None, None, None, None, '2697697') ('4302', None, None, None, None, None, None, None, '2697697') ('4302', '21793383', '1347878649', None, None, None, None, None, '2697697') ('4302', None, None, None, None, None, None, None, '2697697') ('4302', '21793383', '1347878644', None, None, None, None, None, '2697697') ('4302', None, None, None, None, None, None, None, '2697697') ('4302', '21793383', '1347878641', None, None, None, None, None, '2697697') ('4302', None, None, None, None, None, None, None, '2697697') ('4302', '21793383', '1347878507', None, None, None, None, None, '2697697') ('4302', None, None, None, None, None, None, None, '2697697') ('4302', '21793383', '1347878474', None, None, None, None, None, '2697697') ('4302', None, None, None, None, None, None, None, '2697697') ('4302', '21793383', '1347878450', None, None, None, None, None, '2697697') ('4302', None, None, None, None, None, None, None, '2697697') ('4302', '21793383', '1347878418', None, None, None, None, None, '2697697') ('4302', None, None, None, None, None, None, None, '2697697') ('4302', '21793383', '1347878396', None, None, None, None, None, '2697697') ('4302', None, None, None, None, None, None, None, '2697697') ('4302', '21793383', '1347878308', None, None, None, None, None, '2697697') ('4302', None, None, None, None, None, None, None, '2697697') ('4302', '21793383', '1347878296', None, None, None, None, None, '2697697') ('4302', None, None, None, None, None, None, None, '2697697') ('4302', '21793383', '1347878291', None, None, None, None, None, '2697697') ('4302', None, None, None, None, None, None, None, '2697697') ('4302', '21793383', '1347878272', None, None, None, None, None, '2697697') ('4302', None, None, None, None, None, None, None, '2697697') ('4302', '21793383', '1347878255', None, None, None, None, None, '2697697') ('4302', None, None, None, None, None, None, None, '2697697') ('4302', '21793383', '1347878225', None, None, None, None, None, '2697697') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21793383', '1347878656', None, None, None, None, None, '2697697'), ('4302', '21793383', '1347878649', None, None, None, None, None, '2697697'), ('4302', '21793383', '1347878644', None, None, None, None, None, '2697697'), ('4302', '21793383', '1347878641', None, None, None, None, None, '2697697'), ('4302', '21793383', '1347878507', None, None, None, None, None, '2697697'), ('4302', '21793383', '1347878474', None, None, None, None, None, '2697697'), ('4302', '21793383', '1347878450', None, None, None, None, None, '2697697'), ('4302', '21793383', '1347878418', None, None, None, None, None, '2697697'), ('4302', '21793383', '1347878396', None, None, None, None, None, '2697697'), ('4302', '21793383', '1347878308', None, None, None, None, None, '2697697'), ('4302', '21793383', '1347878296', None, None, None, None, None, '2697697'), ('4302', '21793383', '1347878291', None, None, None, None, None, '2697697'), ('4302', '21793383', '1347878272', None, None, None, None, None, '2697697'), ('4302', '21793383', '1347878255', None, None, None, None, None, '2697697'), ('4302', '21793383', '1347878225', None, None, None, None, None, '2697697')] time used for this insertion : 0.014821052551269531 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.122589588165283 time spend to save output : 0.01515507698059082 total time spend for step 4 : 4.137744665145874 step5:split_time_score Thu Mar 27 14:45:03 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 : ['21793383'] 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 : [('21793383',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21793383) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1347878644: {'path': 'temp/1743083098_686342_1347878644_870d1f0829bc6d31146ecc0c2d00b2df.jpg', 'extension': 'jpg'}, 1347878649: {'path': 'temp/1743083098_686342_1347878649_219d5efe985d3a555fe691f8bd257568.jpg', 'extension': 'jpg'}, 1347878656: {'path': 'temp/1743083098_686342_1347878656_6985afa0a5667fa5029fe5079690198c.jpg', 'extension': 'jpg'}, 1347878450: {'path': 'temp/1743083098_686342_1347878450_8e0cba63668999ecb8e8e6473f328f5d.jpg', 'extension': 'jpg'}, 1347878474: {'path': 'temp/1743083098_686342_1347878474_468322043d3731ed2c1abd10bd2055c8.jpg', 'extension': 'jpg'}, 1347878507: {'path': 'temp/1743083098_686342_1347878507_3ecc9dd165fd8640a18011c3f098c98f.jpg', 'extension': 'jpg'}, 1347878641: {'path': 'temp/1743083098_686342_1347878641_da879e91ee39697fff5d2db710c359a7.jpg', 'extension': 'jpg'}, 1347878296: {'path': 'temp/1743083098_686342_1347878296_edb3a18a238a86763ebb1f999280b1ac.jpg', 'extension': 'jpg'}, 1347878308: {'path': 'temp/1743083098_686342_1347878308_050011c8a6d572f1c787a8604227e121.jpg', 'extension': 'jpg'}, 1347878396: {'path': 'temp/1743083098_686342_1347878396_a156302e61eb52f92c50dda79d7f5e41.jpg', 'extension': 'jpg'}, 1347878418: {'path': 'temp/1743083098_686342_1347878418_5745c688a2bd2e9c6a257936c29af31f.jpg', 'extension': 'jpg'}, 1347878225: {'path': 'temp/1743083098_686342_1347878225_58822d38b9a79e606a61c25f126906a4.jpg', 'extension': 'jpg'}, 1347878255: {'path': 'temp/1743083098_686342_1347878255_b68645415151882467f24e72650030d5.jpg', 'extension': 'jpg'}, 1347878272: {'path': 'temp/1743083098_686342_1347878272_bf32b5da1f1590cbc8e72c3126b5bfe0.jpg', 'extension': 'jpg'}, 1347878291: {'path': 'temp/1743083098_686342_1347878291_53c39bf256f4778e5fd16f0fb3af8dd3.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 = 21793383; (('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 = 21793383 group by h (('14', 55),) 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=21793383 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 (21793383) 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 (21793383) 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 21793383 Nombre de photos uploadées : 55 / 23040 (0%) 27032025 21793383 Nombre de photos taguées (types de déchets): 0 / 55 (0%) 27032025 21793383 Nombre de photos taguées (volume) : 0 / 55 (0%) [{'photo_id': 1347876528, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/83bd624d7efa21af1029892a2a77e7f4.jpg', 'username': None, 'uploaded_at': 1743082336, 'text': 'image_27032025_14_30_04_010139m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1347876509, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/87a1c658a483380fa63d128da79a93b5.jpg', 'username': None, 'uploaded_at': 1743082336, 'text': 'image_27032025_14_30_13_009127m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1347876504, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/61196778383a7cd25f0386e463e3dfce.jpg', 'username': None, 'uploaded_at': 1743082336, 'text': 'image_27032025_14_30_23_010134m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1347876492, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/bd314e5853c7a8bedb658b38aca32911.jpg', 'username': None, 'uploaded_at': 1743082336, 'text': 'image_27032025_14_30_33_010134m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.6226043701171875e-06 elapsed_time : order_list_meta_photo_and_scores 8.344650268554688e-06 ??????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0025758743286132812 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21793383, '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.025624990463256836 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': 1701803, 'mtr_portfolio_id': 21791777, 'dashboard_result_id': 9679709, '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_P21791777_27-03-2025_14_06_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21791778, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21791779, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21791780, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21791781, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21791782, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21791783, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21791784, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21791785, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21791786, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21791787, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21791788, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21791789, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1701803, 'mtr_portfolio_id': 21792313, 'dashboard_result_id': 9679710, '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_P21792313_27-03-2025_14_23_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21792314, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21792315, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21792316, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21792317, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21792318, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21792319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21792320, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21792321, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21792322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21792323, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21792324, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21792325, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1701803, 'mtr_portfolio_id': 21792882, 'dashboard_result_id': 9679711, '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_P21792882_27-03-2025_14_34_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21792907, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21792908, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21792909, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21792910, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21792911, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21792912, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21792913, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21792914, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21792915, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21792916, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21792917, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21792918, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1701803, 'mtr_portfolio_id': 21793383, 'dashboard_result_id': 9679712, '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_P21793383_27-03-2025_14_41_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21793384, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21793385, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21793386, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21793387, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21793388, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21793389, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21793390, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21793391, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21793392, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21793393, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21793394, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21793395, '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 = 21791777 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': 2697558, 'mtr_portfolio_id': 21791777, 'created_at': datetime.datetime(2025, 3, 27, 14, 6, 59), 'result': '0.04034588468780582', 'result_long': None, 'result_double': None}] Qualite : 0.04034588468780582 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21791777 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21791777_27-03-2025_14_06_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21791777 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_P21791777_27-03-2025_14_06_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21791778, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21791779, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21791780, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21791781, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21791782, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21791783, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21791784, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21791785, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21791786, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21791787, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21791788, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21791789, 'pht': 3726}}" where mtr_portfolio_id = 21791777 and dashboard_run_id = 1701803 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`=21791777 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9679709, 0.04034588468780582, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21791777_27-03-2025_14_06_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21791778, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21791779, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21791780, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21791781, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21791782, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21791783, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21791784, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21791785, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21791786, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21791787, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21791788, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21791789, '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 = 21792313 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': 2697610, 'mtr_portfolio_id': 21792313, 'created_at': datetime.datetime(2025, 3, 27, 14, 23), 'result': '0.04139061020303891', 'result_long': None, 'result_double': None}] Qualite : 0.04139061020303891 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21792313 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21792313_27-03-2025_14_23_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21792313 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_P21792313_27-03-2025_14_23_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21792314, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21792315, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21792316, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21792317, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21792318, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21792319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21792320, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21792321, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21792322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21792323, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21792324, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21792325, 'pht': 3726}}" where mtr_portfolio_id = 21792313 and dashboard_run_id = 1701803 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`=21792313 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9679710, 0.04139061020303891, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21792313_27-03-2025_14_23_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21792314, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21792315, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21792316, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21792317, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21792318, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21792319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21792320, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21792321, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21792322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21792323, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21792324, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21792325, '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 = 21792882 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': 2697650, 'mtr_portfolio_id': 21792882, 'created_at': datetime.datetime(2025, 3, 27, 14, 34, 29), 'result': '0.03881989802693893', 'result_long': None, 'result_double': None}] Qualite : 0.03881989802693893 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21792882 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21792882_27-03-2025_14_34_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21792882 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_P21792882_27-03-2025_14_34_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21792907, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21792908, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21792909, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21792910, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21792911, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21792912, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21792913, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21792914, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21792915, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21792916, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21792917, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21792918, 'pht': 3726}}" where mtr_portfolio_id = 21792882 and dashboard_run_id = 1701803 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`=21792882 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9679711, 0.03881989802693893, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21792882_27-03-2025_14_34_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21792907, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21792908, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21792909, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21792910, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21792911, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21792912, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21792913, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21792914, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21792915, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21792916, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21792917, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21792918, '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 = 21793383 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': 2697697, 'mtr_portfolio_id': 21793383, 'created_at': datetime.datetime(2025, 3, 27, 14, 44, 58), 'result': '0.02696734521455173', 'result_long': None, 'result_double': None}] Qualite : 0.02696734521455173 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21793383 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21793383_27-03-2025_14_44_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21793383 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_P21793383_27-03-2025_14_44_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21793384, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21793385, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21793386, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21793387, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21793388, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21793389, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21793390, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21793391, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21793392, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21793393, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21793394, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21793395, 'pht': 3726}}" where mtr_portfolio_id = 21793383 and dashboard_run_id = 1701803 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`=21793383 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9679712, 0.02696734521455173, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21793383_27-03-2025_14_44_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21793384, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21793385, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21793386, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21793387, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21793388, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21793389, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21793390, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21793391, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21793392, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21793393, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21793394, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21793395, '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 (21791777,21792313,21792882,21793383) result : ((1347867543,), (1347867609,), (1347867612,), (1347867617,), (1347867621,), (1347867701,), (1347867703,), (1347867708,), (1347867712,), (1347867752,), (1347867754,), (1347867775,), (1347867784,), (1347867789,), (1347867794,), (1347867819,), (1347867822,), (1347867825,), (1347867932,), (1347867938,), (1347867947,), (1347867953,), (1347867964,), (1347867994,), (1347868145,), (1347868148,), (1347868170,), (1347868187,), (1347868278,), (1347868281,), (1347868287,), (1347868293,), (1347868364,), (1347868384,), (1347868408,), (1347868436,), (1347868456,), (1347868841,), (1347868881,), (1347868982,), (1347869005,), (1347869038,), (1347869401,), (1347869434,), (1347869473,), (1347870599,), (1347872182,), (1347872133,), (1347872170,), (1347872176,), (1347872334,), (1347872448,), (1347872466,), (1347872475,), (1347872497,), (1347872681,), (1347872684,), (1347873050,), (1347873051,), (1347873055,), (1347873099,), (1347873196,), (1347873494,), (1347873496,), (1347873529,), (1347873623,), (1347873625,), (1347873630,), (1347873635,), (1347873748,), (1347873750,), (1347873779,), (1347873794,), (1347873810,), (1347874023,), (1347874058,), (1347874124,), (1347874325,), (1347874328,), (1347874350,), (1347874361,), (1347874459,), (1347874460,), (1347874466,), (1347874776,), (1347874780,), (1347874797,), (1347874808,), (1347874815,), (1347874853,), (1347874857,), (1347875265,), (1347875237,), (1347875245,), (1347875315,), (1347875317,), (1347875322,), (1347875371,), (1347875374,), (1347875387,), (1347875411,), (1347875413,), (1347875417,), (1347875421,), (1347875457,), (1347875458,), (1347875462,), (1347875474,), (1347875623,), (1347875747,), (1347875763,), (1347875780,), (1347875792,), (1347875830,), (1347875835,), (1347875839,), (1347875844,), (1347875851,), (1347875856,), (1347875878,), (1347875892,), (1347875906,), (1347875915,), (1347875929,), (1347876008,), (1347876027,), (1347876032,), (1347876038,), (1347876059,), (1347876101,), (1347876104,), (1347876108,), (1347876110,), (1347876113,), (1347876166,), (1347876168,), (1347876183,), (1347876188,), (1347876337,), (1347876342,), (1347876347,), (1347876376,), (1347876382,), (1347876391,), (1347876396,), (1347876400,), (1347876557,), (1347876476,), (1347876492,), (1347876504,), (1347876509,), (1347876528,), (1347876698,), (1347876703,), (1347876824,), (1347876828,), (1347876834,), (1347876839,), (1347876921,), (1347876948,), (1347876996,), (1347877003,), (1347877011,), (1347877019,), (1347877027,), (1347877033,), (1347877052,), (1347877055,), (1347877061,), (1347877127,), (1347877130,), (1347877154,), (1347877159,), (1347877298,), (1347877308,), (1347877320,), (1347877326,), (1347877391,), (1347877499,), (1347877954,), (1347877960,), (1347877985,), (1347878105,), (1347878107,), (1347878113,), (1347878118,), (1347878122,), (1347878225,), (1347878255,), (1347878272,), (1347878291,), (1347878296,), (1347878308,), (1347878396,), (1347878418,), (1347878450,), (1347878474,), (1347878507,), (1347878641,), (1347878644,), (1347878649,), (1347878656,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'27032025': {'nb_upload': 55, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21793383]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1347878656, 1347878649, 1347878644, 1347878641, 1347878507, 1347878474, 1347878450, 1347878418, 1347878396, 1347878308, 1347878296, 1347878291, 1347878272, 1347878255, 1347878225] map_info['map_portfolio_photo'] : {21793383: [1347878656, 1347878649, 1347878644, 1347878641, 1347878507, 1347878474, 1347878450, 1347878418, 1347878396, 1347878308, 1347878296, 1347878291, 1347878272, 1347878255, 1347878225, 1347878122, 1347878118, 1347878113, 1347878107, 1347878105, 1347877985, 1347877960, 1347877954, 1347877499, 1347877391, 1347877326, 1347877320, 1347877308, 1347877298, 1347877159, 1347877154, 1347877130, 1347877127, 1347877061, 1347877055, 1347877052, 1347877033, 1347877027, 1347877019, 1347877011, 1347877003, 1347876996, 1347876948, 1347876921, 1347876839, 1347876834, 1347876828, 1347876824, 1347876703, 1347876698, 1347876528, 1347876509, 1347876504, 1347876492, 1347876476]} final : True mtd_id 4302 list_pids : [1347878656, 1347878649, 1347878644, 1347878641, 1347878507, 1347878474, 1347878450, 1347878418, 1347878396, 1347878308, 1347878296, 1347878291, 1347878272, 1347878255, 1347878225] Looping around the photos to save general results len do output : 1 /21793383Didn'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, '2697697') ('4302', '21793383', '1347878656', None, None, None, None, None, '2697697') ('4302', None, None, None, None, None, None, None, '2697697') ('4302', '21793383', '1347878649', None, None, None, None, None, '2697697') ('4302', None, None, None, None, None, None, None, '2697697') ('4302', '21793383', '1347878644', None, None, None, None, None, '2697697') ('4302', None, None, None, None, None, None, None, '2697697') ('4302', '21793383', '1347878641', None, None, None, None, None, '2697697') ('4302', None, None, None, None, None, None, None, '2697697') ('4302', '21793383', '1347878507', None, None, None, None, None, '2697697') ('4302', None, None, None, None, None, None, None, '2697697') ('4302', '21793383', '1347878474', None, None, None, None, None, '2697697') ('4302', None, None, None, None, None, None, None, '2697697') ('4302', '21793383', '1347878450', None, None, None, None, None, '2697697') ('4302', None, None, None, None, None, None, None, '2697697') ('4302', '21793383', '1347878418', None, None, None, None, None, '2697697') ('4302', None, None, None, None, None, None, None, '2697697') ('4302', '21793383', '1347878396', None, None, None, None, None, '2697697') ('4302', None, None, None, None, None, None, None, '2697697') ('4302', '21793383', '1347878308', None, None, None, None, None, '2697697') ('4302', None, None, None, None, None, None, None, '2697697') ('4302', '21793383', '1347878296', None, None, None, None, None, '2697697') ('4302', None, None, None, None, None, None, None, '2697697') ('4302', '21793383', '1347878291', None, None, None, None, None, '2697697') ('4302', None, None, None, None, None, None, None, '2697697') ('4302', '21793383', '1347878272', None, None, None, None, None, '2697697') ('4302', None, None, None, None, None, None, None, '2697697') ('4302', '21793383', '1347878255', None, None, None, None, None, '2697697') ('4302', None, None, None, None, None, None, None, '2697697') ('4302', '21793383', '1347878225', None, None, None, None, None, '2697697') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 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, '21793383', 'None', None, None, None, None, '2697697'), ('4302', '21793383', '1347878656', None, None, None, None, None, '2697697'), ('4302', '21793383', '1347878649', None, None, None, None, None, '2697697'), ('4302', '21793383', '1347878644', None, None, None, None, None, '2697697'), ('4302', '21793383', '1347878641', None, None, None, None, None, '2697697'), ('4302', '21793383', '1347878507', None, None, None, None, None, '2697697'), ('4302', '21793383', '1347878474', None, None, None, None, None, '2697697'), ('4302', '21793383', '1347878450', None, None, None, None, None, '2697697'), ('4302', '21793383', '1347878418', None, None, None, None, None, '2697697'), ('4302', '21793383', '1347878396', None, None, None, None, None, '2697697'), ('4302', '21793383', '1347878308', None, None, None, None, None, '2697697'), ('4302', '21793383', '1347878296', None, None, None, None, None, '2697697'), ('4302', '21793383', '1347878291', None, None, None, None, None, '2697697'), ('4302', '21793383', '1347878272', None, None, None, None, None, '2697697'), ('4302', '21793383', '1347878255', None, None, None, None, None, '2697697'), ('4302', '21793383', '1347878225', None, None, None, None, None, '2697697')] time used for this insertion : 0.014974832534790039 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.36843037605285645 time spend to save output : 0.015238285064697266 total time spend for step 5 : 0.3836686611175537 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 (2697697) 2.45user 2.16system 0:08.50elapsed 54%CPU (0avgtext+0avgdata 159944maxresident)k 328inputs+13328outputs (19major+74997minor)pagefaults 0swaps