python /home/admin/mtr/script_for_cron.py -j datou_current3 -m 20 -a ' -a 4302 -v ' -s datou_current_4302 -M 0 -S 0 -U 95,95,120 import MySQLdb succeeded Import error (python version) ['/Users/moilerat/Documents/Fotonower/install/caffe/distribute/python', '/home/admin/workarea/git/Velours/python/prod', '/home/admin/workarea/install/caffe_cuda8_python3/python', '/home/admin/workarea/install/darknet', '/home/admin/workarea/git/Velours/python', '/home/admin/workarea/install/caffe_frcnn_python3/py-faster-rcnn/caffe-fast-rcnn/python', '/home/admin/mtr/.credentials', '/home/admin/workarea/install/caffe/python', '/home/admin/workarea/install/caffe_frcnn/py-faster-rcnn/tools', '/home/admin/workarea/git/fotonowerpip', '/home/admin/workarea/install/segment-anything', '/home/admin/workarea/git/pyfvs', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/home/admin/.local/lib/python3.8/site-packages', '/usr/local/lib/python3.8/dist-packages', '/usr/lib/python3/dist-packages'] Namespace(auto=False, cert_args='/home/fotonower/https/cert.pem', contextDataFile='', custom_size=0, database='', datou_id='4302', datou_id_excluded='', fifo=False, host='', is_cpu_mode=False, job='batch_current', json_args='', key_args='/home/fotonower/https/vision.fotonower.com.key', limit=1000, list_photo_ids='', local='', mtr_current_id=0, mtr_portfolio_ids='', nb_thread=1, no_current=False, offset=0, only_client=False, output_file='', password='', port=5100, rand=0, save=2, use_client=False, user_id=440, username='', verbose=True) process id : 3231175 load datou : 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 ! Unexpected type seems boolean for variable list_input_json ERROR or WARNING : can't parse json string Expecting value: line 1 column 1 (char 0) Tried to parse : None was removed should we ? donnée sous forme de texte was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? id de la photo (peut être local ou global) was removed should we ? donnée sous forme de texte was removed should we ? donnée sous forme de texte was removed should we ? donnée sous forme de texte was removed should we ? None was removed should we ? donnée sous forme de nombre was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? donnée sous forme de texte was removed should we ? None was removed should we ? donnée sous forme de texte was removed should we ? [ptf_id0,ptf_id1...] was removed should we ? load thcls load pdts Running datou job : batch_current 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 (3252606) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3252606) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24748870 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3252606'] with mtr_portfolio_ids : ['24748870'] and first list_photo_ids : [] new path : /proc/3231175/ Name: python3 Umask: 0002 State: R (running) Tgid: 3231175 Ngid: 0 Pid: 3231175 PPid: 3231174 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3231175 NSpid: 3231175 NSpgid: 3230178 NSsid: 3230178 VmPeak: 1106876 kB VmSize: 1106876 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 100064 kB VmRSS: 100064 kB RssAnon: 59824 kB RssFile: 40240 kB RssShmem: 0 kB VmData: 865628 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 592 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 6/63019 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: 80 nonvoluntary_ctxt_switches: 99 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3231175', 'Ngid': '0', 'Pid': '3231175', 'PPid': '3231174', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3231175', 'NSpid': '3231175', 'NSpgid': '3230178', 'NSsid': '3230178', 'VmPeak': '1106876 kB', 'VmSize': '1106876 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '100064 kB', 'VmRSS': '100064 kB', 'RssAnon': '59824 kB', 'RssFile': '40240 kB', 'RssShmem': '0 kB', 'VmData': '865628 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '592 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '6/63019', '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': '80', 'nonvoluntary_ctxt_switches': '99'} ('datou_batch_current', '3231175', '1106876', '0', '1106876', '865628', '100064', b'', 'marlene', '3252606') 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 (24748870) 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 (3252606 ) ) 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 (24748870) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1371372456, 'portfolio_id': 24748870}, {'photo_id': 1371372454, 'portfolio_id': 24748870}, {'photo_id': 1371372446, 'portfolio_id': 24748870}, {'photo_id': 1371372444, 'portfolio_id': 24748870}, {'photo_id': 1371372441, 'portfolio_id': 24748870}, {'photo_id': 1371372428, 'portfolio_id': 24748870}, {'photo_id': 1371372338, 'portfolio_id': 24748870}, {'photo_id': 1371372321, 'portfolio_id': 24748870}, {'photo_id': 1371372314, 'portfolio_id': 24748870}, {'photo_id': 1371372311, 'portfolio_id': 24748870}, {'photo_id': 1371372309, 'portfolio_id': 24748870}, {'photo_id': 1371372302, 'portfolio_id': 24748870}, {'photo_id': 1371372286, 'portfolio_id': 24748870}, {'photo_id': 1371372281, 'portfolio_id': 24748870}, {'photo_id': 1371372277, 'portfolio_id': 24748870}, {'photo_id': 1371372275, 'portfolio_id': 24748870}, {'photo_id': 1371372266, 'portfolio_id': 24748870}, {'photo_id': 1371372258, 'portfolio_id': 24748870}, {'photo_id': 1371372201, 'portfolio_id': 24748870}, {'photo_id': 1371372199, 'portfolio_id': 24748870}, {'photo_id': 1371372191, 'portfolio_id': 24748870}, {'photo_id': 1371372189, 'portfolio_id': 24748870}, {'photo_id': 1371372188, 'portfolio_id': 24748870}, {'photo_id': 1371372186, 'portfolio_id': 24748870}, {'photo_id': 1371372159, 'portfolio_id': 24748870}, {'photo_id': 1371372156, 'portfolio_id': 24748870}, {'photo_id': 1371372146, 'portfolio_id': 24748870}, {'photo_id': 1371372144, 'portfolio_id': 24748870}, {'photo_id': 1371372139, 'portfolio_id': 24748870}, {'photo_id': 1371372137, 'portfolio_id': 24748870}, {'photo_id': 1371372116, 'portfolio_id': 24748870}, {'photo_id': 1371372113, 'portfolio_id': 24748870}, {'photo_id': 1371372109, 'portfolio_id': 24748870}, {'photo_id': 1371372105, 'portfolio_id': 24748870}, {'photo_id': 1371372074, 'portfolio_id': 24748870}, {'photo_id': 1371372061, 'portfolio_id': 24748870}, {'photo_id': 1371371992, 'portfolio_id': 24748870}, {'photo_id': 1371371990, 'portfolio_id': 24748870}, {'photo_id': 1371371987, 'portfolio_id': 24748870}, {'photo_id': 1371371979, 'portfolio_id': 24748870}, {'photo_id': 1371371971, 'portfolio_id': 24748870}, {'photo_id': 1371371968, 'portfolio_id': 24748870}, {'photo_id': 1371371948, 'portfolio_id': 24748870}, {'photo_id': 1371371939, 'portfolio_id': 24748870}, {'photo_id': 1371371927, 'portfolio_id': 24748870}, {'photo_id': 1371371912, 'portfolio_id': 24748870}, {'photo_id': 1371371910, 'portfolio_id': 24748870}, {'photo_id': 1371371908, 'portfolio_id': 24748870}, {'photo_id': 1371371898, 'portfolio_id': 24748870}, {'photo_id': 1371371895, 'portfolio_id': 24748870}, {'photo_id': 1371371885, 'portfolio_id': 24748870}, {'photo_id': 1371371882, 'portfolio_id': 24748870}, {'photo_id': 1371371873, 'portfolio_id': 24748870}, {'photo_id': 1371371864, 'portfolio_id': 24748870}, {'photo_id': 1371371828, 'portfolio_id': 24748870}, {'photo_id': 1371371810, 'portfolio_id': 24748870}, {'photo_id': 1371371808, 'portfolio_id': 24748870}, {'photo_id': 1371371806, 'portfolio_id': 24748870}, {'photo_id': 1371371797, 'portfolio_id': 24748870}, {'photo_id': 1371371794, 'portfolio_id': 24748870}] map_portfolio_id_photo_id: {24748870: [1371372456, 1371372454, 1371372446, 1371372444, 1371372441, 1371372428, 1371372338, 1371372321, 1371372314, 1371372311, 1371372309, 1371372302, 1371372286, 1371372281, 1371372277, 1371372275, 1371372266, 1371372258, 1371372201, 1371372199, 1371372191, 1371372189, 1371372188, 1371372186, 1371372159, 1371372156, 1371372146, 1371372144, 1371372139, 1371372137, 1371372116, 1371372113, 1371372109, 1371372105, 1371372074, 1371372061, 1371371992, 1371371990, 1371371987, 1371371979, 1371371971, 1371371968, 1371371948, 1371371939, 1371371927, 1371371912, 1371371910, 1371371908, 1371371898, 1371371895, 1371371885, 1371371882, 1371371873, 1371371864, 1371371828, 1371371810, 1371371808, 1371371806, 1371371797, 1371371794]} ##### 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.016097545623779297 #### 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 Wed Jul 9 13:56:57 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 (24748870) 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 : 24748870 get user id for portfolio 24748870 get sub ptf for main ptf 24748870, type 3726 and hashtags ['plastique', 'Teint_Dans_La_Masse', 'autre_refus', 'Carton_gris', 'cartonnette', 'mal_croppe', 'flou', 'Carton_brun', 'papier', 'environnement', 'metal', 'kraft'] 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`=24748870 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','Teint_Dans_La_Masse','autre_refus','Carton_gris','cartonnette','mal_croppe','flou','Carton_brun','papier','environnement','metal','kraft')) 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`=24748870 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','Teint_Dans_La_Masse','autre_refus','Carton_gris','cartonnette','mal_croppe','flou','Carton_brun','papier','environnement','metal','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 24748870, 'sub_port_id': 24748885, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16644150, 'last_updated_at': datetime.datetime(2025, 7, 9, 13, 54, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 13, 54, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 13, 48, 58)}, 'plastique': {'main_port_id': 24748870, 'sub_port_id': 24748886, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16644151, 'last_updated_at': datetime.datetime(2025, 7, 9, 13, 54, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 13, 54, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 13, 48, 58)}, 'Carton_gris': {'main_port_id': 24748870, 'sub_port_id': 24748887, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16644152, 'last_updated_at': datetime.datetime(2025, 7, 9, 13, 54, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 13, 54, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 13, 48, 58)}, 'environnement': {'main_port_id': 24748870, 'sub_port_id': 24748888, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16644153, 'last_updated_at': datetime.datetime(2025, 7, 9, 13, 54, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 13, 54, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 13, 48, 58)}, 'papier': {'main_port_id': 24748870, 'sub_port_id': 24748889, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16644154, 'last_updated_at': datetime.datetime(2025, 7, 9, 13, 54, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 13, 54, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 13, 48, 58)}, 'autre_refus': {'main_port_id': 24748870, 'sub_port_id': 24748890, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16644155, 'last_updated_at': datetime.datetime(2025, 7, 9, 13, 54, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 13, 54, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 13, 48, 58)}, 'mal_croppe': {'main_port_id': 24748870, 'sub_port_id': 24748891, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16644156, 'last_updated_at': datetime.datetime(2025, 7, 9, 13, 54, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 13, 54, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 13, 48, 58)}, 'cartonnette': {'main_port_id': 24748870, 'sub_port_id': 24748892, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16644157, 'last_updated_at': datetime.datetime(2025, 7, 9, 13, 54, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 13, 54, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 13, 48, 58)}, 'kraft': {'main_port_id': 24748870, 'sub_port_id': 24748893, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16644158, 'last_updated_at': datetime.datetime(2025, 7, 9, 13, 54, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 13, 54, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 13, 48, 58)}, 'flou': {'main_port_id': 24748870, 'sub_port_id': 24748894, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16644159, 'last_updated_at': datetime.datetime(2025, 7, 9, 13, 54, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 13, 54, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 13, 48, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 24748870, 'sub_port_id': 24748895, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16644160, 'last_updated_at': datetime.datetime(2025, 7, 9, 13, 54, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 13, 54, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 13, 48, 58)}, 'metal': {'main_port_id': 24748870, 'sub_port_id': 24748896, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16644161, 'last_updated_at': datetime.datetime(2025, 7, 9, 13, 54, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 13, 54, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 13, 48, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24748885 , 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=24748870 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 (24748885) result : ((1371372213,), (1371372214,), (1371372284,), (1371372335,), (1371372353,), (1371372354,), (1371372355,), (1371372493,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24748870) result : ((1371371794,), (1371371797,), (1371371806,), (1371371808,), (1371371810,), (1371371828,), (1371371864,), (1371371873,), (1371371882,), (1371371885,), (1371371895,), (1371371898,), (1371371908,), (1371371910,), (1371371912,), (1371371927,), (1371371939,), (1371371948,), (1371371968,), (1371371971,), (1371371979,), (1371371987,), (1371371990,), (1371371992,), (1371372061,), (1371372074,), (1371372105,), (1371372109,), (1371372113,), (1371372116,), (1371372137,), (1371372139,), (1371372144,), (1371372146,), (1371372156,), (1371372159,), (1371372186,), (1371372188,), (1371372189,), (1371372191,), (1371372199,), (1371372201,), (1371372258,), (1371372266,), (1371372275,), (1371372277,), (1371372281,), (1371372286,), (1371372302,), (1371372309,), (1371372311,), (1371372314,), (1371372321,), (1371372338,), (1371372428,), (1371372441,), (1371372444,), (1371372446,), (1371372454,), (1371372456,)) 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 24748886 , 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=24748870 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 (24748886) result : ((1371372222,), (1371372223,), (1371372224,), (1371372225,), (1371372226,), (1371372358,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24748870) result : ((1371371794,), (1371371797,), (1371371806,), (1371371808,), (1371371810,), (1371371828,), (1371371864,), (1371371873,), (1371371882,), (1371371885,), (1371371895,), (1371371898,), (1371371908,), (1371371910,), (1371371912,), (1371371927,), (1371371939,), (1371371948,), (1371371968,), (1371371971,), (1371371979,), (1371371987,), (1371371990,), (1371371992,), (1371372061,), (1371372074,), (1371372105,), (1371372109,), (1371372113,), (1371372116,), (1371372137,), (1371372139,), (1371372144,), (1371372146,), (1371372156,), (1371372159,), (1371372186,), (1371372188,), (1371372189,), (1371372191,), (1371372199,), (1371372201,), (1371372258,), (1371372266,), (1371372275,), (1371372277,), (1371372281,), (1371372286,), (1371372302,), (1371372309,), (1371372311,), (1371372314,), (1371372321,), (1371372338,), (1371372428,), (1371372441,), (1371372444,), (1371372446,), (1371372454,), (1371372456,)) 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 24748887 , 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=24748870 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 (24748887) result : ((1371372207,), (1371372208,), (1371372326,), (1371372344,), (1371372345,), (1371372346,), (1371372347,), (1371372348,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24748870) result : ((1371371794,), (1371371797,), (1371371806,), (1371371808,), (1371371810,), (1371371828,), (1371371864,), (1371371873,), (1371371882,), (1371371885,), (1371371895,), (1371371898,), (1371371908,), (1371371910,), (1371371912,), (1371371927,), (1371371939,), (1371371948,), (1371371968,), (1371371971,), (1371371979,), (1371371987,), (1371371990,), (1371371992,), (1371372061,), (1371372074,), (1371372105,), (1371372109,), (1371372113,), (1371372116,), (1371372137,), (1371372139,), (1371372144,), (1371372146,), (1371372156,), (1371372159,), (1371372186,), (1371372188,), (1371372189,), (1371372191,), (1371372199,), (1371372201,), (1371372258,), (1371372266,), (1371372275,), (1371372277,), (1371372281,), (1371372286,), (1371372302,), (1371372309,), (1371372311,), (1371372314,), (1371372321,), (1371372338,), (1371372428,), (1371372441,), (1371372444,), (1371372446,), (1371372454,), (1371372456,)) 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 24748888 , 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=24748870 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 (24748888) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24748870) result : ((1371371794,), (1371371797,), (1371371806,), (1371371808,), (1371371810,), (1371371828,), (1371371864,), (1371371873,), (1371371882,), (1371371885,), (1371371895,), (1371371898,), (1371371908,), (1371371910,), (1371371912,), (1371371927,), (1371371939,), (1371371948,), (1371371968,), (1371371971,), (1371371979,), (1371371987,), (1371371990,), (1371371992,), (1371372061,), (1371372074,), (1371372105,), (1371372109,), (1371372113,), (1371372116,), (1371372137,), (1371372139,), (1371372144,), (1371372146,), (1371372156,), (1371372159,), (1371372186,), (1371372188,), (1371372189,), (1371372191,), (1371372199,), (1371372201,), (1371372258,), (1371372266,), (1371372275,), (1371372277,), (1371372281,), (1371372286,), (1371372302,), (1371372309,), (1371372311,), (1371372314,), (1371372321,), (1371372338,), (1371372428,), (1371372441,), (1371372444,), (1371372446,), (1371372454,), (1371372456,)) 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 24748889 , 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=24748870 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 (24748889) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24748870) result : ((1371371794,), (1371371797,), (1371371806,), (1371371808,), (1371371810,), (1371371828,), (1371371864,), (1371371873,), (1371371882,), (1371371885,), (1371371895,), (1371371898,), (1371371908,), (1371371910,), (1371371912,), (1371371927,), (1371371939,), (1371371948,), (1371371968,), (1371371971,), (1371371979,), (1371371987,), (1371371990,), (1371371992,), (1371372061,), (1371372074,), (1371372105,), (1371372109,), (1371372113,), (1371372116,), (1371372137,), (1371372139,), (1371372144,), (1371372146,), (1371372156,), (1371372159,), (1371372186,), (1371372188,), (1371372189,), (1371372191,), (1371372199,), (1371372201,), (1371372258,), (1371372266,), (1371372275,), (1371372277,), (1371372281,), (1371372286,), (1371372302,), (1371372309,), (1371372311,), (1371372314,), (1371372321,), (1371372338,), (1371372428,), (1371372441,), (1371372444,), (1371372446,), (1371372454,), (1371372456,)) 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 24748890 , 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=24748870 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 (24748890) result : ((1371372324,), (1371372342,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24748870) result : ((1371371794,), (1371371797,), (1371371806,), (1371371808,), (1371371810,), (1371371828,), (1371371864,), (1371371873,), (1371371882,), (1371371885,), (1371371895,), (1371371898,), (1371371908,), (1371371910,), (1371371912,), (1371371927,), (1371371939,), (1371371948,), (1371371968,), (1371371971,), (1371371979,), (1371371987,), (1371371990,), (1371371992,), (1371372061,), (1371372074,), (1371372105,), (1371372109,), (1371372113,), (1371372116,), (1371372137,), (1371372139,), (1371372144,), (1371372146,), (1371372156,), (1371372159,), (1371372186,), (1371372188,), (1371372189,), (1371372191,), (1371372199,), (1371372201,), (1371372258,), (1371372266,), (1371372275,), (1371372277,), (1371372281,), (1371372286,), (1371372302,), (1371372309,), (1371372311,), (1371372314,), (1371372321,), (1371372338,), (1371372428,), (1371372441,), (1371372444,), (1371372446,), (1371372454,), (1371372456,)) 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 24748891 , 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=24748870 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 (24748891) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24748870) result : ((1371371794,), (1371371797,), (1371371806,), (1371371808,), (1371371810,), (1371371828,), (1371371864,), (1371371873,), (1371371882,), (1371371885,), (1371371895,), (1371371898,), (1371371908,), (1371371910,), (1371371912,), (1371371927,), (1371371939,), (1371371948,), (1371371968,), (1371371971,), (1371371979,), (1371371987,), (1371371990,), (1371371992,), (1371372061,), (1371372074,), (1371372105,), (1371372109,), (1371372113,), (1371372116,), (1371372137,), (1371372139,), (1371372144,), (1371372146,), (1371372156,), (1371372159,), (1371372186,), (1371372188,), (1371372189,), (1371372191,), (1371372199,), (1371372201,), (1371372258,), (1371372266,), (1371372275,), (1371372277,), (1371372281,), (1371372286,), (1371372302,), (1371372309,), (1371372311,), (1371372314,), (1371372321,), (1371372338,), (1371372428,), (1371372441,), (1371372444,), (1371372446,), (1371372454,), (1371372456,)) 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 24748892 , 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=24748870 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 (24748892) result : ((1371372209,), (1371372282,), (1371372283,), (1371372328,), (1371372350,), (1371372351,), (1371372352,), (1371372483,), (1371372484,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24748870) result : ((1371371794,), (1371371797,), (1371371806,), (1371371808,), (1371371810,), (1371371828,), (1371371864,), (1371371873,), (1371371882,), (1371371885,), (1371371895,), (1371371898,), (1371371908,), (1371371910,), (1371371912,), (1371371927,), (1371371939,), (1371371948,), (1371371968,), (1371371971,), (1371371979,), (1371371987,), (1371371990,), (1371371992,), (1371372061,), (1371372074,), (1371372105,), (1371372109,), (1371372113,), (1371372116,), (1371372137,), (1371372139,), (1371372144,), (1371372146,), (1371372156,), (1371372159,), (1371372186,), (1371372188,), (1371372189,), (1371372191,), (1371372199,), (1371372201,), (1371372258,), (1371372266,), (1371372275,), (1371372277,), (1371372281,), (1371372286,), (1371372302,), (1371372309,), (1371372311,), (1371372314,), (1371372321,), (1371372338,), (1371372428,), (1371372441,), (1371372444,), (1371372446,), (1371372454,), (1371372456,)) 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 24748893 , 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=24748870 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 (24748893) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24748870) result : ((1371371794,), (1371371797,), (1371371806,), (1371371808,), (1371371810,), (1371371828,), (1371371864,), (1371371873,), (1371371882,), (1371371885,), (1371371895,), (1371371898,), (1371371908,), (1371371910,), (1371371912,), (1371371927,), (1371371939,), (1371371948,), (1371371968,), (1371371971,), (1371371979,), (1371371987,), (1371371990,), (1371371992,), (1371372061,), (1371372074,), (1371372105,), (1371372109,), (1371372113,), (1371372116,), (1371372137,), (1371372139,), (1371372144,), (1371372146,), (1371372156,), (1371372159,), (1371372186,), (1371372188,), (1371372189,), (1371372191,), (1371372199,), (1371372201,), (1371372258,), (1371372266,), (1371372275,), (1371372277,), (1371372281,), (1371372286,), (1371372302,), (1371372309,), (1371372311,), (1371372314,), (1371372321,), (1371372338,), (1371372428,), (1371372441,), (1371372444,), (1371372446,), (1371372454,), (1371372456,)) 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 24748894 , 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=24748870 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 (24748894) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24748870) result : ((1371371794,), (1371371797,), (1371371806,), (1371371808,), (1371371810,), (1371371828,), (1371371864,), (1371371873,), (1371371882,), (1371371885,), (1371371895,), (1371371898,), (1371371908,), (1371371910,), (1371371912,), (1371371927,), (1371371939,), (1371371948,), (1371371968,), (1371371971,), (1371371979,), (1371371987,), (1371371990,), (1371371992,), (1371372061,), (1371372074,), (1371372105,), (1371372109,), (1371372113,), (1371372116,), (1371372137,), (1371372139,), (1371372144,), (1371372146,), (1371372156,), (1371372159,), (1371372186,), (1371372188,), (1371372189,), (1371372191,), (1371372199,), (1371372201,), (1371372258,), (1371372266,), (1371372275,), (1371372277,), (1371372281,), (1371372286,), (1371372302,), (1371372309,), (1371372311,), (1371372314,), (1371372321,), (1371372338,), (1371372428,), (1371372441,), (1371372444,), (1371372446,), (1371372454,), (1371372456,)) 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 24748895 , 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=24748870 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 (24748895) result : ((1371372203,), (1371372204,), (1371372205,), (1371372318,), (1371372319,), (1371372320,), (1371372322,), (1371372323,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24748870) result : ((1371371794,), (1371371797,), (1371371806,), (1371371808,), (1371371810,), (1371371828,), (1371371864,), (1371371873,), (1371371882,), (1371371885,), (1371371895,), (1371371898,), (1371371908,), (1371371910,), (1371371912,), (1371371927,), (1371371939,), (1371371948,), (1371371968,), (1371371971,), (1371371979,), (1371371987,), (1371371990,), (1371371992,), (1371372061,), (1371372074,), (1371372105,), (1371372109,), (1371372113,), (1371372116,), (1371372137,), (1371372139,), (1371372144,), (1371372146,), (1371372156,), (1371372159,), (1371372186,), (1371372188,), (1371372189,), (1371372191,), (1371372199,), (1371372201,), (1371372258,), (1371372266,), (1371372275,), (1371372277,), (1371372281,), (1371372286,), (1371372302,), (1371372309,), (1371372311,), (1371372314,), (1371372321,), (1371372338,), (1371372428,), (1371372441,), (1371372444,), (1371372446,), (1371372454,), (1371372456,)) 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 24748896 , 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=24748870 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 (24748896) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24748870) result : ((1371371794,), (1371371797,), (1371371806,), (1371371808,), (1371371810,), (1371371828,), (1371371864,), (1371371873,), (1371371882,), (1371371885,), (1371371895,), (1371371898,), (1371371908,), (1371371910,), (1371371912,), (1371371927,), (1371371939,), (1371371948,), (1371371968,), (1371371971,), (1371371979,), (1371371987,), (1371371990,), (1371371992,), (1371372061,), (1371372074,), (1371372105,), (1371372109,), (1371372113,), (1371372116,), (1371372137,), (1371372139,), (1371372144,), (1371372146,), (1371372156,), (1371372159,), (1371372186,), (1371372188,), (1371372189,), (1371372191,), (1371372199,), (1371372201,), (1371372258,), (1371372266,), (1371372275,), (1371372277,), (1371372281,), (1371372286,), (1371372302,), (1371372309,), (1371372311,), (1371372314,), (1371372321,), (1371372338,), (1371372428,), (1371372441,), (1371372444,), (1371372446,), (1371372454,), (1371372456,)) 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`=24748870 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','Teint_Dans_La_Masse','autre_refus','Carton_gris','cartonnette','mal_croppe','flou','Carton_brun','papier','environnement','metal','kraft')) 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`=24748870 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','Teint_Dans_La_Masse','autre_refus','Carton_gris','cartonnette','mal_croppe','flou','Carton_brun','papier','environnement','metal','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 24748870, 'sub_port_id': 24748897, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16644162, 'last_updated_at': datetime.datetime(2025, 7, 9, 13, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 13, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 13, 48, 59)}, 'plastique': {'main_port_id': 24748870, 'sub_port_id': 24748898, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16644163, 'last_updated_at': datetime.datetime(2025, 7, 9, 13, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 13, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 13, 48, 59)}, 'Carton_gris': {'main_port_id': 24748870, 'sub_port_id': 24748899, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16644164, 'last_updated_at': datetime.datetime(2025, 7, 9, 13, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 13, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 13, 48, 59)}, 'environnement': {'main_port_id': 24748870, 'sub_port_id': 24748900, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16644165, 'last_updated_at': datetime.datetime(2025, 7, 9, 13, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 13, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 13, 48, 59)}, 'papier': {'main_port_id': 24748870, 'sub_port_id': 24748901, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16644166, 'last_updated_at': datetime.datetime(2025, 7, 9, 13, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 13, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 13, 48, 59)}, 'autre_refus': {'main_port_id': 24748870, 'sub_port_id': 24748902, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16644167, 'last_updated_at': datetime.datetime(2025, 7, 9, 13, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 13, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 13, 48, 59)}, 'mal_croppe': {'main_port_id': 24748870, 'sub_port_id': 24748903, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16644168, 'last_updated_at': datetime.datetime(2025, 7, 9, 13, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 13, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 13, 48, 59)}, 'cartonnette': {'main_port_id': 24748870, 'sub_port_id': 24748904, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16644169, 'last_updated_at': datetime.datetime(2025, 7, 9, 13, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 13, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 13, 48, 59)}, 'kraft': {'main_port_id': 24748870, 'sub_port_id': 24748905, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16644170, 'last_updated_at': datetime.datetime(2025, 7, 9, 13, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 13, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 13, 48, 59)}, 'flou': {'main_port_id': 24748870, 'sub_port_id': 24748906, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16644171, 'last_updated_at': datetime.datetime(2025, 7, 9, 13, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 13, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 13, 48, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 24748870, 'sub_port_id': 24748907, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16644172, 'last_updated_at': datetime.datetime(2025, 7, 9, 13, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 13, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 13, 48, 59)}, 'metal': {'main_port_id': 24748870, 'sub_port_id': 24748908, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16644173, 'last_updated_at': datetime.datetime(2025, 7, 9, 13, 54, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 9, 13, 54, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 9, 13, 48, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24748897,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24748885 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24748898,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24748886 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24748899,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24748887 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24748900,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24748888 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24748901,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24748889 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24748902,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24748890 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24748903,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24748891 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24748904,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24748892 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24748905,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24748893 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24748906,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24748894 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24748907,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24748895 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24748908,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24748896 lien utilise dans velours : https://www.fotonower.com/velours/24748897,24748898,24748899,24748900,24748901,24748902,24748903,24748904,24748905,24748906,24748907,24748908?tags=Carton_brun,plastique,Carton_gris,environnement,papier,autre_refus,mal_croppe,cartonnette,kraft,flou,Teint_Dans_La_Masse,metal After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24748870]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1371372456, 1371372454, 1371372446, 1371372444, 1371372441, 1371372428, 1371372338, 1371372321, 1371372314, 1371372311, 1371372309, 1371372302] map_info['map_portfolio_photo'] : {24748870: [1371372456, 1371372454, 1371372446, 1371372444, 1371372441, 1371372428, 1371372338, 1371372321, 1371372314, 1371372311, 1371372309, 1371372302, 1371372286, 1371372281, 1371372277, 1371372275, 1371372266, 1371372258, 1371372201, 1371372199, 1371372191, 1371372189, 1371372188, 1371372186, 1371372159, 1371372156, 1371372146, 1371372144, 1371372139, 1371372137, 1371372116, 1371372113, 1371372109, 1371372105, 1371372074, 1371372061, 1371371992, 1371371990, 1371371987, 1371371979, 1371371971, 1371371968, 1371371948, 1371371939, 1371371927, 1371371912, 1371371910, 1371371908, 1371371898, 1371371895, 1371371885, 1371371882, 1371371873, 1371371864, 1371371828, 1371371810, 1371371808, 1371371806, 1371371797, 1371371794]} final : False mtd_id 4302 list_pids : [1371372456, 1371372454, 1371372446, 1371372444, 1371372441, 1371372428, 1371372338, 1371372321, 1371372314, 1371372311, 1371372309, 1371372302] Looping around the photos to save general results len do output : 1 /24748870. 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, '3252606') ('4302', '24748870', '1371372456', None, None, None, None, None, '3252606') ('4302', None, None, None, None, None, None, None, '3252606') ('4302', '24748870', '1371372454', None, None, None, None, None, '3252606') ('4302', None, None, None, None, None, None, None, '3252606') ('4302', '24748870', '1371372446', None, None, None, None, None, '3252606') ('4302', None, None, None, None, None, None, None, '3252606') ('4302', '24748870', '1371372444', None, None, None, None, None, '3252606') ('4302', None, None, None, None, None, None, None, '3252606') ('4302', '24748870', '1371372441', None, None, None, None, None, '3252606') ('4302', None, None, None, None, None, None, None, '3252606') ('4302', '24748870', '1371372428', None, None, None, None, None, '3252606') ('4302', None, None, None, None, None, None, None, '3252606') ('4302', '24748870', '1371372338', None, None, None, None, None, '3252606') ('4302', None, None, None, None, None, None, None, '3252606') ('4302', '24748870', '1371372321', None, None, None, None, None, '3252606') ('4302', None, None, None, None, None, None, None, '3252606') ('4302', '24748870', '1371372314', None, None, None, None, None, '3252606') ('4302', None, None, None, None, None, None, None, '3252606') ('4302', '24748870', '1371372311', None, None, None, None, None, '3252606') ('4302', None, None, None, None, None, None, None, '3252606') ('4302', '24748870', '1371372309', None, None, None, None, None, '3252606') ('4302', None, None, None, None, None, None, None, '3252606') ('4302', '24748870', '1371372302', None, None, None, None, None, '3252606') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 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, '24748870', "{'Carton_brun': 24748885, 'plastique': 24748886, 'Carton_gris': 24748887, 'environnement': 24748888, 'papier': 24748889, 'autre_refus': 24748890, 'mal_croppe': 24748891, 'cartonnette': 24748892, 'kraft': 24748893, 'flou': 24748894, 'Teint_Dans_La_Masse': 24748895, 'metal': 24748896}", None, None, None, None, '3252606'), ('4302', '24748870', '1371372456', None, None, None, None, None, '3252606'), ('4302', '24748870', '1371372454', None, None, None, None, None, '3252606'), ('4302', '24748870', '1371372446', None, None, None, None, None, '3252606'), ('4302', '24748870', '1371372444', None, None, None, None, None, '3252606'), ('4302', '24748870', '1371372441', None, None, None, None, None, '3252606'), ('4302', '24748870', '1371372428', None, None, None, None, None, '3252606'), ('4302', '24748870', '1371372338', None, None, None, None, None, '3252606'), ('4302', '24748870', '1371372321', None, None, None, None, None, '3252606'), ('4302', '24748870', '1371372314', None, None, None, None, None, '3252606'), ('4302', '24748870', '1371372311', None, None, None, None, None, '3252606'), ('4302', '24748870', '1371372309', None, None, None, None, None, '3252606'), ('4302', '24748870', '1371372302', None, None, None, None, None, '3252606')] time used for this insertion : 0.014606952667236328 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5104701519012451 time spend to save output : 0.014911174774169922 total time spend for step 1 : 1.525381326675415 step2:final Wed Jul 9 13:56:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24748870) 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 24748870 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1371371828,1371371810,1371371808,1371371806,1371371797,1371371794,1371371898,1371371895,1371371885,1371371882,1371371873,1371371864,1371371948,1371371939,1371371927,1371371912,1371371910,1371371908,1371371992,1371371990,1371371987,1371371979,1371371971,1371371968,1371372116,1371372113,1371372109,1371372105,1371372074,1371372061,1371372159,1371372156,1371372146,1371372144,1371372139,1371372137,1371372201,1371372199,1371372191,1371372189,1371372188,1371372186,1371372286,1371372281,1371372277,1371372275,1371372266,1371372258,1371372338,1371372321,1371372314,1371372311,1371372309,1371372302,1371372456,1371372454,1371372446,1371372444,1371372441,1371372428); 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([24748870]) Inside saveOutput : final : False verbose : True original output for save of step final : {1371372456: ('0.05545308653157958',), 1371372454: ('0.05545308653157958',), 1371372446: ('0.05545308653157958',), 1371372444: ('0.05545308653157958',), 1371372441: ('0.05545308653157958',), 1371372428: ('0.05545308653157958',), 1371372338: ('0.05545308653157958',), 1371372321: ('0.05545308653157958',), 1371372314: ('0.05545308653157958',), 1371372311: ('0.05545308653157958',), 1371372309: ('0.05545308653157958',), 1371372302: ('0.05545308653157958',)} new output for save of step final : {1371372456: ('0.05545308653157958',), 1371372454: ('0.05545308653157958',), 1371372446: ('0.05545308653157958',), 1371372444: ('0.05545308653157958',), 1371372441: ('0.05545308653157958',), 1371372428: ('0.05545308653157958',), 1371372338: ('0.05545308653157958',), 1371372321: ('0.05545308653157958',), 1371372314: ('0.05545308653157958',), 1371372311: ('0.05545308653157958',), 1371372309: ('0.05545308653157958',), 1371372302: ('0.05545308653157958',)} [1371372456, 1371372454, 1371372446, 1371372444, 1371372441, 1371372428, 1371372338, 1371372321, 1371372314, 1371372311, 1371372309, 1371372302] map_info['map_portfolio_photo'] : {24748870: [1371372456, 1371372454, 1371372446, 1371372444, 1371372441, 1371372428, 1371372338, 1371372321, 1371372314, 1371372311, 1371372309, 1371372302, 1371372286, 1371372281, 1371372277, 1371372275, 1371372266, 1371372258, 1371372201, 1371372199, 1371372191, 1371372189, 1371372188, 1371372186, 1371372159, 1371372156, 1371372146, 1371372144, 1371372139, 1371372137, 1371372116, 1371372113, 1371372109, 1371372105, 1371372074, 1371372061, 1371371992, 1371371990, 1371371987, 1371371979, 1371371971, 1371371968, 1371371948, 1371371939, 1371371927, 1371371912, 1371371910, 1371371908, 1371371898, 1371371895, 1371371885, 1371371882, 1371371873, 1371371864, 1371371828, 1371371810, 1371371808, 1371371806, 1371371797, 1371371794]} final : False mtd_id 4302 list_pids : [1371372456, 1371372454, 1371372446, 1371372444, 1371372441, 1371372428, 1371372338, 1371372321, 1371372314, 1371372311, 1371372309, 1371372302] Looping around the photos to save general results len do output : 12 /1371372456.Didn't retrieve data . /1371372454.Didn't retrieve data . /1371372446.Didn't retrieve data . /1371372444.Didn't retrieve data . /1371372441.Didn't retrieve data . /1371372428.Didn't retrieve data . /1371372338.Didn't retrieve data . /1371372321.Didn't retrieve data . /1371372314.Didn't retrieve data . /1371372311.Didn't retrieve data . /1371372309.Didn't retrieve data . /1371372302.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, '3252606') ('4302', '24748870', '1371372456', None, None, None, None, None, '3252606') ('4302', None, None, None, None, None, None, None, '3252606') ('4302', '24748870', '1371372454', None, None, None, None, None, '3252606') ('4302', None, None, None, None, None, None, None, '3252606') ('4302', '24748870', '1371372446', None, None, None, None, None, '3252606') ('4302', None, None, None, None, None, None, None, '3252606') ('4302', '24748870', '1371372444', None, None, None, None, None, '3252606') ('4302', None, None, None, None, None, None, None, '3252606') ('4302', '24748870', '1371372441', None, None, None, None, None, '3252606') ('4302', None, None, None, None, None, None, None, '3252606') ('4302', '24748870', '1371372428', None, None, None, None, None, '3252606') ('4302', None, None, None, None, None, None, None, '3252606') ('4302', '24748870', '1371372338', None, None, None, None, None, '3252606') ('4302', None, None, None, None, None, None, None, '3252606') ('4302', '24748870', '1371372321', None, None, None, None, None, '3252606') ('4302', None, None, None, None, None, None, None, '3252606') ('4302', '24748870', '1371372314', None, None, None, None, None, '3252606') ('4302', None, None, None, None, None, None, None, '3252606') ('4302', '24748870', '1371372311', None, None, None, None, None, '3252606') ('4302', None, None, None, None, None, None, None, '3252606') ('4302', '24748870', '1371372309', None, None, None, None, None, '3252606') ('4302', None, None, None, None, None, None, None, '3252606') ('4302', '24748870', '1371372302', None, None, None, None, None, '3252606') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 36 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', '24748870', '1371372456', '0.05545308653157958', None, None, None, None, '3252606'), ('4302', '24748870', '1371372454', '0.05545308653157958', None, None, None, None, '3252606'), ('4302', '24748870', '1371372446', '0.05545308653157958', None, None, None, None, '3252606'), ('4302', '24748870', '1371372444', '0.05545308653157958', None, None, None, None, '3252606'), ('4302', '24748870', '1371372441', '0.05545308653157958', None, None, None, None, '3252606'), ('4302', '24748870', '1371372428', '0.05545308653157958', None, None, None, None, '3252606'), ('4302', '24748870', '1371372338', '0.05545308653157958', None, None, None, None, '3252606'), ('4302', '24748870', '1371372321', '0.05545308653157958', None, None, None, None, '3252606'), ('4302', '24748870', '1371372314', '0.05545308653157958', None, None, None, None, '3252606'), ('4302', '24748870', '1371372311', '0.05545308653157958', None, None, None, None, '3252606'), ('4302', '24748870', '1371372309', '0.05545308653157958', None, None, None, None, '3252606'), ('4302', '24748870', '1371372302', '0.05545308653157958', None, None, None, None, '3252606')] time used for this insertion : 0.013325691223144531 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06544113159179688 time spend to save output : 0.01389455795288086 total time spend for step 2 : 0.07933568954467773 step3:velours_tree Wed Jul 9 13:56:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {24748870: [{'Carton_brun': 24748885, 'plastique': 24748886, 'Carton_gris': 24748887, 'environnement': 24748888, 'papier': 24748889, 'autre_refus': 24748890, 'mal_croppe': 24748891, 'cartonnette': 24748892, 'kraft': 24748893, 'flou': 24748894, 'Teint_Dans_La_Masse': 24748895, 'metal': 24748896}]} input_args_next_step : {24748870: ()} output_args : {24748870: [{'Carton_brun': 24748885, 'plastique': 24748886, 'Carton_gris': 24748887, 'environnement': 24748888, 'papier': 24748889, 'autre_refus': 24748890, 'mal_croppe': 24748891, 'cartonnette': 24748892, 'kraft': 24748893, 'flou': 24748894, 'Teint_Dans_La_Masse': 24748895, 'metal': 24748896}]} args : 24748870 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_brun': 24748885, 'plastique': 24748886, 'Carton_gris': 24748887, 'environnement': 24748888, 'papier': 24748889, 'autre_refus': 24748890, 'mal_croppe': 24748891, 'cartonnette': 24748892, 'kraft': 24748893, 'flou': 24748894, 'Teint_Dans_La_Masse': 24748895, 'metal': 24748896},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24748870) 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([24748870]) 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.3022117614746094 time spend to save output : 7.128715515136719e-05 total time spend for step 3 : 0.30228304862976074 step4:send_mail_cod Wed Jul 9 13:56:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1371372456: ('0.05545308653157958',), 1371372454: ('0.05545308653157958',), 1371372446: ('0.05545308653157958',), 1371372444: ('0.05545308653157958',), 1371372441: ('0.05545308653157958',), 1371372428: ('0.05545308653157958',), 1371372338: ('0.05545308653157958',), 1371372321: ('0.05545308653157958',), 1371372314: ('0.05545308653157958',), 1371372311: ('0.05545308653157958',), 1371372309: ('0.05545308653157958',), 1371372302: ('0.05545308653157958',)} input_args_next_step : {1371372456: ()} output_args : {1371372456: ('0.05545308653157958',), 1371372454: ('0.05545308653157958',), 1371372446: ('0.05545308653157958',), 1371372444: ('0.05545308653157958',), 1371372441: ('0.05545308653157958',), 1371372428: ('0.05545308653157958',), 1371372338: ('0.05545308653157958',), 1371372321: ('0.05545308653157958',), 1371372314: ('0.05545308653157958',), 1371372311: ('0.05545308653157958',), 1371372309: ('0.05545308653157958',), 1371372302: ('0.05545308653157958',)} args : 1371372456 depend.output_id : 0 input_args_next_step : {1371372456: ('0.05545308653157958',), 1371372454: ()} output_args : {1371372456: ('0.05545308653157958',), 1371372454: ('0.05545308653157958',), 1371372446: ('0.05545308653157958',), 1371372444: ('0.05545308653157958',), 1371372441: ('0.05545308653157958',), 1371372428: ('0.05545308653157958',), 1371372338: ('0.05545308653157958',), 1371372321: ('0.05545308653157958',), 1371372314: ('0.05545308653157958',), 1371372311: ('0.05545308653157958',), 1371372309: ('0.05545308653157958',), 1371372302: ('0.05545308653157958',)} args : 1371372454 depend.output_id : 0 input_args_next_step : {1371372456: ('0.05545308653157958',), 1371372454: ('0.05545308653157958',), 1371372446: ()} output_args : {1371372456: ('0.05545308653157958',), 1371372454: ('0.05545308653157958',), 1371372446: ('0.05545308653157958',), 1371372444: ('0.05545308653157958',), 1371372441: ('0.05545308653157958',), 1371372428: ('0.05545308653157958',), 1371372338: ('0.05545308653157958',), 1371372321: ('0.05545308653157958',), 1371372314: ('0.05545308653157958',), 1371372311: ('0.05545308653157958',), 1371372309: ('0.05545308653157958',), 1371372302: ('0.05545308653157958',)} args : 1371372446 depend.output_id : 0 input_args_next_step : {1371372456: ('0.05545308653157958',), 1371372454: ('0.05545308653157958',), 1371372446: ('0.05545308653157958',), 1371372444: ()} output_args : {1371372456: ('0.05545308653157958',), 1371372454: ('0.05545308653157958',), 1371372446: ('0.05545308653157958',), 1371372444: ('0.05545308653157958',), 1371372441: ('0.05545308653157958',), 1371372428: ('0.05545308653157958',), 1371372338: ('0.05545308653157958',), 1371372321: ('0.05545308653157958',), 1371372314: ('0.05545308653157958',), 1371372311: ('0.05545308653157958',), 1371372309: ('0.05545308653157958',), 1371372302: ('0.05545308653157958',)} args : 1371372444 depend.output_id : 0 input_args_next_step : {1371372456: ('0.05545308653157958',), 1371372454: ('0.05545308653157958',), 1371372446: ('0.05545308653157958',), 1371372444: ('0.05545308653157958',), 1371372441: ()} output_args : {1371372456: ('0.05545308653157958',), 1371372454: ('0.05545308653157958',), 1371372446: ('0.05545308653157958',), 1371372444: ('0.05545308653157958',), 1371372441: ('0.05545308653157958',), 1371372428: ('0.05545308653157958',), 1371372338: ('0.05545308653157958',), 1371372321: ('0.05545308653157958',), 1371372314: ('0.05545308653157958',), 1371372311: ('0.05545308653157958',), 1371372309: ('0.05545308653157958',), 1371372302: ('0.05545308653157958',)} args : 1371372441 depend.output_id : 0 input_args_next_step : {1371372456: ('0.05545308653157958',), 1371372454: ('0.05545308653157958',), 1371372446: ('0.05545308653157958',), 1371372444: ('0.05545308653157958',), 1371372441: ('0.05545308653157958',), 1371372428: ()} output_args : {1371372456: ('0.05545308653157958',), 1371372454: ('0.05545308653157958',), 1371372446: ('0.05545308653157958',), 1371372444: ('0.05545308653157958',), 1371372441: ('0.05545308653157958',), 1371372428: ('0.05545308653157958',), 1371372338: ('0.05545308653157958',), 1371372321: ('0.05545308653157958',), 1371372314: ('0.05545308653157958',), 1371372311: ('0.05545308653157958',), 1371372309: ('0.05545308653157958',), 1371372302: ('0.05545308653157958',)} args : 1371372428 depend.output_id : 0 input_args_next_step : {1371372456: ('0.05545308653157958',), 1371372454: ('0.05545308653157958',), 1371372446: ('0.05545308653157958',), 1371372444: ('0.05545308653157958',), 1371372441: ('0.05545308653157958',), 1371372428: ('0.05545308653157958',), 1371372338: ()} output_args : {1371372456: ('0.05545308653157958',), 1371372454: ('0.05545308653157958',), 1371372446: ('0.05545308653157958',), 1371372444: ('0.05545308653157958',), 1371372441: ('0.05545308653157958',), 1371372428: ('0.05545308653157958',), 1371372338: ('0.05545308653157958',), 1371372321: ('0.05545308653157958',), 1371372314: ('0.05545308653157958',), 1371372311: ('0.05545308653157958',), 1371372309: ('0.05545308653157958',), 1371372302: ('0.05545308653157958',)} args : 1371372338 depend.output_id : 0 input_args_next_step : {1371372456: ('0.05545308653157958',), 1371372454: ('0.05545308653157958',), 1371372446: ('0.05545308653157958',), 1371372444: ('0.05545308653157958',), 1371372441: ('0.05545308653157958',), 1371372428: ('0.05545308653157958',), 1371372338: ('0.05545308653157958',), 1371372321: ()} output_args : {1371372456: ('0.05545308653157958',), 1371372454: ('0.05545308653157958',), 1371372446: ('0.05545308653157958',), 1371372444: ('0.05545308653157958',), 1371372441: ('0.05545308653157958',), 1371372428: ('0.05545308653157958',), 1371372338: ('0.05545308653157958',), 1371372321: ('0.05545308653157958',), 1371372314: ('0.05545308653157958',), 1371372311: ('0.05545308653157958',), 1371372309: ('0.05545308653157958',), 1371372302: ('0.05545308653157958',)} args : 1371372321 depend.output_id : 0 input_args_next_step : {1371372456: ('0.05545308653157958',), 1371372454: ('0.05545308653157958',), 1371372446: ('0.05545308653157958',), 1371372444: ('0.05545308653157958',), 1371372441: ('0.05545308653157958',), 1371372428: ('0.05545308653157958',), 1371372338: ('0.05545308653157958',), 1371372321: ('0.05545308653157958',), 1371372314: ()} output_args : {1371372456: ('0.05545308653157958',), 1371372454: ('0.05545308653157958',), 1371372446: ('0.05545308653157958',), 1371372444: ('0.05545308653157958',), 1371372441: ('0.05545308653157958',), 1371372428: ('0.05545308653157958',), 1371372338: ('0.05545308653157958',), 1371372321: ('0.05545308653157958',), 1371372314: ('0.05545308653157958',), 1371372311: ('0.05545308653157958',), 1371372309: ('0.05545308653157958',), 1371372302: ('0.05545308653157958',)} args : 1371372314 depend.output_id : 0 input_args_next_step : {1371372456: ('0.05545308653157958',), 1371372454: ('0.05545308653157958',), 1371372446: ('0.05545308653157958',), 1371372444: ('0.05545308653157958',), 1371372441: ('0.05545308653157958',), 1371372428: ('0.05545308653157958',), 1371372338: ('0.05545308653157958',), 1371372321: ('0.05545308653157958',), 1371372314: ('0.05545308653157958',), 1371372311: ()} output_args : {1371372456: ('0.05545308653157958',), 1371372454: ('0.05545308653157958',), 1371372446: ('0.05545308653157958',), 1371372444: ('0.05545308653157958',), 1371372441: ('0.05545308653157958',), 1371372428: ('0.05545308653157958',), 1371372338: ('0.05545308653157958',), 1371372321: ('0.05545308653157958',), 1371372314: ('0.05545308653157958',), 1371372311: ('0.05545308653157958',), 1371372309: ('0.05545308653157958',), 1371372302: ('0.05545308653157958',)} args : 1371372311 depend.output_id : 0 input_args_next_step : {1371372456: ('0.05545308653157958',), 1371372454: ('0.05545308653157958',), 1371372446: ('0.05545308653157958',), 1371372444: ('0.05545308653157958',), 1371372441: ('0.05545308653157958',), 1371372428: ('0.05545308653157958',), 1371372338: ('0.05545308653157958',), 1371372321: ('0.05545308653157958',), 1371372314: ('0.05545308653157958',), 1371372311: ('0.05545308653157958',), 1371372309: ()} output_args : {1371372456: ('0.05545308653157958',), 1371372454: ('0.05545308653157958',), 1371372446: ('0.05545308653157958',), 1371372444: ('0.05545308653157958',), 1371372441: ('0.05545308653157958',), 1371372428: ('0.05545308653157958',), 1371372338: ('0.05545308653157958',), 1371372321: ('0.05545308653157958',), 1371372314: ('0.05545308653157958',), 1371372311: ('0.05545308653157958',), 1371372309: ('0.05545308653157958',), 1371372302: ('0.05545308653157958',)} args : 1371372309 depend.output_id : 0 input_args_next_step : {1371372456: ('0.05545308653157958',), 1371372454: ('0.05545308653157958',), 1371372446: ('0.05545308653157958',), 1371372444: ('0.05545308653157958',), 1371372441: ('0.05545308653157958',), 1371372428: ('0.05545308653157958',), 1371372338: ('0.05545308653157958',), 1371372321: ('0.05545308653157958',), 1371372314: ('0.05545308653157958',), 1371372311: ('0.05545308653157958',), 1371372309: ('0.05545308653157958',), 1371372302: ()} output_args : {1371372456: ('0.05545308653157958',), 1371372454: ('0.05545308653157958',), 1371372446: ('0.05545308653157958',), 1371372444: ('0.05545308653157958',), 1371372441: ('0.05545308653157958',), 1371372428: ('0.05545308653157958',), 1371372338: ('0.05545308653157958',), 1371372321: ('0.05545308653157958',), 1371372314: ('0.05545308653157958',), 1371372311: ('0.05545308653157958',), 1371372309: ('0.05545308653157958',), 1371372302: ('0.05545308653157958',)} args : 1371372302 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 : {24748870: [{'Carton_brun': 24748885, 'plastique': 24748886, 'Carton_gris': 24748887, 'environnement': 24748888, 'papier': 24748889, 'autre_refus': 24748890, 'mal_croppe': 24748891, 'cartonnette': 24748892, 'kraft': 24748893, 'flou': 24748894, 'Teint_Dans_La_Masse': 24748895, 'metal': 24748896}]} input_args_next_step : {1371372456: ('0.05545308653157958',), 1371372454: ('0.05545308653157958',), 1371372446: ('0.05545308653157958',), 1371372444: ('0.05545308653157958',), 1371372441: ('0.05545308653157958',), 1371372428: ('0.05545308653157958',), 1371372338: ('0.05545308653157958',), 1371372321: ('0.05545308653157958',), 1371372314: ('0.05545308653157958',), 1371372311: ('0.05545308653157958',), 1371372309: ('0.05545308653157958',), 1371372302: ('0.05545308653157958',), 24748870: ()} output_args : {24748870: [{'Carton_brun': 24748885, 'plastique': 24748886, 'Carton_gris': 24748887, 'environnement': 24748888, 'papier': 24748889, 'autre_refus': 24748890, 'mal_croppe': 24748891, 'cartonnette': 24748892, 'kraft': 24748893, 'flou': 24748894, 'Teint_Dans_La_Masse': 24748895, 'metal': 24748896}]} args : 24748870 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 :13, first value : ('0.05545308653157958',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24748870) 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 (1371372456,1371372454,1371372446,1371372444,1371372441,1371372428,1371372338,1371372321,1371372314,1371372311,1371372309,1371372302) Found this number of photos: 12 ##### Call download_photos : nb_thread : 5 begin to download photo : 1371372302 begin to download photo : 1371372314 begin to download photo : 1371372428 begin to download photo : 1371372446 download finish for photo 1371372428 begin to download photo : 1371372441 download finish for photo 1371372302 begin to download photo : 1371372309 download finish for photo 1371372446 begin to download photo : 1371372454 download finish for photo 1371372314 begin to download photo : 1371372321 download finish for photo 1371372309 begin to download photo : 1371372311 download finish for photo 1371372441 begin to download photo : 1371372444 download finish for photo 1371372454 download finish for photo 1371372321 begin to download photo : 1371372456 begin to download photo : 1371372338 download finish for photo 1371372444 download finish for photo 1371372311 download finish for photo 1371372338 download finish for photo 1371372456 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 12 ; length of list_pids : 12 ; length of list_args : 12 results_Auto_P24748870_09-07-2025_13_56_59.pdf 24748886 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=24748886 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371372222: '1752061924_893022_1371371927_388f02d6dc86dc0c0735a8a75b7580c8_rle_crop_3877214732_0.png', 1371372223: '1752061924_893022_1371371927_388f02d6dc86dc0c0735a8a75b7580c8_rle_crop_3877214737_0.png', 1371372224: '1752061924_893022_1371371912_4b86fddb3152cfce6c5a0f08fa223fcd_rle_crop_3877214753_0.png', 1371372225: '1752061924_893022_1371371910_ec2dd4ae385672372c430d2331da2357_rle_crop_3877214764_0.png', 1371372226: '1752061924_893022_1371371908_739954c64144e9da1b8c7873b5689646_rle_crop_3877214779_0.png', 1371372358: '1752062066_1464235_1371372109_682494cb8684632e42f6d86ecfcdcbca_rle_crop_3877215415_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/c82d47f1e4d5d3c65f14dc4aef1c10ad_84050777.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/f0658c4491215d2b79713c8cbf723203_11790742.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/bf0bfad3ef49dd4fce6b5ddf4db86003_92426404.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/3102052b480ac8620433334d07c45cec_92896706.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/a103b8119db9c9d186ecb6f87302f241_83924965.png change filename to text .imagette247488861752062219/ imagette247488861752062219/1752062066_1464235_1371372109_682494cb8684632e42f6d86ecfcdcbca_rle_crop_3877215415_0.png.png imagette247488861752062219/1752061924_893022_1371371927_388f02d6dc86dc0c0735a8a75b7580c8_rle_crop_3877214732_0.png.png imagette247488861752062219/1752061924_893022_1371371912_4b86fddb3152cfce6c5a0f08fa223fcd_rle_crop_3877214753_0.png.png imagette247488861752062219/1752061924_893022_1371371910_ec2dd4ae385672372c430d2331da2357_rle_crop_3877214764_0.png.png imagette247488861752062219/1752061924_893022_1371371908_739954c64144e9da1b8c7873b5689646_rle_crop_3877214779_0.png.png imagette247488861752062219/1752061924_893022_1371371927_388f02d6dc86dc0c0735a8a75b7580c8_rle_crop_3877214737_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/ee7cb498432fc377b30b39946abe66ec_12971508.png imagette247488861752062219 24748890 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=24748890 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371372324: '1752062047_897566_1371372137_e0e86ffb67b0a240e9baa0b158dfd90b_rle_crop_3877215386_0.png', 1371372342: '1752062066_1464235_1371372109_682494cb8684632e42f6d86ecfcdcbca_rle_crop_3877215417_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/55b65d99f3f628b59c22f18b2e2fa566_68658197.png change filename to text .imagette247488901752062219/ imagette247488901752062219/1752062066_1464235_1371372109_682494cb8684632e42f6d86ecfcdcbca_rle_crop_3877215417_0.png.png imagette247488901752062219/1752062047_897566_1371372137_e0e86ffb67b0a240e9baa0b158dfd90b_rle_crop_3877215386_0.png.png imagette247488911752062219/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/2a08de5ed458abcd7c74c19e7bc06595_52341170.png imagette247488901752062219 24748891 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=24748891 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette247488911752062219 24748892 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=24748892 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371372209: '1752061924_893022_1371371939_ca2b8a2ec5a0b0216782c283dbb5e224_rle_crop_3877214704_0.png', 1371372282: '1752062005_1462349_1371371992_ecdedd25ef0ae9e1c76be21696a70fca_rle_crop_3877214945_0.png', 1371372283: '1752062005_1462349_1371371990_c11384154390b22e69d6ccdbaf5f8458_rle_crop_3877214953_0.png', 1371372328: '1752062047_897566_1371372159_5b567897dcbf9898740df76b9e5dba33_rle_crop_3877215177_0.png', 1371372350: '1752062066_1464235_1371372105_76a60fe0b062a11ab45ce9b4082af673_rle_crop_3877215425_0.png', 1371372351: '1752062066_1464235_1371372074_9528209613a23ed59c981b4d021b5081_rle_crop_3877215442_0.png', 1371372352: '1752062066_1464235_1371372061_3dd1b8184f6549e2d6f2b16bde8eac49_rle_crop_3877215454_0.png', 1371372483: '1752062166_904354_1371371992_ecdedd25ef0ae9e1c76be21696a70fca_rle_crop_3877214945_0.png', 1371372484: '1752062166_904354_1371371990_c11384154390b22e69d6ccdbaf5f8458_rle_crop_3877214953_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/7d18786a12289b13b55b9d3d38f3dd22_84164816.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/3358e407469cf0d2dda7d691ee821f97_95663866.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/14458e9655ff8c93360fdd4efd58b779_26535037.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/52b02f92bc2b50264c35888c7ee78c1d_91649128.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/f8d37d8c840abc9066ab8f3b6fe7c369_18750864.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/2cb170353197db00f55cb4872a5597bc_22053456.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/380741f64403a4325428a2428d4cb0d4_19482566.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/3358e407469cf0d2dda7d691ee821f97_52179246.png change filename to text .imagette247488921752062219/ imagette247488921752062219/1752062166_904354_1371371990_c11384154390b22e69d6ccdbaf5f8458_rle_crop_3877214953_0.png.png imagette247488921752062219/1752062066_1464235_1371372074_9528209613a23ed59c981b4d021b5081_rle_crop_3877215442_0.png.png imagette247488921752062219/1752062066_1464235_1371372061_3dd1b8184f6549e2d6f2b16bde8eac49_rle_crop_3877215454_0.png.png imagette247488921752062219/1752062005_1462349_1371371990_c11384154390b22e69d6ccdbaf5f8458_rle_crop_3877214953_0.png.png imagette247488921752062219/1752062047_897566_1371372159_5b567897dcbf9898740df76b9e5dba33_rle_crop_3877215177_0.png.png imagette247488921752062219/1752062166_904354_1371371992_ecdedd25ef0ae9e1c76be21696a70fca_rle_crop_3877214945_0.png.png imagette247488921752062219/1752062066_1464235_1371372105_76a60fe0b062a11ab45ce9b4082af673_rle_crop_3877215425_0.png.png imagette247488921752062219/1752062005_1462349_1371371992_ecdedd25ef0ae9e1c76be21696a70fca_rle_crop_3877214945_0.png.png imagette247488921752062219/1752061924_893022_1371371939_ca2b8a2ec5a0b0216782c283dbb5e224_rle_crop_3877214704_0.png.png imagette247488931752062220/ imagette247488941752062220/ imagette247488961752062220/ wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/14458e9655ff8c93360fdd4efd58b779_57027648.png imagette247488921752062219 24748893 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=24748893 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette247488931752062220 24748894 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=24748894 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette247488941752062220 24748896 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=24748896 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette247488961752062220 24748885 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=24748885 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371372213: '1752061924_893022_1371371927_388f02d6dc86dc0c0735a8a75b7580c8_rle_crop_3877214736_0.png', 1371372214: '1752061924_893022_1371371908_739954c64144e9da1b8c7873b5689646_rle_crop_3877214773_0.png', 1371372284: '1752062005_1462349_1371371987_a9fb8f7fb0a6e4c04432236d71a17bc9_rle_crop_3877214975_0.png', 1371372335: '1752062047_897566_1371372159_5b567897dcbf9898740df76b9e5dba33_rle_crop_3877215185_0.png', 1371372353: '1752062066_1464235_1371372109_682494cb8684632e42f6d86ecfcdcbca_rle_crop_3877215420_0.png', 1371372354: '1752062066_1464235_1371372074_9528209613a23ed59c981b4d021b5081_rle_crop_3877215447_0.png', 1371372355: '1752062066_1464235_1371372061_3dd1b8184f6549e2d6f2b16bde8eac49_rle_crop_3877215460_0.png', 1371372493: '1752062166_904354_1371371987_a9fb8f7fb0a6e4c04432236d71a17bc9_rle_crop_3877214975_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/8c6152572a5283dc7165918cc4d2fdca_50006010.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/c731c399da511453d68b094806fff7bf_12258214.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/0cf92b92fe11397832f6536bc2c0057b_35567895.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/556a4710faa91153e01a1af0a803c1bb_56040541.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/c6b4bc54909773a1f7360a0a9c5b455a_7902166.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/8e0f9e025ca2024dd09580ca353ff83a_44742989.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/2b561a1f4b6f3d69eb0de8d020bbbb92_33092024.png change filename to text .imagette247488851752062220/ imagette247488851752062220/1752062066_1464235_1371372061_3dd1b8184f6549e2d6f2b16bde8eac49_rle_crop_3877215460_0.png.png imagette247488851752062220/1752062066_1464235_1371372109_682494cb8684632e42f6d86ecfcdcbca_rle_crop_3877215420_0.png.png imagette247488851752062220/1752062166_904354_1371371987_a9fb8f7fb0a6e4c04432236d71a17bc9_rle_crop_3877214975_0.png.png imagette247488851752062220/1752062047_897566_1371372159_5b567897dcbf9898740df76b9e5dba33_rle_crop_3877215185_0.png.png imagette247488851752062220/1752061924_893022_1371371927_388f02d6dc86dc0c0735a8a75b7580c8_rle_crop_3877214736_0.png.png imagette247488851752062220/1752062066_1464235_1371372074_9528209613a23ed59c981b4d021b5081_rle_crop_3877215447_0.png.png imagette247488851752062220/1752062005_1462349_1371371987_a9fb8f7fb0a6e4c04432236d71a17bc9_rle_crop_3877214975_0.png.png imagette247488851752062220/1752061924_893022_1371371908_739954c64144e9da1b8c7873b5689646_rle_crop_3877214773_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/0cf92b92fe11397832f6536bc2c0057b_63823568.png imagette247488851752062220 24748887 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=24748887 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371372207: '1752061924_893022_1371371948_95c158ef40dbeb71f9c5e2cd2d98795b_rle_crop_3877214698_0.png', 1371372208: '1752061924_893022_1371371912_4b86fddb3152cfce6c5a0f08fa223fcd_rle_crop_3877214747_0.png', 1371372326: '1752062047_897566_1371372159_5b567897dcbf9898740df76b9e5dba33_rle_crop_3877215176_0.png', 1371372344: '1752062066_1464235_1371372105_76a60fe0b062a11ab45ce9b4082af673_rle_crop_3877215424_0.png', 1371372345: '1752062066_1464235_1371372105_76a60fe0b062a11ab45ce9b4082af673_rle_crop_3877215430_0.png', 1371372346: '1752062066_1464235_1371372074_9528209613a23ed59c981b4d021b5081_rle_crop_3877215443_0.png', 1371372347: '1752062066_1464235_1371372061_3dd1b8184f6549e2d6f2b16bde8eac49_rle_crop_3877215456_0.png', 1371372348: '1752062066_1464235_1371372061_3dd1b8184f6549e2d6f2b16bde8eac49_rle_crop_3877215459_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/de232837ab094602895f825be9314341_96044580.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/74fe9d06861e1129c51d86ae537b6323_77386955.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/f8a00150dfdfe96be8dbdf0c972651e1_59595796.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/ae6c01e2b8f60798150bd9d20d011ffa_84582017.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/2eb801b2a7708e47a3f2af167dda4b26_74354652.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/6bfd1b28e68d6fde1e431dce9453baf1_34450093.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/17b5eafa90ed6d2693dc1dc0beca12cf_3627628.png change filename to text .imagette247488871752062220/ imagette247488871752062220/1752061924_893022_1371371948_95c158ef40dbeb71f9c5e2cd2d98795b_rle_crop_3877214698_0.png.png imagette247488871752062220/1752062066_1464235_1371372074_9528209613a23ed59c981b4d021b5081_rle_crop_3877215443_0.png.png imagette247488871752062220/1752062066_1464235_1371372105_76a60fe0b062a11ab45ce9b4082af673_rle_crop_3877215430_0.png.png imagette247488871752062220/1752061924_893022_1371371912_4b86fddb3152cfce6c5a0f08fa223fcd_rle_crop_3877214747_0.png.png imagette247488871752062220/1752062047_897566_1371372159_5b567897dcbf9898740df76b9e5dba33_rle_crop_3877215176_0.png.png imagette247488871752062220/1752062066_1464235_1371372105_76a60fe0b062a11ab45ce9b4082af673_rle_crop_3877215424_0.png.png imagette247488871752062220/1752062066_1464235_1371372061_3dd1b8184f6549e2d6f2b16bde8eac49_rle_crop_3877215456_0.png.png imagette247488871752062220/1752062066_1464235_1371372061_3dd1b8184f6549e2d6f2b16bde8eac49_rle_crop_3877215459_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/f3da849319ef3e8a2c29ce4052127482_70772895.png imagette247488871752062220 24748895 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=24748895 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371372203: '1752061924_893022_1371371912_4b86fddb3152cfce6c5a0f08fa223fcd_rle_crop_3877214752_0.png', 1371372204: '1752061924_893022_1371371910_ec2dd4ae385672372c430d2331da2357_rle_crop_3877214763_0.png', 1371372205: '1752061924_893022_1371371908_739954c64144e9da1b8c7873b5689646_rle_crop_3877214776_0.png', 1371372318: '1752062047_897566_1371372159_5b567897dcbf9898740df76b9e5dba33_rle_crop_3877215187_0.png', 1371372319: '1752062047_897566_1371372156_fdbcd85105889808e14df99182e1f846_rle_crop_3877215203_0.png', 1371372320: '1752062047_897566_1371372146_47876907f1e053739b256399b7b4e363_rle_crop_3877215209_0.png', 1371372322: '1752062047_897566_1371372144_0308ac53cb1720b2d22c1c053855fcea_rle_crop_3877215219_0.png', 1371372323: '1752062047_897566_1371372139_2c3aec9467537727627393510df7ebc0_rle_crop_3877215236_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/3684fd6b6c6a7380aaa647bd40af5fcc_92386552.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/0d9e9fa0150fab4b4c66658727091f19_34765090.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/4d2ff3f90bd7d229712ecfbb30a2c1cb_13263560.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/5b8398a9831c7b88c95e189445cfa54a_61842276.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/24d3c4e8061f14850a5027ed69559b7b_15321716.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/b02a58fcecbb24c6eb5701ad6e15915c_38967258.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/06721ba9952d653ab0ebba7989364f0c_22176916.png change filename to text .imagette247488951752062221/ imagette247488951752062221/1752061924_893022_1371371912_4b86fddb3152cfce6c5a0f08fa223fcd_rle_crop_3877214752_0.png.png imagette247488951752062221/1752061924_893022_1371371908_739954c64144e9da1b8c7873b5689646_rle_crop_3877214776_0.png.png imagette247488951752062221/1752062047_897566_1371372156_fdbcd85105889808e14df99182e1f846_rle_crop_3877215203_0.png.png imagette247488951752062221/1752062047_897566_1371372159_5b567897dcbf9898740df76b9e5dba33_rle_crop_3877215187_0.png.png imagette247488951752062221/1752061924_893022_1371371910_ec2dd4ae385672372c430d2331da2357_rle_crop_3877214763_0.png.png imagette247488951752062221/1752062047_897566_1371372144_0308ac53cb1720b2d22c1c053855fcea_rle_crop_3877215219_0.png.png imagette247488951752062221/1752062047_897566_1371372139_2c3aec9467537727627393510df7ebc0_rle_crop_3877215236_0.png.png imagette247488951752062221/1752062047_897566_1371372146_47876907f1e053739b256399b7b4e363_rle_crop_3877215209_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/438545ccf13b3afac770ed6690decb33_49154653.png imagette247488951752062221 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=24748870 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/24748897,24748898,24748899,24748900,24748901,24748902,24748903,24748904,24748905,24748906,24748907,24748908?tags=Carton_brun,plastique,Carton_gris,environnement,papier,autre_refus,mal_croppe,cartonnette,kraft,flou,Teint_Dans_La_Masse,metal your option no_mail is active, we will not send the real mail to your client args[1371372456] : ('0.05545308653157958',) no score found for photo 1371372456 We are sending mail with results at report@fotonower.com args[1371372454] : ('0.05545308653157958',) no score found for photo 1371372454 We are sending mail with results at report@fotonower.com args[1371372446] : ('0.05545308653157958',) no score found for photo 1371372446 We are sending mail with results at report@fotonower.com args[1371372444] : ('0.05545308653157958',) no score found for photo 1371372444 We are sending mail with results at report@fotonower.com args[1371372441] : ('0.05545308653157958',) no score found for photo 1371372441 We are sending mail with results at report@fotonower.com args[1371372428] : ('0.05545308653157958',) no score found for photo 1371372428 We are sending mail with results at report@fotonower.com args[1371372338] : ('0.05545308653157958',) no score found for photo 1371372338 We are sending mail with results at report@fotonower.com args[1371372321] : ('0.05545308653157958',) no score found for photo 1371372321 We are sending mail with results at report@fotonower.com args[1371372314] : ('0.05545308653157958',) no score found for photo 1371372314 We are sending mail with results at report@fotonower.com args[1371372311] : ('0.05545308653157958',) no score found for photo 1371372311 We are sending mail with results at report@fotonower.com args[1371372309] : ('0.05545308653157958',) no score found for photo 1371372309 We are sending mail with results at report@fotonower.com args[1371372302] : ('0.05545308653157958',) no score found for photo 1371372302 We are sending mail with results at report@fotonower.com refus_total : 0.05545308653157958 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=24748870 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_P24748870_09-07-2025_13_56_59.pdf results_Auto_P24748870_09-07-2025_13_56_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24748870_09-07-2025_13_56_59.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','24748870','results_Auto_P24748870_09-07-2025_13_56_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24748870_09-07-2025_13_56_59.pdf','pdf','','0.25','0.05545308653157958') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24748870]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1371372456, 1371372454, 1371372446, 1371372444, 1371372441, 1371372428, 1371372338, 1371372321, 1371372314, 1371372311, 1371372309, 1371372302] map_info['map_portfolio_photo'] : {24748870: [1371372456, 1371372454, 1371372446, 1371372444, 1371372441, 1371372428, 1371372338, 1371372321, 1371372314, 1371372311, 1371372309, 1371372302, 1371372286, 1371372281, 1371372277, 1371372275, 1371372266, 1371372258, 1371372201, 1371372199, 1371372191, 1371372189, 1371372188, 1371372186, 1371372159, 1371372156, 1371372146, 1371372144, 1371372139, 1371372137, 1371372116, 1371372113, 1371372109, 1371372105, 1371372074, 1371372061, 1371371992, 1371371990, 1371371987, 1371371979, 1371371971, 1371371968, 1371371948, 1371371939, 1371371927, 1371371912, 1371371910, 1371371908, 1371371898, 1371371895, 1371371885, 1371371882, 1371371873, 1371371864, 1371371828, 1371371810, 1371371808, 1371371806, 1371371797, 1371371794]} final : False mtd_id 4302 list_pids : [1371372456, 1371372454, 1371372446, 1371372444, 1371372441, 1371372428, 1371372338, 1371372321, 1371372314, 1371372311, 1371372309, 1371372302] 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, '3252606') ('4302', '24748870', '1371372456', None, None, None, None, None, '3252606') ('4302', None, None, None, None, None, None, None, '3252606') ('4302', '24748870', '1371372454', None, None, None, None, None, '3252606') ('4302', None, None, None, None, None, None, None, '3252606') ('4302', '24748870', '1371372446', None, None, None, None, None, '3252606') ('4302', None, None, None, None, None, None, None, '3252606') ('4302', '24748870', '1371372444', None, None, None, None, None, '3252606') ('4302', None, None, None, None, None, None, None, '3252606') ('4302', '24748870', '1371372441', None, None, None, None, None, '3252606') ('4302', None, None, None, None, None, None, None, '3252606') ('4302', '24748870', '1371372428', None, None, None, None, None, '3252606') ('4302', None, None, None, None, None, None, None, '3252606') ('4302', '24748870', '1371372338', None, None, None, None, None, '3252606') ('4302', None, None, None, None, None, None, None, '3252606') ('4302', '24748870', '1371372321', None, None, None, None, None, '3252606') ('4302', None, None, None, None, None, None, None, '3252606') ('4302', '24748870', '1371372314', None, None, None, None, None, '3252606') ('4302', None, None, None, None, None, None, None, '3252606') ('4302', '24748870', '1371372311', None, None, None, None, None, '3252606') ('4302', None, None, None, None, None, None, None, '3252606') ('4302', '24748870', '1371372309', None, None, None, None, None, '3252606') ('4302', None, None, None, None, None, None, None, '3252606') ('4302', '24748870', '1371372302', None, None, None, None, None, '3252606') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 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', '24748870', '1371372456', None, None, None, None, None, '3252606'), ('4302', '24748870', '1371372454', None, None, None, None, None, '3252606'), ('4302', '24748870', '1371372446', None, None, None, None, None, '3252606'), ('4302', '24748870', '1371372444', None, None, None, None, None, '3252606'), ('4302', '24748870', '1371372441', None, None, None, None, None, '3252606'), ('4302', '24748870', '1371372428', None, None, None, None, None, '3252606'), ('4302', '24748870', '1371372338', None, None, None, None, None, '3252606'), ('4302', '24748870', '1371372321', None, None, None, None, None, '3252606'), ('4302', '24748870', '1371372314', None, None, None, None, None, '3252606'), ('4302', '24748870', '1371372311', None, None, None, None, None, '3252606'), ('4302', '24748870', '1371372309', None, None, None, None, None, '3252606'), ('4302', '24748870', '1371372302', None, None, None, None, None, '3252606')] time used for this insertion : 0.012942075729370117 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.076701402664185 time spend to save output : 0.013172388076782227 total time spend for step 4 : 4.089873790740967 step5:split_time_score Wed Jul 9 13:57:03 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['24748870'] 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 : [('24748870',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24748870) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1371372428: {'path': 'temp/1752062219_3231175_1371372428_dcc4ece5166edb4077f91985a7d95569.jpg', 'extension': 'jpg'}, 1371372441: {'path': 'temp/1752062219_3231175_1371372441_e09c39debe0a5f60b44b6d46a7cb1b64.jpg', 'extension': 'jpg'}, 1371372444: {'path': 'temp/1752062219_3231175_1371372444_3c85cdee2038b29eeba94f673d156123.jpg', 'extension': 'jpg'}, 1371372302: {'path': 'temp/1752062219_3231175_1371372302_8d8a85287a1ac34d4e5aa6c717d33acb.jpg', 'extension': 'jpg'}, 1371372309: {'path': 'temp/1752062219_3231175_1371372309_76dd2ffd042180884cfb6c78bb942f8e.jpg', 'extension': 'jpg'}, 1371372311: {'path': 'temp/1752062219_3231175_1371372311_ec93b8b81ffd476a79a973b2afdb53a1.jpg', 'extension': 'jpg'}, 1371372314: {'path': 'temp/1752062219_3231175_1371372314_67dae007c4484eaa7b1d80ffb474a0b6.jpg', 'extension': 'jpg'}, 1371372321: {'path': 'temp/1752062219_3231175_1371372321_8a2064132bfd904949fe3c8ea21fc727.jpg', 'extension': 'jpg'}, 1371372338: {'path': 'temp/1752062219_3231175_1371372338_cce3a624877935bc110f44cea1683f2b.jpg', 'extension': 'jpg'}, 1371372446: {'path': 'temp/1752062219_3231175_1371372446_9a870800dd170b9533f59fb57883fd57.jpg', 'extension': 'jpg'}, 1371372454: {'path': 'temp/1752062219_3231175_1371372454_1bbd9d88d0e3681904926f41e2133bf9.jpg', 'extension': 'jpg'}, 1371372456: {'path': 'temp/1752062219_3231175_1371372456_ea695070ef8e33aed18b169a68fd3d69.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 = 24748870; (('arc_en_ciel_jrm_live',),) 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 = 24748870 group by h (('13', 60),) 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=24748870 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 (24748870) 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 (24748870) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 09072025 24748870 Nombre de photos uploadées : 60 / 23040 (0%) 09072025 24748870 Nombre de photos taguées (types de déchets): 0 / 60 (0%) 09072025 24748870 Nombre de photos taguées (volume) : 0 / 60 (0%) [{'photo_id': 1371371828, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/085a7a005f7fd79efbaae2606220d654.jpg', 'username': None, 'uploaded_at': 1752061578, 'text': 'image_09072025_13_45_04_9132.jpg'}, {'photo_id': 1371371810, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/6a7aa277f50d31e08ca9f6183383514f.jpg', 'username': None, 'uploaded_at': 1752061578, 'text': 'image_09072025_13_45_14_10136.jpg'}, {'photo_id': 1371371808, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/d53afb9a7ee6a9a1740b1e980103da0c.jpg', 'username': None, 'uploaded_at': 1752061578, 'text': 'image_09072025_13_45_24_10136.jpg'}, {'photo_id': 1371371806, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/9/640679bbe9ea13cc477ab884b8330347.jpg', 'username': None, 'uploaded_at': 1752061578, 'text': 'image_09072025_13_45_34_10140.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.1920928955078125e-06 elapsed_time : order_list_meta_photo_and_scores 5.245208740234375e-06 ???????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002476215362548828 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 218, 24748870, '2025-07-09' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1963464,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.022343158721923828 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= 1963464 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1963464, 'dashboard_run_id': 1971021, 'mtr_portfolio_id': 24747262, 'dashboard_result_id': 12300086, '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_P24747262_09-07-2025_13_17_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24747265, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24747266, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24747267, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24747268, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24747269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24747270, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24747271, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24747272, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24747273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24747274, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24747275, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24747276, 'pht': 3726}}"}, {'dashboat_entry_day': 1963464, 'dashboard_run_id': 1971021, 'mtr_portfolio_id': 24747707, 'dashboard_result_id': 12300087, '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_P24747707_09-07-2025_13_33_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24747745, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24747746, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24747747, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24747748, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24747749, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24747750, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24747751, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24747752, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24747753, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24747754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24747755, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24747756, 'pht': 3726}}"}, {'dashboat_entry_day': 1963464, 'dashboard_run_id': 1971021, 'mtr_portfolio_id': 24748269, 'dashboard_result_id': 12300088, '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_P24748269_09-07-2025_13_47_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24748304, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24748305, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24748306, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24748307, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24748308, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24748309, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24748310, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24748311, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24748312, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24748313, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24748314, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24748315, 'pht': 3726}}"}, {'dashboat_entry_day': 1963464, 'dashboard_run_id': 1971021, 'mtr_portfolio_id': 24748870, 'dashboard_result_id': 12300089, '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_P24748870_09-07-2025_13_54_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24748885, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24748886, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24748887, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24748888, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24748889, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24748890, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24748891, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24748892, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24748893, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24748894, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24748895, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24748896, '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 = 24747262 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': 3252354, 'mtr_portfolio_id': 24747262, 'created_at': datetime.datetime(2025, 7, 9, 13, 16, 59), 'result': '0.031805652620991554', 'result_long': None, 'result_double': None}] Qualite : 0.031805652620991554 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24747262 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24747262_09-07-2025_13_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24747262 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_P24747262_09-07-2025_13_17_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24747265, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24747266, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24747267, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24747268, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24747269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24747270, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24747271, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24747272, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24747273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24747274, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24747275, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24747276, 'pht': 3726}}" where mtr_portfolio_id = 24747262 and dashboard_run_id = 1971021 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`=24747262 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12300086, 0.031805652620991554, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24747262_09-07-2025_13_17_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24747265, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24747266, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24747267, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24747268, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24747269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24747270, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24747271, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24747272, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24747273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24747274, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24747275, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24747276, '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 = 24747707 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': 3252405, 'mtr_portfolio_id': 24747707, 'created_at': datetime.datetime(2025, 7, 9, 13, 33, 28), 'result': '0.0530137814613162', 'result_long': None, 'result_double': None}] Qualite : 0.0530137814613162 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24747707 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24747707_09-07-2025_13_33_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24747707 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_P24747707_09-07-2025_13_33_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24747745, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24747746, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24747747, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24747748, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24747749, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24747750, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24747751, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24747752, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24747753, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24747754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24747755, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24747756, 'pht': 3726}}" where mtr_portfolio_id = 24747707 and dashboard_run_id = 1971021 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`=24747707 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12300087, 0.0530137814613162, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24747707_09-07-2025_13_33_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24747745, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24747746, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24747747, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24747748, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24747749, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24747750, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24747751, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24747752, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24747753, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24747754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24747755, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24747756, '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 = 24748269 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': 3252484, 'mtr_portfolio_id': 24748269, 'created_at': datetime.datetime(2025, 7, 9, 13, 46, 59), 'result': '0.04382890444493781', 'result_long': None, 'result_double': None}] Qualite : 0.04382890444493781 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24748269 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24748269_09-07-2025_13_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24748269 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_P24748269_09-07-2025_13_47_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24748304, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24748305, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24748306, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24748307, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24748308, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24748309, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24748310, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24748311, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24748312, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24748313, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24748314, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24748315, 'pht': 3726}}" where mtr_portfolio_id = 24748269 and dashboard_run_id = 1971021 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`=24748269 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12300088, 0.04382890444493781, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24748269_09-07-2025_13_47_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24748304, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24748305, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24748306, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24748307, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24748308, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24748309, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24748310, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24748311, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24748312, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24748313, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24748314, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24748315, '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 = 24748870 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': 3252606, 'mtr_portfolio_id': 24748870, 'created_at': datetime.datetime(2025, 7, 9, 13, 56, 58), 'result': '0.05545308653157958', 'result_long': None, 'result_double': None}] Qualite : 0.05545308653157958 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24748870 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24748870_09-07-2025_13_56_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24748870 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_P24748870_09-07-2025_13_56_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24748885, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24748886, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24748887, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24748888, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24748889, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24748890, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24748891, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24748892, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24748893, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24748894, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24748895, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24748896, 'pht': 3726}}" where mtr_portfolio_id = 24748870 and dashboard_run_id = 1971021 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`=24748870 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12300089, 0.05545308653157958, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24748870_09-07-2025_13_56_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24748885, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24748886, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24748887, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24748888, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24748889, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24748890, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24748891, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24748892, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24748893, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24748894, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24748895, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24748896, '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 (24747262,24747707,24748269,24748870) result : ((1371368493,), (1371368499,), (1371368500,), (1371368521,), (1371368524,), (1371368527,), (1371368547,), (1371368550,), (1371368554,), (1371368564,), (1371368566,), (1371368567,), (1371368578,), (1371368582,), (1371368592,), (1371368594,), (1371368597,), (1371368600,), (1371368615,), (1371368623,), (1371368625,), (1371368628,), (1371368630,), (1371368634,), (1371368654,), (1371368659,), (1371368662,), (1371368664,), (1371368671,), (1371368672,), (1371368684,), (1371368687,), (1371368690,), (1371368709,), (1371368713,), (1371368714,), (1371368726,), (1371368729,), (1371368745,), (1371368753,), (1371368755,), (1371368757,), (1371368770,), (1371368778,), (1371368780,), (1371368783,), (1371368785,), (1371368793,), (1371368819,), (1371368827,), (1371368829,), (1371368830,), (1371368838,), (1371368840,), (1371368885,), (1371368919,), (1371368929,), (1371368937,), (1371368944,), (1371368960,), (1371368961,), (1371368965,), (1371368966,), (1371368975,), (1371368976,), (1371368979,), (1371368980,), (1371368982,), (1371368983,), (1371368984,), (1371368986,), (1371369014,), (1371369023,), (1371369027,), (1371369031,), (1371369036,), (1371369053,), (1371369066,), (1371369074,), (1371369076,), (1371369078,), (1371369086,), (1371369088,), (1371369215,), (1371369250,), (1371369303,), (1371369343,), (1371369376,), (1371369377,), (1371369426,), (1371369468,), (1371369486,), (1371369489,), (1371369511,), (1371369539,), (1371369582,), (1371369623,), (1371369652,), (1371369657,), (1371369666,), (1371369669,), (1371369722,), (1371369725,), (1371369735,), (1371369739,), (1371369743,), (1371369753,), (1371369770,), (1371369772,), (1371369783,), (1371369788,), (1371369790,), (1371369802,), (1371369827,), (1371369839,), (1371369843,), (1371369846,), (1371369854,), (1371369856,), (1371369955,), (1371369958,), (1371369968,), (1371370010,), (1371370038,), (1371370040,), (1371370051,), (1371370053,), (1371370061,), (1371370069,), (1371370073,), (1371370077,), (1371370152,), (1371370161,), (1371370163,), (1371370164,), (1371370172,), (1371370175,), (1371370187,), (1371370192,), (1371370196,), (1371370206,), (1371370210,), (1371370214,), (1371370244,), (1371370252,), (1371370261,), (1371370263,), (1371370267,), (1371370271,), (1371370350,), (1371370354,), (1371370356,), (1371370357,), (1371370375,), (1371370388,), (1371370400,), (1371370403,), (1371370407,), (1371370417,), (1371370430,), (1371370438,), (1371370448,), (1371370450,), (1371370458,), (1371370461,), (1371370465,), (1371370468,), (1371370550,), (1371370568,), (1371370572,), (1371370576,), (1371370587,), (1371370592,), (1371370604,), (1371370606,), (1371370608,), (1371370618,), (1371370620,), (1371370622,), (1371370655,), (1371370657,), (1371370666,), (1371370668,), (1371370673,), (1371370676,), (1371370811,), (1371370821,), (1371370825,), (1371370829,), (1371370847,), (1371370865,), (1371370875,), (1371370877,), (1371370880,), (1371370883,), (1371370900,), (1371370911,), (1371370915,), (1371370925,), (1371370929,), (1371370931,), (1371370939,), (1371370941,), (1371371007,), (1371371008,), (1371371011,), (1371371012,), (1371371020,), (1371371029,), (1371371033,), (1371371042,), (1371371043,), (1371371046,), (1371371047,), (1371371050,), (1371371062,), (1371371070,), (1371371072,), (1371371074,), (1371371077,), (1371371086,), (1371371118,), (1371371128,), (1371371135,), (1371371141,), (1371371150,), (1371371153,), (1371371219,), (1371371223,), (1371371226,), (1371371242,), (1371371245,), (1371371248,), (1371371295,), (1371371298,), (1371371299,), (1371371308,), (1371371312,), (1371371316,), (1371371365,), (1371371368,), (1371371382,), (1371371383,), (1371371384,), (1371371385,), (1371371407,), (1371371410,), (1371371414,), (1371371416,), (1371371426,), (1371371480,), (1371371503,), (1371371506,), (1371371509,), (1371371516,), (1371371517,), (1371371521,), (1371371581,), (1371371585,), (1371371596,), (1371371599,), (1371371601,), (1371371603,), (1371371617,), (1371371625,), (1371371633,), (1371371635,), (1371371636,), (1371371645,), (1371371652,), (1371371664,), (1371371666,), (1371371668,), (1371371676,), (1371371679,), (1371371729,), (1371371730,), (1371371734,), (1371371735,), (1371371750,), (1371371751,), (1371371753,), (1371371754,), (1371371755,), (1371371756,), (1371371763,), (1371371764,), (1371371794,), (1371371797,), (1371371806,), (1371371808,), (1371371810,), (1371371828,), (1371371864,), (1371371873,), (1371371882,), (1371371885,), (1371371895,), (1371371898,), (1371371908,), (1371371910,), (1371371912,), (1371371927,), (1371371939,), (1371371948,), (1371371968,), (1371371971,), (1371371979,), (1371371987,), (1371371990,), (1371371992,), (1371372061,), (1371372074,), (1371372105,), (1371372109,), (1371372113,), (1371372116,), (1371372137,), (1371372139,), (1371372144,), (1371372146,), (1371372156,), (1371372159,), (1371372186,), (1371372188,), (1371372189,), (1371372191,), (1371372199,), (1371372201,), (1371372258,), (1371372266,), (1371372275,), (1371372277,), (1371372281,), (1371372286,), (1371372302,), (1371372309,), (1371372311,), (1371372314,), (1371372321,), (1371372338,), (1371372428,), (1371372441,), (1371372444,), (1371372446,), (1371372454,), (1371372456,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'09072025': {'nb_upload': 60, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24748870]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1371372456, 1371372454, 1371372446, 1371372444, 1371372441, 1371372428, 1371372338, 1371372321, 1371372314, 1371372311, 1371372309, 1371372302] map_info['map_portfolio_photo'] : {24748870: [1371372456, 1371372454, 1371372446, 1371372444, 1371372441, 1371372428, 1371372338, 1371372321, 1371372314, 1371372311, 1371372309, 1371372302, 1371372286, 1371372281, 1371372277, 1371372275, 1371372266, 1371372258, 1371372201, 1371372199, 1371372191, 1371372189, 1371372188, 1371372186, 1371372159, 1371372156, 1371372146, 1371372144, 1371372139, 1371372137, 1371372116, 1371372113, 1371372109, 1371372105, 1371372074, 1371372061, 1371371992, 1371371990, 1371371987, 1371371979, 1371371971, 1371371968, 1371371948, 1371371939, 1371371927, 1371371912, 1371371910, 1371371908, 1371371898, 1371371895, 1371371885, 1371371882, 1371371873, 1371371864, 1371371828, 1371371810, 1371371808, 1371371806, 1371371797, 1371371794]} final : True mtd_id 4302 list_pids : [1371372456, 1371372454, 1371372446, 1371372444, 1371372441, 1371372428, 1371372338, 1371372321, 1371372314, 1371372311, 1371372309, 1371372302] Looping around the photos to save general results len do output : 1 /24748870Didn'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, '3252606') ('4302', '24748870', '1371372456', None, None, None, None, None, '3252606') ('4302', None, None, None, None, None, None, None, '3252606') ('4302', '24748870', '1371372454', None, None, None, None, None, '3252606') ('4302', None, None, None, None, None, None, None, '3252606') ('4302', '24748870', '1371372446', None, None, None, None, None, '3252606') ('4302', None, None, None, None, None, None, None, '3252606') ('4302', '24748870', '1371372444', None, None, None, None, None, '3252606') ('4302', None, None, None, None, None, None, None, '3252606') ('4302', '24748870', '1371372441', None, None, None, None, None, '3252606') ('4302', None, None, None, None, None, None, None, '3252606') ('4302', '24748870', '1371372428', None, None, None, None, None, '3252606') ('4302', None, None, None, None, None, None, None, '3252606') ('4302', '24748870', '1371372338', None, None, None, None, None, '3252606') ('4302', None, None, None, None, None, None, None, '3252606') ('4302', '24748870', '1371372321', None, None, None, None, None, '3252606') ('4302', None, None, None, None, None, None, None, '3252606') ('4302', '24748870', '1371372314', None, None, None, None, None, '3252606') ('4302', None, None, None, None, None, None, None, '3252606') ('4302', '24748870', '1371372311', None, None, None, None, None, '3252606') ('4302', None, None, None, None, None, None, None, '3252606') ('4302', '24748870', '1371372309', None, None, None, None, None, '3252606') ('4302', None, None, None, None, None, None, None, '3252606') ('4302', '24748870', '1371372302', None, None, None, None, None, '3252606') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 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, '24748870', 'None', None, None, None, None, '3252606'), ('4302', '24748870', '1371372456', None, None, None, None, None, '3252606'), ('4302', '24748870', '1371372454', None, None, None, None, None, '3252606'), ('4302', '24748870', '1371372446', None, None, None, None, None, '3252606'), ('4302', '24748870', '1371372444', None, None, None, None, None, '3252606'), ('4302', '24748870', '1371372441', None, None, None, None, None, '3252606'), ('4302', '24748870', '1371372428', None, None, None, None, None, '3252606'), ('4302', '24748870', '1371372338', None, None, None, None, None, '3252606'), ('4302', '24748870', '1371372321', None, None, None, None, None, '3252606'), ('4302', '24748870', '1371372314', None, None, None, None, None, '3252606'), ('4302', '24748870', '1371372311', None, None, None, None, None, '3252606'), ('4302', '24748870', '1371372309', None, None, None, None, None, '3252606'), ('4302', '24748870', '1371372302', None, None, None, None, None, '3252606')] time used for this insertion : 0.012822628021240234 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3388681411743164 time spend to save output : 0.01304006576538086 total time spend for step 5 : 0.35190820693969727 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 (3252606) 2.13user 2.44system 0:08.77elapsed 52%CPU (0avgtext+0avgdata 161132maxresident)k 1680inputs+14464outputs (29major+64212minor)pagefaults 0swaps