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 : 3605309 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 (3936958) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3936958) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27781652 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3936958'] with mtr_portfolio_ids : ['27781652'] and first list_photo_ids : [] new path : /proc/3605309/ Name: python3 Umask: 0002 State: R (running) Tgid: 3605309 Ngid: 0 Pid: 3605309 PPid: 3605308 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3605309 NSpid: 3605309 NSpgid: 3604705 NSsid: 3604705 VmPeak: 1106856 kB VmSize: 1106856 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98628 kB VmRSS: 98628 kB RssAnon: 59844 kB RssFile: 38784 kB RssShmem: 0 kB VmData: 865608 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 556 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/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: 97 nonvoluntary_ctxt_switches: 134 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3605309', 'Ngid': '0', 'Pid': '3605309', 'PPid': '3605308', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3605309', 'NSpid': '3605309', 'NSpgid': '3604705', 'NSsid': '3604705', 'VmPeak': '1106856 kB', 'VmSize': '1106856 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98628 kB', 'VmRSS': '98628 kB', 'RssAnon': '59844 kB', 'RssFile': '38784 kB', 'RssShmem': '0 kB', 'VmData': '865608 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '556 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/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': '97', 'nonvoluntary_ctxt_switches': '134'} ('datou_batch_current', '3605309', '1106856', '0', '1106856', '865608', '98628', b'', 'marlene', '3936958') 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_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (27781652) 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 (3936958 ) ) 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 (27781652) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1389343582, 'portfolio_id': 27781652}, {'photo_id': 1389343578, 'portfolio_id': 27781652}, {'photo_id': 1389343575, 'portfolio_id': 27781652}, {'photo_id': 1389343569, 'portfolio_id': 27781652}, {'photo_id': 1389343565, 'portfolio_id': 27781652}, {'photo_id': 1389343562, 'portfolio_id': 27781652}, {'photo_id': 1389343559, 'portfolio_id': 27781652}, {'photo_id': 1389343558, 'portfolio_id': 27781652}, {'photo_id': 1389343557, 'portfolio_id': 27781652}, {'photo_id': 1389343531, 'portfolio_id': 27781652}, {'photo_id': 1389343529, 'portfolio_id': 27781652}, {'photo_id': 1389343528, 'portfolio_id': 27781652}, {'photo_id': 1389343526, 'portfolio_id': 27781652}, {'photo_id': 1389343517, 'portfolio_id': 27781652}, {'photo_id': 1389343513, 'portfolio_id': 27781652}, {'photo_id': 1389343510, 'portfolio_id': 27781652}, {'photo_id': 1389343509, 'portfolio_id': 27781652}, {'photo_id': 1389343508, 'portfolio_id': 27781652}, {'photo_id': 1389343492, 'portfolio_id': 27781652}, {'photo_id': 1389343488, 'portfolio_id': 27781652}, {'photo_id': 1389343485, 'portfolio_id': 27781652}, {'photo_id': 1389343481, 'portfolio_id': 27781652}, {'photo_id': 1389343480, 'portfolio_id': 27781652}, {'photo_id': 1389343479, 'portfolio_id': 27781652}, {'photo_id': 1389343465, 'portfolio_id': 27781652}, {'photo_id': 1389343462, 'portfolio_id': 27781652}, {'photo_id': 1389343461, 'portfolio_id': 27781652}, {'photo_id': 1389343460, 'portfolio_id': 27781652}, {'photo_id': 1389343439, 'portfolio_id': 27781652}, {'photo_id': 1389343436, 'portfolio_id': 27781652}, {'photo_id': 1389343435, 'portfolio_id': 27781652}, {'photo_id': 1389343433, 'portfolio_id': 27781652}, {'photo_id': 1389343429, 'portfolio_id': 27781652}, {'photo_id': 1389343426, 'portfolio_id': 27781652}, {'photo_id': 1389343423, 'portfolio_id': 27781652}, {'photo_id': 1389343418, 'portfolio_id': 27781652}, {'photo_id': 1389343417, 'portfolio_id': 27781652}, {'photo_id': 1389343416, 'portfolio_id': 27781652}, {'photo_id': 1389343395, 'portfolio_id': 27781652}, {'photo_id': 1389343392, 'portfolio_id': 27781652}, {'photo_id': 1389343390, 'portfolio_id': 27781652}, {'photo_id': 1389343389, 'portfolio_id': 27781652}, {'photo_id': 1389343387, 'portfolio_id': 27781652}, {'photo_id': 1389343381, 'portfolio_id': 27781652}, {'photo_id': 1389343378, 'portfolio_id': 27781652}, {'photo_id': 1389343375, 'portfolio_id': 27781652}, {'photo_id': 1389343372, 'portfolio_id': 27781652}, {'photo_id': 1389343370, 'portfolio_id': 27781652}, {'photo_id': 1389343369, 'portfolio_id': 27781652}, {'photo_id': 1389343347, 'portfolio_id': 27781652}, {'photo_id': 1389343345, 'portfolio_id': 27781652}, {'photo_id': 1389343343, 'portfolio_id': 27781652}, {'photo_id': 1389343174, 'portfolio_id': 27781652}, {'photo_id': 1389343171, 'portfolio_id': 27781652}, {'photo_id': 1389343170, 'portfolio_id': 27781652}, {'photo_id': 1389343169, 'portfolio_id': 27781652}, {'photo_id': 1389342265, 'portfolio_id': 27781652}, {'photo_id': 1389342262, 'portfolio_id': 27781652}, {'photo_id': 1389342259, 'portfolio_id': 27781652}, {'photo_id': 1389342255, 'portfolio_id': 27781652}] map_portfolio_id_photo_id: {27781652: [1389343582, 1389343578, 1389343575, 1389343569, 1389343565, 1389343562, 1389343559, 1389343558, 1389343557, 1389343531, 1389343529, 1389343528, 1389343526, 1389343517, 1389343513, 1389343510, 1389343509, 1389343508, 1389343492, 1389343488, 1389343485, 1389343481, 1389343480, 1389343479, 1389343465, 1389343462, 1389343461, 1389343460, 1389343439, 1389343436, 1389343435, 1389343433, 1389343429, 1389343426, 1389343423, 1389343418, 1389343417, 1389343416, 1389343395, 1389343392, 1389343390, 1389343389, 1389343387, 1389343381, 1389343378, 1389343375, 1389343372, 1389343370, 1389343369, 1389343347, 1389343345, 1389343343, 1389343174, 1389343171, 1389343170, 1389343169, 1389342265, 1389342262, 1389342259, 1389342255]} ##### 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.0587162971496582 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Tue Oct 14 06:14:30 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 (27781652) 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 : 27781652 get user id for portfolio 27781652 get sub ptf for main ptf 27781652, type 3726 and hashtags ['autre_refus', 'flou', 'environnement', 'kraft', 'Carton_gris', 'mal_croppe', 'papier', 'plastique', 'Carton_brun', 'metal', 'cartonnette', 'Teint_Dans_La_Masse'] 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`=27781652 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','flou','environnement','kraft','Carton_gris','mal_croppe','papier','plastique','Carton_brun','metal','cartonnette','Teint_Dans_La_Masse')) 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`=27781652 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','flou','environnement','kraft','Carton_gris','mal_croppe','papier','plastique','Carton_brun','metal','cartonnette','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 27781652, 'sub_port_id': 27781660, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18742491, 'last_updated_at': datetime.datetime(2025, 10, 14, 6, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 6, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 6, 3)}, 'Carton_gris': {'main_port_id': 27781652, 'sub_port_id': 27781661, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18742492, 'last_updated_at': datetime.datetime(2025, 10, 14, 6, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 6, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 6, 3)}, 'Teint_Dans_La_Masse': {'main_port_id': 27781652, 'sub_port_id': 27781662, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18742493, 'last_updated_at': datetime.datetime(2025, 10, 14, 6, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 6, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 6, 3)}, 'Carton_brun': {'main_port_id': 27781652, 'sub_port_id': 27781663, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18742494, 'last_updated_at': datetime.datetime(2025, 10, 14, 6, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 6, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 6, 3)}, 'flou': {'main_port_id': 27781652, 'sub_port_id': 27781664, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18742495, 'last_updated_at': datetime.datetime(2025, 10, 14, 6, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 6, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 6, 3)}, 'metal': {'main_port_id': 27781652, 'sub_port_id': 27781665, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18742496, 'last_updated_at': datetime.datetime(2025, 10, 14, 6, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 6, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 6, 3)}, 'kraft': {'main_port_id': 27781652, 'sub_port_id': 27781666, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18742497, 'last_updated_at': datetime.datetime(2025, 10, 14, 6, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 6, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 6, 3)}, 'mal_croppe': {'main_port_id': 27781652, 'sub_port_id': 27781667, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18742498, 'last_updated_at': datetime.datetime(2025, 10, 14, 6, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 6, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 6, 3)}, 'cartonnette': {'main_port_id': 27781652, 'sub_port_id': 27781668, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18742499, 'last_updated_at': datetime.datetime(2025, 10, 14, 6, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 6, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 6, 3)}, 'papier': {'main_port_id': 27781652, 'sub_port_id': 27781669, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18742500, 'last_updated_at': datetime.datetime(2025, 10, 14, 6, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 6, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 6, 3)}, 'plastique': {'main_port_id': 27781652, 'sub_port_id': 27781670, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18742501, 'last_updated_at': datetime.datetime(2025, 10, 14, 6, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 6, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 6, 3)}, 'environnement': {'main_port_id': 27781652, 'sub_port_id': 27781671, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18742502, 'last_updated_at': datetime.datetime(2025, 10, 14, 6, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 6, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 6, 3)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27781660 , 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=27781652 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 (27781660) result : ((1389343359,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27781652) result : ((1389342255,), (1389342259,), (1389342262,), (1389342265,), (1389343169,), (1389343170,), (1389343171,), (1389343174,), (1389343343,), (1389343345,), (1389343347,), (1389343369,), (1389343370,), (1389343372,), (1389343375,), (1389343378,), (1389343381,), (1389343387,), (1389343389,), (1389343390,), (1389343392,), (1389343395,), (1389343416,), (1389343417,), (1389343418,), (1389343423,), (1389343426,), (1389343429,), (1389343433,), (1389343435,), (1389343436,), (1389343439,), (1389343460,), (1389343461,), (1389343462,), (1389343465,), (1389343479,), (1389343480,), (1389343481,), (1389343485,), (1389343488,), (1389343492,), (1389343508,), (1389343509,), (1389343510,), (1389343513,), (1389343517,), (1389343526,), (1389343528,), (1389343529,), (1389343531,), (1389343557,), (1389343558,), (1389343559,), (1389343562,), (1389343565,), (1389343569,), (1389343575,), (1389343578,), (1389343582,)) 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 27781661 , 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=27781652 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 (27781661) result : ((1389343360,), (1389343361,), (1389343362,), (1389343441,), (1389343455,), (1389343501,), (1389343502,), (1389343503,), (1389343548,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27781652) result : ((1389342255,), (1389342259,), (1389342262,), (1389342265,), (1389343169,), (1389343170,), (1389343171,), (1389343174,), (1389343343,), (1389343345,), (1389343347,), (1389343369,), (1389343370,), (1389343372,), (1389343375,), (1389343378,), (1389343381,), (1389343387,), (1389343389,), (1389343390,), (1389343392,), (1389343395,), (1389343416,), (1389343417,), (1389343418,), (1389343423,), (1389343426,), (1389343429,), (1389343433,), (1389343435,), (1389343436,), (1389343439,), (1389343460,), (1389343461,), (1389343462,), (1389343465,), (1389343479,), (1389343480,), (1389343481,), (1389343485,), (1389343488,), (1389343492,), (1389343508,), (1389343509,), (1389343510,), (1389343513,), (1389343517,), (1389343526,), (1389343528,), (1389343529,), (1389343531,), (1389343557,), (1389343558,), (1389343559,), (1389343562,), (1389343565,), (1389343569,), (1389343575,), (1389343578,), (1389343582,)) 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 27781662 , 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=27781652 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 (27781662) result : ((1389343358,), (1389343453,), (1389343454,), (1389343500,), (1389343542,), (1389343543,), (1389343544,), (1389343545,), (1389343546,), (1389343547,), (1389343585,), (1389343586,), (1389343587,), (1389343588,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27781652) result : ((1389342255,), (1389342259,), (1389342262,), (1389342265,), (1389343169,), (1389343170,), (1389343171,), (1389343174,), (1389343343,), (1389343345,), (1389343347,), (1389343369,), (1389343370,), (1389343372,), (1389343375,), (1389343378,), (1389343381,), (1389343387,), (1389343389,), (1389343390,), (1389343392,), (1389343395,), (1389343416,), (1389343417,), (1389343418,), (1389343423,), (1389343426,), (1389343429,), (1389343433,), (1389343435,), (1389343436,), (1389343439,), (1389343460,), (1389343461,), (1389343462,), (1389343465,), (1389343479,), (1389343480,), (1389343481,), (1389343485,), (1389343488,), (1389343492,), (1389343508,), (1389343509,), (1389343510,), (1389343513,), (1389343517,), (1389343526,), (1389343528,), (1389343529,), (1389343531,), (1389343557,), (1389343558,), (1389343559,), (1389343562,), (1389343565,), (1389343569,), (1389343575,), (1389343578,), (1389343582,)) 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 27781663 , 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=27781652 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 (27781663) result : ((1389343366,), (1389343551,), (1389343552,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27781652) result : ((1389342255,), (1389342259,), (1389342262,), (1389342265,), (1389343169,), (1389343170,), (1389343171,), (1389343174,), (1389343343,), (1389343345,), (1389343347,), (1389343369,), (1389343370,), (1389343372,), (1389343375,), (1389343378,), (1389343381,), (1389343387,), (1389343389,), (1389343390,), (1389343392,), (1389343395,), (1389343416,), (1389343417,), (1389343418,), (1389343423,), (1389343426,), (1389343429,), (1389343433,), (1389343435,), (1389343436,), (1389343439,), (1389343460,), (1389343461,), (1389343462,), (1389343465,), (1389343479,), (1389343480,), (1389343481,), (1389343485,), (1389343488,), (1389343492,), (1389343508,), (1389343509,), (1389343510,), (1389343513,), (1389343517,), (1389343526,), (1389343528,), (1389343529,), (1389343531,), (1389343557,), (1389343558,), (1389343559,), (1389343562,), (1389343565,), (1389343569,), (1389343575,), (1389343578,), (1389343582,)) 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 27781664 , 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=27781652 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 (27781664) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27781652) result : ((1389342255,), (1389342259,), (1389342262,), (1389342265,), (1389343169,), (1389343170,), (1389343171,), (1389343174,), (1389343343,), (1389343345,), (1389343347,), (1389343369,), (1389343370,), (1389343372,), (1389343375,), (1389343378,), (1389343381,), (1389343387,), (1389343389,), (1389343390,), (1389343392,), (1389343395,), (1389343416,), (1389343417,), (1389343418,), (1389343423,), (1389343426,), (1389343429,), (1389343433,), (1389343435,), (1389343436,), (1389343439,), (1389343460,), (1389343461,), (1389343462,), (1389343465,), (1389343479,), (1389343480,), (1389343481,), (1389343485,), (1389343488,), (1389343492,), (1389343508,), (1389343509,), (1389343510,), (1389343513,), (1389343517,), (1389343526,), (1389343528,), (1389343529,), (1389343531,), (1389343557,), (1389343558,), (1389343559,), (1389343562,), (1389343565,), (1389343569,), (1389343575,), (1389343578,), (1389343582,)) 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 27781665 , 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=27781652 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 (27781665) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27781652) result : ((1389342255,), (1389342259,), (1389342262,), (1389342265,), (1389343169,), (1389343170,), (1389343171,), (1389343174,), (1389343343,), (1389343345,), (1389343347,), (1389343369,), (1389343370,), (1389343372,), (1389343375,), (1389343378,), (1389343381,), (1389343387,), (1389343389,), (1389343390,), (1389343392,), (1389343395,), (1389343416,), (1389343417,), (1389343418,), (1389343423,), (1389343426,), (1389343429,), (1389343433,), (1389343435,), (1389343436,), (1389343439,), (1389343460,), (1389343461,), (1389343462,), (1389343465,), (1389343479,), (1389343480,), (1389343481,), (1389343485,), (1389343488,), (1389343492,), (1389343508,), (1389343509,), (1389343510,), (1389343513,), (1389343517,), (1389343526,), (1389343528,), (1389343529,), (1389343531,), (1389343557,), (1389343558,), (1389343559,), (1389343562,), (1389343565,), (1389343569,), (1389343575,), (1389343578,), (1389343582,)) 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 27781666 , 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=27781652 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 (27781666) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27781652) result : ((1389342255,), (1389342259,), (1389342262,), (1389342265,), (1389343169,), (1389343170,), (1389343171,), (1389343174,), (1389343343,), (1389343345,), (1389343347,), (1389343369,), (1389343370,), (1389343372,), (1389343375,), (1389343378,), (1389343381,), (1389343387,), (1389343389,), (1389343390,), (1389343392,), (1389343395,), (1389343416,), (1389343417,), (1389343418,), (1389343423,), (1389343426,), (1389343429,), (1389343433,), (1389343435,), (1389343436,), (1389343439,), (1389343460,), (1389343461,), (1389343462,), (1389343465,), (1389343479,), (1389343480,), (1389343481,), (1389343485,), (1389343488,), (1389343492,), (1389343508,), (1389343509,), (1389343510,), (1389343513,), (1389343517,), (1389343526,), (1389343528,), (1389343529,), (1389343531,), (1389343557,), (1389343558,), (1389343559,), (1389343562,), (1389343565,), (1389343569,), (1389343575,), (1389343578,), (1389343582,)) 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 27781667 , 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=27781652 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 (27781667) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27781652) result : ((1389342255,), (1389342259,), (1389342262,), (1389342265,), (1389343169,), (1389343170,), (1389343171,), (1389343174,), (1389343343,), (1389343345,), (1389343347,), (1389343369,), (1389343370,), (1389343372,), (1389343375,), (1389343378,), (1389343381,), (1389343387,), (1389343389,), (1389343390,), (1389343392,), (1389343395,), (1389343416,), (1389343417,), (1389343418,), (1389343423,), (1389343426,), (1389343429,), (1389343433,), (1389343435,), (1389343436,), (1389343439,), (1389343460,), (1389343461,), (1389343462,), (1389343465,), (1389343479,), (1389343480,), (1389343481,), (1389343485,), (1389343488,), (1389343492,), (1389343508,), (1389343509,), (1389343510,), (1389343513,), (1389343517,), (1389343526,), (1389343528,), (1389343529,), (1389343531,), (1389343557,), (1389343558,), (1389343559,), (1389343562,), (1389343565,), (1389343569,), (1389343575,), (1389343578,), (1389343582,)) 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 27781668 , 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=27781652 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 (27781668) result : ((1389343364,), (1389343365,), (1389343456,), (1389343457,), (1389343549,), (1389343550,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27781652) result : ((1389342255,), (1389342259,), (1389342262,), (1389342265,), (1389343169,), (1389343170,), (1389343171,), (1389343174,), (1389343343,), (1389343345,), (1389343347,), (1389343369,), (1389343370,), (1389343372,), (1389343375,), (1389343378,), (1389343381,), (1389343387,), (1389343389,), (1389343390,), (1389343392,), (1389343395,), (1389343416,), (1389343417,), (1389343418,), (1389343423,), (1389343426,), (1389343429,), (1389343433,), (1389343435,), (1389343436,), (1389343439,), (1389343460,), (1389343461,), (1389343462,), (1389343465,), (1389343479,), (1389343480,), (1389343481,), (1389343485,), (1389343488,), (1389343492,), (1389343508,), (1389343509,), (1389343510,), (1389343513,), (1389343517,), (1389343526,), (1389343528,), (1389343529,), (1389343531,), (1389343557,), (1389343558,), (1389343559,), (1389343562,), (1389343565,), (1389343569,), (1389343575,), (1389343578,), (1389343582,)) 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 27781669 , 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=27781652 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 (27781669) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27781652) result : ((1389342255,), (1389342259,), (1389342262,), (1389342265,), (1389343169,), (1389343170,), (1389343171,), (1389343174,), (1389343343,), (1389343345,), (1389343347,), (1389343369,), (1389343370,), (1389343372,), (1389343375,), (1389343378,), (1389343381,), (1389343387,), (1389343389,), (1389343390,), (1389343392,), (1389343395,), (1389343416,), (1389343417,), (1389343418,), (1389343423,), (1389343426,), (1389343429,), (1389343433,), (1389343435,), (1389343436,), (1389343439,), (1389343460,), (1389343461,), (1389343462,), (1389343465,), (1389343479,), (1389343480,), (1389343481,), (1389343485,), (1389343488,), (1389343492,), (1389343508,), (1389343509,), (1389343510,), (1389343513,), (1389343517,), (1389343526,), (1389343528,), (1389343529,), (1389343531,), (1389343557,), (1389343558,), (1389343559,), (1389343562,), (1389343565,), (1389343569,), (1389343575,), (1389343578,), (1389343582,)) 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 27781670 , 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=27781652 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 (27781670) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27781652) result : ((1389342255,), (1389342259,), (1389342262,), (1389342265,), (1389343169,), (1389343170,), (1389343171,), (1389343174,), (1389343343,), (1389343345,), (1389343347,), (1389343369,), (1389343370,), (1389343372,), (1389343375,), (1389343378,), (1389343381,), (1389343387,), (1389343389,), (1389343390,), (1389343392,), (1389343395,), (1389343416,), (1389343417,), (1389343418,), (1389343423,), (1389343426,), (1389343429,), (1389343433,), (1389343435,), (1389343436,), (1389343439,), (1389343460,), (1389343461,), (1389343462,), (1389343465,), (1389343479,), (1389343480,), (1389343481,), (1389343485,), (1389343488,), (1389343492,), (1389343508,), (1389343509,), (1389343510,), (1389343513,), (1389343517,), (1389343526,), (1389343528,), (1389343529,), (1389343531,), (1389343557,), (1389343558,), (1389343559,), (1389343562,), (1389343565,), (1389343569,), (1389343575,), (1389343578,), (1389343582,)) 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 27781671 , 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=27781652 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 (27781671) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27781652) result : ((1389342255,), (1389342259,), (1389342262,), (1389342265,), (1389343169,), (1389343170,), (1389343171,), (1389343174,), (1389343343,), (1389343345,), (1389343347,), (1389343369,), (1389343370,), (1389343372,), (1389343375,), (1389343378,), (1389343381,), (1389343387,), (1389343389,), (1389343390,), (1389343392,), (1389343395,), (1389343416,), (1389343417,), (1389343418,), (1389343423,), (1389343426,), (1389343429,), (1389343433,), (1389343435,), (1389343436,), (1389343439,), (1389343460,), (1389343461,), (1389343462,), (1389343465,), (1389343479,), (1389343480,), (1389343481,), (1389343485,), (1389343488,), (1389343492,), (1389343508,), (1389343509,), (1389343510,), (1389343513,), (1389343517,), (1389343526,), (1389343528,), (1389343529,), (1389343531,), (1389343557,), (1389343558,), (1389343559,), (1389343562,), (1389343565,), (1389343569,), (1389343575,), (1389343578,), (1389343582,)) 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`=27781652 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','flou','environnement','kraft','Carton_gris','mal_croppe','papier','plastique','Carton_brun','metal','cartonnette','Teint_Dans_La_Masse')) 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`=27781652 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','flou','environnement','kraft','Carton_gris','mal_croppe','papier','plastique','Carton_brun','metal','cartonnette','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 27781652, 'sub_port_id': 27781674, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18742503, 'last_updated_at': datetime.datetime(2025, 10, 14, 6, 3, 6), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 6, 3, 6), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 6, 3, 6)}, 'Carton_gris': {'main_port_id': 27781652, 'sub_port_id': 27781675, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18742504, 'last_updated_at': datetime.datetime(2025, 10, 14, 6, 3, 6), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 6, 3, 6), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 6, 3, 6)}, 'Teint_Dans_La_Masse': {'main_port_id': 27781652, 'sub_port_id': 27781676, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18742505, 'last_updated_at': datetime.datetime(2025, 10, 14, 6, 3, 6), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 6, 3, 6), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 6, 3, 6)}, 'Carton_brun': {'main_port_id': 27781652, 'sub_port_id': 27781677, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18742506, 'last_updated_at': datetime.datetime(2025, 10, 14, 6, 3, 6), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 6, 3, 6), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 6, 3, 6)}, 'flou': {'main_port_id': 27781652, 'sub_port_id': 27781678, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18742507, 'last_updated_at': datetime.datetime(2025, 10, 14, 6, 3, 6), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 6, 3, 6), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 6, 3, 6)}, 'metal': {'main_port_id': 27781652, 'sub_port_id': 27781679, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18742508, 'last_updated_at': datetime.datetime(2025, 10, 14, 6, 3, 6), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 6, 3, 6), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 6, 3, 6)}, 'kraft': {'main_port_id': 27781652, 'sub_port_id': 27781680, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18742509, 'last_updated_at': datetime.datetime(2025, 10, 14, 6, 3, 6), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 6, 3, 6), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 6, 3, 6)}, 'mal_croppe': {'main_port_id': 27781652, 'sub_port_id': 27781681, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18742510, 'last_updated_at': datetime.datetime(2025, 10, 14, 6, 3, 6), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 6, 3, 6), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 6, 3, 6)}, 'cartonnette': {'main_port_id': 27781652, 'sub_port_id': 27781683, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18742511, 'last_updated_at': datetime.datetime(2025, 10, 14, 6, 3, 6), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 6, 3, 6), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 6, 3, 6)}, 'papier': {'main_port_id': 27781652, 'sub_port_id': 27781684, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18742512, 'last_updated_at': datetime.datetime(2025, 10, 14, 6, 3, 6), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 6, 3, 6), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 6, 3, 6)}, 'plastique': {'main_port_id': 27781652, 'sub_port_id': 27781685, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18742513, 'last_updated_at': datetime.datetime(2025, 10, 14, 6, 3, 6), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 6, 3, 6), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 6, 3, 6)}, 'environnement': {'main_port_id': 27781652, 'sub_port_id': 27781686, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18742514, 'last_updated_at': datetime.datetime(2025, 10, 14, 6, 13, 2), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 6, 13, 2), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 6, 3, 6)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27781674,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27781660 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27781675,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27781661 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27781676,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27781662 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27781677,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27781663 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27781678,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27781664 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27781679,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27781665 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27781680,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27781666 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27781681,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27781667 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27781683,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27781668 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27781684,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27781669 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27781685,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27781670 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27781686,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27781671 lien utilise dans velours : https://marlene.fotonower.com/velours/27781674,27781675,27781676,27781677,27781678,27781679,27781680,27781681,27781683,27781684,27781685,27781686?tags=autre_refus,Carton_gris,Teint_Dans_La_Masse,Carton_brun,flou,metal,kraft,mal_croppe,cartonnette,papier,plastique,environnement After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27781652]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1389343582, 1389343578, 1389343575, 1389343569, 1389343565, 1389343562, 1389343559, 1389343558, 1389343557] map_info['map_portfolio_photo'] : {27781652: [1389343582, 1389343578, 1389343575, 1389343569, 1389343565, 1389343562, 1389343559, 1389343558, 1389343557, 1389343531, 1389343529, 1389343528, 1389343526, 1389343517, 1389343513, 1389343510, 1389343509, 1389343508, 1389343492, 1389343488, 1389343485, 1389343481, 1389343480, 1389343479, 1389343465, 1389343462, 1389343461, 1389343460, 1389343439, 1389343436, 1389343435, 1389343433, 1389343429, 1389343426, 1389343423, 1389343418, 1389343417, 1389343416, 1389343395, 1389343392, 1389343390, 1389343389, 1389343387, 1389343381, 1389343378, 1389343375, 1389343372, 1389343370, 1389343369, 1389343347, 1389343345, 1389343343, 1389343174, 1389343171, 1389343170, 1389343169, 1389342265, 1389342262, 1389342259, 1389342255]} final : False mtd_id 4302 list_pids : [1389343582, 1389343578, 1389343575, 1389343569, 1389343565, 1389343562, 1389343559, 1389343558, 1389343557] Looping around the photos to save general results len do output : 1 /27781652. 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, '3936958') ('4302', '27781652', '1389343582', None, None, None, None, None, '3936958') ('4302', None, None, None, None, None, None, None, '3936958') ('4302', '27781652', '1389343578', None, None, None, None, None, '3936958') ('4302', None, None, None, None, None, None, None, '3936958') ('4302', '27781652', '1389343575', None, None, None, None, None, '3936958') ('4302', None, None, None, None, None, None, None, '3936958') ('4302', '27781652', '1389343569', None, None, None, None, None, '3936958') ('4302', None, None, None, None, None, None, None, '3936958') ('4302', '27781652', '1389343565', None, None, None, None, None, '3936958') ('4302', None, None, None, None, None, None, None, '3936958') ('4302', '27781652', '1389343562', None, None, None, None, None, '3936958') ('4302', None, None, None, None, None, None, None, '3936958') ('4302', '27781652', '1389343559', None, None, None, None, None, '3936958') ('4302', None, None, None, None, None, None, None, '3936958') ('4302', '27781652', '1389343558', None, None, None, None, None, '3936958') ('4302', None, None, None, None, None, None, None, '3936958') ('4302', '27781652', '1389343557', None, None, None, None, None, '3936958') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '27781652', "{'autre_refus': 27781660, 'Carton_gris': 27781661, 'Teint_Dans_La_Masse': 27781662, 'Carton_brun': 27781663, 'flou': 27781664, 'metal': 27781665, 'kraft': 27781666, 'mal_croppe': 27781667, 'cartonnette': 27781668, 'papier': 27781669, 'plastique': 27781670, 'environnement': 27781671}", None, None, None, None, '3936958'), ('4302', '27781652', '1389343582', None, None, None, None, None, '3936958'), ('4302', '27781652', '1389343578', None, None, None, None, None, '3936958'), ('4302', '27781652', '1389343575', None, None, None, None, None, '3936958'), ('4302', '27781652', '1389343569', None, None, None, None, None, '3936958'), ('4302', '27781652', '1389343565', None, None, None, None, None, '3936958'), ('4302', '27781652', '1389343562', None, None, None, None, None, '3936958'), ('4302', '27781652', '1389343559', None, None, None, None, None, '3936958'), ('4302', '27781652', '1389343558', None, None, None, None, None, '3936958'), ('4302', '27781652', '1389343557', None, None, None, None, None, '3936958')] time used for this insertion : 0.03741931915283203 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.057254314422607 time spend to save output : 0.037676095962524414 total time spend for step 1 : 5.094930410385132 step2:final Tue Oct 14 06:14:35 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 (27781652) 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 27781652 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1389342265,1389342262,1389342259,1389342255,1389343174,1389343171,1389343170,1389343169,1389343347,1389343345,1389343343,1389343381,1389343378,1389343375,1389343372,1389343370,1389343369,1389343395,1389343392,1389343390,1389343389,1389343387,1389343429,1389343426,1389343423,1389343418,1389343417,1389343416,1389343439,1389343436,1389343435,1389343433,1389343465,1389343462,1389343461,1389343460,1389343492,1389343488,1389343485,1389343481,1389343480,1389343479,1389343517,1389343513,1389343510,1389343509,1389343508,1389343531,1389343529,1389343528,1389343526,1389343569,1389343565,1389343562,1389343559,1389343558,1389343582,1389343557,1389343578,1389343575); 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([27781652]) Inside saveOutput : final : False verbose : True original output for save of step final : {1389343582: ('0.040614927476845836',), 1389343578: ('0.040614927476845836',), 1389343575: ('0.040614927476845836',), 1389343569: ('0.040614927476845836',), 1389343565: ('0.040614927476845836',), 1389343562: ('0.040614927476845836',), 1389343559: ('0.040614927476845836',), 1389343558: ('0.040614927476845836',), 1389343557: ('0.040614927476845836',)} new output for save of step final : {1389343582: ('0.040614927476845836',), 1389343578: ('0.040614927476845836',), 1389343575: ('0.040614927476845836',), 1389343569: ('0.040614927476845836',), 1389343565: ('0.040614927476845836',), 1389343562: ('0.040614927476845836',), 1389343559: ('0.040614927476845836',), 1389343558: ('0.040614927476845836',), 1389343557: ('0.040614927476845836',)} [1389343582, 1389343578, 1389343575, 1389343569, 1389343565, 1389343562, 1389343559, 1389343558, 1389343557] map_info['map_portfolio_photo'] : {27781652: [1389343582, 1389343578, 1389343575, 1389343569, 1389343565, 1389343562, 1389343559, 1389343558, 1389343557, 1389343531, 1389343529, 1389343528, 1389343526, 1389343517, 1389343513, 1389343510, 1389343509, 1389343508, 1389343492, 1389343488, 1389343485, 1389343481, 1389343480, 1389343479, 1389343465, 1389343462, 1389343461, 1389343460, 1389343439, 1389343436, 1389343435, 1389343433, 1389343429, 1389343426, 1389343423, 1389343418, 1389343417, 1389343416, 1389343395, 1389343392, 1389343390, 1389343389, 1389343387, 1389343381, 1389343378, 1389343375, 1389343372, 1389343370, 1389343369, 1389343347, 1389343345, 1389343343, 1389343174, 1389343171, 1389343170, 1389343169, 1389342265, 1389342262, 1389342259, 1389342255]} final : False mtd_id 4302 list_pids : [1389343582, 1389343578, 1389343575, 1389343569, 1389343565, 1389343562, 1389343559, 1389343558, 1389343557] Looping around the photos to save general results len do output : 9 /1389343582.Didn't retrieve data . /1389343578.Didn't retrieve data . /1389343575.Didn't retrieve data . /1389343569.Didn't retrieve data . /1389343565.Didn't retrieve data . /1389343562.Didn't retrieve data . /1389343559.Didn't retrieve data . /1389343558.Didn't retrieve data . /1389343557.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, '3936958') ('4302', '27781652', '1389343582', None, None, None, None, None, '3936958') ('4302', None, None, None, None, None, None, None, '3936958') ('4302', '27781652', '1389343578', None, None, None, None, None, '3936958') ('4302', None, None, None, None, None, None, None, '3936958') ('4302', '27781652', '1389343575', None, None, None, None, None, '3936958') ('4302', None, None, None, None, None, None, None, '3936958') ('4302', '27781652', '1389343569', None, None, None, None, None, '3936958') ('4302', None, None, None, None, None, None, None, '3936958') ('4302', '27781652', '1389343565', None, None, None, None, None, '3936958') ('4302', None, None, None, None, None, None, None, '3936958') ('4302', '27781652', '1389343562', None, None, None, None, None, '3936958') ('4302', None, None, None, None, None, None, None, '3936958') ('4302', '27781652', '1389343559', None, None, None, None, None, '3936958') ('4302', None, None, None, None, None, None, None, '3936958') ('4302', '27781652', '1389343558', None, None, None, None, None, '3936958') ('4302', None, None, None, None, None, None, None, '3936958') ('4302', '27781652', '1389343557', None, None, None, None, None, '3936958') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 27 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '27781652', '1389343582', '0.040614927476845836', None, None, None, None, '3936958'), ('4302', '27781652', '1389343578', '0.040614927476845836', None, None, None, None, '3936958'), ('4302', '27781652', '1389343575', '0.040614927476845836', None, None, None, None, '3936958'), ('4302', '27781652', '1389343569', '0.040614927476845836', None, None, None, None, '3936958'), ('4302', '27781652', '1389343565', '0.040614927476845836', None, None, None, None, '3936958'), ('4302', '27781652', '1389343562', '0.040614927476845836', None, None, None, None, '3936958'), ('4302', '27781652', '1389343559', '0.040614927476845836', None, None, None, None, '3936958'), ('4302', '27781652', '1389343558', '0.040614927476845836', None, None, None, None, '3936958'), ('4302', '27781652', '1389343557', '0.040614927476845836', None, None, None, None, '3936958')] time used for this insertion : 0.03681039810180664 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.27219724655151367 time spend to save output : 0.037302255630493164 total time spend for step 2 : 0.30949950218200684 step3:velours_tree Tue Oct 14 06:14:35 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 : {27781652: [{'autre_refus': 27781660, 'Carton_gris': 27781661, 'Teint_Dans_La_Masse': 27781662, 'Carton_brun': 27781663, 'flou': 27781664, 'metal': 27781665, 'kraft': 27781666, 'mal_croppe': 27781667, 'cartonnette': 27781668, 'papier': 27781669, 'plastique': 27781670, 'environnement': 27781671}]} input_args_next_step : {27781652: ()} output_args : {27781652: [{'autre_refus': 27781660, 'Carton_gris': 27781661, 'Teint_Dans_La_Masse': 27781662, 'Carton_brun': 27781663, 'flou': 27781664, 'metal': 27781665, 'kraft': 27781666, 'mal_croppe': 27781667, 'cartonnette': 27781668, 'papier': 27781669, 'plastique': 27781670, 'environnement': 27781671}]} args : 27781652 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 : ({'autre_refus': 27781660, 'Carton_gris': 27781661, 'Teint_Dans_La_Masse': 27781662, 'Carton_brun': 27781663, 'flou': 27781664, 'metal': 27781665, 'kraft': 27781666, 'mal_croppe': 27781667, 'cartonnette': 27781668, 'papier': 27781669, 'plastique': 27781670, 'environnement': 27781671},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27781652) 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([27781652]) 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.2991483211517334 time spend to save output : 3.9577484130859375e-05 total time spend for step 3 : 0.29918789863586426 step4:send_mail_cod Tue Oct 14 06:14:35 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 : {1389343582: ('0.040614927476845836',), 1389343578: ('0.040614927476845836',), 1389343575: ('0.040614927476845836',), 1389343569: ('0.040614927476845836',), 1389343565: ('0.040614927476845836',), 1389343562: ('0.040614927476845836',), 1389343559: ('0.040614927476845836',), 1389343558: ('0.040614927476845836',), 1389343557: ('0.040614927476845836',)} input_args_next_step : {1389343582: ()} output_args : {1389343582: ('0.040614927476845836',), 1389343578: ('0.040614927476845836',), 1389343575: ('0.040614927476845836',), 1389343569: ('0.040614927476845836',), 1389343565: ('0.040614927476845836',), 1389343562: ('0.040614927476845836',), 1389343559: ('0.040614927476845836',), 1389343558: ('0.040614927476845836',), 1389343557: ('0.040614927476845836',)} args : 1389343582 depend.output_id : 0 input_args_next_step : {1389343582: ('0.040614927476845836',), 1389343578: ()} output_args : {1389343582: ('0.040614927476845836',), 1389343578: ('0.040614927476845836',), 1389343575: ('0.040614927476845836',), 1389343569: ('0.040614927476845836',), 1389343565: ('0.040614927476845836',), 1389343562: ('0.040614927476845836',), 1389343559: ('0.040614927476845836',), 1389343558: ('0.040614927476845836',), 1389343557: ('0.040614927476845836',)} args : 1389343578 depend.output_id : 0 input_args_next_step : {1389343582: ('0.040614927476845836',), 1389343578: ('0.040614927476845836',), 1389343575: ()} output_args : {1389343582: ('0.040614927476845836',), 1389343578: ('0.040614927476845836',), 1389343575: ('0.040614927476845836',), 1389343569: ('0.040614927476845836',), 1389343565: ('0.040614927476845836',), 1389343562: ('0.040614927476845836',), 1389343559: ('0.040614927476845836',), 1389343558: ('0.040614927476845836',), 1389343557: ('0.040614927476845836',)} args : 1389343575 depend.output_id : 0 input_args_next_step : {1389343582: ('0.040614927476845836',), 1389343578: ('0.040614927476845836',), 1389343575: ('0.040614927476845836',), 1389343569: ()} output_args : {1389343582: ('0.040614927476845836',), 1389343578: ('0.040614927476845836',), 1389343575: ('0.040614927476845836',), 1389343569: ('0.040614927476845836',), 1389343565: ('0.040614927476845836',), 1389343562: ('0.040614927476845836',), 1389343559: ('0.040614927476845836',), 1389343558: ('0.040614927476845836',), 1389343557: ('0.040614927476845836',)} args : 1389343569 depend.output_id : 0 input_args_next_step : {1389343582: ('0.040614927476845836',), 1389343578: ('0.040614927476845836',), 1389343575: ('0.040614927476845836',), 1389343569: ('0.040614927476845836',), 1389343565: ()} output_args : {1389343582: ('0.040614927476845836',), 1389343578: ('0.040614927476845836',), 1389343575: ('0.040614927476845836',), 1389343569: ('0.040614927476845836',), 1389343565: ('0.040614927476845836',), 1389343562: ('0.040614927476845836',), 1389343559: ('0.040614927476845836',), 1389343558: ('0.040614927476845836',), 1389343557: ('0.040614927476845836',)} args : 1389343565 depend.output_id : 0 input_args_next_step : {1389343582: ('0.040614927476845836',), 1389343578: ('0.040614927476845836',), 1389343575: ('0.040614927476845836',), 1389343569: ('0.040614927476845836',), 1389343565: ('0.040614927476845836',), 1389343562: ()} output_args : {1389343582: ('0.040614927476845836',), 1389343578: ('0.040614927476845836',), 1389343575: ('0.040614927476845836',), 1389343569: ('0.040614927476845836',), 1389343565: ('0.040614927476845836',), 1389343562: ('0.040614927476845836',), 1389343559: ('0.040614927476845836',), 1389343558: ('0.040614927476845836',), 1389343557: ('0.040614927476845836',)} args : 1389343562 depend.output_id : 0 input_args_next_step : {1389343582: ('0.040614927476845836',), 1389343578: ('0.040614927476845836',), 1389343575: ('0.040614927476845836',), 1389343569: ('0.040614927476845836',), 1389343565: ('0.040614927476845836',), 1389343562: ('0.040614927476845836',), 1389343559: ()} output_args : {1389343582: ('0.040614927476845836',), 1389343578: ('0.040614927476845836',), 1389343575: ('0.040614927476845836',), 1389343569: ('0.040614927476845836',), 1389343565: ('0.040614927476845836',), 1389343562: ('0.040614927476845836',), 1389343559: ('0.040614927476845836',), 1389343558: ('0.040614927476845836',), 1389343557: ('0.040614927476845836',)} args : 1389343559 depend.output_id : 0 input_args_next_step : {1389343582: ('0.040614927476845836',), 1389343578: ('0.040614927476845836',), 1389343575: ('0.040614927476845836',), 1389343569: ('0.040614927476845836',), 1389343565: ('0.040614927476845836',), 1389343562: ('0.040614927476845836',), 1389343559: ('0.040614927476845836',), 1389343558: ()} output_args : {1389343582: ('0.040614927476845836',), 1389343578: ('0.040614927476845836',), 1389343575: ('0.040614927476845836',), 1389343569: ('0.040614927476845836',), 1389343565: ('0.040614927476845836',), 1389343562: ('0.040614927476845836',), 1389343559: ('0.040614927476845836',), 1389343558: ('0.040614927476845836',), 1389343557: ('0.040614927476845836',)} args : 1389343558 depend.output_id : 0 input_args_next_step : {1389343582: ('0.040614927476845836',), 1389343578: ('0.040614927476845836',), 1389343575: ('0.040614927476845836',), 1389343569: ('0.040614927476845836',), 1389343565: ('0.040614927476845836',), 1389343562: ('0.040614927476845836',), 1389343559: ('0.040614927476845836',), 1389343558: ('0.040614927476845836',), 1389343557: ()} output_args : {1389343582: ('0.040614927476845836',), 1389343578: ('0.040614927476845836',), 1389343575: ('0.040614927476845836',), 1389343569: ('0.040614927476845836',), 1389343565: ('0.040614927476845836',), 1389343562: ('0.040614927476845836',), 1389343559: ('0.040614927476845836',), 1389343558: ('0.040614927476845836',), 1389343557: ('0.040614927476845836',)} args : 1389343557 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 : {27781652: [{'autre_refus': 27781660, 'Carton_gris': 27781661, 'Teint_Dans_La_Masse': 27781662, 'Carton_brun': 27781663, 'flou': 27781664, 'metal': 27781665, 'kraft': 27781666, 'mal_croppe': 27781667, 'cartonnette': 27781668, 'papier': 27781669, 'plastique': 27781670, 'environnement': 27781671}]} input_args_next_step : {1389343582: ('0.040614927476845836',), 1389343578: ('0.040614927476845836',), 1389343575: ('0.040614927476845836',), 1389343569: ('0.040614927476845836',), 1389343565: ('0.040614927476845836',), 1389343562: ('0.040614927476845836',), 1389343559: ('0.040614927476845836',), 1389343558: ('0.040614927476845836',), 1389343557: ('0.040614927476845836',), 27781652: ()} output_args : {27781652: [{'autre_refus': 27781660, 'Carton_gris': 27781661, 'Teint_Dans_La_Masse': 27781662, 'Carton_brun': 27781663, 'flou': 27781664, 'metal': 27781665, 'kraft': 27781666, 'mal_croppe': 27781667, 'cartonnette': 27781668, 'papier': 27781669, 'plastique': 27781670, 'environnement': 27781671}]} args : 27781652 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :10, first value : ('0.040614927476845836',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27781652) 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_view ph WHERE photo_id IN (1389343582,1389343578,1389343575,1389343569,1389343565,1389343562,1389343559,1389343558,1389343557) Found this number of photos: 9 ##### Call download_photos : nb_thread : 5 begin to download photo : 1389343557 begin to download photo : 1389343559 begin to download photo : 1389343565 begin to download photo : 1389343575 begin to download photo : 1389343582 download finish for photo 1389343565 begin to download photo : 1389343569 download finish for photo 1389343582 download finish for photo 1389343575 begin to download photo : 1389343578 download finish for photo 1389343559 begin to download photo : 1389343562 download finish for photo 1389343557 begin to download photo : 1389343558 download finish for photo 1389343569 download finish for photo 1389343578 download finish for photo 1389343562 download finish for photo 1389343558 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 : 9 ; length of list_pids : 9 ; length of list_args : 9 results_Auto_P27781652_14-10-2025_06_14_36.pdf 27781660 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27781660 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1389343359: '1760414606_1327612_1389342255_779083e2dbf5edc917aeed7c22470182_rle_crop_3997180687_0.png'} change filename to text .imagette277816601760415276/ imagette277816601760415276/1760414606_1327612_1389342255_779083e2dbf5edc917aeed7c22470182_rle_crop_3997180687_0.png.png imagette277816641760415276/ imagette277816651760415276/ imagette277816661760415276/ imagette277816671760415276/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/36a5c9d3c1eaf07bd164a6e4da4919c9_83158136.png imagette277816601760415276 27781664 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27781664 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette277816641760415276 27781665 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27781665 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette277816651760415276 27781666 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27781666 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette277816661760415276 27781667 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27781667 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette277816671760415276 27781668 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27781668 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1389343364: '1760414606_1327612_1389342262_71b1b70e6265ed33d702d39fa58a2c07_rle_crop_3997180647_0.png', 1389343365: '1760414606_1327612_1389342255_779083e2dbf5edc917aeed7c22470182_rle_crop_3997180683_0.png', 1389343456: '1760414844_1341364_1389343392_754062feb20b3fb93567ea51ece453f9_rle_crop_3997181129_0.png', 1389343457: '1760414844_1341364_1389343392_754062feb20b3fb93567ea51ece453f9_rle_crop_3997181130_0.png', 1389343549: '1760415086_1352881_1389343436_0f6c91e44d8c8647d79ca09d1851a837_rle_crop_3997181474_0.png', 1389343550: '1760415086_1352881_1389343436_0f6c91e44d8c8647d79ca09d1851a837_rle_crop_3997181477_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/6df8bf698b2607d6aafbb6ea8726214c_43805286.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/33efe2b95ae100fb372aa02efd44d2c5_46851647.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/b50bebcfe1c26e7274268f65b4cd0cbd_19702110.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/f67b540e81c5dec18da321bedc538fcc_50727350.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/4b4404c233efd5d9389fa0fbf34f686b_15625884.png change filename to text .imagette277816681760415276/ imagette277816681760415276/1760414606_1327612_1389342262_71b1b70e6265ed33d702d39fa58a2c07_rle_crop_3997180647_0.png.png imagette277816681760415276/1760415086_1352881_1389343436_0f6c91e44d8c8647d79ca09d1851a837_rle_crop_3997181477_0.png.png imagette277816681760415276/1760415086_1352881_1389343436_0f6c91e44d8c8647d79ca09d1851a837_rle_crop_3997181474_0.png.png imagette277816681760415276/1760414844_1341364_1389343392_754062feb20b3fb93567ea51ece453f9_rle_crop_3997181129_0.png.png imagette277816681760415276/1760414606_1327612_1389342255_779083e2dbf5edc917aeed7c22470182_rle_crop_3997180683_0.png.png imagette277816681760415276/1760414844_1341364_1389343392_754062feb20b3fb93567ea51ece453f9_rle_crop_3997181130_0.png.png imagette277816701760415277/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/f1b0c4adb8aead8a0864245a3517897c_19296518.png imagette277816681760415276 27781670 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27781670 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette277816701760415277 27781661 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27781661 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1389343360: '1760414606_1327612_1389342262_71b1b70e6265ed33d702d39fa58a2c07_rle_crop_3997180655_0.png', 1389343361: '1760414606_1327612_1389342259_cd83186d034f8776c5bca265d9d3a74e_rle_crop_3997180668_0.png', 1389343362: '1760414606_1327612_1389342255_779083e2dbf5edc917aeed7c22470182_rle_crop_3997180684_0.png', 1389343441: '1760414825_1340866_1389343343_c08e83e480d7cef5a77dc5850939b495_rle_crop_3997181069_0.png', 1389343455: '1760414844_1341364_1389343392_754062feb20b3fb93567ea51ece453f9_rle_crop_3997181125_0.png', 1389343501: '1760414965_1346522_1389343381_b9e6f4a87ec1f18a1ba2d245d0606bfd_rle_crop_3997181255_0.png', 1389343502: '1760414965_1346522_1389343381_b9e6f4a87ec1f18a1ba2d245d0606bfd_rle_crop_3997181254_0.png', 1389343503: '1760414965_1346522_1389343343_c08e83e480d7cef5a77dc5850939b495_rle_crop_3997181069_0.png', 1389343548: '1760415086_1352881_1389343435_2ade5ae1c598a1f638eadf8d739bb894_rle_crop_3997181492_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/c8da497482716d7dd01f340a3e43878d_63779652.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/e9c330d508878a2ab84e0eb00a0a4efd_9842028.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/a5e0b474757f30716cf041abe865f194_12165273.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/b771b8a97d65f370460ac1a2a1b8830a_10877083.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/491ec9d220236c1a5c070f8cfdb99785_12804934.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/dac3089c3b2081bd09123b2ae3a53a87_79265265.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/b3b14af6dbf1c69564ecf0faf5836198_49903203.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/b771b8a97d65f370460ac1a2a1b8830a_43837588.png change filename to text .imagette277816611760415277/ imagette277816611760415277/1760414606_1327612_1389342259_cd83186d034f8776c5bca265d9d3a74e_rle_crop_3997180668_0.png.png imagette277816611760415277/1760414606_1327612_1389342255_779083e2dbf5edc917aeed7c22470182_rle_crop_3997180684_0.png.png imagette277816611760415277/1760414606_1327612_1389342262_71b1b70e6265ed33d702d39fa58a2c07_rle_crop_3997180655_0.png.png imagette277816611760415277/1760414965_1346522_1389343343_c08e83e480d7cef5a77dc5850939b495_rle_crop_3997181069_0.png.png imagette277816611760415277/1760414965_1346522_1389343381_b9e6f4a87ec1f18a1ba2d245d0606bfd_rle_crop_3997181254_0.png.png imagette277816611760415277/1760414965_1346522_1389343381_b9e6f4a87ec1f18a1ba2d245d0606bfd_rle_crop_3997181255_0.png.png imagette277816611760415277/1760414844_1341364_1389343392_754062feb20b3fb93567ea51ece453f9_rle_crop_3997181125_0.png.png imagette277816611760415277/1760414825_1340866_1389343343_c08e83e480d7cef5a77dc5850939b495_rle_crop_3997181069_0.png.png imagette277816611760415277/1760415086_1352881_1389343435_2ade5ae1c598a1f638eadf8d739bb894_rle_crop_3997181492_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/df5e478fd125a29855031e663322c381_37517350.png imagette277816611760415277 27781662 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27781662 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1389343358: '1760414606_1327612_1389342259_cd83186d034f8776c5bca265d9d3a74e_rle_crop_3997180675_0.png', 1389343453: '1760414844_1341364_1389343392_754062feb20b3fb93567ea51ece453f9_rle_crop_3997181132_0.png', 1389343454: '1760414844_1341364_1389343392_754062feb20b3fb93567ea51ece453f9_rle_crop_3997181131_0.png', 1389343500: '1760414965_1346522_1389343381_b9e6f4a87ec1f18a1ba2d245d0606bfd_rle_crop_3997181259_0.png', 1389343542: '1760415086_1352881_1389343465_3b6b051ca7c96ff97be24cbed133d584_rle_crop_3997181467_0.png', 1389343543: '1760415086_1352881_1389343465_3b6b051ca7c96ff97be24cbed133d584_rle_crop_3997181469_0.png', 1389343544: '1760415086_1352881_1389343435_2ade5ae1c598a1f638eadf8d739bb894_rle_crop_3997181493_0.png', 1389343545: '1760415086_1352881_1389343435_2ade5ae1c598a1f638eadf8d739bb894_rle_crop_3997181500_0.png', 1389343546: '1760415086_1352881_1389343433_1b4f0f3b76e74f52abf2eec90c40984d_rle_crop_3997181511_0.png', 1389343547: '1760415086_1352881_1389343433_1b4f0f3b76e74f52abf2eec90c40984d_rle_crop_3997181513_0.png', 1389343585: '1760415184_1355870_1389343481_8fbf6c381eb3ab1d0ad812639aed4b42_rle_crop_3997181670_0.png', 1389343586: '1760415184_1355870_1389343481_8fbf6c381eb3ab1d0ad812639aed4b42_rle_crop_3997181667_0.png', 1389343587: '1760415184_1355870_1389343480_d62db1b0f178444edb7dda78bb2477c4_rle_crop_3997181678_0.png', 1389343588: '1760415184_1355870_1389343479_009e1562b21ae00ea2dbb9e51c518703_rle_crop_3997181688_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/8bf6b464c3ac07bb709cf80e4ddebef7_82713856.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/cce273c293005ca0a5f80fcb5c1db312_92104204.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/42e4f87bb7387b096827c9bc0072b45b_3867810.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/a8c3ffe2e9e3163c904bced0bd6710ef_1404081.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/0bd7fd61c97fd9019ee79f6c1ef9a4a8_59684220.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/e683d882dfc2cce80407d1b4162e7f6c_90548730.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/ae18b232eea49394c9f7698759e19e70_89354459.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/b21328f3c3ed4523790f793e67bbab69_41470790.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/24b5c7a6a68c6e2b393e66015abbce91_2000961.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/4c40474cd158d56f6df30d04b6bd7830_52485961.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/482f28b353da04c9ac7b522ef366e382_54424153.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/76dee3da6f711f128a15b6399d0dcf8c_71287096.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/c6ca0f0dc67aee58bb6a531b30a6463a_23619612.png change filename to text .imagette277816621760415277/ imagette277816621760415277/1760415086_1352881_1389343433_1b4f0f3b76e74f52abf2eec90c40984d_rle_crop_3997181513_0.png.png imagette277816621760415277/1760415184_1355870_1389343481_8fbf6c381eb3ab1d0ad812639aed4b42_rle_crop_3997181667_0.png.png imagette277816621760415277/1760414965_1346522_1389343381_b9e6f4a87ec1f18a1ba2d245d0606bfd_rle_crop_3997181259_0.png.png imagette277816621760415277/1760415086_1352881_1389343465_3b6b051ca7c96ff97be24cbed133d584_rle_crop_3997181467_0.png.png imagette277816621760415277/1760415086_1352881_1389343435_2ade5ae1c598a1f638eadf8d739bb894_rle_crop_3997181493_0.png.png imagette277816621760415277/1760415086_1352881_1389343465_3b6b051ca7c96ff97be24cbed133d584_rle_crop_3997181469_0.png.png imagette277816621760415277/1760415184_1355870_1389343481_8fbf6c381eb3ab1d0ad812639aed4b42_rle_crop_3997181670_0.png.png imagette277816621760415277/1760414844_1341364_1389343392_754062feb20b3fb93567ea51ece453f9_rle_crop_3997181132_0.png.png imagette277816621760415277/1760415184_1355870_1389343480_d62db1b0f178444edb7dda78bb2477c4_rle_crop_3997181678_0.png.png imagette277816621760415277/1760414844_1341364_1389343392_754062feb20b3fb93567ea51ece453f9_rle_crop_3997181131_0.png.png imagette277816621760415277/1760415086_1352881_1389343435_2ade5ae1c598a1f638eadf8d739bb894_rle_crop_3997181500_0.png.png imagette277816621760415277/1760414606_1327612_1389342259_cd83186d034f8776c5bca265d9d3a74e_rle_crop_3997180675_0.png.png imagette277816621760415277/1760415086_1352881_1389343433_1b4f0f3b76e74f52abf2eec90c40984d_rle_crop_3997181511_0.png.png imagette277816621760415277/1760415184_1355870_1389343479_009e1562b21ae00ea2dbb9e51c518703_rle_crop_3997181688_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/2abd9f07c7a035a5c1b8204e41d037e0_19249820.png imagette277816621760415277 27781663 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27781663 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1389343366: '1760414606_1327612_1389342255_779083e2dbf5edc917aeed7c22470182_rle_crop_3997180691_0.png', 1389343551: '1760415086_1352881_1389343436_0f6c91e44d8c8647d79ca09d1851a837_rle_crop_3997181485_0.png', 1389343552: '1760415086_1352881_1389343433_1b4f0f3b76e74f52abf2eec90c40984d_rle_crop_3997181509_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/700fa5a355cc5bf7709870cbbcd76018_18140265.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/412f1cc29745adffe0d98f32ec4669ff_32720847.png change filename to text .imagette277816631760415278/ imagette277816631760415278/1760414606_1327612_1389342255_779083e2dbf5edc917aeed7c22470182_rle_crop_3997180691_0.png.png imagette277816631760415278/1760415086_1352881_1389343433_1b4f0f3b76e74f52abf2eec90c40984d_rle_crop_3997181509_0.png.png imagette277816631760415278/1760415086_1352881_1389343436_0f6c91e44d8c8647d79ca09d1851a837_rle_crop_3997181485_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/2b1c710b374b31b377952d28cec8dcd8_35019103.png imagette277816631760415278 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=27781652 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/27781674,27781675,27781676,27781677,27781678,27781679,27781680,27781681,27781683,27781684,27781685,27781686?tags=autre_refus,Carton_gris,Teint_Dans_La_Masse,Carton_brun,flou,metal,kraft,mal_croppe,cartonnette,papier,plastique,environnement your option no_mail is active, we will not send the real mail to your client args[1389343582] : ('0.040614927476845836',) no score found for photo 1389343582 We are sending mail with results at report@fotonower.com args[1389343578] : ('0.040614927476845836',) no score found for photo 1389343578 We are sending mail with results at report@fotonower.com args[1389343575] : ('0.040614927476845836',) no score found for photo 1389343575 We are sending mail with results at report@fotonower.com args[1389343569] : ('0.040614927476845836',) no score found for photo 1389343569 We are sending mail with results at report@fotonower.com args[1389343565] : ('0.040614927476845836',) no score found for photo 1389343565 We are sending mail with results at report@fotonower.com args[1389343562] : ('0.040614927476845836',) no score found for photo 1389343562 We are sending mail with results at report@fotonower.com args[1389343559] : ('0.040614927476845836',) no score found for photo 1389343559 We are sending mail with results at report@fotonower.com args[1389343558] : ('0.040614927476845836',) no score found for photo 1389343558 We are sending mail with results at report@fotonower.com args[1389343557] : ('0.040614927476845836',) no score found for photo 1389343557 We are sending mail with results at report@fotonower.com refus_total : 0.040614927476845836 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27781652 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_P27781652_14-10-2025_06_14_36.pdf results_Auto_P27781652_14-10-2025_06_14_36.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27781652_14-10-2025_06_14_36.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','27781652','results_Auto_P27781652_14-10-2025_06_14_36.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27781652_14-10-2025_06_14_36.pdf','pdf','','0.18','0.040614927476845836') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27781652]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1389343582, 1389343578, 1389343575, 1389343569, 1389343565, 1389343562, 1389343559, 1389343558, 1389343557] map_info['map_portfolio_photo'] : {27781652: [1389343582, 1389343578, 1389343575, 1389343569, 1389343565, 1389343562, 1389343559, 1389343558, 1389343557, 1389343531, 1389343529, 1389343528, 1389343526, 1389343517, 1389343513, 1389343510, 1389343509, 1389343508, 1389343492, 1389343488, 1389343485, 1389343481, 1389343480, 1389343479, 1389343465, 1389343462, 1389343461, 1389343460, 1389343439, 1389343436, 1389343435, 1389343433, 1389343429, 1389343426, 1389343423, 1389343418, 1389343417, 1389343416, 1389343395, 1389343392, 1389343390, 1389343389, 1389343387, 1389343381, 1389343378, 1389343375, 1389343372, 1389343370, 1389343369, 1389343347, 1389343345, 1389343343, 1389343174, 1389343171, 1389343170, 1389343169, 1389342265, 1389342262, 1389342259, 1389342255]} final : False mtd_id 4302 list_pids : [1389343582, 1389343578, 1389343575, 1389343569, 1389343565, 1389343562, 1389343559, 1389343558, 1389343557] 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, '3936958') ('4302', '27781652', '1389343582', None, None, None, None, None, '3936958') ('4302', None, None, None, None, None, None, None, '3936958') ('4302', '27781652', '1389343578', None, None, None, None, None, '3936958') ('4302', None, None, None, None, None, None, None, '3936958') ('4302', '27781652', '1389343575', None, None, None, None, None, '3936958') ('4302', None, None, None, None, None, None, None, '3936958') ('4302', '27781652', '1389343569', None, None, None, None, None, '3936958') ('4302', None, None, None, None, None, None, None, '3936958') ('4302', '27781652', '1389343565', None, None, None, None, None, '3936958') ('4302', None, None, None, None, None, None, None, '3936958') ('4302', '27781652', '1389343562', None, None, None, None, None, '3936958') ('4302', None, None, None, None, None, None, None, '3936958') ('4302', '27781652', '1389343559', None, None, None, None, None, '3936958') ('4302', None, None, None, None, None, None, None, '3936958') ('4302', '27781652', '1389343558', None, None, None, None, None, '3936958') ('4302', None, None, None, None, None, None, None, '3936958') ('4302', '27781652', '1389343557', None, None, None, None, None, '3936958') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '27781652', '1389343582', None, None, None, None, None, '3936958'), ('4302', '27781652', '1389343578', None, None, None, None, None, '3936958'), ('4302', '27781652', '1389343575', None, None, None, None, None, '3936958'), ('4302', '27781652', '1389343569', None, None, None, None, None, '3936958'), ('4302', '27781652', '1389343565', None, None, None, None, None, '3936958'), ('4302', '27781652', '1389343562', None, None, None, None, None, '3936958'), ('4302', '27781652', '1389343559', None, None, None, None, None, '3936958'), ('4302', '27781652', '1389343558', None, None, None, None, None, '3936958'), ('4302', '27781652', '1389343557', None, None, None, None, None, '3936958')] time used for this insertion : 0.03732562065124512 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.563266754150391 time spend to save output : 0.0375516414642334 total time spend for step 4 : 4.600818395614624 step5:split_time_score Tue Oct 14 06:14:40 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 : ['27781652'] 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 : [('27781652',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27781652) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1389343582: {'path': 'temp/1760415275_3605309_1389343582_ec2982dd15f4e8b0bea36a24bee292b2.jpg', 'extension': 'jpg'}, 1389343565: {'path': 'temp/1760415275_3605309_1389343565_d2d4e8ddda82ca30e0af7de38c0b4865.jpg', 'extension': 'jpg'}, 1389343569: {'path': 'temp/1760415275_3605309_1389343569_57b4004eb39802e856bb31917f67d012.jpg', 'extension': 'jpg'}, 1389343575: {'path': 'temp/1760415275_3605309_1389343575_c44d566fc3284c71d3283e065b18f021.jpg', 'extension': 'jpg'}, 1389343578: {'path': 'temp/1760415275_3605309_1389343578_b564c0547e5a0bf1260a9949ed54eda4.jpg', 'extension': 'jpg'}, 1389343559: {'path': 'temp/1760415275_3605309_1389343559_c4120fe326b524975dc9d0daf12c9f0a.jpg', 'extension': 'jpg'}, 1389343562: {'path': 'temp/1760415275_3605309_1389343562_e683a7b3ea4f4507a12f5b725cf4c94d.jpg', 'extension': 'jpg'}, 1389343557: {'path': 'temp/1760415275_3605309_1389343557_f6fe522c13b5c674d7d8f0a87229b222.jpg', 'extension': 'jpg'}, 1389343558: {'path': 'temp/1760415275_3605309_1389343558_26a29ff532094885dbd18629db94e19a.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 = 27781652; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 27781652 group by h (('06', 60),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27781652 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 (27781652) 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 (27781652) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 14102025 27781652 Nombre de photos uploadées : 60 / 23040 (0%) 14102025 27781652 Nombre de photos taguées (types de déchets): 0 / 60 (0%) 14102025 27781652 Nombre de photos taguées (volume) : 0 / 60 (0%) [{'photo_id': 1389342265, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/0d6a29051fdb2c35fc8afda47630e527.jpg', 'username': None, 'uploaded_at': 1760414468, 'text': 'image_14102025_06_00_14_010265m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1389342262, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/71b1b70e6265ed33d702d39fa58a2c07.jpg', 'username': None, 'uploaded_at': 1760414468, 'text': 'image_14102025_06_00_24_010137m0.jpg 2e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1389342259, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/cd83186d034f8776c5bca265d9d3a74e.jpg', 'username': None, 'uploaded_at': 1760414468, 'text': 'image_14102025_06_00_34_010140m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1389342255, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/779083e2dbf5edc917aeed7c22470182.jpg', 'username': None, 'uploaded_at': 1760414468, 'text': 'image_14102025_06_00_44_010136m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.6226043701171875e-06 elapsed_time : order_list_meta_photo_and_scores 7.867813110351562e-06 ???????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002545595169067383 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 27781652, '2025-10-14' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2442841,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.6398937702178955 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= 2442841 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2442841, 'dashboard_run_id': 2451743, 'mtr_portfolio_id': 27777996, 'dashboard_result_id': 16352789, '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_P27777996_14-10-2025_05_56_04.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27777997, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27777998, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27777999, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27778000, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27778001, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27778002, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27778003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27778004, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27778005, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27778006, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27778007, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27778008, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2451743, 'mtr_portfolio_id': 27778872, 'dashboard_result_id': 16352790, '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_P27778872_14-10-2025_05_56_05.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27778873, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27778874, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27778875, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27778876, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27778877, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27778878, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27778879, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27778880, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27778881, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27778882, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27778883, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27778884, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2451743, 'mtr_portfolio_id': 27779391, 'dashboard_result_id': 16352791, '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_P27779391_14-10-2025_05_56_36.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27779392, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27779393, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27779394, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27779395, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27779396, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27779397, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27779398, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27779399, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27779400, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27779401, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27779402, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27779403, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2451743, 'mtr_portfolio_id': 27779550, 'dashboard_result_id': 16352792, '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_P27779550_14-10-2025_05_57_34.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27779551, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27779552, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27779553, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27779554, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27779555, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27779556, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27779557, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27779558, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27779559, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27779560, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27779561, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27779562, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2451743, 'mtr_portfolio_id': 27779656, 'dashboard_result_id': 16352793, '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_P27779656_14-10-2025_05_58_03.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27779660, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27779661, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27779662, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27779663, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27779664, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27779665, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27779666, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27779667, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27779668, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27779669, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27779670, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27779671, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2451743, 'mtr_portfolio_id': 27780223, 'dashboard_result_id': 16352794, '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_P27780223_14-10-2025_05_59_05.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27780224, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27780225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27780226, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27780227, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27780228, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27780229, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27780230, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27780231, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27780232, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27780233, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27780234, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27780235, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2451743, 'mtr_portfolio_id': 27780493, 'dashboard_result_id': 16352795, '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_P27780493_14-10-2025_05_59_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27780497, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27780498, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27780499, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27780500, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27780501, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27780502, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27780503, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27780504, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27780505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27780506, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27780507, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27780508, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2451743, 'mtr_portfolio_id': 27780862, 'dashboard_result_id': 16352796, '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_P27780862_14-10-2025_05_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27780867, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27780868, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27780869, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27780870, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27780871, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27780872, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27780873, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27780874, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27780875, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27780876, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27780877, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27780878, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2451743, 'mtr_portfolio_id': 27781293, 'dashboard_result_id': 16352797, '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_P27781293_14-10-2025_05_58_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27781298, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27781299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27781300, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27781301, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27781302, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27781303, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27781304, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27781305, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27781306, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27781307, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27781308, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27781309, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2451743, 'mtr_portfolio_id': 27781652, 'dashboard_result_id': 16352798, '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_P27781652_14-10-2025_06_13_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27781660, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27781661, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27781662, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27781663, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27781664, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27781665, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27781666, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27781667, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27781668, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27781669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27781670, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27781671, '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 = 27777996 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': 3936795, 'mtr_portfolio_id': 27777996, 'created_at': datetime.datetime(2025, 10, 14, 5, 56, 4), 'result': '0.08473370900574158', 'result_long': None, 'result_double': None}] Qualite : 0.08473370900574158 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27777996 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27777996_14-10-2025_05_56_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27777996 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_P27777996_14-10-2025_05_56_04.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27777997, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27777998, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27777999, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27778000, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27778001, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27778002, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27778003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27778004, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27778005, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27778006, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27778007, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27778008, 'pht': 3726}}" where mtr_portfolio_id = 27777996 and dashboard_run_id = 2451743 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`=27777996 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16352789, 0.08473370900574158, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27777996_14-10-2025_05_56_04.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27777997, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27777998, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27777999, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27778000, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27778001, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27778002, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27778003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27778004, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27778005, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27778006, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27778007, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27778008, '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 = 27778872 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': 3936796, 'mtr_portfolio_id': 27778872, 'created_at': datetime.datetime(2025, 10, 14, 5, 56, 4), 'result': '0.05252490161835598', 'result_long': None, 'result_double': None}] Qualite : 0.05252490161835598 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27778872 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27778872_14-10-2025_05_56_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27778872 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_P27778872_14-10-2025_05_56_05.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27778873, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27778874, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27778875, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27778876, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27778877, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27778878, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27778879, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27778880, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27778881, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27778882, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27778883, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27778884, 'pht': 3726}}" where mtr_portfolio_id = 27778872 and dashboard_run_id = 2451743 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`=27778872 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16352790, 0.05252490161835598, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27778872_14-10-2025_05_56_05.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27778873, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27778874, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27778875, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27778876, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27778877, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27778878, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27778879, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27778880, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27778881, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27778882, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27778883, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27778884, '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 = 27779391 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': 3936797, 'mtr_portfolio_id': 27779391, 'created_at': datetime.datetime(2025, 10, 14, 5, 56, 35), 'result': '0.12409417799557848', 'result_long': None, 'result_double': None}] Qualite : 0.12409417799557848 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27779391 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27779391_14-10-2025_05_56_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27779391 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_P27779391_14-10-2025_05_56_36.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27779392, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27779393, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27779394, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27779395, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27779396, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27779397, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27779398, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27779399, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27779400, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27779401, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27779402, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27779403, 'pht': 3726}}" where mtr_portfolio_id = 27779391 and dashboard_run_id = 2451743 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`=27779391 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16352791, 0.12409417799557848, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27779391_14-10-2025_05_56_36.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27779392, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27779393, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27779394, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27779395, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27779396, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27779397, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27779398, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27779399, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27779400, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27779401, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27779402, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27779403, '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 = 27779550 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': 3936798, 'mtr_portfolio_id': 27779550, 'created_at': datetime.datetime(2025, 10, 14, 5, 57, 33), 'result': '0.03184540944410446', 'result_long': None, 'result_double': None}] Qualite : 0.03184540944410446 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27779550 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27779550_14-10-2025_05_57_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27779550 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_P27779550_14-10-2025_05_57_34.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27779551, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27779552, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27779553, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27779554, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27779555, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27779556, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27779557, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27779558, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27779559, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27779560, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27779561, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27779562, 'pht': 3726}}" where mtr_portfolio_id = 27779550 and dashboard_run_id = 2451743 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`=27779550 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16352792, 0.03184540944410446, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27779550_14-10-2025_05_57_34.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27779551, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27779552, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27779553, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27779554, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27779555, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27779556, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27779557, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27779558, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27779559, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27779560, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27779561, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27779562, '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 = 27779656 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': 3936799, 'mtr_portfolio_id': 27779656, 'created_at': datetime.datetime(2025, 10, 14, 5, 58, 2), 'result': '0.05052474997406134', 'result_long': None, 'result_double': None}] Qualite : 0.05052474997406134 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27779656 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27779656_14-10-2025_05_58_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27779656 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_P27779656_14-10-2025_05_58_03.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27779660, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27779661, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27779662, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27779663, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27779664, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27779665, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27779666, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27779667, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27779668, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27779669, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27779670, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27779671, 'pht': 3726}}" where mtr_portfolio_id = 27779656 and dashboard_run_id = 2451743 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`=27779656 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16352793, 0.05052474997406134, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27779656_14-10-2025_05_58_03.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27779660, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27779661, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27779662, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27779663, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27779664, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27779665, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27779666, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27779667, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27779668, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27779669, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27779670, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27779671, '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 = 27780223 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': 3936800, 'mtr_portfolio_id': 27780223, 'created_at': datetime.datetime(2025, 10, 14, 5, 59, 4), 'result': '0.040319035993793335', 'result_long': None, 'result_double': None}] Qualite : 0.040319035993793335 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27780223 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27780223_14-10-2025_05_59_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27780223 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_P27780223_14-10-2025_05_59_05.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27780224, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27780225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27780226, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27780227, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27780228, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27780229, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27780230, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27780231, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27780232, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27780233, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27780234, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27780235, 'pht': 3726}}" where mtr_portfolio_id = 27780223 and dashboard_run_id = 2451743 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`=27780223 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16352794, 0.040319035993793335, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27780223_14-10-2025_05_59_05.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27780224, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27780225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27780226, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27780227, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27780228, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27780229, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27780230, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27780231, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27780232, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27780233, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27780234, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27780235, '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 = 27780493 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': 3936801, 'mtr_portfolio_id': 27780493, 'created_at': datetime.datetime(2025, 10, 14, 5, 59, 29), 'result': '0.04214279264128584', 'result_long': None, 'result_double': None}] Qualite : 0.04214279264128584 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27780493 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27780493_14-10-2025_05_59_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27780493 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_P27780493_14-10-2025_05_59_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27780497, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27780498, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27780499, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27780500, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27780501, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27780502, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27780503, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27780504, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27780505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27780506, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27780507, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27780508, 'pht': 3726}}" where mtr_portfolio_id = 27780493 and dashboard_run_id = 2451743 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`=27780493 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16352795, 0.04214279264128584, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27780493_14-10-2025_05_59_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27780497, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27780498, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27780499, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27780500, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27780501, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27780502, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27780503, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27780504, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27780505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27780506, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27780507, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27780508, '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 = 27780862 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': 3936750, 'mtr_portfolio_id': 27780862, 'created_at': datetime.datetime(2025, 10, 14, 5, 49), 'result': '0.057302103776373695', 'result_long': None, 'result_double': None}] Qualite : 0.057302103776373695 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27780862 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27780862_14-10-2025_05_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27780862 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_P27780862_14-10-2025_05_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27780867, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27780868, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27780869, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27780870, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27780871, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27780872, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27780873, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27780874, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27780875, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27780876, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27780877, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27780878, 'pht': 3726}}" where mtr_portfolio_id = 27780862 and dashboard_run_id = 2451743 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`=27780862 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16352796, 0.057302103776373695, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27780862_14-10-2025_05_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27780867, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27780868, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27780869, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27780870, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27780871, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27780872, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27780873, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27780874, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27780875, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27780876, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27780877, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27780878, '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 = 27781293 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': 3936877, 'mtr_portfolio_id': 27781293, 'created_at': datetime.datetime(2025, 10, 14, 5, 58, 33), 'result': '0.05161213879580548', 'result_long': None, 'result_double': None}] Qualite : 0.05161213879580548 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27781293 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27781293_14-10-2025_05_58_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27781293 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_P27781293_14-10-2025_05_58_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27781298, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27781299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27781300, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27781301, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27781302, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27781303, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27781304, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27781305, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27781306, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27781307, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27781308, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27781309, 'pht': 3726}}" where mtr_portfolio_id = 27781293 and dashboard_run_id = 2451743 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`=27781293 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16352797, 0.05161213879580548, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27781293_14-10-2025_05_58_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27781298, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27781299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27781300, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27781301, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27781302, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27781303, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27781304, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27781305, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27781306, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27781307, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27781308, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27781309, '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 = 27781652 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': 3936958, 'mtr_portfolio_id': 27781652, 'created_at': datetime.datetime(2025, 10, 14, 6, 14, 35), 'result': '0.040614927476845836', 'result_long': None, 'result_double': None}] Qualite : 0.040614927476845836 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27781652 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27781652_14-10-2025_06_14_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27781652 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_P27781652_14-10-2025_06_14_36.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27781660, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27781661, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27781662, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27781663, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27781664, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27781665, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27781666, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27781667, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27781668, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27781669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27781670, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27781671, 'pht': 3726}}" where mtr_portfolio_id = 27781652 and dashboard_run_id = 2451743 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`=27781652 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16352798, 0.040614927476845836, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27781652_14-10-2025_06_14_36.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27781660, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27781661, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27781662, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27781663, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27781664, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27781665, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27781666, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27781667, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27781668, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27781669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27781670, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27781671, '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 (27777996,27778872,27779391,27779550,27779656,27780223,27780493,27780862,27781293,27781652) result : ((1389325084,), (1389325226,), (1389325245,), (1389325345,), (1389325726,), (1389325883,), (1389325885,), (1389326199,), (1389331930,), (1389332748,), (1389333287,), (1389333288,), (1389333300,), (1389333351,), (1389333367,), (1389333368,), (1389333393,), (1389335401,), (1389335981,), (1389335993,), (1389336007,), (1389336008,), (1389336024,), (1389336040,), (1389336057,), (1389336061,), (1389336090,), (1389336101,), (1389336134,), (1389336151,), (1389336188,), (1389336187,), (1389336243,), (1389336261,), (1389336274,), (1389336288,), (1389336289,), (1389336290,), (1389336307,), (1389336308,), (1389336345,), (1389336362,), (1389336378,), (1389336391,), (1389336492,), (1389336509,), (1389336522,), (1389336524,), (1389336528,), (1389336531,), (1389336558,), (1389336560,), (1389336562,), (1389336574,), (1389336575,), (1389336616,), (1389336617,), (1389336645,), (1389336689,), (1389336691,), (1389336746,), (1389340467,), (1389340529,), (1389340555,), (1389340557,), (1389340578,), (1389340582,), (1389340608,), (1389340617,), (1389340621,), (1389340626,), (1389340636,), (1389340654,), (1389340656,), (1389340673,), (1389340675,), (1389340697,), (1389340699,), (1389340701,), (1389340717,), (1389340742,), (1389340744,), (1389340748,), (1389340752,), (1389340764,), (1389340766,), (1389340810,), (1389340795,), (1389340798,), (1389340801,), (1389340805,), (1389340818,), (1389340824,), (1389340829,), (1389340836,), (1389340843,), (1389340846,), (1389340854,), (1389340856,), (1389340858,), (1389340866,), (1389340871,), (1389340874,), (1389340877,), (1389340879,), (1389340881,), (1389340904,), (1389340906,), (1389340908,), (1389340912,), (1389340917,), (1389340929,), (1389340931,), (1389340933,), (1389340935,), (1389340938,), (1389340957,), (1389340958,), (1389340960,), (1389340962,), (1389340979,), (1389340985,), (1389340991,), (1389340996,), (1389341003,), (1389341006,), (1389341049,), (1389341052,), (1389341056,), (1389341059,), (1389341062,), (1389341065,), (1389341068,), (1389341069,), (1389341070,), (1389341072,), (1389341074,), (1389341077,), (1389341081,), (1389341091,), (1389341097,), (1389341100,), (1389341108,), (1389341109,), (1389341110,), (1389341113,), (1389341127,), (1389341129,), (1389341131,), (1389341134,), (1389341139,), (1389341142,), (1389341171,), (1389341172,), (1389341173,), (1389341175,), (1389341190,), (1389341192,), (1389341193,), (1389341195,), (1389341198,), (1389341246,), (1389341252,), (1389341255,), (1389341259,), (1389341262,), (1389341278,), (1389341272,), (1389341275,), (1389341313,), (1389341315,), (1389341316,), (1389341347,), (1389341348,), (1389341350,), (1389341354,), (1389341358,), (1389341361,), (1389341368,), (1389341370,), (1389341372,), (1389341374,), (1389341380,), (1389341389,), (1389341390,), (1389341392,), (1389341394,), (1389341407,), (1389341409,), (1389341411,), (1389341413,), (1389341419,), (1389341429,), (1389341444,), (1389341445,), (1389341446,), (1389341448,), (1389341451,), (1389341462,), (1389341464,), (1389341469,), (1389341476,), (1389341493,), (1389341494,), (1389341495,), (1389341497,), (1389341500,), (1389341503,), (1389341517,), (1389341519,), (1389341521,), (1389341525,), (1389341527,), (1389341558,), (1389341559,), (1389341560,), (1389341576,), (1389341579,), (1389341606,), (1389341608,), (1389341609,), (1389341612,), (1389341616,), (1389341627,), (1389341628,), (1389341631,), (1389341636,), (1389341646,), (1389341677,), (1389341665,), (1389341666,), (1389341669,), (1389341673,), (1389341675,), (1389341686,), (1389341687,), (1389341688,), (1389341691,), (1389341711,), (1389341712,), (1389341713,), (1389341716,), (1389341722,), (1389341731,), (1389341733,), (1389341738,), (1389341742,), (1389341746,), (1389341749,), (1389341761,), (1389341762,), (1389341763,), (1389341779,), (1389341781,), (1389341782,), (1389341785,), (1389341789,), (1389341807,), (1389341808,), (1389341811,), (1389341815,), (1389341818,), (1389341821,), (1389341828,), (1389341830,), (1389341831,), (1389341834,), (1389341859,), (1389341860,), (1389341861,), (1389341864,), (1389341868,), (1389341880,), (1389341882,), (1389341884,), (1389341887,), (1389341889,), (1389341895,), (1389341908,), (1389341911,), (1389341912,), (1389341914,), (1389341928,), (1389341931,), (1389341932,), (1389341934,), (1389341937,), (1389341944,), (1389341959,), (1389341961,), (1389341963,), (1389341965,), (1389341969,), (1389341973,), (1389342228,), (1389342234,), (1389342239,), (1389342243,), (1389342267,), (1389342255,), (1389342259,), (1389342262,), (1389342265,), (1389343169,), (1389343170,), (1389343171,), (1389343174,), (1389343343,), (1389343345,), (1389343347,), (1389343369,), (1389343370,), (1389343372,), (1389343375,), (1389343378,), (1389343381,), (1389343387,), (1389343389,), (1389343390,), (1389343392,), (1389343395,), (1389343416,), (1389343417,), (1389343418,), (1389343423,), (1389343426,), (1389343429,), (1389343433,), (1389343435,), (1389343436,), (1389343439,), (1389343460,), (1389343461,), (1389343462,), (1389343465,), (1389343479,), (1389343480,), (1389343481,), (1389343485,), (1389343488,), (1389343492,), (1389343508,), (1389343509,), (1389343510,), (1389343513,), (1389343517,), (1389343526,), (1389343528,), (1389343529,), (1389343531,), (1389343557,), (1389343558,), (1389343559,), (1389343562,), (1389343565,), (1389343569,), (1389343575,), (1389343578,), (1389343582,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'14102025': {'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([27781652]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1389343582, 1389343578, 1389343575, 1389343569, 1389343565, 1389343562, 1389343559, 1389343558, 1389343557] map_info['map_portfolio_photo'] : {27781652: [1389343582, 1389343578, 1389343575, 1389343569, 1389343565, 1389343562, 1389343559, 1389343558, 1389343557, 1389343531, 1389343529, 1389343528, 1389343526, 1389343517, 1389343513, 1389343510, 1389343509, 1389343508, 1389343492, 1389343488, 1389343485, 1389343481, 1389343480, 1389343479, 1389343465, 1389343462, 1389343461, 1389343460, 1389343439, 1389343436, 1389343435, 1389343433, 1389343429, 1389343426, 1389343423, 1389343418, 1389343417, 1389343416, 1389343395, 1389343392, 1389343390, 1389343389, 1389343387, 1389343381, 1389343378, 1389343375, 1389343372, 1389343370, 1389343369, 1389343347, 1389343345, 1389343343, 1389343174, 1389343171, 1389343170, 1389343169, 1389342265, 1389342262, 1389342259, 1389342255]} final : True mtd_id 4302 list_pids : [1389343582, 1389343578, 1389343575, 1389343569, 1389343565, 1389343562, 1389343559, 1389343558, 1389343557] Looping around the photos to save general results len do output : 1 /27781652Didn'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, '3936958') ('4302', '27781652', '1389343582', None, None, None, None, None, '3936958') ('4302', None, None, None, None, None, None, None, '3936958') ('4302', '27781652', '1389343578', None, None, None, None, None, '3936958') ('4302', None, None, None, None, None, None, None, '3936958') ('4302', '27781652', '1389343575', None, None, None, None, None, '3936958') ('4302', None, None, None, None, None, None, None, '3936958') ('4302', '27781652', '1389343569', None, None, None, None, None, '3936958') ('4302', None, None, None, None, None, None, None, '3936958') ('4302', '27781652', '1389343565', None, None, None, None, None, '3936958') ('4302', None, None, None, None, None, None, None, '3936958') ('4302', '27781652', '1389343562', None, None, None, None, None, '3936958') ('4302', None, None, None, None, None, None, None, '3936958') ('4302', '27781652', '1389343559', None, None, None, None, None, '3936958') ('4302', None, None, None, None, None, None, None, '3936958') ('4302', '27781652', '1389343558', None, None, None, None, None, '3936958') ('4302', None, None, None, None, None, None, None, '3936958') ('4302', '27781652', '1389343557', None, None, None, None, None, '3936958') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '27781652', 'None', None, None, None, None, '3936958'), ('4302', '27781652', '1389343582', None, None, None, None, None, '3936958'), ('4302', '27781652', '1389343578', None, None, None, None, None, '3936958'), ('4302', '27781652', '1389343575', None, None, None, None, None, '3936958'), ('4302', '27781652', '1389343569', None, None, None, None, None, '3936958'), ('4302', '27781652', '1389343565', None, None, None, None, None, '3936958'), ('4302', '27781652', '1389343562', None, None, None, None, None, '3936958'), ('4302', '27781652', '1389343559', None, None, None, None, None, '3936958'), ('4302', '27781652', '1389343558', None, None, None, None, None, '3936958'), ('4302', '27781652', '1389343557', None, None, None, None, None, '3936958')] time used for this insertion : 0.03747391700744629 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.0826141834259033 time spend to save output : 0.0377202033996582 total time spend for step 5 : 3.1203343868255615 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 (3936958) 2.29user 2.02system 0:17.43elapsed 24%CPU (0avgtext+0avgdata 160004maxresident)k 296inputs+9984outputs (59major+77093minor)pagefaults 0swaps