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 : 580744 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 (3716411) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3716411) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26819752 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3716411'] with mtr_portfolio_ids : ['26819752'] and first list_photo_ids : [] new path : /proc/580744/ Name: python3 Umask: 0002 State: R (running) Tgid: 580744 Ngid: 0 Pid: 580744 PPid: 580743 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 580744 NSpid: 580744 NSpgid: 578698 NSsid: 578698 VmPeak: 1107252 kB VmSize: 1107252 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98124 kB VmRSS: 98124 kB RssAnon: 60168 kB RssFile: 37956 kB RssShmem: 0 kB VmData: 866004 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 608 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/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: 102 nonvoluntary_ctxt_switches: 165 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '580744', 'Ngid': '0', 'Pid': '580744', 'PPid': '580743', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '580744', 'NSpid': '580744', 'NSpgid': '578698', 'NSsid': '578698', 'VmPeak': '1107252 kB', 'VmSize': '1107252 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98124 kB', 'VmRSS': '98124 kB', 'RssAnon': '60168 kB', 'RssFile': '37956 kB', 'RssShmem': '0 kB', 'VmData': '866004 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '608 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/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': '102', 'nonvoluntary_ctxt_switches': '165'} ('datou_batch_current', '580744', '1107252', '0', '1107252', '866004', '98124', b'', 'marlene', '3716411') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (26819752) 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 (3716411 ) ) 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 (26819752) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1383602951, 'portfolio_id': 26819752}, {'photo_id': 1383602947, 'portfolio_id': 26819752}, {'photo_id': 1383602945, 'portfolio_id': 26819752}, {'photo_id': 1383602943, 'portfolio_id': 26819752}, {'photo_id': 1383602920, 'portfolio_id': 26819752}, {'photo_id': 1383602919, 'portfolio_id': 26819752}, {'photo_id': 1383602862, 'portfolio_id': 26819752}, {'photo_id': 1383602860, 'portfolio_id': 26819752}, {'photo_id': 1383602841, 'portfolio_id': 26819752}, {'photo_id': 1383602836, 'portfolio_id': 26819752}, {'photo_id': 1383602833, 'portfolio_id': 26819752}, {'photo_id': 1383602832, 'portfolio_id': 26819752}, {'photo_id': 1383602830, 'portfolio_id': 26819752}, {'photo_id': 1383602792, 'portfolio_id': 26819752}, {'photo_id': 1383602789, 'portfolio_id': 26819752}, {'photo_id': 1383602786, 'portfolio_id': 26819752}, {'photo_id': 1383602785, 'portfolio_id': 26819752}, {'photo_id': 1383602783, 'portfolio_id': 26819752}, {'photo_id': 1383602751, 'portfolio_id': 26819752}, {'photo_id': 1383602750, 'portfolio_id': 26819752}, {'photo_id': 1383602729, 'portfolio_id': 26819752}, {'photo_id': 1383602726, 'portfolio_id': 26819752}, {'photo_id': 1383602725, 'portfolio_id': 26819752}, {'photo_id': 1383602701, 'portfolio_id': 26819752}, {'photo_id': 1383602699, 'portfolio_id': 26819752}, {'photo_id': 1383602697, 'portfolio_id': 26819752}, {'photo_id': 1383602688, 'portfolio_id': 26819752}, {'photo_id': 1383602685, 'portfolio_id': 26819752}, {'photo_id': 1383602682, 'portfolio_id': 26819752}, {'photo_id': 1383602678, 'portfolio_id': 26819752}, {'photo_id': 1383602669, 'portfolio_id': 26819752}, {'photo_id': 1383602628, 'portfolio_id': 26819752}, {'photo_id': 1383602624, 'portfolio_id': 26819752}, {'photo_id': 1383602618, 'portfolio_id': 26819752}, {'photo_id': 1383602614, 'portfolio_id': 26819752}, {'photo_id': 1383602612, 'portfolio_id': 26819752}, {'photo_id': 1383602590, 'portfolio_id': 26819752}, {'photo_id': 1383602588, 'portfolio_id': 26819752}, {'photo_id': 1383602586, 'portfolio_id': 26819752}, {'photo_id': 1383602565, 'portfolio_id': 26819752}, {'photo_id': 1383602564, 'portfolio_id': 26819752}, {'photo_id': 1383602563, 'portfolio_id': 26819752}, {'photo_id': 1383602514, 'portfolio_id': 26819752}, {'photo_id': 1383602509, 'portfolio_id': 26819752}, {'photo_id': 1383602507, 'portfolio_id': 26819752}, {'photo_id': 1383602506, 'portfolio_id': 26819752}, {'photo_id': 1383602504, 'portfolio_id': 26819752}, {'photo_id': 1383602471, 'portfolio_id': 26819752}, {'photo_id': 1383602469, 'portfolio_id': 26819752}, {'photo_id': 1383602459, 'portfolio_id': 26819752}] map_portfolio_id_photo_id: {26819752: [1383602951, 1383602947, 1383602945, 1383602943, 1383602920, 1383602919, 1383602862, 1383602860, 1383602841, 1383602836, 1383602833, 1383602832, 1383602830, 1383602792, 1383602789, 1383602786, 1383602785, 1383602783, 1383602751, 1383602750, 1383602729, 1383602726, 1383602725, 1383602701, 1383602699, 1383602697, 1383602688, 1383602685, 1383602682, 1383602678, 1383602669, 1383602628, 1383602624, 1383602618, 1383602614, 1383602612, 1383602590, 1383602588, 1383602586, 1383602565, 1383602564, 1383602563, 1383602514, 1383602509, 1383602507, 1383602506, 1383602504, 1383602471, 1383602469, 1383602459]} ##### 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.015781641006469727 #### 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 Sat Sep 13 03:14:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26819752) 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 : 26819752 get user id for portfolio 26819752 get sub ptf for main ptf 26819752, type 3726 and hashtags ['autre_refus', 'Carton_gris', 'papier', 'plastique', 'mal_croppe', 'flou', 'Teint_Dans_La_Masse', 'metal', 'Carton_brun', 'environnement', 'kraft', 'cartonnette'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26819752 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Carton_gris','papier','plastique','mal_croppe','flou','Teint_Dans_La_Masse','metal','Carton_brun','environnement','kraft','cartonnette')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26819752 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Carton_gris','papier','plastique','mal_croppe','flou','Teint_Dans_La_Masse','metal','Carton_brun','environnement','kraft','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 26819752, 'sub_port_id': 26819767, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18081958, 'last_updated_at': datetime.datetime(2025, 9, 13, 3, 13), 'last_updated_at_desc': datetime.datetime(2025, 9, 13, 3, 13), 'last_updated_at_asc': datetime.datetime(2025, 9, 13, 3, 3, 29)}, 'flou': {'main_port_id': 26819752, 'sub_port_id': 26819769, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18081959, 'last_updated_at': datetime.datetime(2025, 9, 13, 3, 13), 'last_updated_at_desc': datetime.datetime(2025, 9, 13, 3, 13), 'last_updated_at_asc': datetime.datetime(2025, 9, 13, 3, 3, 29)}, 'cartonnette': {'main_port_id': 26819752, 'sub_port_id': 26819770, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18081960, 'last_updated_at': datetime.datetime(2025, 9, 13, 3, 13), 'last_updated_at_desc': datetime.datetime(2025, 9, 13, 3, 13), 'last_updated_at_asc': datetime.datetime(2025, 9, 13, 3, 3, 29)}, 'autre_refus': {'main_port_id': 26819752, 'sub_port_id': 26819771, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18081961, 'last_updated_at': datetime.datetime(2025, 9, 13, 3, 13), 'last_updated_at_desc': datetime.datetime(2025, 9, 13, 3, 13), 'last_updated_at_asc': datetime.datetime(2025, 9, 13, 3, 3, 29)}, 'kraft': {'main_port_id': 26819752, 'sub_port_id': 26819772, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18081962, 'last_updated_at': datetime.datetime(2025, 9, 13, 3, 13), 'last_updated_at_desc': datetime.datetime(2025, 9, 13, 3, 13), 'last_updated_at_asc': datetime.datetime(2025, 9, 13, 3, 3, 29)}, 'Carton_brun': {'main_port_id': 26819752, 'sub_port_id': 26819773, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18081963, 'last_updated_at': datetime.datetime(2025, 9, 13, 3, 13), 'last_updated_at_desc': datetime.datetime(2025, 9, 13, 3, 13), 'last_updated_at_asc': datetime.datetime(2025, 9, 13, 3, 3, 29)}, 'environnement': {'main_port_id': 26819752, 'sub_port_id': 26819774, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18081964, 'last_updated_at': datetime.datetime(2025, 9, 13, 3, 13), 'last_updated_at_desc': datetime.datetime(2025, 9, 13, 3, 13), 'last_updated_at_asc': datetime.datetime(2025, 9, 13, 3, 3, 29)}, 'Carton_gris': {'main_port_id': 26819752, 'sub_port_id': 26819775, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18081965, 'last_updated_at': datetime.datetime(2025, 9, 13, 3, 13), 'last_updated_at_desc': datetime.datetime(2025, 9, 13, 3, 13), 'last_updated_at_asc': datetime.datetime(2025, 9, 13, 3, 3, 29)}, 'papier': {'main_port_id': 26819752, 'sub_port_id': 26819776, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18081966, 'last_updated_at': datetime.datetime(2025, 9, 13, 3, 13), 'last_updated_at_desc': datetime.datetime(2025, 9, 13, 3, 13), 'last_updated_at_asc': datetime.datetime(2025, 9, 13, 3, 3, 29)}, 'plastique': {'main_port_id': 26819752, 'sub_port_id': 26819777, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18081967, 'last_updated_at': datetime.datetime(2025, 9, 13, 3, 13), 'last_updated_at_desc': datetime.datetime(2025, 9, 13, 3, 13), 'last_updated_at_asc': datetime.datetime(2025, 9, 13, 3, 3, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 26819752, 'sub_port_id': 26819778, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18081968, 'last_updated_at': datetime.datetime(2025, 9, 13, 3, 13), 'last_updated_at_desc': datetime.datetime(2025, 9, 13, 3, 13), 'last_updated_at_asc': datetime.datetime(2025, 9, 13, 3, 3, 29)}, 'mal_croppe': {'main_port_id': 26819752, 'sub_port_id': 26819779, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18081969, 'last_updated_at': datetime.datetime(2025, 9, 13, 3, 13), 'last_updated_at_desc': datetime.datetime(2025, 9, 13, 3, 13), 'last_updated_at_asc': datetime.datetime(2025, 9, 13, 3, 3, 29)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26819767 , 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=26819752 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 (26819767) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26819752) result : ((1383602459,), (1383602469,), (1383602471,), (1383602504,), (1383602506,), (1383602507,), (1383602509,), (1383602514,), (1383602563,), (1383602564,), (1383602565,), (1383602586,), (1383602588,), (1383602590,), (1383602612,), (1383602614,), (1383602618,), (1383602624,), (1383602628,), (1383602669,), (1383602678,), (1383602682,), (1383602685,), (1383602688,), (1383602697,), (1383602699,), (1383602701,), (1383602725,), (1383602726,), (1383602729,), (1383602750,), (1383602751,), (1383602783,), (1383602785,), (1383602786,), (1383602789,), (1383602792,), (1383602830,), (1383602832,), (1383602833,), (1383602836,), (1383602841,), (1383602860,), (1383602862,), (1383602919,), (1383602920,), (1383602943,), (1383602945,), (1383602947,), (1383602951,)) 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 26819769 , 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=26819752 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 (26819769) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26819752) result : ((1383602459,), (1383602469,), (1383602471,), (1383602504,), (1383602506,), (1383602507,), (1383602509,), (1383602514,), (1383602563,), (1383602564,), (1383602565,), (1383602586,), (1383602588,), (1383602590,), (1383602612,), (1383602614,), (1383602618,), (1383602624,), (1383602628,), (1383602669,), (1383602678,), (1383602682,), (1383602685,), (1383602688,), (1383602697,), (1383602699,), (1383602701,), (1383602725,), (1383602726,), (1383602729,), (1383602750,), (1383602751,), (1383602783,), (1383602785,), (1383602786,), (1383602789,), (1383602792,), (1383602830,), (1383602832,), (1383602833,), (1383602836,), (1383602841,), (1383602860,), (1383602862,), (1383602919,), (1383602920,), (1383602943,), (1383602945,), (1383602947,), (1383602951,)) 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 26819770 , 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=26819752 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 (26819770) result : ((1383602774,), (1383602914,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26819752) result : ((1383602459,), (1383602469,), (1383602471,), (1383602504,), (1383602506,), (1383602507,), (1383602509,), (1383602514,), (1383602563,), (1383602564,), (1383602565,), (1383602586,), (1383602588,), (1383602590,), (1383602612,), (1383602614,), (1383602618,), (1383602624,), (1383602628,), (1383602669,), (1383602678,), (1383602682,), (1383602685,), (1383602688,), (1383602697,), (1383602699,), (1383602701,), (1383602725,), (1383602726,), (1383602729,), (1383602750,), (1383602751,), (1383602783,), (1383602785,), (1383602786,), (1383602789,), (1383602792,), (1383602830,), (1383602832,), (1383602833,), (1383602836,), (1383602841,), (1383602860,), (1383602862,), (1383602919,), (1383602920,), (1383602943,), (1383602945,), (1383602947,), (1383602951,)) 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 26819771 , 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=26819752 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 (26819771) result : ((1383602637,), (1383602854,), (1383602855,), (1383602939,), (1383602940,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26819752) result : ((1383602459,), (1383602469,), (1383602471,), (1383602504,), (1383602506,), (1383602507,), (1383602509,), (1383602514,), (1383602563,), (1383602564,), (1383602565,), (1383602586,), (1383602588,), (1383602590,), (1383602612,), (1383602614,), (1383602618,), (1383602624,), (1383602628,), (1383602669,), (1383602678,), (1383602682,), (1383602685,), (1383602688,), (1383602697,), (1383602699,), (1383602701,), (1383602725,), (1383602726,), (1383602729,), (1383602750,), (1383602751,), (1383602783,), (1383602785,), (1383602786,), (1383602789,), (1383602792,), (1383602830,), (1383602832,), (1383602833,), (1383602836,), (1383602841,), (1383602860,), (1383602862,), (1383602919,), (1383602920,), (1383602943,), (1383602945,), (1383602947,), (1383602951,)) 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 26819772 , 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=26819752 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 (26819772) result : ((1383602639,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26819752) result : ((1383602459,), (1383602469,), (1383602471,), (1383602504,), (1383602506,), (1383602507,), (1383602509,), (1383602514,), (1383602563,), (1383602564,), (1383602565,), (1383602586,), (1383602588,), (1383602590,), (1383602612,), (1383602614,), (1383602618,), (1383602624,), (1383602628,), (1383602669,), (1383602678,), (1383602682,), (1383602685,), (1383602688,), (1383602697,), (1383602699,), (1383602701,), (1383602725,), (1383602726,), (1383602729,), (1383602750,), (1383602751,), (1383602783,), (1383602785,), (1383602786,), (1383602789,), (1383602792,), (1383602830,), (1383602832,), (1383602833,), (1383602836,), (1383602841,), (1383602860,), (1383602862,), (1383602919,), (1383602920,), (1383602943,), (1383602945,), (1383602947,), (1383602951,)) 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 26819773 , 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=26819752 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 (26819773) result : ((1383602638,), (1383602934,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26819752) result : ((1383602459,), (1383602469,), (1383602471,), (1383602504,), (1383602506,), (1383602507,), (1383602509,), (1383602514,), (1383602563,), (1383602564,), (1383602565,), (1383602586,), (1383602588,), (1383602590,), (1383602612,), (1383602614,), (1383602618,), (1383602624,), (1383602628,), (1383602669,), (1383602678,), (1383602682,), (1383602685,), (1383602688,), (1383602697,), (1383602699,), (1383602701,), (1383602725,), (1383602726,), (1383602729,), (1383602750,), (1383602751,), (1383602783,), (1383602785,), (1383602786,), (1383602789,), (1383602792,), (1383602830,), (1383602832,), (1383602833,), (1383602836,), (1383602841,), (1383602860,), (1383602862,), (1383602919,), (1383602920,), (1383602943,), (1383602945,), (1383602947,), (1383602951,)) 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 26819774 , 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=26819752 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 (26819774) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26819752) result : ((1383602459,), (1383602469,), (1383602471,), (1383602504,), (1383602506,), (1383602507,), (1383602509,), (1383602514,), (1383602563,), (1383602564,), (1383602565,), (1383602586,), (1383602588,), (1383602590,), (1383602612,), (1383602614,), (1383602618,), (1383602624,), (1383602628,), (1383602669,), (1383602678,), (1383602682,), (1383602685,), (1383602688,), (1383602697,), (1383602699,), (1383602701,), (1383602725,), (1383602726,), (1383602729,), (1383602750,), (1383602751,), (1383602783,), (1383602785,), (1383602786,), (1383602789,), (1383602792,), (1383602830,), (1383602832,), (1383602833,), (1383602836,), (1383602841,), (1383602860,), (1383602862,), (1383602919,), (1383602920,), (1383602943,), (1383602945,), (1383602947,), (1383602951,)) 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 26819775 , 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=26819752 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 (26819775) result : ((1383602722,), (1383602772,), (1383602773,), (1383602779,), (1383602932,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26819752) result : ((1383602459,), (1383602469,), (1383602471,), (1383602504,), (1383602506,), (1383602507,), (1383602509,), (1383602514,), (1383602563,), (1383602564,), (1383602565,), (1383602586,), (1383602588,), (1383602590,), (1383602612,), (1383602614,), (1383602618,), (1383602624,), (1383602628,), (1383602669,), (1383602678,), (1383602682,), (1383602685,), (1383602688,), (1383602697,), (1383602699,), (1383602701,), (1383602725,), (1383602726,), (1383602729,), (1383602750,), (1383602751,), (1383602783,), (1383602785,), (1383602786,), (1383602789,), (1383602792,), (1383602830,), (1383602832,), (1383602833,), (1383602836,), (1383602841,), (1383602860,), (1383602862,), (1383602919,), (1383602920,), (1383602943,), (1383602945,), (1383602947,), (1383602951,)) 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 26819776 , 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=26819752 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 (26819776) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26819752) result : ((1383602459,), (1383602469,), (1383602471,), (1383602504,), (1383602506,), (1383602507,), (1383602509,), (1383602514,), (1383602563,), (1383602564,), (1383602565,), (1383602586,), (1383602588,), (1383602590,), (1383602612,), (1383602614,), (1383602618,), (1383602624,), (1383602628,), (1383602669,), (1383602678,), (1383602682,), (1383602685,), (1383602688,), (1383602697,), (1383602699,), (1383602701,), (1383602725,), (1383602726,), (1383602729,), (1383602750,), (1383602751,), (1383602783,), (1383602785,), (1383602786,), (1383602789,), (1383602792,), (1383602830,), (1383602832,), (1383602833,), (1383602836,), (1383602841,), (1383602860,), (1383602862,), (1383602919,), (1383602920,), (1383602943,), (1383602945,), (1383602947,), (1383602951,)) 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 26819777 , 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=26819752 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 (26819777) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26819752) result : ((1383602459,), (1383602469,), (1383602471,), (1383602504,), (1383602506,), (1383602507,), (1383602509,), (1383602514,), (1383602563,), (1383602564,), (1383602565,), (1383602586,), (1383602588,), (1383602590,), (1383602612,), (1383602614,), (1383602618,), (1383602624,), (1383602628,), (1383602669,), (1383602678,), (1383602682,), (1383602685,), (1383602688,), (1383602697,), (1383602699,), (1383602701,), (1383602725,), (1383602726,), (1383602729,), (1383602750,), (1383602751,), (1383602783,), (1383602785,), (1383602786,), (1383602789,), (1383602792,), (1383602830,), (1383602832,), (1383602833,), (1383602836,), (1383602841,), (1383602860,), (1383602862,), (1383602919,), (1383602920,), (1383602943,), (1383602945,), (1383602947,), (1383602951,)) 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 26819778 , 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=26819752 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 (26819778) result : ((1383602634,), (1383602635,), (1383602711,), (1383602721,), (1383602766,), (1383602767,), (1383602768,), (1383602769,), (1383602770,), (1383602777,), (1383602852,), (1383602853,), (1383602937,), (1383602938,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26819752) result : ((1383602459,), (1383602469,), (1383602471,), (1383602504,), (1383602506,), (1383602507,), (1383602509,), (1383602514,), (1383602563,), (1383602564,), (1383602565,), (1383602586,), (1383602588,), (1383602590,), (1383602612,), (1383602614,), (1383602618,), (1383602624,), (1383602628,), (1383602669,), (1383602678,), (1383602682,), (1383602685,), (1383602688,), (1383602697,), (1383602699,), (1383602701,), (1383602725,), (1383602726,), (1383602729,), (1383602750,), (1383602751,), (1383602783,), (1383602785,), (1383602786,), (1383602789,), (1383602792,), (1383602830,), (1383602832,), (1383602833,), (1383602836,), (1383602841,), (1383602860,), (1383602862,), (1383602919,), (1383602920,), (1383602943,), (1383602945,), (1383602947,), (1383602951,)) 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 26819779 , 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=26819752 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 (26819779) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26819752) result : ((1383602459,), (1383602469,), (1383602471,), (1383602504,), (1383602506,), (1383602507,), (1383602509,), (1383602514,), (1383602563,), (1383602564,), (1383602565,), (1383602586,), (1383602588,), (1383602590,), (1383602612,), (1383602614,), (1383602618,), (1383602624,), (1383602628,), (1383602669,), (1383602678,), (1383602682,), (1383602685,), (1383602688,), (1383602697,), (1383602699,), (1383602701,), (1383602725,), (1383602726,), (1383602729,), (1383602750,), (1383602751,), (1383602783,), (1383602785,), (1383602786,), (1383602789,), (1383602792,), (1383602830,), (1383602832,), (1383602833,), (1383602836,), (1383602841,), (1383602860,), (1383602862,), (1383602919,), (1383602920,), (1383602943,), (1383602945,), (1383602947,), (1383602951,)) 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`=26819752 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Carton_gris','papier','plastique','mal_croppe','flou','Teint_Dans_La_Masse','metal','Carton_brun','environnement','kraft','cartonnette')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26819752 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Carton_gris','papier','plastique','mal_croppe','flou','Teint_Dans_La_Masse','metal','Carton_brun','environnement','kraft','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 26819752, 'sub_port_id': 26819781, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18081970, 'last_updated_at': datetime.datetime(2025, 9, 13, 3, 3, 35), 'last_updated_at_desc': datetime.datetime(2025, 9, 13, 3, 3, 35), 'last_updated_at_asc': datetime.datetime(2025, 9, 13, 3, 3, 35)}, 'flou': {'main_port_id': 26819752, 'sub_port_id': 26819782, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18081971, 'last_updated_at': datetime.datetime(2025, 9, 13, 3, 3, 35), 'last_updated_at_desc': datetime.datetime(2025, 9, 13, 3, 3, 35), 'last_updated_at_asc': datetime.datetime(2025, 9, 13, 3, 3, 35)}, 'cartonnette': {'main_port_id': 26819752, 'sub_port_id': 26819783, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18081972, 'last_updated_at': datetime.datetime(2025, 9, 13, 3, 3, 35), 'last_updated_at_desc': datetime.datetime(2025, 9, 13, 3, 3, 35), 'last_updated_at_asc': datetime.datetime(2025, 9, 13, 3, 3, 35)}, 'autre_refus': {'main_port_id': 26819752, 'sub_port_id': 26819784, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18081973, 'last_updated_at': datetime.datetime(2025, 9, 13, 3, 3, 35), 'last_updated_at_desc': datetime.datetime(2025, 9, 13, 3, 3, 35), 'last_updated_at_asc': datetime.datetime(2025, 9, 13, 3, 3, 35)}, 'kraft': {'main_port_id': 26819752, 'sub_port_id': 26819785, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18081974, 'last_updated_at': datetime.datetime(2025, 9, 13, 3, 3, 35), 'last_updated_at_desc': datetime.datetime(2025, 9, 13, 3, 3, 35), 'last_updated_at_asc': datetime.datetime(2025, 9, 13, 3, 3, 35)}, 'Carton_brun': {'main_port_id': 26819752, 'sub_port_id': 26819786, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18081975, 'last_updated_at': datetime.datetime(2025, 9, 13, 3, 3, 35), 'last_updated_at_desc': datetime.datetime(2025, 9, 13, 3, 3, 35), 'last_updated_at_asc': datetime.datetime(2025, 9, 13, 3, 3, 35)}, 'environnement': {'main_port_id': 26819752, 'sub_port_id': 26819787, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18081976, 'last_updated_at': datetime.datetime(2025, 9, 13, 3, 3, 35), 'last_updated_at_desc': datetime.datetime(2025, 9, 13, 3, 3, 35), 'last_updated_at_asc': datetime.datetime(2025, 9, 13, 3, 3, 35)}, 'Carton_gris': {'main_port_id': 26819752, 'sub_port_id': 26819788, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18081977, 'last_updated_at': datetime.datetime(2025, 9, 13, 3, 3, 35), 'last_updated_at_desc': datetime.datetime(2025, 9, 13, 3, 3, 35), 'last_updated_at_asc': datetime.datetime(2025, 9, 13, 3, 3, 35)}, 'papier': {'main_port_id': 26819752, 'sub_port_id': 26819789, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18081978, 'last_updated_at': datetime.datetime(2025, 9, 13, 3, 3, 35), 'last_updated_at_desc': datetime.datetime(2025, 9, 13, 3, 3, 35), 'last_updated_at_asc': datetime.datetime(2025, 9, 13, 3, 3, 35)}, 'plastique': {'main_port_id': 26819752, 'sub_port_id': 26819790, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18081979, 'last_updated_at': datetime.datetime(2025, 9, 13, 3, 3, 35), 'last_updated_at_desc': datetime.datetime(2025, 9, 13, 3, 3, 35), 'last_updated_at_asc': datetime.datetime(2025, 9, 13, 3, 3, 35)}, 'Teint_Dans_La_Masse': {'main_port_id': 26819752, 'sub_port_id': 26819791, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18081980, 'last_updated_at': datetime.datetime(2025, 9, 13, 3, 3, 35), 'last_updated_at_desc': datetime.datetime(2025, 9, 13, 3, 3, 35), 'last_updated_at_asc': datetime.datetime(2025, 9, 13, 3, 3, 35)}, 'mal_croppe': {'main_port_id': 26819752, 'sub_port_id': 26819792, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18081981, 'last_updated_at': datetime.datetime(2025, 9, 13, 3, 13), 'last_updated_at_desc': datetime.datetime(2025, 9, 13, 3, 13), 'last_updated_at_asc': datetime.datetime(2025, 9, 13, 3, 3, 35)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26819781,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26819767 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26819782,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26819769 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26819783,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26819770 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26819784,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26819771 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26819785,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26819772 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26819786,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26819773 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26819787,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26819774 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26819788,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26819775 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26819789,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26819776 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26819790,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26819777 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26819791,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26819778 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26819792,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26819779 lien utilise dans velours : https://marlene.fotonower.com/velours/26819781,26819782,26819783,26819784,26819785,26819786,26819787,26819788,26819789,26819790,26819791,26819792?tags=metal,flou,cartonnette,autre_refus,kraft,Carton_brun,environnement,Carton_gris,papier,plastique,Teint_Dans_La_Masse,mal_croppe After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26819752]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1383602951, 1383602947, 1383602945, 1383602943, 1383602920, 1383602919] map_info['map_portfolio_photo'] : {26819752: [1383602951, 1383602947, 1383602945, 1383602943, 1383602920, 1383602919, 1383602862, 1383602860, 1383602841, 1383602836, 1383602833, 1383602832, 1383602830, 1383602792, 1383602789, 1383602786, 1383602785, 1383602783, 1383602751, 1383602750, 1383602729, 1383602726, 1383602725, 1383602701, 1383602699, 1383602697, 1383602688, 1383602685, 1383602682, 1383602678, 1383602669, 1383602628, 1383602624, 1383602618, 1383602614, 1383602612, 1383602590, 1383602588, 1383602586, 1383602565, 1383602564, 1383602563, 1383602514, 1383602509, 1383602507, 1383602506, 1383602504, 1383602471, 1383602469, 1383602459]} final : False mtd_id 4302 list_pids : [1383602951, 1383602947, 1383602945, 1383602943, 1383602920, 1383602919] Looping around the photos to save general results len do output : 1 /26819752. 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, '3716411') ('4302', '26819752', '1383602951', None, None, None, None, None, '3716411') ('4302', None, None, None, None, None, None, None, '3716411') ('4302', '26819752', '1383602947', None, None, None, None, None, '3716411') ('4302', None, None, None, None, None, None, None, '3716411') ('4302', '26819752', '1383602945', None, None, None, None, None, '3716411') ('4302', None, None, None, None, None, None, None, '3716411') ('4302', '26819752', '1383602943', None, None, None, None, None, '3716411') ('4302', None, None, None, None, None, None, None, '3716411') ('4302', '26819752', '1383602920', None, None, None, None, None, '3716411') ('4302', None, None, None, None, None, None, None, '3716411') ('4302', '26819752', '1383602919', None, None, None, None, None, '3716411') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 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, '26819752', "{'metal': 26819767, 'flou': 26819769, 'cartonnette': 26819770, 'autre_refus': 26819771, 'kraft': 26819772, 'Carton_brun': 26819773, 'environnement': 26819774, 'Carton_gris': 26819775, 'papier': 26819776, 'plastique': 26819777, 'Teint_Dans_La_Masse': 26819778, 'mal_croppe': 26819779}", None, None, None, None, '3716411'), ('4302', '26819752', '1383602951', None, None, None, None, None, '3716411'), ('4302', '26819752', '1383602947', None, None, None, None, None, '3716411'), ('4302', '26819752', '1383602945', None, None, None, None, None, '3716411'), ('4302', '26819752', '1383602943', None, None, None, None, None, '3716411'), ('4302', '26819752', '1383602920', None, None, None, None, None, '3716411'), ('4302', '26819752', '1383602919', None, None, None, None, None, '3716411')] time used for this insertion : 0.014397144317626953 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5975301265716553 time spend to save output : 0.014731168746948242 total time spend for step 1 : 1.6122612953186035 step2:final Sat Sep 13 03:15:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26819752) 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 26819752 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1383602471,1383602469,1383602459,1383602514,1383602509,1383602507,1383602506,1383602504,1383602565,1383602564,1383602563,1383602590,1383602588,1383602586,1383602628,1383602624,1383602618,1383602614,1383602612,1383602688,1383602685,1383602682,1383602678,1383602669,1383602701,1383602699,1383602697,1383602729,1383602726,1383602725,1383602751,1383602750,1383602792,1383602789,1383602786,1383602785,1383602841,1383602783,1383602836,1383602833,1383602832,1383602830,1383602862,1383602860,1383602920,1383602919,1383602951,1383602947,1383602945,1383602943); 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([26819752]) Inside saveOutput : final : False verbose : True original output for save of step final : {1383602951: ('0.03337956459978524',), 1383602947: ('0.03337956459978524',), 1383602945: ('0.03337956459978524',), 1383602943: ('0.03337956459978524',), 1383602920: ('0.03337956459978524',), 1383602919: ('0.03337956459978524',)} new output for save of step final : {1383602951: ('0.03337956459978524',), 1383602947: ('0.03337956459978524',), 1383602945: ('0.03337956459978524',), 1383602943: ('0.03337956459978524',), 1383602920: ('0.03337956459978524',), 1383602919: ('0.03337956459978524',)} [1383602951, 1383602947, 1383602945, 1383602943, 1383602920, 1383602919] map_info['map_portfolio_photo'] : {26819752: [1383602951, 1383602947, 1383602945, 1383602943, 1383602920, 1383602919, 1383602862, 1383602860, 1383602841, 1383602836, 1383602833, 1383602832, 1383602830, 1383602792, 1383602789, 1383602786, 1383602785, 1383602783, 1383602751, 1383602750, 1383602729, 1383602726, 1383602725, 1383602701, 1383602699, 1383602697, 1383602688, 1383602685, 1383602682, 1383602678, 1383602669, 1383602628, 1383602624, 1383602618, 1383602614, 1383602612, 1383602590, 1383602588, 1383602586, 1383602565, 1383602564, 1383602563, 1383602514, 1383602509, 1383602507, 1383602506, 1383602504, 1383602471, 1383602469, 1383602459]} final : False mtd_id 4302 list_pids : [1383602951, 1383602947, 1383602945, 1383602943, 1383602920, 1383602919] Looping around the photos to save general results len do output : 6 /1383602951.Didn't retrieve data . /1383602947.Didn't retrieve data . /1383602945.Didn't retrieve data . /1383602943.Didn't retrieve data . /1383602920.Didn't retrieve data . /1383602919.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, '3716411') ('4302', '26819752', '1383602951', None, None, None, None, None, '3716411') ('4302', None, None, None, None, None, None, None, '3716411') ('4302', '26819752', '1383602947', None, None, None, None, None, '3716411') ('4302', None, None, None, None, None, None, None, '3716411') ('4302', '26819752', '1383602945', None, None, None, None, None, '3716411') ('4302', None, None, None, None, None, None, None, '3716411') ('4302', '26819752', '1383602943', None, None, None, None, None, '3716411') ('4302', None, None, None, None, None, None, None, '3716411') ('4302', '26819752', '1383602920', None, None, None, None, None, '3716411') ('4302', None, None, None, None, None, None, None, '3716411') ('4302', '26819752', '1383602919', None, None, None, None, None, '3716411') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 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', '26819752', '1383602951', '0.03337956459978524', None, None, None, None, '3716411'), ('4302', '26819752', '1383602947', '0.03337956459978524', None, None, None, None, '3716411'), ('4302', '26819752', '1383602945', '0.03337956459978524', None, None, None, None, '3716411'), ('4302', '26819752', '1383602943', '0.03337956459978524', None, None, None, None, '3716411'), ('4302', '26819752', '1383602920', '0.03337956459978524', None, None, None, None, '3716411'), ('4302', '26819752', '1383602919', '0.03337956459978524', None, None, None, None, '3716411')] time used for this insertion : 0.012335777282714844 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07196903228759766 time spend to save output : 0.012716293334960938 total time spend for step 2 : 0.0846853256225586 step3:velours_tree Sat Sep 13 03:15:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {26819752: [{'metal': 26819767, 'flou': 26819769, 'cartonnette': 26819770, 'autre_refus': 26819771, 'kraft': 26819772, 'Carton_brun': 26819773, 'environnement': 26819774, 'Carton_gris': 26819775, 'papier': 26819776, 'plastique': 26819777, 'Teint_Dans_La_Masse': 26819778, 'mal_croppe': 26819779}]} input_args_next_step : {26819752: ()} output_args : {26819752: [{'metal': 26819767, 'flou': 26819769, 'cartonnette': 26819770, 'autre_refus': 26819771, 'kraft': 26819772, 'Carton_brun': 26819773, 'environnement': 26819774, 'Carton_gris': 26819775, 'papier': 26819776, 'plastique': 26819777, 'Teint_Dans_La_Masse': 26819778, 'mal_croppe': 26819779}]} args : 26819752 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 : ({'metal': 26819767, 'flou': 26819769, 'cartonnette': 26819770, 'autre_refus': 26819771, 'kraft': 26819772, 'Carton_brun': 26819773, 'environnement': 26819774, 'Carton_gris': 26819775, 'papier': 26819776, 'plastique': 26819777, 'Teint_Dans_La_Masse': 26819778, 'mal_croppe': 26819779},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26819752) 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([26819752]) 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.3782055377960205 time spend to save output : 5.269050598144531e-05 total time spend for step 3 : 0.37825822830200195 step4:send_mail_cod Sat Sep 13 03:15:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1383602951: ('0.03337956459978524',), 1383602947: ('0.03337956459978524',), 1383602945: ('0.03337956459978524',), 1383602943: ('0.03337956459978524',), 1383602920: ('0.03337956459978524',), 1383602919: ('0.03337956459978524',)} input_args_next_step : {1383602951: ()} output_args : {1383602951: ('0.03337956459978524',), 1383602947: ('0.03337956459978524',), 1383602945: ('0.03337956459978524',), 1383602943: ('0.03337956459978524',), 1383602920: ('0.03337956459978524',), 1383602919: ('0.03337956459978524',)} args : 1383602951 depend.output_id : 0 input_args_next_step : {1383602951: ('0.03337956459978524',), 1383602947: ()} output_args : {1383602951: ('0.03337956459978524',), 1383602947: ('0.03337956459978524',), 1383602945: ('0.03337956459978524',), 1383602943: ('0.03337956459978524',), 1383602920: ('0.03337956459978524',), 1383602919: ('0.03337956459978524',)} args : 1383602947 depend.output_id : 0 input_args_next_step : {1383602951: ('0.03337956459978524',), 1383602947: ('0.03337956459978524',), 1383602945: ()} output_args : {1383602951: ('0.03337956459978524',), 1383602947: ('0.03337956459978524',), 1383602945: ('0.03337956459978524',), 1383602943: ('0.03337956459978524',), 1383602920: ('0.03337956459978524',), 1383602919: ('0.03337956459978524',)} args : 1383602945 depend.output_id : 0 input_args_next_step : {1383602951: ('0.03337956459978524',), 1383602947: ('0.03337956459978524',), 1383602945: ('0.03337956459978524',), 1383602943: ()} output_args : {1383602951: ('0.03337956459978524',), 1383602947: ('0.03337956459978524',), 1383602945: ('0.03337956459978524',), 1383602943: ('0.03337956459978524',), 1383602920: ('0.03337956459978524',), 1383602919: ('0.03337956459978524',)} args : 1383602943 depend.output_id : 0 input_args_next_step : {1383602951: ('0.03337956459978524',), 1383602947: ('0.03337956459978524',), 1383602945: ('0.03337956459978524',), 1383602943: ('0.03337956459978524',), 1383602920: ()} output_args : {1383602951: ('0.03337956459978524',), 1383602947: ('0.03337956459978524',), 1383602945: ('0.03337956459978524',), 1383602943: ('0.03337956459978524',), 1383602920: ('0.03337956459978524',), 1383602919: ('0.03337956459978524',)} args : 1383602920 depend.output_id : 0 input_args_next_step : {1383602951: ('0.03337956459978524',), 1383602947: ('0.03337956459978524',), 1383602945: ('0.03337956459978524',), 1383602943: ('0.03337956459978524',), 1383602920: ('0.03337956459978524',), 1383602919: ()} output_args : {1383602951: ('0.03337956459978524',), 1383602947: ('0.03337956459978524',), 1383602945: ('0.03337956459978524',), 1383602943: ('0.03337956459978524',), 1383602920: ('0.03337956459978524',), 1383602919: ('0.03337956459978524',)} args : 1383602919 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 : {26819752: [{'metal': 26819767, 'flou': 26819769, 'cartonnette': 26819770, 'autre_refus': 26819771, 'kraft': 26819772, 'Carton_brun': 26819773, 'environnement': 26819774, 'Carton_gris': 26819775, 'papier': 26819776, 'plastique': 26819777, 'Teint_Dans_La_Masse': 26819778, 'mal_croppe': 26819779}]} input_args_next_step : {1383602951: ('0.03337956459978524',), 1383602947: ('0.03337956459978524',), 1383602945: ('0.03337956459978524',), 1383602943: ('0.03337956459978524',), 1383602920: ('0.03337956459978524',), 1383602919: ('0.03337956459978524',), 26819752: ()} output_args : {26819752: [{'metal': 26819767, 'flou': 26819769, 'cartonnette': 26819770, 'autre_refus': 26819771, 'kraft': 26819772, 'Carton_brun': 26819773, 'environnement': 26819774, 'Carton_gris': 26819775, 'papier': 26819776, 'plastique': 26819777, 'Teint_Dans_La_Masse': 26819778, 'mal_croppe': 26819779}]} args : 26819752 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 :7, first value : ('0.03337956459978524',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26819752) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1383602951,1383602947,1383602945,1383602943,1383602920,1383602919) Found this number of photos: 6 ##### Call download_photos : nb_thread : 5 begin to download photo : 1383602919 begin to download photo : 1383602943 begin to download photo : 1383602947 download finish for photo 1383602947 begin to download photo : 1383602951 download finish for photo 1383602919 begin to download photo : 1383602920 download finish for photo 1383602943 begin to download photo : 1383602945 download finish for photo 1383602951 download finish for photo 1383602920 download finish for photo 1383602945 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette268197671757726102/ imagette268197691757726102/ length of list_filenames : 6 ; length of list_pids : 6 ; length of list_args : 6 results_Auto_P26819752_13-09-2025_03_15_02.pdf 26819767 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26819767 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette268197671757726102 26819769 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26819769 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette268197691757726102 26819770 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26819770 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1383602774: '1757725746_4043343_1383602614_7a28a944fd59960a2972823b30c5988d_rle_crop_3957920430_0.png', 1383602914: '1757725946_4052670_1383602750_d566b8085c6b40f10cde8b45a29e0cdf_rle_crop_3957920930_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/1b8bf4cbb7ea98ea9edf72a48ce5f822_6521237.png change filename to text .imagette268197701757726102/ imagette268197701757726102/1757725946_4052670_1383602750_d566b8085c6b40f10cde8b45a29e0cdf_rle_crop_3957920930_0.png.png imagette268197701757726102/1757725746_4043343_1383602614_7a28a944fd59960a2972823b30c5988d_rle_crop_3957920430_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/aaceeff592442b9e928aeb35dbf8eea5_53898165.png imagette268197701757726102 26819771 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26819771 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1383602637: '1757725507_4031369_1383602504_a941db5a84e639401dcce3fc6d126935_rle_crop_3957919633_0.png', 1383602854: '1757725886_4049312_1383602699_604d662532d79ba626cb777db2a99408_rle_crop_3957920780_0.png', 1383602855: '1757725886_4049312_1383602699_604d662532d79ba626cb777db2a99408_rle_crop_3957920785_0.png', 1383602939: '1757726005_4056426_1383602699_604d662532d79ba626cb777db2a99408_rle_crop_3957920780_0.png', 1383602940: '1757726005_4056426_1383602699_604d662532d79ba626cb777db2a99408_rle_crop_3957920785_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/0d69ffac8ffe563ef123bf975c088cab_10297264.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/e36534009a2e780908951b45f1f94947_96171829.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/a3b4985dbf0c490b6bfddd0890e64e77_23200213.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/e36534009a2e780908951b45f1f94947_22483443.png change filename to text .imagette268197711757726102/ imagette268197711757726102/1757725886_4049312_1383602699_604d662532d79ba626cb777db2a99408_rle_crop_3957920785_0.png.png imagette268197711757726102/1757725507_4031369_1383602504_a941db5a84e639401dcce3fc6d126935_rle_crop_3957919633_0.png.png imagette268197711757726102/1757726005_4056426_1383602699_604d662532d79ba626cb777db2a99408_rle_crop_3957920785_0.png.png imagette268197711757726102/1757726005_4056426_1383602699_604d662532d79ba626cb777db2a99408_rle_crop_3957920780_0.png.png imagette268197711757726102/1757725886_4049312_1383602699_604d662532d79ba626cb777db2a99408_rle_crop_3957920780_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/a3b4985dbf0c490b6bfddd0890e64e77_13559371.png imagette268197711757726102 26819772 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26819772 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1383602639: '1757725507_4031369_1383602506_be78f6ad77efae811f62a9a5f261a887_rle_crop_3957919623_0.png'} change filename to text .imagette268197721757726102/ imagette268197721757726102/1757725507_4031369_1383602506_be78f6ad77efae811f62a9a5f261a887_rle_crop_3957919623_0.png.png imagette268197771757726102/ imagette268197791757726102/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/879b0c3a1dba32e601ed923df41e5889_83147734.png imagette268197721757726102 26819777 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26819777 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette268197771757726102 26819779 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26819779 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette268197791757726102 26819773 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26819773 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1383602638: '1757725507_4031369_1383602506_be78f6ad77efae811f62a9a5f261a887_rle_crop_3957919624_0.png', 1383602934: '1757725987_4054710_1383602789_ff6ccc7f6268e7ea39f0af60423c9772_rle_crop_3957921087_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/7e2915b748d2672360639607017dc709_96203460.png change filename to text .imagette268197731757726102/ imagette268197731757726102/1757725987_4054710_1383602789_ff6ccc7f6268e7ea39f0af60423c9772_rle_crop_3957921087_0.png.png imagette268197731757726102/1757725507_4031369_1383602506_be78f6ad77efae811f62a9a5f261a887_rle_crop_3957919624_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/7119725063dfb33bc299ab86075676e8_97178271.png imagette268197731757726102 26819775 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26819775 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1383602722: '1757725645_4037909_1383602564_9528200001518634b0ccd26d54e81f01_rle_crop_3957920246_0.png', 1383602772: '1757725746_4043343_1383602612_ebcde0aa106dbb41dc41379208fdf8d5_rle_crop_3957920446_0.png', 1383602773: '1757725746_4043343_1383602612_ebcde0aa106dbb41dc41379208fdf8d5_rle_crop_3957920453_0.png', 1383602779: '1757725766_4043686_1383602628_30f53c24d3a8a3ca3a45258320ec4717_rle_crop_3957920509_0.png', 1383602932: '1757725987_4054710_1383602789_ff6ccc7f6268e7ea39f0af60423c9772_rle_crop_3957921089_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/cbd5eb04fe9dbd74c1090da2b0e0439b_65143171.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/2c06f00543a151abc8ab961e2511bb6b_55828267.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/6db047ea865887f399db813a25126944_19524545.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/82b2072584d6b09d82ace03f2f09c377_13215468.png change filename to text .imagette268197751757726102/ imagette268197751757726102/1757725987_4054710_1383602789_ff6ccc7f6268e7ea39f0af60423c9772_rle_crop_3957921089_0.png.png imagette268197751757726102/1757725746_4043343_1383602612_ebcde0aa106dbb41dc41379208fdf8d5_rle_crop_3957920453_0.png.png imagette268197751757726102/1757725645_4037909_1383602564_9528200001518634b0ccd26d54e81f01_rle_crop_3957920246_0.png.png imagette268197751757726102/1757725766_4043686_1383602628_30f53c24d3a8a3ca3a45258320ec4717_rle_crop_3957920509_0.png.png imagette268197751757726102/1757725746_4043343_1383602612_ebcde0aa106dbb41dc41379208fdf8d5_rle_crop_3957920446_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/746f728c3a05a763667491c265287cfc_56163053.png imagette268197751757726102 26819778 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26819778 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1383602634: '1757725507_4031369_1383602509_3f512e2d913e205a077de14927532021_rle_crop_3957919601_0.png', 1383602635: '1757725507_4031369_1383602507_be4e52fe979cd17602d8b92e165fe036_rle_crop_3957919617_0.png', 1383602711: '1757725627_4037482_1383602586_0b1314161b159d1c0b4aa2693c0ece61_rle_crop_3957920179_0.png', 1383602721: '1757725645_4037909_1383602564_9528200001518634b0ccd26d54e81f01_rle_crop_3957920251_0.png', 1383602766: '1757725746_4043343_1383602618_9c93318653c0e08c751bcbb69513508c_rle_crop_3957920418_0.png', 1383602767: '1757725746_4043343_1383602618_9c93318653c0e08c751bcbb69513508c_rle_crop_3957920416_0.png', 1383602768: '1757725746_4043343_1383602614_7a28a944fd59960a2972823b30c5988d_rle_crop_3957920431_0.png', 1383602769: '1757725746_4043343_1383602612_ebcde0aa106dbb41dc41379208fdf8d5_rle_crop_3957920451_0.png', 1383602770: '1757725746_4043343_1383602612_ebcde0aa106dbb41dc41379208fdf8d5_rle_crop_3957920456_0.png', 1383602777: '1757725766_4043686_1383602586_0b1314161b159d1c0b4aa2693c0ece61_rle_crop_3957920179_0.png', 1383602852: '1757725886_4049312_1383602699_604d662532d79ba626cb777db2a99408_rle_crop_3957920783_0.png', 1383602853: '1757725886_4049312_1383602699_604d662532d79ba626cb777db2a99408_rle_crop_3957920790_0.png', 1383602937: '1757726005_4056426_1383602699_604d662532d79ba626cb777db2a99408_rle_crop_3957920783_0.png', 1383602938: '1757726005_4056426_1383602699_604d662532d79ba626cb777db2a99408_rle_crop_3957920790_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/cf35103a7abba1df928707cc6efd3ae2_65207792.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/47483201b07ae20492c0745c4e8e251e_55725002.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/72e520d6e6daf54eb05145ad782c5aac_10743496.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/c7e293852067d0686580038b94f24571_66594355.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/7e438dfa62a181fe8a554034bf65220f_15913926.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/1875a6940583e4ad632ae2a86cbaf3a0_30732707.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/a5479c0edbf04c8f9f4c8718165e7895_47674271.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/95ffdd055f78074c92a66b39ec94eef4_9030592.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/d372c8a39e17e7a9d58a8c1f055644c4_72328305.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/72e520d6e6daf54eb05145ad782c5aac_18108734.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/5ed8ad9a54a1e0cf21c5cf7ed6f10a34_82550980.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/bb1140cabdec6d8839b9b3383c126648_65181319.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/5ed8ad9a54a1e0cf21c5cf7ed6f10a34_44234911.png change filename to text .imagette268197781757726103/ imagette268197781757726103/1757725886_4049312_1383602699_604d662532d79ba626cb777db2a99408_rle_crop_3957920783_0.png.png imagette268197781757726103/1757725507_4031369_1383602507_be4e52fe979cd17602d8b92e165fe036_rle_crop_3957919617_0.png.png imagette268197781757726103/1757725746_4043343_1383602618_9c93318653c0e08c751bcbb69513508c_rle_crop_3957920418_0.png.png imagette268197781757726103/1757726005_4056426_1383602699_604d662532d79ba626cb777db2a99408_rle_crop_3957920790_0.png.png imagette268197781757726103/1757725746_4043343_1383602612_ebcde0aa106dbb41dc41379208fdf8d5_rle_crop_3957920451_0.png.png imagette268197781757726103/1757725746_4043343_1383602614_7a28a944fd59960a2972823b30c5988d_rle_crop_3957920431_0.png.png imagette268197781757726103/1757725746_4043343_1383602618_9c93318653c0e08c751bcbb69513508c_rle_crop_3957920416_0.png.png imagette268197781757726103/1757725645_4037909_1383602564_9528200001518634b0ccd26d54e81f01_rle_crop_3957920251_0.png.png imagette268197781757726103/1757726005_4056426_1383602699_604d662532d79ba626cb777db2a99408_rle_crop_3957920783_0.png.png imagette268197781757726103/1757725746_4043343_1383602612_ebcde0aa106dbb41dc41379208fdf8d5_rle_crop_3957920456_0.png.png imagette268197781757726103/1757725886_4049312_1383602699_604d662532d79ba626cb777db2a99408_rle_crop_3957920790_0.png.png imagette268197781757726103/1757725627_4037482_1383602586_0b1314161b159d1c0b4aa2693c0ece61_rle_crop_3957920179_0.png.png imagette268197781757726103/1757725507_4031369_1383602509_3f512e2d913e205a077de14927532021_rle_crop_3957919601_0.png.png imagette268197781757726103/1757725766_4043686_1383602586_0b1314161b159d1c0b4aa2693c0ece61_rle_crop_3957920179_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/bb1140cabdec6d8839b9b3383c126648_2812512.png imagette268197781757726103 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=26819752 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/26819781,26819782,26819783,26819784,26819785,26819786,26819787,26819788,26819789,26819790,26819791,26819792?tags=metal,flou,cartonnette,autre_refus,kraft,Carton_brun,environnement,Carton_gris,papier,plastique,Teint_Dans_La_Masse,mal_croppe your option no_mail is active, we will not send the real mail to your client args[1383602951] : ('0.03337956459978524',) no score found for photo 1383602951 We are sending mail with results at report@fotonower.com args[1383602947] : ('0.03337956459978524',) no score found for photo 1383602947 We are sending mail with results at report@fotonower.com args[1383602945] : ('0.03337956459978524',) no score found for photo 1383602945 We are sending mail with results at report@fotonower.com args[1383602943] : ('0.03337956459978524',) no score found for photo 1383602943 We are sending mail with results at report@fotonower.com args[1383602920] : ('0.03337956459978524',) no score found for photo 1383602920 We are sending mail with results at report@fotonower.com args[1383602919] : ('0.03337956459978524',) no score found for photo 1383602919 We are sending mail with results at report@fotonower.com refus_total : 0.03337956459978524 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26819752 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_P26819752_13-09-2025_03_15_02.pdf results_Auto_P26819752_13-09-2025_03_15_02.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26819752_13-09-2025_03_15_02.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','26819752','results_Auto_P26819752_13-09-2025_03_15_02.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26819752_13-09-2025_03_15_02.pdf','pdf','','0.12','0.03337956459978524') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26819752]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1383602951, 1383602947, 1383602945, 1383602943, 1383602920, 1383602919] map_info['map_portfolio_photo'] : {26819752: [1383602951, 1383602947, 1383602945, 1383602943, 1383602920, 1383602919, 1383602862, 1383602860, 1383602841, 1383602836, 1383602833, 1383602832, 1383602830, 1383602792, 1383602789, 1383602786, 1383602785, 1383602783, 1383602751, 1383602750, 1383602729, 1383602726, 1383602725, 1383602701, 1383602699, 1383602697, 1383602688, 1383602685, 1383602682, 1383602678, 1383602669, 1383602628, 1383602624, 1383602618, 1383602614, 1383602612, 1383602590, 1383602588, 1383602586, 1383602565, 1383602564, 1383602563, 1383602514, 1383602509, 1383602507, 1383602506, 1383602504, 1383602471, 1383602469, 1383602459]} final : False mtd_id 4302 list_pids : [1383602951, 1383602947, 1383602945, 1383602943, 1383602920, 1383602919] 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, '3716411') ('4302', '26819752', '1383602951', None, None, None, None, None, '3716411') ('4302', None, None, None, None, None, None, None, '3716411') ('4302', '26819752', '1383602947', None, None, None, None, None, '3716411') ('4302', None, None, None, None, None, None, None, '3716411') ('4302', '26819752', '1383602945', None, None, None, None, None, '3716411') ('4302', None, None, None, None, None, None, None, '3716411') ('4302', '26819752', '1383602943', None, None, None, None, None, '3716411') ('4302', None, None, None, None, None, None, None, '3716411') ('4302', '26819752', '1383602920', None, None, None, None, None, '3716411') ('4302', None, None, None, None, None, None, None, '3716411') ('4302', '26819752', '1383602919', None, None, None, None, None, '3716411') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 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', '26819752', '1383602951', None, None, None, None, None, '3716411'), ('4302', '26819752', '1383602947', None, None, None, None, None, '3716411'), ('4302', '26819752', '1383602945', None, None, None, None, None, '3716411'), ('4302', '26819752', '1383602943', None, None, None, None, None, '3716411'), ('4302', '26819752', '1383602920', None, None, None, None, None, '3716411'), ('4302', '26819752', '1383602919', None, None, None, None, None, '3716411')] time used for this insertion : 0.20438575744628906 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.2790400981903076 time spend to save output : 0.20464205741882324 total time spend for step 4 : 3.483682155609131 step5:split_time_score Sat Sep 13 03:15:05 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['26819752'] 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 : [('26819752',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26819752) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1383602947: {'path': 'temp/1757726101_580744_1383602947_1b3d0ba79b9f7b8b7b9a93938f3b5636.jpg', 'extension': 'jpg'}, 1383602951: {'path': 'temp/1757726101_580744_1383602951_2bf2890e0693b53e9cf9f3f15dcc8b3a.jpg', 'extension': 'jpg'}, 1383602919: {'path': 'temp/1757726101_580744_1383602919_48d331e2a9d422a7461b625e12b1eafc.jpg', 'extension': 'jpg'}, 1383602920: {'path': 'temp/1757726101_580744_1383602920_1f858471b4c6ffbb2ea113f444c80bac.jpg', 'extension': 'jpg'}, 1383602943: {'path': 'temp/1757726101_580744_1383602943_92567c619cede627dec82671dd94a822.jpg', 'extension': 'jpg'}, 1383602945: {'path': 'temp/1757726101_580744_1383602945_4de4b87bc4c97030cb09ee73d00c39ad.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 = 26819752; (('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 ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 26819752 group by h (('03', 50),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26819752 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 (26819752) 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 (26819752) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 13092025 26819752 Nombre de photos uploadées : 50 / 23040 (0%) 13092025 26819752 Nombre de photos taguées (types de déchets): 0 / 50 (0%) 13092025 26819752 Nombre de photos taguées (volume) : 0 / 50 (0%) [{'photo_id': 1383602471, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/0cdc89d9ec6d898910f2811fad482ccf.jpg', 'username': None, 'uploaded_at': 1757725277, 'text': 'image_13092025_03_00_04_10136.jpg'}, {'photo_id': 1383602469, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/c25ff40fb13f706dacfc55dd1142abbc.jpg', 'username': None, 'uploaded_at': 1757725277, 'text': 'image_13092025_03_00_24_10135.jpg'}, {'photo_id': 1383602459, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/70aec67b92e403ba102b9ca4eecee8fe.jpg', 'username': None, 'uploaded_at': 1757725263, 'text': 'image_13092025_03_00_33_9128.jpg'}, {'photo_id': 1383602514, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/13/8f055ba7a4e82870c68d45b42f2e758c.jpg', 'username': None, 'uploaded_at': 1757725328, 'text': 'image_13092025_03_00_43_10134.jpg'}] 0 [] elapsed_time : load_data_split_time_score 2.86102294921875e-06 elapsed_time : order_list_meta_photo_and_scores 1.049041748046875e-05 ?????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.003281116485595703 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 26819752, '2025-09-13' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-09-13' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2280961,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.21210098266601562 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= 2280961 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2280961, 'dashboard_run_id': 2289031, 'mtr_portfolio_id': 26815062, 'dashboard_result_id': 15120688, '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_P26815062_13-09-2025_00_18_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26815100, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26815101, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26815102, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26815103, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26815104, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26815105, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26815106, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26815107, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26815108, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26815109, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26815110, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26815111, 'pht': 3726}}"}, {'dashboat_entry_day': 2280961, 'dashboard_run_id': 2289031, 'mtr_portfolio_id': 26815697, 'dashboard_result_id': 15120689, '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_P26815697_13-09-2025_00_37_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26815704, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26815705, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26815706, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26815707, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26815708, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26815709, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26815710, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26815711, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26815712, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26815713, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26815714, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26815715, 'pht': 3726}}"}, {'dashboat_entry_day': 2280961, 'dashboard_run_id': 2289031, 'mtr_portfolio_id': 26816243, 'dashboard_result_id': 15120690, '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_P26816243_13-09-2025_00_48_29.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26816289, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26816290, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26816291, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26816292, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26816293, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26816294, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26816295, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26816296, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26816297, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26816298, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26816299, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26816300, 'pht': 3726}}"}, {'dashboat_entry_day': 2280961, 'dashboard_run_id': 2289031, 'mtr_portfolio_id': 26816834, 'dashboard_result_id': 15120691, '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_P26816834_13-09-2025_01_34_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26816845, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26816846, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26816847, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26816848, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26816849, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26816850, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26816851, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26816852, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26816853, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26816854, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26816855, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26816856, 'pht': 3726}}"}, {'dashboat_entry_day': 2280961, 'dashboard_run_id': 2289031, 'mtr_portfolio_id': 26817728, 'dashboard_result_id': 15120692, '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_P26817728_13-09-2025_01_48_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26817731, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26817732, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26817733, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26817734, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26817735, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26817736, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26817737, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26817738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26817739, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26817740, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26817741, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26817742, 'pht': 3726}}"}, {'dashboat_entry_day': 2280961, 'dashboard_run_id': 2289031, 'mtr_portfolio_id': 26818070, 'dashboard_result_id': 15120693, '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_P26818070_13-09-2025_02_11_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26818076, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26818077, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26818078, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26818079, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26818080, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26818081, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26818082, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26818083, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26818084, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26818085, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26818086, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26818087, 'pht': 3726}}"}, {'dashboat_entry_day': 2280961, 'dashboard_run_id': 2289031, 'mtr_portfolio_id': 26818468, 'dashboard_result_id': 15120694, '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_P26818468_13-09-2025_02_18_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26818471, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26818472, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26818473, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26818474, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26818475, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26818476, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26818477, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26818478, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26818479, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26818480, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26818481, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26818482, 'pht': 3726}}"}, {'dashboat_entry_day': 2280961, 'dashboard_run_id': 2289031, 'mtr_portfolio_id': 26818596, 'dashboard_result_id': 15120695, '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_P26818596_13-09-2025_02_33_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26818599, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26818600, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26818601, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26818602, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26818603, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26818604, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26818605, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26818606, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26818607, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26818608, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26818609, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26818610, 'pht': 3726}}"}, {'dashboat_entry_day': 2280961, 'dashboard_run_id': 2289031, 'mtr_portfolio_id': 26818977, 'dashboard_result_id': 15120696, '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_P26818977_13-09-2025_02_48_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26818983, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26818984, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26818985, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26818986, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26818987, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26818988, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26818989, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26818990, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26818991, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26818992, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26818993, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26818994, 'pht': 3726}}"}, {'dashboat_entry_day': 2280961, 'dashboard_run_id': 2289031, 'mtr_portfolio_id': 26819383, 'dashboard_result_id': 15120697, '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_P26819383_13-09-2025_03_02_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26819389, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26819390, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26819391, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26819392, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26819393, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26819394, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26819395, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26819396, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26819397, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26819398, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26819399, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26819400, 'pht': 3726}}"}, {'dashboat_entry_day': 2280961, 'dashboard_run_id': 2289031, 'mtr_portfolio_id': 26819752, 'dashboard_result_id': 15120698, '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_P26819752_13-09-2025_03_13_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26819767, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26819769, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26819770, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26819771, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26819772, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26819773, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26819774, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26819775, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26819776, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26819777, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26819778, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26819779, '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 = 26815062 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': 3715693, 'mtr_portfolio_id': 26815062, 'created_at': datetime.datetime(2025, 9, 13, 0, 18, 58), 'result': '0.0474983149780897', 'result_long': None, 'result_double': None}] Qualite : 0.0474983149780897 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26815062 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26815062_13-09-2025_00_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26815062 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_P26815062_13-09-2025_00_18_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26815100, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26815101, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26815102, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26815103, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26815104, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26815105, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26815106, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26815107, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26815108, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26815109, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26815110, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26815111, 'pht': 3726}}" where mtr_portfolio_id = 26815062 and dashboard_run_id = 2289031 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`=26815062 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15120688, 0.0474983149780897, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26815062_13-09-2025_00_18_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26815100, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26815101, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26815102, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26815103, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26815104, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26815105, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26815106, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26815107, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26815108, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26815109, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26815110, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26815111, '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 = 26815697 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': 3715751, 'mtr_portfolio_id': 26815697, 'created_at': datetime.datetime(2025, 9, 13, 0, 37, 29), 'result': '0.059643097243093766', 'result_long': None, 'result_double': None}] Qualite : 0.059643097243093766 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26815697 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26815697_13-09-2025_00_37_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26815697 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_P26815697_13-09-2025_00_37_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26815704, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26815705, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26815706, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26815707, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26815708, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26815709, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26815710, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26815711, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26815712, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26815713, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26815714, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26815715, 'pht': 3726}}" where mtr_portfolio_id = 26815697 and dashboard_run_id = 2289031 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`=26815697 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15120689, 0.059643097243093766, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26815697_13-09-2025_00_37_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26815704, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26815705, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26815706, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26815707, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26815708, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26815709, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26815710, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26815711, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26815712, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26815713, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26815714, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26815715, '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 = 26816243 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': 3715826, 'mtr_portfolio_id': 26816243, 'created_at': datetime.datetime(2025, 9, 13, 0, 48, 29), 'result': '0.05248491001381296', 'result_long': None, 'result_double': None}] Qualite : 0.05248491001381296 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26816243 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26816243_13-09-2025_00_48_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26816243 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_P26816243_13-09-2025_00_48_29.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26816289, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26816290, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26816291, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26816292, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26816293, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26816294, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26816295, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26816296, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26816297, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26816298, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26816299, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26816300, 'pht': 3726}}" where mtr_portfolio_id = 26816243 and dashboard_run_id = 2289031 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`=26816243 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15120690, 0.05248491001381296, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26816243_13-09-2025_00_48_29.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26816289, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26816290, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26816291, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26816292, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26816293, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26816294, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26816295, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26816296, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26816297, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26816298, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26816299, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26816300, '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 = 26816834 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': 3715914, 'mtr_portfolio_id': 26816834, 'created_at': datetime.datetime(2025, 9, 13, 1, 34, 58), 'result': '0.03442522857592694', 'result_long': None, 'result_double': None}] Qualite : 0.03442522857592694 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26816834 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26816834_13-09-2025_01_34_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26816834 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_P26816834_13-09-2025_01_34_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26816845, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26816846, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26816847, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26816848, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26816849, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26816850, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26816851, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26816852, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26816853, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26816854, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26816855, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26816856, 'pht': 3726}}" where mtr_portfolio_id = 26816834 and dashboard_run_id = 2289031 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`=26816834 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15120691, 0.03442522857592694, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26816834_13-09-2025_01_34_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26816845, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26816846, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26816847, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26816848, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26816849, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26816850, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26816851, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26816852, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26816853, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26816854, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26816855, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26816856, '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 = 26817728 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': 3716095, 'mtr_portfolio_id': 26817728, 'created_at': datetime.datetime(2025, 9, 13, 1, 48, 56), 'result': '0.05199660081697772', 'result_long': None, 'result_double': None}] Qualite : 0.05199660081697772 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26817728 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26817728_13-09-2025_01_48_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26817728 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_P26817728_13-09-2025_01_48_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26817731, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26817732, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26817733, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26817734, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26817735, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26817736, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26817737, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26817738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26817739, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26817740, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26817741, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26817742, 'pht': 3726}}" where mtr_portfolio_id = 26817728 and dashboard_run_id = 2289031 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`=26817728 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15120692, 0.05199660081697772, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26817728_13-09-2025_01_48_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26817731, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26817732, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26817733, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26817734, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26817735, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26817736, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26817737, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26817738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26817739, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26817740, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26817741, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26817742, '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 = 26818070 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': 3716131, 'mtr_portfolio_id': 26818070, 'created_at': datetime.datetime(2025, 9, 13, 2, 11, 1), 'result': '0.03376596674172699', 'result_long': None, 'result_double': None}] Qualite : 0.03376596674172699 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26818070 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26818070_13-09-2025_02_11_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26818070 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_P26818070_13-09-2025_02_11_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26818076, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26818077, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26818078, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26818079, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26818080, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26818081, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26818082, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26818083, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26818084, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26818085, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26818086, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26818087, 'pht': 3726}}" where mtr_portfolio_id = 26818070 and dashboard_run_id = 2289031 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`=26818070 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15120693, 0.03376596674172699, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26818070_13-09-2025_02_11_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26818076, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26818077, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26818078, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26818079, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26818080, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26818081, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26818082, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26818083, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26818084, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26818085, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26818086, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26818087, '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 = 26818468 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': 3716197, 'mtr_portfolio_id': 26818468, 'created_at': datetime.datetime(2025, 9, 13, 2, 18, 32), 'result': '0.052508868215203564', 'result_long': None, 'result_double': None}] Qualite : 0.052508868215203564 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26818468 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26818468_13-09-2025_02_18_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26818468 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_P26818468_13-09-2025_02_18_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26818471, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26818472, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26818473, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26818474, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26818475, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26818476, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26818477, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26818478, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26818479, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26818480, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26818481, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26818482, 'pht': 3726}}" where mtr_portfolio_id = 26818468 and dashboard_run_id = 2289031 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`=26818468 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15120694, 0.052508868215203564, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26818468_13-09-2025_02_18_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26818471, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26818472, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26818473, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26818474, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26818475, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26818476, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26818477, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26818478, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26818479, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26818480, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26818481, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26818482, '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 = 26818596 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': 3716208, 'mtr_portfolio_id': 26818596, 'created_at': datetime.datetime(2025, 9, 13, 2, 33), 'result': '0.028334228718550618', 'result_long': None, 'result_double': None}] Qualite : 0.028334228718550618 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26818596 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26818596_13-09-2025_02_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26818596 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_P26818596_13-09-2025_02_33_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26818599, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26818600, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26818601, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26818602, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26818603, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26818604, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26818605, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26818606, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26818607, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26818608, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26818609, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26818610, 'pht': 3726}}" where mtr_portfolio_id = 26818596 and dashboard_run_id = 2289031 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`=26818596 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15120695, 0.028334228718550618, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26818596_13-09-2025_02_33_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26818599, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26818600, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26818601, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26818602, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26818603, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26818604, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26818605, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26818606, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26818607, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26818608, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26818609, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26818610, '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 = 26818977 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': 3716262, 'mtr_portfolio_id': 26818977, 'created_at': datetime.datetime(2025, 9, 13, 2, 48, 59), 'result': '0.025541722276294653', 'result_long': None, 'result_double': None}] Qualite : 0.025541722276294653 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26818977 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26818977_13-09-2025_02_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26818977 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_P26818977_13-09-2025_02_48_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26818983, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26818984, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26818985, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26818986, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26818987, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26818988, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26818989, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26818990, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26818991, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26818992, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26818993, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26818994, 'pht': 3726}}" where mtr_portfolio_id = 26818977 and dashboard_run_id = 2289031 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`=26818977 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15120696, 0.025541722276294653, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26818977_13-09-2025_02_48_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26818983, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26818984, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26818985, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26818986, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26818987, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26818988, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26818989, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26818990, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26818991, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26818992, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26818993, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26818994, '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 = 26819383 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': 3716323, 'mtr_portfolio_id': 26819383, 'created_at': datetime.datetime(2025, 9, 13, 3, 2, 57), 'result': '0.025197836256206453', 'result_long': None, 'result_double': None}] Qualite : 0.025197836256206453 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26819383 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26819383_13-09-2025_03_02_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26819383 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_P26819383_13-09-2025_03_02_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26819389, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26819390, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26819391, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26819392, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26819393, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26819394, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26819395, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26819396, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26819397, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26819398, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26819399, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26819400, 'pht': 3726}}" where mtr_portfolio_id = 26819383 and dashboard_run_id = 2289031 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`=26819383 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15120697, 0.025197836256206453, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26819383_13-09-2025_03_02_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26819389, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26819390, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26819391, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26819392, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26819393, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26819394, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26819395, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26819396, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26819397, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26819398, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26819399, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26819400, '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 = 26819752 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': 3716411, 'mtr_portfolio_id': 26819752, 'created_at': datetime.datetime(2025, 9, 13, 3, 15, 1), 'result': '0.03337956459978524', 'result_long': None, 'result_double': None}] Qualite : 0.03337956459978524 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26819752 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26819752_13-09-2025_03_15_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26819752 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_P26819752_13-09-2025_03_15_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26819767, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26819769, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26819770, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26819771, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26819772, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26819773, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26819774, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26819775, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26819776, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26819777, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26819778, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26819779, 'pht': 3726}}" where mtr_portfolio_id = 26819752 and dashboard_run_id = 2289031 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`=26819752 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15120698, 0.03337956459978524, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26819752_13-09-2025_03_15_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26819767, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26819769, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26819770, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26819771, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26819772, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26819773, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26819774, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26819775, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26819776, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26819777, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26819778, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26819779, '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 (26815062,26815697,26816243,26816834,26817728,26818070,26818468,26818596,26818977,26819383,26819752) result : ((1383587771,), (1383587822,), (1383587863,), (1383587889,), (1383588188,), (1383588190,), (1383588192,), (1383588306,), (1383588310,), (1383588315,), (1383588319,), (1383588331,), (1383588334,), (1383588342,), (1383588343,), (1383588344,), (1383588355,), (1383588370,), (1383588399,), (1383588401,), (1383588402,), (1383588403,), (1383588408,), (1383588440,), (1383588442,), (1383588445,), (1383588448,), (1383588474,), (1383588476,), (1383588482,), (1383588495,), (1383588504,), (1383588508,), (1383588534,), (1383588624,), (1383588625,), (1383588626,), (1383588649,), (1383588651,), (1383588652,), (1383588654,), (1383588658,), (1383588662,), (1383588677,), (1383588679,), (1383588681,), (1383588685,), (1383588697,), (1383588984,), (1383589009,), (1383589034,), (1383589408,), (1383589436,), (1383589468,), (1383589492,), (1383589515,), (1383589818,), (1383589840,), (1383589867,), (1383589895,), (1383589923,), (1383589952,), (1383590051,), (1383590078,), (1383590095,), (1383590099,), (1383590101,), (1383590104,), (1383590108,), (1383590146,), (1383590177,), (1383590201,), (1383590505,), (1383590631,), (1383590460,), (1383590484,), (1383590500,), (1383590502,), (1383590601,), (1383590602,), (1383590604,), (1383590607,), (1383590611,), (1383590615,), (1383590623,), (1383590627,), (1383590630,), (1383590644,), (1383590646,), (1383590649,), (1383590653,), (1383590665,), (1383590666,), (1383590667,), (1383590669,), (1383590672,), (1383590939,), (1383590969,), (1383590998,), (1383591026,), (1383591350,), (1383591378,), (1383591403,), (1383591428,), (1383591738,), (1383591763,), (1383591787,), (1383591816,), (1383592143,), (1383592144,), (1383592147,), (1383592150,), (1383592154,), (1383592157,), (1383592173,), (1383592175,), (1383592181,), (1383592183,), (1383592185,), (1383592188,), (1383592463,), (1383592486,), (1383592529,), (1383592543,), (1383592546,), (1383592730,), (1383592755,), (1383592779,), (1383592808,), (1383592838,), (1383593135,), (1383593166,), (1383593193,), (1383593223,), (1383593315,), (1383593444,), (1383593539,), (1383593580,), (1383593624,), (1383593628,), (1383593633,), (1383593637,), (1383593774,), (1383593786,), (1383593789,), (1383593816,), (1383593826,), (1383593855,), (1383593856,), (1383593858,), (1383593860,), (1383593863,), (1383593901,), (1383593905,), (1383593930,), (1383593933,), (1383593949,), (1383593958,), (1383593994,), (1383593995,), (1383594031,), (1383594057,), (1383593889,), (1383593891,), (1383593893,), (1383593897,), (1383593989,), (1383593990,), (1383593991,), (1383593992,), (1383594008,), (1383594024,), (1383594027,), (1383594029,), (1383594030,), (1383594042,), (1383594044,), (1383594047,), (1383594051,), (1383594054,), (1383594073,), (1383594074,), (1383594075,), (1383594077,), (1383594362,), (1383594391,), (1383594416,), (1383594441,), (1383594469,), (1383594763,), (1383594787,), (1383594815,), (1383594842,), (1383594873,), (1383594901,), (1383595009,), (1383595035,), (1383595064,), (1383595066,), (1383595146,), (1383595180,), (1383595227,), (1383595282,), (1383595683,), (1383595710,), (1383595734,), (1383595763,), (1383595791,), (1383595822,), (1383596075,), (1383596100,), (1383596125,), (1383596140,), (1383596392,), (1383596424,), (1383596447,), (1383596490,), (1383596835,), (1383596865,), (1383596892,), (1383596919,), (1383597180,), (1383597203,), (1383597231,), (1383597258,), (1383597284,), (1383597303,), (1383597346,), (1383597362,), (1383597367,), (1383597377,), (1383597380,), (1383597382,), (1383597386,), (1383597392,), (1383597394,), (1383597409,), (1383597410,), (1383597411,), (1383597414,), (1383597417,), (1383597421,), (1383597447,), (1383597494,), (1383597443,), (1383597445,), (1383597465,), (1383597466,), (1383597469,), (1383597472,), (1383597475,), (1383597478,), (1383597498,), (1383597499,), (1383597500,), (1383597502,), (1383597506,), (1383597510,), (1383597525,), (1383597527,), (1383597528,), (1383597529,), (1383597559,), (1383597564,), (1383597565,), (1383597597,), (1383597599,), (1383597600,), (1383597603,), (1383597608,), (1383597612,), (1383597640,), (1383597646,), (1383597666,), (1383597667,), (1383597668,), (1383597670,), (1383597673,), (1383597676,), (1383597698,), (1383597707,), (1383597795,), (1383597798,), (1383597801,), (1383597805,), (1383597809,), (1383597823,), (1383597824,), (1383597825,), (1383597848,), (1383597851,), (1383597855,), (1383597859,), (1383597868,), (1383597873,), (1383597881,), (1383597888,), (1383599233,), (1383599263,), (1383599230,), (1383599232,), (1383599250,), (1383599251,), (1383599252,), (1383599255,), (1383599258,), (1383599274,), (1383599300,), (1383599301,), (1383599302,), (1383599341,), (1383599343,), (1383599344,), (1383599356,), (1383599357,), (1383599358,), (1383599365,), (1383599375,), (1383599381,), (1383599412,), (1383599415,), (1383599416,), (1383599439,), (1383599441,), (1383599442,), (1383599443,), (1383599474,), (1383599476,), (1383599478,), (1383599510,), (1383599511,), (1383599512,), (1383599513,), (1383599542,), (1383599548,), (1383599549,), (1383599577,), (1383599578,), (1383599579,), (1383599585,), (1383599589,), (1383599592,), (1383599611,), (1383599639,), (1383599643,), (1383599645,), (1383599647,), (1383599649,), (1383599653,), (1383599671,), (1383599673,), (1383599675,), (1383599676,), (1383599680,), (1383599714,), (1383599779,), (1383599710,), (1383599712,), (1383599713,), (1383599728,), (1383599729,), (1383599734,), (1383599742,), (1383599747,), (1383599766,), (1383599788,), (1383599790,), (1383599792,), (1383599795,), (1383599799,), (1383599804,), (1383599816,), (1383599819,), (1383599824,), (1383599827,), (1383599845,), (1383599847,), (1383599849,), (1383599852,), (1383599870,), (1383600103,), (1383600502,), (1383600563,), (1383600565,), (1383600591,), (1383600593,), (1383600594,), (1383600620,), (1383600657,), (1383600661,), (1383600679,), (1383600687,), (1383600690,), (1383600697,), (1383600698,), (1383600702,), (1383600704,), (1383600707,), (1383600723,), (1383600724,), (1383600725,), (1383600727,), (1383600729,), (1383600752,), (1383600812,), (1383600750,), (1383600751,), (1383600779,), (1383600780,), (1383600782,), (1383600786,), (1383600790,), (1383600797,), (1383600808,), (1383600811,), (1383600815,), (1383600816,), (1383600818,), (1383600822,), (1383600826,), (1383600866,), (1383600868,), (1383600870,), (1383600874,), (1383600878,), (1383600882,), (1383600903,), (1383600904,), (1383600905,), (1383600907,), (1383600965,), (1383600967,), (1383600968,), (1383600971,), (1383600975,), (1383600980,), (1383601003,), (1383601004,), (1383601005,), (1383601014,), (1383601028,), (1383601050,), (1383601051,), (1383601053,), (1383601056,), (1383601058,), (1383601061,), (1383601077,), (1383601078,), (1383601079,), (1383601080,), (1383601081,), (1383601086,), (1383601089,), (1383601092,), (1383601096,), (1383601108,), (1383601110,), (1383601113,), (1383601117,), (1383601122,), (1383601125,), (1383601146,), (1383601149,), (1383601151,), (1383601153,), (1383601157,), (1383601161,), (1383601175,), (1383601176,), (1383601178,), (1383601182,), (1383601186,), (1383601188,), (1383601199,), (1383601201,), (1383601204,), (1383601211,), (1383601213,), (1383601214,), (1383601216,), (1383601220,), (1383601224,), (1383601228,), (1383601238,), (1383601240,), (1383601241,), (1383601243,), (1383601267,), (1383601268,), (1383601269,), (1383601272,), (1383601278,), (1383601282,), (1383601313,), (1383601309,), (1383601310,), (1383601311,), (1383601362,), (1383601373,), (1383601374,), (1383601376,), (1383601378,), (1383601381,), (1383601393,), (1383601394,), (1383601396,), (1383601400,), (1383601404,), (1383601408,), (1383601421,), (1383601422,), (1383601425,), (1383601431,), (1383601433,), (1383601439,), (1383601442,), (1383601445,), (1383601450,), (1383601468,), (1383601476,), (1383601477,), (1383601479,), (1383601483,), (1383601487,), (1383601505,), (1383601507,), (1383601508,), (1383601510,), (1383601513,), (1383601532,), (1383601533,), (1383601576,), (1383601578,), (1383601580,), (1383601600,), (1383601602,), (1383601603,), (1383601605,), (1383601609,), (1383601644,), (1383601648,), (1383601649,), (1383601651,), (1383601654,), (1383601658,), (1383601710,), (1383601711,), (1383601712,), (1383601715,), (1383601720,), (1383601739,), (1383601748,), (1383601753,), (1383601768,), (1383601809,), (1383601811,), (1383601813,), (1383601817,), (1383601822,), (1383601825,), (1383601837,), (1383601839,), (1383601841,), (1383601862,), (1383601863,), (1383601864,), (1383601866,), (1383601903,), (1383601985,), (1383601900,), (1383601902,), (1383601929,), (1383601930,), (1383601932,), (1383601936,), (1383601940,), (1383601945,), (1383601982,), (1383601989,), (1383601992,), (1383601993,), (1383601996,), (1383601999,), (1383602003,), (1383602022,), (1383602023,), (1383602025,), (1383602028,), (1383602055,), (1383602056,), (1383602057,), (1383602059,), (1383602063,), (1383602114,), (1383602115,), (1383602116,), (1383602119,), (1383602145,), (1383602152,), (1383602153,), (1383602155,), (1383602159,), (1383602173,), (1383602174,), (1383602175,), (1383602177,), (1383602198,), (1383602200,), (1383602202,), (1383602206,), (1383602211,), (1383602215,), (1383602226,), (1383602227,), (1383602228,), (1383602231,), (1383602236,), (1383602260,), (1383602262,), (1383602265,), (1383602269,), (1383602271,), (1383602303,), (1383602322,), (1383602328,), (1383602333,), (1383602338,), (1383602344,), (1383602370,), (1383602374,), (1383602375,), (1383602377,), (1383602382,), (1383602386,), (1383602390,), (1383602393,), (1383602397,), (1383602407,), (1383602412,), (1383602416,), (1383602420,), (1383602424,), (1383602431,), (1383602432,), (1383602433,), (1383602434,), (1383602435,), (1383602436,), (1383602439,), (1383602446,), (1383602475,), (1383602459,), (1383602469,), (1383602471,), (1383602504,), (1383602506,), (1383602507,), (1383602509,), (1383602514,), (1383602563,), (1383602564,), (1383602565,), (1383602586,), (1383602588,), (1383602590,), (1383602612,), (1383602614,), (1383602618,), (1383602624,), (1383602628,), (1383602669,), (1383602678,), (1383602682,), (1383602685,), (1383602688,), (1383602697,), (1383602699,), (1383602701,), (1383602725,), (1383602726,), (1383602729,), (1383602750,), (1383602751,), (1383602783,), (1383602785,), (1383602786,), (1383602789,), (1383602792,), (1383602830,), (1383602832,), (1383602833,), (1383602836,), (1383602841,), (1383602860,), (1383602862,), (1383602919,), (1383602920,), (1383602943,), (1383602945,), (1383602947,), (1383602951,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'13092025': {'nb_upload': 50, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26819752]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1383602951, 1383602947, 1383602945, 1383602943, 1383602920, 1383602919] map_info['map_portfolio_photo'] : {26819752: [1383602951, 1383602947, 1383602945, 1383602943, 1383602920, 1383602919, 1383602862, 1383602860, 1383602841, 1383602836, 1383602833, 1383602832, 1383602830, 1383602792, 1383602789, 1383602786, 1383602785, 1383602783, 1383602751, 1383602750, 1383602729, 1383602726, 1383602725, 1383602701, 1383602699, 1383602697, 1383602688, 1383602685, 1383602682, 1383602678, 1383602669, 1383602628, 1383602624, 1383602618, 1383602614, 1383602612, 1383602590, 1383602588, 1383602586, 1383602565, 1383602564, 1383602563, 1383602514, 1383602509, 1383602507, 1383602506, 1383602504, 1383602471, 1383602469, 1383602459]} final : True mtd_id 4302 list_pids : [1383602951, 1383602947, 1383602945, 1383602943, 1383602920, 1383602919] Looping around the photos to save general results len do output : 1 /26819752Didn'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, '3716411') ('4302', '26819752', '1383602951', None, None, None, None, None, '3716411') ('4302', None, None, None, None, None, None, None, '3716411') ('4302', '26819752', '1383602947', None, None, None, None, None, '3716411') ('4302', None, None, None, None, None, None, None, '3716411') ('4302', '26819752', '1383602945', None, None, None, None, None, '3716411') ('4302', None, None, None, None, None, None, None, '3716411') ('4302', '26819752', '1383602943', None, None, None, None, None, '3716411') ('4302', None, None, None, None, None, None, None, '3716411') ('4302', '26819752', '1383602920', None, None, None, None, None, '3716411') ('4302', None, None, None, None, None, None, None, '3716411') ('4302', '26819752', '1383602919', None, None, None, None, None, '3716411') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 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, '26819752', 'None', None, None, None, None, '3716411'), ('4302', '26819752', '1383602951', None, None, None, None, None, '3716411'), ('4302', '26819752', '1383602947', None, None, None, None, None, '3716411'), ('4302', '26819752', '1383602945', None, None, None, None, None, '3716411'), ('4302', '26819752', '1383602943', None, None, None, None, None, '3716411'), ('4302', '26819752', '1383602920', None, None, None, None, None, '3716411'), ('4302', '26819752', '1383602919', None, None, None, None, None, '3716411')] time used for this insertion : 0.07640337944030762 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.3623805046081543 time spend to save output : 0.07668685913085938 total time spend for step 5 : 1.4390673637390137 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 (3716411) 2.01user 2.40system 0:10.96elapsed 40%CPU (0avgtext+0avgdata 157976maxresident)k 15480inputs+6424outputs (103major+64128minor)pagefaults 0swaps