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 (2722727) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2722727) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22047852 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2722727'] with mtr_portfolio_ids : ['22047852'] and first list_photo_ids : [] new path : /proc/1842478/ Name: python3 Umask: 0002 State: R (running) Tgid: 1842478 Ngid: 0 Pid: 1842478 PPid: 1842477 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1842478 NSpid: 1842478 NSpgid: 1838763 NSsid: 1838763 VmPeak: 1106928 kB VmSize: 1106928 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98420 kB VmRSS: 98420 kB RssAnon: 59756 kB RssFile: 38664 kB RssShmem: 0 kB VmData: 865676 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 608 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 69 nonvoluntary_ctxt_switches: 214 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1842478', 'Ngid': '0', 'Pid': '1842478', 'PPid': '1842477', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1842478', 'NSpid': '1842478', 'NSpgid': '1838763', 'NSsid': '1838763', 'VmPeak': '1106928 kB', 'VmSize': '1106928 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98420 kB', 'VmRSS': '98420 kB', 'RssAnon': '59756 kB', 'RssFile': '38664 kB', 'RssShmem': '0 kB', 'VmData': '865676 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '608 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '69', 'nonvoluntary_ctxt_switches': '214'} ('datou_batch_current', '1842478', '1106928', '0', '1106928', '865676', '98420', b'', 'marlene', '2722727') 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 (22047852) 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 (2722727 ) ) 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 (22047852) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1349943017, 'portfolio_id': 22047852}, {'photo_id': 1349943004, 'portfolio_id': 22047852}, {'photo_id': 1349942997, 'portfolio_id': 22047852}, {'photo_id': 1349942979, 'portfolio_id': 22047852}, {'photo_id': 1349942912, 'portfolio_id': 22047852}, {'photo_id': 1349942899, 'portfolio_id': 22047852}, {'photo_id': 1349942889, 'portfolio_id': 22047852}, {'photo_id': 1349942862, 'portfolio_id': 22047852}, {'photo_id': 1349942835, 'portfolio_id': 22047852}, {'photo_id': 1349942616, 'portfolio_id': 22047852}, {'photo_id': 1349942610, 'portfolio_id': 22047852}, {'photo_id': 1349942590, 'portfolio_id': 22047852}, {'photo_id': 1349942577, 'portfolio_id': 22047852}, {'photo_id': 1349942523, 'portfolio_id': 22047852}, {'photo_id': 1349942514, 'portfolio_id': 22047852}, {'photo_id': 1349942430, 'portfolio_id': 22047852}, {'photo_id': 1349942426, 'portfolio_id': 22047852}, {'photo_id': 1349942420, 'portfolio_id': 22047852}, {'photo_id': 1349942378, 'portfolio_id': 22047852}, {'photo_id': 1349942368, 'portfolio_id': 22047852}, {'photo_id': 1349942361, 'portfolio_id': 22047852}, {'photo_id': 1349942358, 'portfolio_id': 22047852}, {'photo_id': 1349942316, 'portfolio_id': 22047852}, {'photo_id': 1349942307, 'portfolio_id': 22047852}, {'photo_id': 1349942297, 'portfolio_id': 22047852}, {'photo_id': 1349942279, 'portfolio_id': 22047852}, {'photo_id': 1349942270, 'portfolio_id': 22047852}] map_portfolio_id_photo_id: {22047852: [1349943017, 1349943004, 1349942997, 1349942979, 1349942912, 1349942899, 1349942889, 1349942862, 1349942835, 1349942616, 1349942610, 1349942590, 1349942577, 1349942523, 1349942514, 1349942430, 1349942426, 1349942420, 1349942378, 1349942368, 1349942361, 1349942358, 1349942316, 1349942307, 1349942297, 1349942279, 1349942270]} ##### 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.014605283737182617 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Fri Apr 4 02:22:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22047852) 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 : 22047852 get user id for portfolio 22047852 get sub ptf for main ptf 22047852, type 3726 and hashtags ['plastique', 'Carton_gris', 'autre_refus', 'metal', 'kraft', 'papier', 'environnement', 'flou', 'Teint_Dans_La_Masse', 'Carton_brun', 'mal_croppe', 'cartonnette'] 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`=22047852 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','Carton_gris','autre_refus','metal','kraft','papier','environnement','flou','Teint_Dans_La_Masse','Carton_brun','mal_croppe','cartonnette')) 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`=22047852 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','Carton_gris','autre_refus','metal','kraft','papier','environnement','flou','Teint_Dans_La_Masse','Carton_brun','mal_croppe','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 22047852, 'sub_port_id': 22047908, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14539205, 'last_updated_at': datetime.datetime(2025, 4, 4, 2, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 2, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 2, 19, 29)}, 'flou': {'main_port_id': 22047852, 'sub_port_id': 22047909, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14539206, 'last_updated_at': datetime.datetime(2025, 4, 4, 2, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 2, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 2, 19, 29)}, 'plastique': {'main_port_id': 22047852, 'sub_port_id': 22047910, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14539207, 'last_updated_at': datetime.datetime(2025, 4, 4, 2, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 2, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 2, 19, 29)}, 'cartonnette': {'main_port_id': 22047852, 'sub_port_id': 22047911, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14539208, 'last_updated_at': datetime.datetime(2025, 4, 4, 2, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 2, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 2, 19, 29)}, 'metal': {'main_port_id': 22047852, 'sub_port_id': 22047912, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14539209, 'last_updated_at': datetime.datetime(2025, 4, 4, 2, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 2, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 2, 19, 29)}, 'kraft': {'main_port_id': 22047852, 'sub_port_id': 22047913, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14539210, 'last_updated_at': datetime.datetime(2025, 4, 4, 2, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 2, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 2, 19, 29)}, 'Carton_gris': {'main_port_id': 22047852, 'sub_port_id': 22047914, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14539211, 'last_updated_at': datetime.datetime(2025, 4, 4, 2, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 2, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 2, 19, 29)}, 'Carton_brun': {'main_port_id': 22047852, 'sub_port_id': 22047915, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14539212, 'last_updated_at': datetime.datetime(2025, 4, 4, 2, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 2, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 2, 19, 29)}, 'environnement': {'main_port_id': 22047852, 'sub_port_id': 22047916, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14539213, 'last_updated_at': datetime.datetime(2025, 4, 4, 2, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 2, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 2, 19, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 22047852, 'sub_port_id': 22047917, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14539214, 'last_updated_at': datetime.datetime(2025, 4, 4, 2, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 2, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 2, 19, 29)}, 'papier': {'main_port_id': 22047852, 'sub_port_id': 22047918, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14539215, 'last_updated_at': datetime.datetime(2025, 4, 4, 2, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 2, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 2, 19, 29)}, 'autre_refus': {'main_port_id': 22047852, 'sub_port_id': 22047919, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14539216, 'last_updated_at': datetime.datetime(2025, 4, 4, 2, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 2, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 2, 19, 29)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22047908 , 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=22047852 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 (22047908) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22047852) result : ((1349942270,), (1349942279,), (1349942297,), (1349942307,), (1349942316,), (1349942358,), (1349942361,), (1349942368,), (1349942378,), (1349942420,), (1349942426,), (1349942430,), (1349942514,), (1349942523,), (1349942577,), (1349942590,), (1349942610,), (1349942616,), (1349942835,), (1349942862,), (1349942889,), (1349942899,), (1349942912,), (1349942979,), (1349942997,), (1349943004,), (1349943017,)) 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 22047909 , 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=22047852 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 (22047909) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22047852) result : ((1349942270,), (1349942279,), (1349942297,), (1349942307,), (1349942316,), (1349942358,), (1349942361,), (1349942368,), (1349942378,), (1349942420,), (1349942426,), (1349942430,), (1349942514,), (1349942523,), (1349942577,), (1349942590,), (1349942610,), (1349942616,), (1349942835,), (1349942862,), (1349942889,), (1349942899,), (1349942912,), (1349942979,), (1349942997,), (1349943004,), (1349943017,)) 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 22047910 , 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=22047852 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 (22047910) result : ((1349942676,), (1349943086,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22047852) result : ((1349942270,), (1349942279,), (1349942297,), (1349942307,), (1349942316,), (1349942358,), (1349942361,), (1349942368,), (1349942378,), (1349942420,), (1349942426,), (1349942430,), (1349942514,), (1349942523,), (1349942577,), (1349942590,), (1349942610,), (1349942616,), (1349942835,), (1349942862,), (1349942889,), (1349942899,), (1349942912,), (1349942979,), (1349942997,), (1349943004,), (1349943017,)) 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 22047911 , 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=22047852 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 (22047911) result : ((1349942816,), (1349942906,), (1349942907,), (1349942908,), (1349942909,), (1349942910,), (1349943081,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22047852) result : ((1349942270,), (1349942279,), (1349942297,), (1349942307,), (1349942316,), (1349942358,), (1349942361,), (1349942368,), (1349942378,), (1349942420,), (1349942426,), (1349942430,), (1349942514,), (1349942523,), (1349942577,), (1349942590,), (1349942610,), (1349942616,), (1349942835,), (1349942862,), (1349942889,), (1349942899,), (1349942912,), (1349942979,), (1349942997,), (1349943004,), (1349943017,)) 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 22047912 , 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=22047852 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 (22047912) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22047852) result : ((1349942270,), (1349942279,), (1349942297,), (1349942307,), (1349942316,), (1349942358,), (1349942361,), (1349942368,), (1349942378,), (1349942420,), (1349942426,), (1349942430,), (1349942514,), (1349942523,), (1349942577,), (1349942590,), (1349942610,), (1349942616,), (1349942835,), (1349942862,), (1349942889,), (1349942899,), (1349942912,), (1349942979,), (1349942997,), (1349943004,), (1349943017,)) 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 22047913 , 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=22047852 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 (22047913) result : ((1349943087,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22047852) result : ((1349942270,), (1349942279,), (1349942297,), (1349942307,), (1349942316,), (1349942358,), (1349942361,), (1349942368,), (1349942378,), (1349942420,), (1349942426,), (1349942430,), (1349942514,), (1349942523,), (1349942577,), (1349942590,), (1349942610,), (1349942616,), (1349942835,), (1349942862,), (1349942889,), (1349942899,), (1349942912,), (1349942979,), (1349942997,), (1349943004,), (1349943017,)) 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 22047914 , 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=22047852 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 (22047914) result : ((1349942807,), (1349942809,), (1349942901,), (1349942902,), (1349942903,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22047852) result : ((1349942270,), (1349942279,), (1349942297,), (1349942307,), (1349942316,), (1349942358,), (1349942361,), (1349942368,), (1349942378,), (1349942420,), (1349942426,), (1349942430,), (1349942514,), (1349942523,), (1349942577,), (1349942590,), (1349942610,), (1349942616,), (1349942835,), (1349942862,), (1349942889,), (1349942899,), (1349942912,), (1349942979,), (1349942997,), (1349943004,), (1349943017,)) 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 22047915 , 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=22047852 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 (22047915) result : ((1349942825,), (1349942914,), (1349942915,), (1349942916,), (1349942917,), (1349942918,), (1349943083,), (1349943084,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22047852) result : ((1349942270,), (1349942279,), (1349942297,), (1349942307,), (1349942316,), (1349942358,), (1349942361,), (1349942368,), (1349942378,), (1349942420,), (1349942426,), (1349942430,), (1349942514,), (1349942523,), (1349942577,), (1349942590,), (1349942610,), (1349942616,), (1349942835,), (1349942862,), (1349942889,), (1349942899,), (1349942912,), (1349942979,), (1349942997,), (1349943004,), (1349943017,)) 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 22047916 , 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=22047852 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 (22047916) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22047852) result : ((1349942270,), (1349942279,), (1349942297,), (1349942307,), (1349942316,), (1349942358,), (1349942361,), (1349942368,), (1349942378,), (1349942420,), (1349942426,), (1349942430,), (1349942514,), (1349942523,), (1349942577,), (1349942590,), (1349942610,), (1349942616,), (1349942835,), (1349942862,), (1349942889,), (1349942899,), (1349942912,), (1349942979,), (1349942997,), (1349943004,), (1349943017,)) 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 22047917 , 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=22047852 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 (22047917) result : ((1349942758,), (1349942895,), (1349942896,), (1349942897,), (1349943080,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22047852) result : ((1349942270,), (1349942279,), (1349942297,), (1349942307,), (1349942316,), (1349942358,), (1349942361,), (1349942368,), (1349942378,), (1349942420,), (1349942426,), (1349942430,), (1349942514,), (1349942523,), (1349942577,), (1349942590,), (1349942610,), (1349942616,), (1349942835,), (1349942862,), (1349942889,), (1349942899,), (1349942912,), (1349942979,), (1349942997,), (1349943004,), (1349943017,)) 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 22047918 , 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=22047852 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 (22047918) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22047852) result : ((1349942270,), (1349942279,), (1349942297,), (1349942307,), (1349942316,), (1349942358,), (1349942361,), (1349942368,), (1349942378,), (1349942420,), (1349942426,), (1349942430,), (1349942514,), (1349942523,), (1349942577,), (1349942590,), (1349942610,), (1349942616,), (1349942835,), (1349942862,), (1349942889,), (1349942899,), (1349942912,), (1349942979,), (1349942997,), (1349943004,), (1349943017,)) 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 22047919 , 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=22047852 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 (22047919) result : ((1349942773,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22047852) result : ((1349942270,), (1349942279,), (1349942297,), (1349942307,), (1349942316,), (1349942358,), (1349942361,), (1349942368,), (1349942378,), (1349942420,), (1349942426,), (1349942430,), (1349942514,), (1349942523,), (1349942577,), (1349942590,), (1349942610,), (1349942616,), (1349942835,), (1349942862,), (1349942889,), (1349942899,), (1349942912,), (1349942979,), (1349942997,), (1349943004,), (1349943017,)) 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`=22047852 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','Carton_gris','autre_refus','metal','kraft','papier','environnement','flou','Teint_Dans_La_Masse','Carton_brun','mal_croppe','cartonnette')) 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`=22047852 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','Carton_gris','autre_refus','metal','kraft','papier','environnement','flou','Teint_Dans_La_Masse','Carton_brun','mal_croppe','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 22047852, 'sub_port_id': 22047920, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14539217, 'last_updated_at': datetime.datetime(2025, 4, 4, 2, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 2, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 2, 19, 31)}, 'flou': {'main_port_id': 22047852, 'sub_port_id': 22047921, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14539218, 'last_updated_at': datetime.datetime(2025, 4, 4, 2, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 2, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 2, 19, 31)}, 'plastique': {'main_port_id': 22047852, 'sub_port_id': 22047922, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14539219, 'last_updated_at': datetime.datetime(2025, 4, 4, 2, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 2, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 2, 19, 31)}, 'cartonnette': {'main_port_id': 22047852, 'sub_port_id': 22047923, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14539220, 'last_updated_at': datetime.datetime(2025, 4, 4, 2, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 2, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 2, 19, 31)}, 'metal': {'main_port_id': 22047852, 'sub_port_id': 22047924, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14539221, 'last_updated_at': datetime.datetime(2025, 4, 4, 2, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 2, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 2, 19, 31)}, 'kraft': {'main_port_id': 22047852, 'sub_port_id': 22047925, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14539222, 'last_updated_at': datetime.datetime(2025, 4, 4, 2, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 2, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 2, 19, 31)}, 'Carton_gris': {'main_port_id': 22047852, 'sub_port_id': 22047926, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14539223, 'last_updated_at': datetime.datetime(2025, 4, 4, 2, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 2, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 2, 19, 31)}, 'Carton_brun': {'main_port_id': 22047852, 'sub_port_id': 22047927, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14539224, 'last_updated_at': datetime.datetime(2025, 4, 4, 2, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 2, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 2, 19, 31)}, 'environnement': {'main_port_id': 22047852, 'sub_port_id': 22047928, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14539225, 'last_updated_at': datetime.datetime(2025, 4, 4, 2, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 2, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 2, 19, 31)}, 'Teint_Dans_La_Masse': {'main_port_id': 22047852, 'sub_port_id': 22047929, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14539226, 'last_updated_at': datetime.datetime(2025, 4, 4, 2, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 2, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 2, 19, 31)}, 'papier': {'main_port_id': 22047852, 'sub_port_id': 22047930, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14539227, 'last_updated_at': datetime.datetime(2025, 4, 4, 2, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 2, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 2, 19, 31)}, 'autre_refus': {'main_port_id': 22047852, 'sub_port_id': 22047931, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14539228, 'last_updated_at': datetime.datetime(2025, 4, 4, 2, 21), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 2, 21), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 2, 19, 31)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22047920,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22047908 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22047921,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22047909 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22047922,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22047910 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22047923,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22047911 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22047924,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22047912 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22047925,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22047913 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22047926,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22047914 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22047927,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22047915 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22047928,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22047916 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22047929,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22047917 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22047930,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22047918 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22047931,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22047919 lien utilise dans velours : https://www.fotonower.com/velours/22047920,22047921,22047922,22047923,22047924,22047925,22047926,22047927,22047928,22047929,22047930,22047931?tags=mal_croppe,flou,plastique,cartonnette,metal,kraft,Carton_gris,Carton_brun,environnement,Teint_Dans_La_Masse,papier,autre_refus After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22047852]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1349943017, 1349943004, 1349942997, 1349942979, 1349942912, 1349942899, 1349942889, 1349942862, 1349942835] map_info['map_portfolio_photo'] : {22047852: [1349943017, 1349943004, 1349942997, 1349942979, 1349942912, 1349942899, 1349942889, 1349942862, 1349942835, 1349942616, 1349942610, 1349942590, 1349942577, 1349942523, 1349942514, 1349942430, 1349942426, 1349942420, 1349942378, 1349942368, 1349942361, 1349942358, 1349942316, 1349942307, 1349942297, 1349942279, 1349942270]} final : False mtd_id 4302 list_pids : [1349943017, 1349943004, 1349942997, 1349942979, 1349942912, 1349942899, 1349942889, 1349942862, 1349942835] Looping around the photos to save general results len do output : 1 /22047852. 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, '2722727') ('4302', '22047852', '1349943017', None, None, None, None, None, '2722727') ('4302', None, None, None, None, None, None, None, '2722727') ('4302', '22047852', '1349943004', None, None, None, None, None, '2722727') ('4302', None, None, None, None, None, None, None, '2722727') ('4302', '22047852', '1349942997', None, None, None, None, None, '2722727') ('4302', None, None, None, None, None, None, None, '2722727') ('4302', '22047852', '1349942979', None, None, None, None, None, '2722727') ('4302', None, None, None, None, None, None, None, '2722727') ('4302', '22047852', '1349942912', None, None, None, None, None, '2722727') ('4302', None, None, None, None, None, None, None, '2722727') ('4302', '22047852', '1349942899', None, None, None, None, None, '2722727') ('4302', None, None, None, None, None, None, None, '2722727') ('4302', '22047852', '1349942889', None, None, None, None, None, '2722727') ('4302', None, None, None, None, None, None, None, '2722727') ('4302', '22047852', '1349942862', None, None, None, None, None, '2722727') ('4302', None, None, None, None, None, None, None, '2722727') ('4302', '22047852', '1349942835', None, None, None, None, None, '2722727') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22047852', "{'mal_croppe': 22047908, 'flou': 22047909, 'plastique': 22047910, 'cartonnette': 22047911, 'metal': 22047912, 'kraft': 22047913, 'Carton_gris': 22047914, 'Carton_brun': 22047915, 'environnement': 22047916, 'Teint_Dans_La_Masse': 22047917, 'papier': 22047918, 'autre_refus': 22047919}", None, None, None, None, '2722727'), ('4302', '22047852', '1349943017', None, None, None, None, None, '2722727'), ('4302', '22047852', '1349943004', None, None, None, None, None, '2722727'), ('4302', '22047852', '1349942997', None, None, None, None, None, '2722727'), ('4302', '22047852', '1349942979', None, None, None, None, None, '2722727'), ('4302', '22047852', '1349942912', None, None, None, None, None, '2722727'), ('4302', '22047852', '1349942899', None, None, None, None, None, '2722727'), ('4302', '22047852', '1349942889', None, None, None, None, None, '2722727'), ('4302', '22047852', '1349942862', None, None, None, None, None, '2722727'), ('4302', '22047852', '1349942835', None, None, None, None, None, '2722727')] time used for this insertion : 0.01669168472290039 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.7060551643371582 time spend to save output : 0.017073392868041992 total time spend for step 1 : 1.7231285572052002 step2:final Fri Apr 4 02:23:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22047852) 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 22047852 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1349942316,1349942307,1349942297,1349942279,1349942270,1349942378,1349942368,1349942361,1349942358,1349942430,1349942426,1349942420,1349942616,1349942610,1349942590,1349942577,1349942523,1349942514,1349942912,1349942899,1349942889,1349942862,1349942835,1349943017,1349943004,1349942997,1349942979); 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([22047852]) Inside saveOutput : final : False verbose : True original output for save of step final : {1349943017: ('0.0626954888496211',), 1349943004: ('0.0626954888496211',), 1349942997: ('0.0626954888496211',), 1349942979: ('0.0626954888496211',), 1349942912: ('0.0626954888496211',), 1349942899: ('0.0626954888496211',), 1349942889: ('0.0626954888496211',), 1349942862: ('0.0626954888496211',), 1349942835: ('0.0626954888496211',)} new output for save of step final : {1349943017: ('0.0626954888496211',), 1349943004: ('0.0626954888496211',), 1349942997: ('0.0626954888496211',), 1349942979: ('0.0626954888496211',), 1349942912: ('0.0626954888496211',), 1349942899: ('0.0626954888496211',), 1349942889: ('0.0626954888496211',), 1349942862: ('0.0626954888496211',), 1349942835: ('0.0626954888496211',)} [1349943017, 1349943004, 1349942997, 1349942979, 1349942912, 1349942899, 1349942889, 1349942862, 1349942835] map_info['map_portfolio_photo'] : {22047852: [1349943017, 1349943004, 1349942997, 1349942979, 1349942912, 1349942899, 1349942889, 1349942862, 1349942835, 1349942616, 1349942610, 1349942590, 1349942577, 1349942523, 1349942514, 1349942430, 1349942426, 1349942420, 1349942378, 1349942368, 1349942361, 1349942358, 1349942316, 1349942307, 1349942297, 1349942279, 1349942270]} final : False mtd_id 4302 list_pids : [1349943017, 1349943004, 1349942997, 1349942979, 1349942912, 1349942899, 1349942889, 1349942862, 1349942835] Looping around the photos to save general results len do output : 9 /1349943017.Didn't retrieve data . /1349943004.Didn't retrieve data . /1349942997.Didn't retrieve data . /1349942979.Didn't retrieve data . /1349942912.Didn't retrieve data . /1349942899.Didn't retrieve data . /1349942889.Didn't retrieve data . /1349942862.Didn't retrieve data . /1349942835.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, '2722727') ('4302', '22047852', '1349943017', None, None, None, None, None, '2722727') ('4302', None, None, None, None, None, None, None, '2722727') ('4302', '22047852', '1349943004', None, None, None, None, None, '2722727') ('4302', None, None, None, None, None, None, None, '2722727') ('4302', '22047852', '1349942997', None, None, None, None, None, '2722727') ('4302', None, None, None, None, None, None, None, '2722727') ('4302', '22047852', '1349942979', None, None, None, None, None, '2722727') ('4302', None, None, None, None, None, None, None, '2722727') ('4302', '22047852', '1349942912', None, None, None, None, None, '2722727') ('4302', None, None, None, None, None, None, None, '2722727') ('4302', '22047852', '1349942899', None, None, None, None, None, '2722727') ('4302', None, None, None, None, None, None, None, '2722727') ('4302', '22047852', '1349942889', None, None, None, None, None, '2722727') ('4302', None, None, None, None, None, None, None, '2722727') ('4302', '22047852', '1349942862', None, None, None, None, None, '2722727') ('4302', None, None, None, None, None, None, None, '2722727') ('4302', '22047852', '1349942835', None, None, None, None, None, '2722727') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 27 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', '22047852', '1349943017', '0.0626954888496211', None, None, None, None, '2722727'), ('4302', '22047852', '1349943004', '0.0626954888496211', None, None, None, None, '2722727'), ('4302', '22047852', '1349942997', '0.0626954888496211', None, None, None, None, '2722727'), ('4302', '22047852', '1349942979', '0.0626954888496211', None, None, None, None, '2722727'), ('4302', '22047852', '1349942912', '0.0626954888496211', None, None, None, None, '2722727'), ('4302', '22047852', '1349942899', '0.0626954888496211', None, None, None, None, '2722727'), ('4302', '22047852', '1349942889', '0.0626954888496211', None, None, None, None, '2722727'), ('4302', '22047852', '1349942862', '0.0626954888496211', None, None, None, None, '2722727'), ('4302', '22047852', '1349942835', '0.0626954888496211', None, None, None, None, '2722727')] time used for this insertion : 0.016941547393798828 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06984472274780273 time spend to save output : 0.017547130584716797 total time spend for step 2 : 0.08739185333251953 step3:velours_tree Fri Apr 4 02:23:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {22047852: [{'mal_croppe': 22047908, 'flou': 22047909, 'plastique': 22047910, 'cartonnette': 22047911, 'metal': 22047912, 'kraft': 22047913, 'Carton_gris': 22047914, 'Carton_brun': 22047915, 'environnement': 22047916, 'Teint_Dans_La_Masse': 22047917, 'papier': 22047918, 'autre_refus': 22047919}]} input_args_next_step : {22047852: ()} output_args : {22047852: [{'mal_croppe': 22047908, 'flou': 22047909, 'plastique': 22047910, 'cartonnette': 22047911, 'metal': 22047912, 'kraft': 22047913, 'Carton_gris': 22047914, 'Carton_brun': 22047915, 'environnement': 22047916, 'Teint_Dans_La_Masse': 22047917, 'papier': 22047918, 'autre_refus': 22047919}]} args : 22047852 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 : ({'mal_croppe': 22047908, 'flou': 22047909, 'plastique': 22047910, 'cartonnette': 22047911, 'metal': 22047912, 'kraft': 22047913, 'Carton_gris': 22047914, 'Carton_brun': 22047915, 'environnement': 22047916, 'Teint_Dans_La_Masse': 22047917, 'papier': 22047918, 'autre_refus': 22047919},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22047852) 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([22047852]) 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.4604921340942383 time spend to save output : 6.628036499023438e-05 total time spend for step 3 : 0.4605584144592285 step4:send_mail_cod Fri Apr 4 02:23:02 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 : {1349943017: ('0.0626954888496211',), 1349943004: ('0.0626954888496211',), 1349942997: ('0.0626954888496211',), 1349942979: ('0.0626954888496211',), 1349942912: ('0.0626954888496211',), 1349942899: ('0.0626954888496211',), 1349942889: ('0.0626954888496211',), 1349942862: ('0.0626954888496211',), 1349942835: ('0.0626954888496211',)} input_args_next_step : {1349943017: ()} output_args : {1349943017: ('0.0626954888496211',), 1349943004: ('0.0626954888496211',), 1349942997: ('0.0626954888496211',), 1349942979: ('0.0626954888496211',), 1349942912: ('0.0626954888496211',), 1349942899: ('0.0626954888496211',), 1349942889: ('0.0626954888496211',), 1349942862: ('0.0626954888496211',), 1349942835: ('0.0626954888496211',)} args : 1349943017 depend.output_id : 0 input_args_next_step : {1349943017: ('0.0626954888496211',), 1349943004: ()} output_args : {1349943017: ('0.0626954888496211',), 1349943004: ('0.0626954888496211',), 1349942997: ('0.0626954888496211',), 1349942979: ('0.0626954888496211',), 1349942912: ('0.0626954888496211',), 1349942899: ('0.0626954888496211',), 1349942889: ('0.0626954888496211',), 1349942862: ('0.0626954888496211',), 1349942835: ('0.0626954888496211',)} args : 1349943004 depend.output_id : 0 input_args_next_step : {1349943017: ('0.0626954888496211',), 1349943004: ('0.0626954888496211',), 1349942997: ()} output_args : {1349943017: ('0.0626954888496211',), 1349943004: ('0.0626954888496211',), 1349942997: ('0.0626954888496211',), 1349942979: ('0.0626954888496211',), 1349942912: ('0.0626954888496211',), 1349942899: ('0.0626954888496211',), 1349942889: ('0.0626954888496211',), 1349942862: ('0.0626954888496211',), 1349942835: ('0.0626954888496211',)} args : 1349942997 depend.output_id : 0 input_args_next_step : {1349943017: ('0.0626954888496211',), 1349943004: ('0.0626954888496211',), 1349942997: ('0.0626954888496211',), 1349942979: ()} output_args : {1349943017: ('0.0626954888496211',), 1349943004: ('0.0626954888496211',), 1349942997: ('0.0626954888496211',), 1349942979: ('0.0626954888496211',), 1349942912: ('0.0626954888496211',), 1349942899: ('0.0626954888496211',), 1349942889: ('0.0626954888496211',), 1349942862: ('0.0626954888496211',), 1349942835: ('0.0626954888496211',)} args : 1349942979 depend.output_id : 0 input_args_next_step : {1349943017: ('0.0626954888496211',), 1349943004: ('0.0626954888496211',), 1349942997: ('0.0626954888496211',), 1349942979: ('0.0626954888496211',), 1349942912: ()} output_args : {1349943017: ('0.0626954888496211',), 1349943004: ('0.0626954888496211',), 1349942997: ('0.0626954888496211',), 1349942979: ('0.0626954888496211',), 1349942912: ('0.0626954888496211',), 1349942899: ('0.0626954888496211',), 1349942889: ('0.0626954888496211',), 1349942862: ('0.0626954888496211',), 1349942835: ('0.0626954888496211',)} args : 1349942912 depend.output_id : 0 input_args_next_step : {1349943017: ('0.0626954888496211',), 1349943004: ('0.0626954888496211',), 1349942997: ('0.0626954888496211',), 1349942979: ('0.0626954888496211',), 1349942912: ('0.0626954888496211',), 1349942899: ()} output_args : {1349943017: ('0.0626954888496211',), 1349943004: ('0.0626954888496211',), 1349942997: ('0.0626954888496211',), 1349942979: ('0.0626954888496211',), 1349942912: ('0.0626954888496211',), 1349942899: ('0.0626954888496211',), 1349942889: ('0.0626954888496211',), 1349942862: ('0.0626954888496211',), 1349942835: ('0.0626954888496211',)} args : 1349942899 depend.output_id : 0 input_args_next_step : {1349943017: ('0.0626954888496211',), 1349943004: ('0.0626954888496211',), 1349942997: ('0.0626954888496211',), 1349942979: ('0.0626954888496211',), 1349942912: ('0.0626954888496211',), 1349942899: ('0.0626954888496211',), 1349942889: ()} output_args : {1349943017: ('0.0626954888496211',), 1349943004: ('0.0626954888496211',), 1349942997: ('0.0626954888496211',), 1349942979: ('0.0626954888496211',), 1349942912: ('0.0626954888496211',), 1349942899: ('0.0626954888496211',), 1349942889: ('0.0626954888496211',), 1349942862: ('0.0626954888496211',), 1349942835: ('0.0626954888496211',)} args : 1349942889 depend.output_id : 0 input_args_next_step : {1349943017: ('0.0626954888496211',), 1349943004: ('0.0626954888496211',), 1349942997: ('0.0626954888496211',), 1349942979: ('0.0626954888496211',), 1349942912: ('0.0626954888496211',), 1349942899: ('0.0626954888496211',), 1349942889: ('0.0626954888496211',), 1349942862: ()} output_args : {1349943017: ('0.0626954888496211',), 1349943004: ('0.0626954888496211',), 1349942997: ('0.0626954888496211',), 1349942979: ('0.0626954888496211',), 1349942912: ('0.0626954888496211',), 1349942899: ('0.0626954888496211',), 1349942889: ('0.0626954888496211',), 1349942862: ('0.0626954888496211',), 1349942835: ('0.0626954888496211',)} args : 1349942862 depend.output_id : 0 input_args_next_step : {1349943017: ('0.0626954888496211',), 1349943004: ('0.0626954888496211',), 1349942997: ('0.0626954888496211',), 1349942979: ('0.0626954888496211',), 1349942912: ('0.0626954888496211',), 1349942899: ('0.0626954888496211',), 1349942889: ('0.0626954888496211',), 1349942862: ('0.0626954888496211',), 1349942835: ()} output_args : {1349943017: ('0.0626954888496211',), 1349943004: ('0.0626954888496211',), 1349942997: ('0.0626954888496211',), 1349942979: ('0.0626954888496211',), 1349942912: ('0.0626954888496211',), 1349942899: ('0.0626954888496211',), 1349942889: ('0.0626954888496211',), 1349942862: ('0.0626954888496211',), 1349942835: ('0.0626954888496211',)} args : 1349942835 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 : {22047852: [{'mal_croppe': 22047908, 'flou': 22047909, 'plastique': 22047910, 'cartonnette': 22047911, 'metal': 22047912, 'kraft': 22047913, 'Carton_gris': 22047914, 'Carton_brun': 22047915, 'environnement': 22047916, 'Teint_Dans_La_Masse': 22047917, 'papier': 22047918, 'autre_refus': 22047919}]} input_args_next_step : {1349943017: ('0.0626954888496211',), 1349943004: ('0.0626954888496211',), 1349942997: ('0.0626954888496211',), 1349942979: ('0.0626954888496211',), 1349942912: ('0.0626954888496211',), 1349942899: ('0.0626954888496211',), 1349942889: ('0.0626954888496211',), 1349942862: ('0.0626954888496211',), 1349942835: ('0.0626954888496211',), 22047852: ()} output_args : {22047852: [{'mal_croppe': 22047908, 'flou': 22047909, 'plastique': 22047910, 'cartonnette': 22047911, 'metal': 22047912, 'kraft': 22047913, 'Carton_gris': 22047914, 'Carton_brun': 22047915, 'environnement': 22047916, 'Teint_Dans_La_Masse': 22047917, 'papier': 22047918, 'autre_refus': 22047919}]} args : 22047852 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 :10, first value : ('0.0626954888496211',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22047852) 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 (1349943017,1349943004,1349942997,1349942979,1349942912,1349942899,1349942889,1349942862,1349942835) Found this number of photos: 9 ##### Call download_photos : nb_thread : 5 begin to download photo : 1349942835 begin to download photo : 1349942889 begin to download photo : 1349942912 begin to download photo : 1349942997 begin to download photo : 1349943017 download finish for photo 1349942912 begin to download photo : 1349942979 download finish for photo 1349942889 begin to download photo : 1349942899 download finish for photo 1349943017 download finish for photo 1349942997 begin to download photo : 1349943004 download finish for photo 1349942835 begin to download photo : 1349942862 download finish for photo 1349942979 download finish for photo 1349942899 download finish for photo 1349942862 download finish for photo 1349943004 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette220479081743726182/ imagette220479091743726182/ length of list_filenames : 9 ; length of list_pids : 9 ; length of list_args : 9 results_Auto_P22047852_04-04-2025_02_23_02.pdf 22047908 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=22047908 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220479081743726182 22047909 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=22047909 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220479091743726182 22047910 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=22047910 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349942676: '1743725966_3054124_1349942426_27e8315db915e99e901c230e17b7718b_rle_crop_3747141929_0.png', 1349943086: '1743726072_2868246_1349942514_1bf96d655ee377abdb6cd7a240347b79_rle_crop_3747143410_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/674312b8d6812d6cc1882f2c4ddf34fd_70405630.png change filename to text .imagette220479101743726182/ imagette220479101743726182/1743726072_2868246_1349942514_1bf96d655ee377abdb6cd7a240347b79_rle_crop_3747143410_0.png.png imagette220479101743726182/1743725966_3054124_1349942426_27e8315db915e99e901c230e17b7718b_rle_crop_3747141929_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/8cd99d7ef898639610912c452a996e39_54044593.png imagette220479101743726182 22047911 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=22047911 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349942816: '1743725968_1422108_1349942368_d0d88710dedf9efbc7004357b2cbab2d_rle_crop_3747142175_0.png', 1349942906: '1743725970_2867289_1349942378_a0534167428437e01a9222ba823e3ef0_rle_crop_3747142304_0.png', 1349942907: '1743725970_2867289_1349942316_d7fe87a0608eece0e13b8983731ed340_rle_crop_3747142315_0.png', 1349942908: '1743725970_2867289_1349942307_9db5f78f1f8a8d3f393b3cae07176264_rle_crop_3747142333_0.png', 1349942909: '1743725970_2867289_1349942297_8a44f0f557910d389278dde11eb738ea_rle_crop_3747142342_0.png', 1349942910: '1743725970_2867289_1349942270_f3ad5c02dd409b4d554725f91f07deef_rle_crop_3747142441_0.png', 1349943081: '1743726072_2868246_1349942523_9362b869e84aa6e2c7d3aa811e10c89a_rle_crop_3747143399_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/388acb1f98126f56aa38df09efa5faff_51094933.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/bad4bdc8e1f4e9a65b9c55b1a0b2cbb7_58511809.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/8ceea744e0383e515680c085a22a7a8a_49774369.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/62bbf73c7217effb8949471d6ca2210d_61453064.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/dc9430a9aaba9c4a223cf0907ff45782_8547608.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/64f1754a5d6206675f045e8e881f80bd_29748487.png change filename to text .imagette220479111743726182/ imagette220479111743726182/1743725970_2867289_1349942316_d7fe87a0608eece0e13b8983731ed340_rle_crop_3747142315_0.png.png imagette220479111743726182/1743725968_1422108_1349942368_d0d88710dedf9efbc7004357b2cbab2d_rle_crop_3747142175_0.png.png imagette220479111743726182/1743725970_2867289_1349942297_8a44f0f557910d389278dde11eb738ea_rle_crop_3747142342_0.png.png imagette220479111743726182/1743725970_2867289_1349942378_a0534167428437e01a9222ba823e3ef0_rle_crop_3747142304_0.png.png imagette220479111743726182/1743725970_2867289_1349942307_9db5f78f1f8a8d3f393b3cae07176264_rle_crop_3747142333_0.png.png imagette220479111743726182/1743726072_2868246_1349942523_9362b869e84aa6e2c7d3aa811e10c89a_rle_crop_3747143399_0.png.png imagette220479111743726182/1743725970_2867289_1349942270_f3ad5c02dd409b4d554725f91f07deef_rle_crop_3747142441_0.png.png imagette220479121743726183/ wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/5cf62459331f92ff3d95062c285e8be8_79461766.png imagette220479111743726182 22047912 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=22047912 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220479121743726183 22047913 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=22047913 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349943087: '1743726072_2868246_1349942523_9362b869e84aa6e2c7d3aa811e10c89a_rle_crop_3747143398_0.png'} change filename to text .imagette220479131743726183/ imagette220479131743726183/1743726072_2868246_1349942523_9362b869e84aa6e2c7d3aa811e10c89a_rle_crop_3747143398_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/8689639a90441a8c37683df7f81b8f64_60611726.png imagette220479131743726183 22047919 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=22047919 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349942773: '1743725968_1422108_1349942361_9d4a123697eab2985f8e7d24fa5f248e_rle_crop_3747142185_0.png'} change filename to text .imagette220479191743726183/ imagette220479191743726183/1743725968_1422108_1349942361_9d4a123697eab2985f8e7d24fa5f248e_rle_crop_3747142185_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/60bec8a1bc094cad49e40e049e99c8d8_19089132.png imagette220479191743726183 22047914 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=22047914 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349942807: '1743725968_1422108_1349942368_d0d88710dedf9efbc7004357b2cbab2d_rle_crop_3747142178_0.png', 1349942809: '1743725968_1422108_1349942358_5af2d0370a4ca9c8f5894d4d25906b4d_rle_crop_3747142197_0.png', 1349942901: '1743725970_2867289_1349942378_a0534167428437e01a9222ba823e3ef0_rle_crop_3747142302_0.png', 1349942902: '1743725970_2867289_1349942307_9db5f78f1f8a8d3f393b3cae07176264_rle_crop_3747142330_0.png', 1349942903: '1743725970_2867289_1349942270_f3ad5c02dd409b4d554725f91f07deef_rle_crop_3747142435_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/9d22ad2b2e24016b424d4db193ff882c_28653326.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/e936b442c9c503c85c1ab47d250dec30_64315299.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/88e19f63f3c4cdba0b31ab9d65b79597_88957709.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/64a280354e68c39014986e4c9b159422_10855131.png change filename to text .imagette220479141743726183/ imagette220479141743726183/1743725970_2867289_1349942307_9db5f78f1f8a8d3f393b3cae07176264_rle_crop_3747142330_0.png.png imagette220479141743726183/1743725970_2867289_1349942378_a0534167428437e01a9222ba823e3ef0_rle_crop_3747142302_0.png.png imagette220479141743726183/1743725970_2867289_1349942270_f3ad5c02dd409b4d554725f91f07deef_rle_crop_3747142435_0.png.png imagette220479141743726183/1743725968_1422108_1349942358_5af2d0370a4ca9c8f5894d4d25906b4d_rle_crop_3747142197_0.png.png imagette220479141743726183/1743725968_1422108_1349942368_d0d88710dedf9efbc7004357b2cbab2d_rle_crop_3747142178_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/9cfa8a8e0278c747c811c4cf0a6e6a31_30819086.png imagette220479141743726183 22047915 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=22047915 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349942825: '1743725968_1422108_1349942368_d0d88710dedf9efbc7004357b2cbab2d_rle_crop_3747142176_0.png', 1349942914: '1743725970_2867289_1349942297_8a44f0f557910d389278dde11eb738ea_rle_crop_3747142349_0.png', 1349942915: '1743725970_2867289_1349942297_8a44f0f557910d389278dde11eb738ea_rle_crop_3747142344_0.png', 1349942916: '1743725970_2867289_1349942297_8a44f0f557910d389278dde11eb738ea_rle_crop_3747142351_0.png', 1349942917: '1743725970_2867289_1349942279_eae066adc93ffb9a2b2a739fda8bfaae_rle_crop_3747142425_0.png', 1349942918: '1743725970_2867289_1349942270_f3ad5c02dd409b4d554725f91f07deef_rle_crop_3747142442_0.png', 1349943083: '1743726072_2868246_1349942590_fec1442792233d676c658298d483eb74_rle_crop_3747143373_0.png', 1349943084: '1743726072_2868246_1349942514_1bf96d655ee377abdb6cd7a240347b79_rle_crop_3747143411_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/d5271e6540239c5cdfad51f288378b32_67464469.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/46c63a9784c46cf7681828b4ecaf881c_64908263.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/28c4aa545f36032cfefbba59c1e1ddd8_72185081.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/3db6cb425815eb9ffd18525c37d44e14_79038877.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/0597f96736b7dfea35cc282248c6e93c_21505548.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/23f2919b1768ccff483eee98ee0bc187_12226901.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/e3d5a1706921d1145f948d51865adaa5_89791105.png change filename to text .imagette220479151743726183/ imagette220479151743726183/1743725970_2867289_1349942297_8a44f0f557910d389278dde11eb738ea_rle_crop_3747142344_0.png.png imagette220479151743726183/1743725970_2867289_1349942270_f3ad5c02dd409b4d554725f91f07deef_rle_crop_3747142442_0.png.png imagette220479151743726183/1743726072_2868246_1349942590_fec1442792233d676c658298d483eb74_rle_crop_3747143373_0.png.png imagette220479151743726183/1743725970_2867289_1349942279_eae066adc93ffb9a2b2a739fda8bfaae_rle_crop_3747142425_0.png.png imagette220479151743726183/1743725970_2867289_1349942297_8a44f0f557910d389278dde11eb738ea_rle_crop_3747142351_0.png.png imagette220479151743726183/1743726072_2868246_1349942514_1bf96d655ee377abdb6cd7a240347b79_rle_crop_3747143411_0.png.png imagette220479151743726183/1743725968_1422108_1349942368_d0d88710dedf9efbc7004357b2cbab2d_rle_crop_3747142176_0.png.png imagette220479151743726183/1743725970_2867289_1349942297_8a44f0f557910d389278dde11eb738ea_rle_crop_3747142349_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/70c7d8626d2c9b67efdef3a1fe9a1b07_65752839.png imagette220479151743726183 22047917 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=22047917 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349942758: '1743725968_1422108_1349942358_5af2d0370a4ca9c8f5894d4d25906b4d_rle_crop_3747142204_0.png', 1349942895: '1743725970_2867289_1349942378_a0534167428437e01a9222ba823e3ef0_rle_crop_3747142307_0.png', 1349942896: '1743725970_2867289_1349942378_a0534167428437e01a9222ba823e3ef0_rle_crop_3747142301_0.png', 1349942897: '1743725970_2867289_1349942307_9db5f78f1f8a8d3f393b3cae07176264_rle_crop_3747142332_0.png', 1349943080: '1743726072_2868246_1349942577_a718ea581f4e6af39715b375af10cf0b_rle_crop_3747143383_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/8d402e7f8d490f5e4bbaaecd32a25eb3_64953366.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/facb501949b5eeafc010988f0493d549_78827409.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/6c01c9f9603aa36ee3dd3bfe3777fa23_49177495.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/93a9708d321d4c4746412f0204860969_85661291.png change filename to text .imagette220479171743726183/ imagette220479171743726183/1743726072_2868246_1349942577_a718ea581f4e6af39715b375af10cf0b_rle_crop_3747143383_0.png.png imagette220479171743726183/1743725970_2867289_1349942378_a0534167428437e01a9222ba823e3ef0_rle_crop_3747142307_0.png.png imagette220479171743726183/1743725970_2867289_1349942307_9db5f78f1f8a8d3f393b3cae07176264_rle_crop_3747142332_0.png.png imagette220479171743726183/1743725970_2867289_1349942378_a0534167428437e01a9222ba823e3ef0_rle_crop_3747142301_0.png.png imagette220479171743726183/1743725968_1422108_1349942358_5af2d0370a4ca9c8f5894d4d25906b4d_rle_crop_3747142204_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/747d106affecbedf013b382a08b0a152_90697079.png imagette220479171743726183 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22047852 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22047920,22047921,22047922,22047923,22047924,22047925,22047926,22047927,22047928,22047929,22047930,22047931?tags=mal_croppe,flou,plastique,cartonnette,metal,kraft,Carton_gris,Carton_brun,environnement,Teint_Dans_La_Masse,papier,autre_refus your option no_mail is active, we will not send the real mail to your client args[1349943017] : ('0.0626954888496211',) no score found for photo 1349943017 We are sending mail with results at report@fotonower.com args[1349943004] : ('0.0626954888496211',) no score found for photo 1349943004 We are sending mail with results at report@fotonower.com args[1349942997] : ('0.0626954888496211',) no score found for photo 1349942997 We are sending mail with results at report@fotonower.com args[1349942979] : ('0.0626954888496211',) no score found for photo 1349942979 We are sending mail with results at report@fotonower.com args[1349942912] : ('0.0626954888496211',) no score found for photo 1349942912 We are sending mail with results at report@fotonower.com args[1349942899] : ('0.0626954888496211',) no score found for photo 1349942899 We are sending mail with results at report@fotonower.com args[1349942889] : ('0.0626954888496211',) no score found for photo 1349942889 We are sending mail with results at report@fotonower.com args[1349942862] : ('0.0626954888496211',) no score found for photo 1349942862 We are sending mail with results at report@fotonower.com args[1349942835] : ('0.0626954888496211',) no score found for photo 1349942835 We are sending mail with results at report@fotonower.com refus_total : 0.0626954888496211 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=22047852 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_P22047852_04-04-2025_02_23_02.pdf results_Auto_P22047852_04-04-2025_02_23_02.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22047852_04-04-2025_02_23_02.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','22047852','results_Auto_P22047852_04-04-2025_02_23_02.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22047852_04-04-2025_02_23_02.pdf','pdf','','0.18','0.0626954888496211') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22047852]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1349943017, 1349943004, 1349942997, 1349942979, 1349942912, 1349942899, 1349942889, 1349942862, 1349942835] map_info['map_portfolio_photo'] : {22047852: [1349943017, 1349943004, 1349942997, 1349942979, 1349942912, 1349942899, 1349942889, 1349942862, 1349942835, 1349942616, 1349942610, 1349942590, 1349942577, 1349942523, 1349942514, 1349942430, 1349942426, 1349942420, 1349942378, 1349942368, 1349942361, 1349942358, 1349942316, 1349942307, 1349942297, 1349942279, 1349942270]} final : False mtd_id 4302 list_pids : [1349943017, 1349943004, 1349942997, 1349942979, 1349942912, 1349942899, 1349942889, 1349942862, 1349942835] 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, '2722727') ('4302', '22047852', '1349943017', None, None, None, None, None, '2722727') ('4302', None, None, None, None, None, None, None, '2722727') ('4302', '22047852', '1349943004', None, None, None, None, None, '2722727') ('4302', None, None, None, None, None, None, None, '2722727') ('4302', '22047852', '1349942997', None, None, None, None, None, '2722727') ('4302', None, None, None, None, None, None, None, '2722727') ('4302', '22047852', '1349942979', None, None, None, None, None, '2722727') ('4302', None, None, None, None, None, None, None, '2722727') ('4302', '22047852', '1349942912', None, None, None, None, None, '2722727') ('4302', None, None, None, None, None, None, None, '2722727') ('4302', '22047852', '1349942899', None, None, None, None, None, '2722727') ('4302', None, None, None, None, None, None, None, '2722727') ('4302', '22047852', '1349942889', None, None, None, None, None, '2722727') ('4302', None, None, None, None, None, None, None, '2722727') ('4302', '22047852', '1349942862', None, None, None, None, None, '2722727') ('4302', None, None, None, None, None, None, None, '2722727') ('4302', '22047852', '1349942835', None, None, None, None, None, '2722727') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 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', '22047852', '1349943017', None, None, None, None, None, '2722727'), ('4302', '22047852', '1349943004', None, None, None, None, None, '2722727'), ('4302', '22047852', '1349942997', None, None, None, None, None, '2722727'), ('4302', '22047852', '1349942979', None, None, None, None, None, '2722727'), ('4302', '22047852', '1349942912', None, None, None, None, None, '2722727'), ('4302', '22047852', '1349942899', None, None, None, None, None, '2722727'), ('4302', '22047852', '1349942889', None, None, None, None, None, '2722727'), ('4302', '22047852', '1349942862', None, None, None, None, None, '2722727'), ('4302', '22047852', '1349942835', None, None, None, None, None, '2722727')] time used for this insertion : 0.015820980072021484 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.4398813247680664 time spend to save output : 0.016110897064208984 total time spend for step 4 : 3.4559922218322754 step5:split_time_score Fri Apr 4 02:23:05 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['22047852'] 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 : [('22047852',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22047852) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1349943017: {'path': 'temp/1743726182_1842478_1349943017_da21d75ba8ffa024b95bbbdaf527fc34.jpg', 'extension': 'jpg'}, 1349942912: {'path': 'temp/1743726182_1842478_1349942912_33389fff9b323ae924775336c62b28a9.jpg', 'extension': 'jpg'}, 1349942979: {'path': 'temp/1743726182_1842478_1349942979_07a7e610a8532b601785be5cb02e53e6.jpg', 'extension': 'jpg'}, 1349942889: {'path': 'temp/1743726182_1842478_1349942889_9773ff113bfbd3aa3a789e8b5d0b6a69.jpg', 'extension': 'jpg'}, 1349942899: {'path': 'temp/1743726182_1842478_1349942899_6e59d65147ad7c9c90e915fdbc1842d6.jpg', 'extension': 'jpg'}, 1349942835: {'path': 'temp/1743726182_1842478_1349942835_a2d02c0eb6f97ff33815a6d97d77f13d.jpg', 'extension': 'jpg'}, 1349942862: {'path': 'temp/1743726182_1842478_1349942862_3e94150e73c59119f9e59b96779e280c.jpg', 'extension': 'jpg'}, 1349942997: {'path': 'temp/1743726182_1842478_1349942997_b7dc72118a80f53861fafcddbab5b796.jpg', 'extension': 'jpg'}, 1349943004: {'path': 'temp/1743726182_1842478_1349943004_21c7edb0fcefc8fb9ebb2fabd756fa69.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 = 22047852; (('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 = 22047852 group by h (('02', 27),) 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=22047852 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 (22047852) 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 (22047852) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 04042025 22047852 Nombre de photos uploadées : 27 / 23040 (0%) 04042025 22047852 Nombre de photos taguées (types de déchets): 0 / 27 (0%) 04042025 22047852 Nombre de photos taguées (volume) : 0 / 27 (0%) [{'photo_id': 1349942316, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/d7fe87a0608eece0e13b8983731ed340.jpg', 'username': None, 'uploaded_at': 1743725767, 'text': 'image_04042025_02_15_05_10160.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1349942307, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/9db5f78f1f8a8d3f393b3cae07176264.jpg', 'username': None, 'uploaded_at': 1743725767, 'text': 'image_04042025_02_15_15_10138.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1349942297, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/8a44f0f557910d389278dde11eb738ea.jpg', 'username': None, 'uploaded_at': 1743725767, 'text': 'image_04042025_02_15_25_10138.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1349942279, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/eae066adc93ffb9a2b2a739fda8bfaae.jpg', 'username': None, 'uploaded_at': 1743725767, 'text': 'image_04042025_02_15_34_9127.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 4.5299530029296875e-06 ??????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0016064643859863281 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22047852, '2025-04-04' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1715710,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.030367136001586914 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= 1715710 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1715710, 'dashboard_run_id': 1723473, 'mtr_portfolio_id': 22046111, 'dashboard_result_id': 9867022, '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_P22046111_04-04-2025_01_48_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22046115, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22046116, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22046117, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22046118, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22046119, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22046120, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22046121, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22046122, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22046123, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22046124, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22046125, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22046126, 'pht': 3726}}"}, {'dashboat_entry_day': 1715710, 'dashboard_run_id': 1723473, 'mtr_portfolio_id': 22046656, 'dashboard_result_id': 9867023, '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_P22046656_04-04-2025_02_02_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22046660, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22046661, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22046662, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22046663, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22046664, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22046665, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22046666, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22046667, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22046668, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22046669, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22046670, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22046671, 'pht': 3726}}"}, {'dashboat_entry_day': 1715710, 'dashboard_run_id': 1723473, 'mtr_portfolio_id': 22047125, 'dashboard_result_id': 9867024, '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_P22047125_04-04-2025_02_19_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22047154, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22047155, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22047156, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22047157, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22047158, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22047159, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22047160, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22047161, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22047162, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22047163, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22047164, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22047165, 'pht': 3726}}"}, {'dashboat_entry_day': 1715710, 'dashboard_run_id': 1723473, 'mtr_portfolio_id': 22047852, 'dashboard_result_id': 9867025, '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_P22047852_04-04-2025_02_21_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22047908, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22047909, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22047910, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22047911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22047912, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22047913, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22047914, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22047915, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22047916, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22047917, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22047918, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22047919, '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 = 22046111 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': 2722601, 'mtr_portfolio_id': 22046111, 'created_at': datetime.datetime(2025, 4, 4, 1, 48, 57), 'result': '0.04123076072761618', 'result_long': None, 'result_double': None}] Qualite : 0.04123076072761618 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22046111 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22046111_04-04-2025_01_48_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22046111 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_P22046111_04-04-2025_01_48_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22046115, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22046116, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22046117, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22046118, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22046119, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22046120, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22046121, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22046122, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22046123, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22046124, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22046125, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22046126, 'pht': 3726}}" where mtr_portfolio_id = 22046111 and dashboard_run_id = 1723473 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`=22046111 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9867022, 0.04123076072761618, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22046111_04-04-2025_01_48_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22046115, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22046116, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22046117, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22046118, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22046119, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22046120, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22046121, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22046122, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22046123, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22046124, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22046125, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22046126, '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 = 22046656 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': 2722634, 'mtr_portfolio_id': 22046656, 'created_at': datetime.datetime(2025, 4, 4, 2, 2, 31), 'result': '0.05366838792061811', 'result_long': None, 'result_double': None}] Qualite : 0.05366838792061811 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22046656 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22046656_04-04-2025_02_02_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22046656 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_P22046656_04-04-2025_02_02_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22046660, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22046661, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22046662, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22046663, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22046664, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22046665, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22046666, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22046667, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22046668, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22046669, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22046670, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22046671, 'pht': 3726}}" where mtr_portfolio_id = 22046656 and dashboard_run_id = 1723473 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`=22046656 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9867023, 0.05366838792061811, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22046656_04-04-2025_02_02_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22046660, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22046661, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22046662, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22046663, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22046664, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22046665, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22046666, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22046667, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22046668, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22046669, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22046670, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22046671, '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 = 22047125 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': 2722678, 'mtr_portfolio_id': 22047125, 'created_at': datetime.datetime(2025, 4, 4, 2, 19), 'result': '0.05334767070818067', 'result_long': None, 'result_double': None}] Qualite : 0.05334767070818067 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22047125 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22047125_04-04-2025_02_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22047125 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_P22047125_04-04-2025_02_19_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22047154, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22047155, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22047156, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22047157, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22047158, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22047159, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22047160, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22047161, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22047162, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22047163, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22047164, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22047165, 'pht': 3726}}" where mtr_portfolio_id = 22047125 and dashboard_run_id = 1723473 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`=22047125 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9867024, 0.05334767070818067, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22047125_04-04-2025_02_19_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22047154, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22047155, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22047156, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22047157, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22047158, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22047159, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22047160, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22047161, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22047162, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22047163, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22047164, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22047165, '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 = 22047852 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': 2722727, 'mtr_portfolio_id': 22047852, 'created_at': datetime.datetime(2025, 4, 4, 2, 23, 1), 'result': '0.0626954888496211', 'result_long': None, 'result_double': None}] Qualite : 0.0626954888496211 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22047852 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22047852_04-04-2025_02_23_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22047852 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_P22047852_04-04-2025_02_23_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22047908, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22047909, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22047910, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22047911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22047912, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22047913, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22047914, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22047915, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22047916, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22047917, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22047918, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22047919, 'pht': 3726}}" where mtr_portfolio_id = 22047852 and dashboard_run_id = 1723473 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`=22047852 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9867025, 0.0626954888496211, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22047852_04-04-2025_02_23_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22047908, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22047909, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22047910, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22047911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22047912, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22047913, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22047914, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22047915, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22047916, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22047917, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22047918, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22047919, '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 (22046111,22046656,22047125,22047852) result : ((1349931901,), (1349932059,), (1349932073,), (1349932082,), (1349932095,), (1349932102,), (1349932163,), (1349932187,), (1349932212,), (1349932322,), (1349932328,), (1349932475,), (1349932479,), (1349932500,), (1349932542,), (1349932548,), (1349932553,), (1349932559,), (1349932588,), (1349932593,), (1349932597,), (1349932601,), (1349932646,), (1349932649,), (1349932653,), (1349932657,), (1349932698,), (1349932704,), (1349932709,), (1349932713,), (1349932730,), (1349932735,), (1349932766,), (1349932769,), (1349932771,), (1349932775,), (1349932780,), (1349932839,), (1349932843,), (1349932847,), (1349932853,), (1349932925,), (1349932935,), (1349932938,), (1349932942,), (1349932946,), (1349932962,), (1349932967,), (1349932973,), (1349932978,), (1349932984,), (1349932989,), (1349933015,), (1349933023,), (1349933032,), (1349933121,), (1349933139,), (1349933145,), (1349933151,), (1349933155,), (1349933282,), (1349933174,), (1349933180,), (1349933210,), (1349933242,), (1349933541,), (1349933574,), (1349933604,), (1349933762,), (1349933767,), (1349933772,), (1349933777,), (1349933780,), (1349933781,), (1349933801,), (1349933809,), (1349933814,), (1349933819,), (1349933829,), (1349933841,), (1349933880,), (1349933894,), (1349933898,), (1349933940,), (1349934272,), (1349934345,), (1349934422,), (1349934523,), (1349934611,), (1349934619,), (1349934650,), (1349934727,), (1349934737,), (1349934753,), (1349934839,), (1349934845,), (1349934857,), (1349934868,), (1349934874,), (1349934893,), (1349934905,), (1349934914,), (1349934920,), (1349934923,), (1349934926,), (1349934945,), (1349934948,), (1349934950,), (1349934953,), (1349934991,), (1349934995,), (1349934998,), (1349935029,), (1349935033,), (1349935036,), (1349935042,), (1349935074,), (1349935077,), (1349935086,), (1349935090,), (1349935094,), (1349935530,), (1349935534,), (1349935541,), (1349935548,), (1349935559,), (1349935568,), (1349935965,), (1349935905,), (1349936448,), (1349936508,), (1349936563,), (1349936584,), (1349936663,), (1349937299,), (1349937382,), (1349937445,), (1349937514,), (1349937576,), (1349937632,), (1349938181,), (1349938261,), (1349938338,), (1349939294,), (1349939588,), (1349939765,), (1349939882,), (1349939959,), (1349940053,), (1349940401,), (1349940430,), (1349940452,), (1349940473,), (1349940477,), (1349940824,), (1349940904,), (1349940988,), (1349941044,), (1349941124,), (1349941177,), (1349941588,), (1349941602,), (1349941643,), (1349941660,), (1349941664,), (1349941803,), (1349941806,), (1349941811,), (1349941814,), (1349941865,), (1349941869,), (1349941873,), (1349941877,), (1349941882,), (1349941886,), (1349941932,), (1349941938,), (1349941943,), (1349941948,), (1349941992,), (1349941997,), (1349942006,), (1349942015,), (1349942020,), (1349942026,), (1349942051,), (1349942057,), (1349942062,), (1349942068,), (1349942077,), (1349942110,), (1349942141,), (1349942146,), (1349942154,), (1349942207,), (1349942212,), (1349942217,), (1349942223,), (1349942321,), (1349942270,), (1349942279,), (1349942297,), (1349942307,), (1349942316,), (1349942358,), (1349942361,), (1349942368,), (1349942378,), (1349942420,), (1349942426,), (1349942430,), (1349942514,), (1349942523,), (1349942577,), (1349942590,), (1349942610,), (1349942616,), (1349942835,), (1349942862,), (1349942889,), (1349942899,), (1349942912,), (1349942979,), (1349942997,), (1349943004,), (1349943017,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'04042025': {'nb_upload': 27, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22047852]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1349943017, 1349943004, 1349942997, 1349942979, 1349942912, 1349942899, 1349942889, 1349942862, 1349942835] map_info['map_portfolio_photo'] : {22047852: [1349943017, 1349943004, 1349942997, 1349942979, 1349942912, 1349942899, 1349942889, 1349942862, 1349942835, 1349942616, 1349942610, 1349942590, 1349942577, 1349942523, 1349942514, 1349942430, 1349942426, 1349942420, 1349942378, 1349942368, 1349942361, 1349942358, 1349942316, 1349942307, 1349942297, 1349942279, 1349942270]} final : True mtd_id 4302 list_pids : [1349943017, 1349943004, 1349942997, 1349942979, 1349942912, 1349942899, 1349942889, 1349942862, 1349942835] Looping around the photos to save general results len do output : 1 /22047852Didn'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, '2722727') ('4302', '22047852', '1349943017', None, None, None, None, None, '2722727') ('4302', None, None, None, None, None, None, None, '2722727') ('4302', '22047852', '1349943004', None, None, None, None, None, '2722727') ('4302', None, None, None, None, None, None, None, '2722727') ('4302', '22047852', '1349942997', None, None, None, None, None, '2722727') ('4302', None, None, None, None, None, None, None, '2722727') ('4302', '22047852', '1349942979', None, None, None, None, None, '2722727') ('4302', None, None, None, None, None, None, None, '2722727') ('4302', '22047852', '1349942912', None, None, None, None, None, '2722727') ('4302', None, None, None, None, None, None, None, '2722727') ('4302', '22047852', '1349942899', None, None, None, None, None, '2722727') ('4302', None, None, None, None, None, None, None, '2722727') ('4302', '22047852', '1349942889', None, None, None, None, None, '2722727') ('4302', None, None, None, None, None, None, None, '2722727') ('4302', '22047852', '1349942862', None, None, None, None, None, '2722727') ('4302', None, None, None, None, None, None, None, '2722727') ('4302', '22047852', '1349942835', None, None, None, None, None, '2722727') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22047852', 'None', None, None, None, None, '2722727'), ('4302', '22047852', '1349943017', None, None, None, None, None, '2722727'), ('4302', '22047852', '1349943004', None, None, None, None, None, '2722727'), ('4302', '22047852', '1349942997', None, None, None, None, None, '2722727'), ('4302', '22047852', '1349942979', None, None, None, None, None, '2722727'), ('4302', '22047852', '1349942912', None, None, None, None, None, '2722727'), ('4302', '22047852', '1349942899', None, None, None, None, None, '2722727'), ('4302', '22047852', '1349942889', None, None, None, None, None, '2722727'), ('4302', '22047852', '1349942862', None, None, None, None, None, '2722727'), ('4302', '22047852', '1349942835', None, None, None, None, None, '2722727')] time used for this insertion : 0.015537500381469727 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.361752986907959 time spend to save output : 0.015726566314697266 total time spend for step 5 : 0.37747955322265625 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 (2722727) 2.32user 2.65system 0:09.36elapsed 53%CPU (0avgtext+0avgdata 160740maxresident)k 47640inputs+9424outputs (229major+76509minor)pagefaults 0swaps