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 : 252627 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 (3489532) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3489532) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25836351 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3489532'] with mtr_portfolio_ids : ['25836351'] and first list_photo_ids : [] new path : /proc/252627/ Name: python3 Umask: 0002 State: R (running) Tgid: 252627 Ngid: 0 Pid: 252627 PPid: 252626 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 252627 NSpid: 252627 NSpgid: 250286 NSsid: 250286 VmPeak: 1106964 kB VmSize: 1106964 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98080 kB VmRSS: 98080 kB RssAnon: 59820 kB RssFile: 38260 kB RssShmem: 0 kB VmData: 865716 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 612 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: 51 nonvoluntary_ctxt_switches: 88 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '252627', 'Ngid': '0', 'Pid': '252627', 'PPid': '252626', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '252627', 'NSpid': '252627', 'NSpgid': '250286', 'NSsid': '250286', 'VmPeak': '1106964 kB', 'VmSize': '1106964 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98080 kB', 'VmRSS': '98080 kB', 'RssAnon': '59820 kB', 'RssFile': '38260 kB', 'RssShmem': '0 kB', 'VmData': '865716 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '612 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': '51', 'nonvoluntary_ctxt_switches': '88'} ('datou_batch_current', '252627', '1106964', '0', '1106964', '865716', '98080', b'', 'marlene', '3489532') 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 (25836351) 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 (3489532 ) ) 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 (25836351) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1376021055, 'portfolio_id': 25836351}, {'photo_id': 1376021027, 'portfolio_id': 25836351}, {'photo_id': 1376021003, 'portfolio_id': 25836351}, {'photo_id': 1376020740, 'portfolio_id': 25836351}, {'photo_id': 1376020717, 'portfolio_id': 25836351}, {'photo_id': 1376020693, 'portfolio_id': 25836351}, {'photo_id': 1376020670, 'portfolio_id': 25836351}, {'photo_id': 1376020638, 'portfolio_id': 25836351}, {'photo_id': 1376020593, 'portfolio_id': 25836351}, {'photo_id': 1376020126, 'portfolio_id': 25836351}, {'photo_id': 1376020079, 'portfolio_id': 25836351}, {'photo_id': 1376020030, 'portfolio_id': 25836351}, {'photo_id': 1376019982, 'portfolio_id': 25836351}, {'photo_id': 1376019834, 'portfolio_id': 25836351}, {'photo_id': 1376019558, 'portfolio_id': 25836351}, {'photo_id': 1376019532, 'portfolio_id': 25836351}, {'photo_id': 1376019507, 'portfolio_id': 25836351}, {'photo_id': 1376019362, 'portfolio_id': 25836351}, {'photo_id': 1376019336, 'portfolio_id': 25836351}, {'photo_id': 1376019312, 'portfolio_id': 25836351}, {'photo_id': 1376019285, 'portfolio_id': 25836351}] map_portfolio_id_photo_id: {25836351: [1376021055, 1376021027, 1376021003, 1376020740, 1376020717, 1376020693, 1376020670, 1376020638, 1376020593, 1376020126, 1376020079, 1376020030, 1376019982, 1376019834, 1376019558, 1376019532, 1376019507, 1376019362, 1376019336, 1376019312, 1376019285]} ##### 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.015249967575073242 #### 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 Aug 9 03:06:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25836351) 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 : 25836351 get user id for portfolio 25836351 get sub ptf for main ptf 25836351, type 3726 and hashtags ['metal', 'Carton_gris', 'plastique', 'cartonnette', 'flou', 'Carton_brun', 'Teint_Dans_La_Masse', 'autre_refus', 'papier', 'mal_croppe', 'environnement', 'kraft'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25836351 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','Carton_gris','plastique','cartonnette','flou','Carton_brun','Teint_Dans_La_Masse','autre_refus','papier','mal_croppe','environnement','kraft')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25836351 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','Carton_gris','plastique','cartonnette','flou','Carton_brun','Teint_Dans_La_Masse','autre_refus','papier','mal_croppe','environnement','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 25836351, 'sub_port_id': 25836390, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17410080, 'last_updated_at': datetime.datetime(2025, 8, 9, 3, 5, 31), 'last_updated_at_desc': datetime.datetime(2025, 8, 9, 3, 5, 31), 'last_updated_at_asc': datetime.datetime(2025, 8, 9, 3, 3, 28)}, 'cartonnette': {'main_port_id': 25836351, 'sub_port_id': 25836391, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17410081, 'last_updated_at': datetime.datetime(2025, 8, 9, 3, 5, 31), 'last_updated_at_desc': datetime.datetime(2025, 8, 9, 3, 5, 31), 'last_updated_at_asc': datetime.datetime(2025, 8, 9, 3, 3, 28)}, 'mal_croppe': {'main_port_id': 25836351, 'sub_port_id': 25836392, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17410082, 'last_updated_at': datetime.datetime(2025, 8, 9, 3, 5, 31), 'last_updated_at_desc': datetime.datetime(2025, 8, 9, 3, 5, 31), 'last_updated_at_asc': datetime.datetime(2025, 8, 9, 3, 3, 28)}, 'plastique': {'main_port_id': 25836351, 'sub_port_id': 25836393, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17410083, 'last_updated_at': datetime.datetime(2025, 8, 9, 3, 5, 31), 'last_updated_at_desc': datetime.datetime(2025, 8, 9, 3, 5, 31), 'last_updated_at_asc': datetime.datetime(2025, 8, 9, 3, 3, 28)}, 'autre_refus': {'main_port_id': 25836351, 'sub_port_id': 25836394, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17410084, 'last_updated_at': datetime.datetime(2025, 8, 9, 3, 5, 31), 'last_updated_at_desc': datetime.datetime(2025, 8, 9, 3, 5, 31), 'last_updated_at_asc': datetime.datetime(2025, 8, 9, 3, 3, 28)}, 'kraft': {'main_port_id': 25836351, 'sub_port_id': 25836395, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17410085, 'last_updated_at': datetime.datetime(2025, 8, 9, 3, 5, 31), 'last_updated_at_desc': datetime.datetime(2025, 8, 9, 3, 5, 31), 'last_updated_at_asc': datetime.datetime(2025, 8, 9, 3, 3, 28)}, 'Carton_gris': {'main_port_id': 25836351, 'sub_port_id': 25836396, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17410086, 'last_updated_at': datetime.datetime(2025, 8, 9, 3, 5, 31), 'last_updated_at_desc': datetime.datetime(2025, 8, 9, 3, 5, 31), 'last_updated_at_asc': datetime.datetime(2025, 8, 9, 3, 3, 28)}, 'papier': {'main_port_id': 25836351, 'sub_port_id': 25836397, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17410087, 'last_updated_at': datetime.datetime(2025, 8, 9, 3, 5, 31), 'last_updated_at_desc': datetime.datetime(2025, 8, 9, 3, 5, 31), 'last_updated_at_asc': datetime.datetime(2025, 8, 9, 3, 3, 28)}, 'environnement': {'main_port_id': 25836351, 'sub_port_id': 25836398, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17410088, 'last_updated_at': datetime.datetime(2025, 8, 9, 3, 5, 31), 'last_updated_at_desc': datetime.datetime(2025, 8, 9, 3, 5, 31), 'last_updated_at_asc': datetime.datetime(2025, 8, 9, 3, 3, 28)}, 'metal': {'main_port_id': 25836351, 'sub_port_id': 25836399, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17410089, 'last_updated_at': datetime.datetime(2025, 8, 9, 3, 5, 31), 'last_updated_at_desc': datetime.datetime(2025, 8, 9, 3, 5, 31), 'last_updated_at_asc': datetime.datetime(2025, 8, 9, 3, 3, 28)}, 'Carton_brun': {'main_port_id': 25836351, 'sub_port_id': 25836400, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17410090, 'last_updated_at': datetime.datetime(2025, 8, 9, 3, 5, 31), 'last_updated_at_desc': datetime.datetime(2025, 8, 9, 3, 5, 31), 'last_updated_at_asc': datetime.datetime(2025, 8, 9, 3, 3, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 25836351, 'sub_port_id': 25836401, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17410091, 'last_updated_at': datetime.datetime(2025, 8, 9, 3, 5, 31), 'last_updated_at_desc': datetime.datetime(2025, 8, 9, 3, 5, 31), 'last_updated_at_asc': datetime.datetime(2025, 8, 9, 3, 3, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25836390 , 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=25836351 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 (25836390) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25836351) result : ((1376019285,), (1376019312,), (1376019336,), (1376019362,), (1376019507,), (1376019532,), (1376019558,), (1376019834,), (1376019982,), (1376020030,), (1376020079,), (1376020126,), (1376020593,), (1376020638,), (1376020670,), (1376020693,), (1376020717,), (1376020740,), (1376021003,), (1376021027,), (1376021055,)) 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 25836391 , 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=25836351 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 (25836391) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25836351) result : ((1376019285,), (1376019312,), (1376019336,), (1376019362,), (1376019507,), (1376019532,), (1376019558,), (1376019834,), (1376019982,), (1376020030,), (1376020079,), (1376020126,), (1376020593,), (1376020638,), (1376020670,), (1376020693,), (1376020717,), (1376020740,), (1376021003,), (1376021027,), (1376021055,)) 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 25836392 , 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=25836351 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 (25836392) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25836351) result : ((1376019285,), (1376019312,), (1376019336,), (1376019362,), (1376019507,), (1376019532,), (1376019558,), (1376019834,), (1376019982,), (1376020030,), (1376020079,), (1376020126,), (1376020593,), (1376020638,), (1376020670,), (1376020693,), (1376020717,), (1376020740,), (1376021003,), (1376021027,), (1376021055,)) 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 25836393 , 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=25836351 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 (25836393) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25836351) result : ((1376019285,), (1376019312,), (1376019336,), (1376019362,), (1376019507,), (1376019532,), (1376019558,), (1376019834,), (1376019982,), (1376020030,), (1376020079,), (1376020126,), (1376020593,), (1376020638,), (1376020670,), (1376020693,), (1376020717,), (1376020740,), (1376021003,), (1376021027,), (1376021055,)) 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 25836394 , 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=25836351 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 (25836394) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25836351) result : ((1376019285,), (1376019312,), (1376019336,), (1376019362,), (1376019507,), (1376019532,), (1376019558,), (1376019834,), (1376019982,), (1376020030,), (1376020079,), (1376020126,), (1376020593,), (1376020638,), (1376020670,), (1376020693,), (1376020717,), (1376020740,), (1376021003,), (1376021027,), (1376021055,)) 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 25836395 , 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=25836351 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 (25836395) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25836351) result : ((1376019285,), (1376019312,), (1376019336,), (1376019362,), (1376019507,), (1376019532,), (1376019558,), (1376019834,), (1376019982,), (1376020030,), (1376020079,), (1376020126,), (1376020593,), (1376020638,), (1376020670,), (1376020693,), (1376020717,), (1376020740,), (1376021003,), (1376021027,), (1376021055,)) 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 25836396 , 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=25836351 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 (25836396) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25836351) result : ((1376019285,), (1376019312,), (1376019336,), (1376019362,), (1376019507,), (1376019532,), (1376019558,), (1376019834,), (1376019982,), (1376020030,), (1376020079,), (1376020126,), (1376020593,), (1376020638,), (1376020670,), (1376020693,), (1376020717,), (1376020740,), (1376021003,), (1376021027,), (1376021055,)) 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 25836397 , 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=25836351 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 (25836397) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25836351) result : ((1376019285,), (1376019312,), (1376019336,), (1376019362,), (1376019507,), (1376019532,), (1376019558,), (1376019834,), (1376019982,), (1376020030,), (1376020079,), (1376020126,), (1376020593,), (1376020638,), (1376020670,), (1376020693,), (1376020717,), (1376020740,), (1376021003,), (1376021027,), (1376021055,)) 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 25836398 , 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=25836351 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 (25836398) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25836351) result : ((1376019285,), (1376019312,), (1376019336,), (1376019362,), (1376019507,), (1376019532,), (1376019558,), (1376019834,), (1376019982,), (1376020030,), (1376020079,), (1376020126,), (1376020593,), (1376020638,), (1376020670,), (1376020693,), (1376020717,), (1376020740,), (1376021003,), (1376021027,), (1376021055,)) 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 25836399 , 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=25836351 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 (25836399) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25836351) result : ((1376019285,), (1376019312,), (1376019336,), (1376019362,), (1376019507,), (1376019532,), (1376019558,), (1376019834,), (1376019982,), (1376020030,), (1376020079,), (1376020126,), (1376020593,), (1376020638,), (1376020670,), (1376020693,), (1376020717,), (1376020740,), (1376021003,), (1376021027,), (1376021055,)) 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 25836400 , 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=25836351 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 (25836400) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25836351) result : ((1376019285,), (1376019312,), (1376019336,), (1376019362,), (1376019507,), (1376019532,), (1376019558,), (1376019834,), (1376019982,), (1376020030,), (1376020079,), (1376020126,), (1376020593,), (1376020638,), (1376020670,), (1376020693,), (1376020717,), (1376020740,), (1376021003,), (1376021027,), (1376021055,)) 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 25836401 , 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=25836351 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 (25836401) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25836351) result : ((1376019285,), (1376019312,), (1376019336,), (1376019362,), (1376019507,), (1376019532,), (1376019558,), (1376019834,), (1376019982,), (1376020030,), (1376020079,), (1376020126,), (1376020593,), (1376020638,), (1376020670,), (1376020693,), (1376020717,), (1376020740,), (1376021003,), (1376021027,), (1376021055,)) 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`=25836351 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','Carton_gris','plastique','cartonnette','flou','Carton_brun','Teint_Dans_La_Masse','autre_refus','papier','mal_croppe','environnement','kraft')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25836351 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','Carton_gris','plastique','cartonnette','flou','Carton_brun','Teint_Dans_La_Masse','autre_refus','papier','mal_croppe','environnement','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 25836351, 'sub_port_id': 25836403, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17410092, 'last_updated_at': datetime.datetime(2025, 8, 9, 3, 3, 35), 'last_updated_at_desc': datetime.datetime(2025, 8, 9, 3, 3, 35), 'last_updated_at_asc': datetime.datetime(2025, 8, 9, 3, 3, 35)}, 'cartonnette': {'main_port_id': 25836351, 'sub_port_id': 25836404, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17410093, 'last_updated_at': datetime.datetime(2025, 8, 9, 3, 3, 35), 'last_updated_at_desc': datetime.datetime(2025, 8, 9, 3, 3, 35), 'last_updated_at_asc': datetime.datetime(2025, 8, 9, 3, 3, 35)}, 'mal_croppe': {'main_port_id': 25836351, 'sub_port_id': 25836405, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17410094, 'last_updated_at': datetime.datetime(2025, 8, 9, 3, 3, 35), 'last_updated_at_desc': datetime.datetime(2025, 8, 9, 3, 3, 35), 'last_updated_at_asc': datetime.datetime(2025, 8, 9, 3, 3, 35)}, 'plastique': {'main_port_id': 25836351, 'sub_port_id': 25836406, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17410095, 'last_updated_at': datetime.datetime(2025, 8, 9, 3, 3, 35), 'last_updated_at_desc': datetime.datetime(2025, 8, 9, 3, 3, 35), 'last_updated_at_asc': datetime.datetime(2025, 8, 9, 3, 3, 35)}, 'autre_refus': {'main_port_id': 25836351, 'sub_port_id': 25836407, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17410096, 'last_updated_at': datetime.datetime(2025, 8, 9, 3, 3, 35), 'last_updated_at_desc': datetime.datetime(2025, 8, 9, 3, 3, 35), 'last_updated_at_asc': datetime.datetime(2025, 8, 9, 3, 3, 35)}, 'kraft': {'main_port_id': 25836351, 'sub_port_id': 25836408, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17410097, 'last_updated_at': datetime.datetime(2025, 8, 9, 3, 3, 35), 'last_updated_at_desc': datetime.datetime(2025, 8, 9, 3, 3, 35), 'last_updated_at_asc': datetime.datetime(2025, 8, 9, 3, 3, 35)}, 'Carton_gris': {'main_port_id': 25836351, 'sub_port_id': 25836409, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17410098, 'last_updated_at': datetime.datetime(2025, 8, 9, 3, 3, 35), 'last_updated_at_desc': datetime.datetime(2025, 8, 9, 3, 3, 35), 'last_updated_at_asc': datetime.datetime(2025, 8, 9, 3, 3, 35)}, 'papier': {'main_port_id': 25836351, 'sub_port_id': 25836410, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17410099, 'last_updated_at': datetime.datetime(2025, 8, 9, 3, 3, 35), 'last_updated_at_desc': datetime.datetime(2025, 8, 9, 3, 3, 35), 'last_updated_at_asc': datetime.datetime(2025, 8, 9, 3, 3, 35)}, 'environnement': {'main_port_id': 25836351, 'sub_port_id': 25836411, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17410100, 'last_updated_at': datetime.datetime(2025, 8, 9, 3, 3, 35), 'last_updated_at_desc': datetime.datetime(2025, 8, 9, 3, 3, 35), 'last_updated_at_asc': datetime.datetime(2025, 8, 9, 3, 3, 35)}, 'metal': {'main_port_id': 25836351, 'sub_port_id': 25836412, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17410101, 'last_updated_at': datetime.datetime(2025, 8, 9, 3, 3, 35), 'last_updated_at_desc': datetime.datetime(2025, 8, 9, 3, 3, 35), 'last_updated_at_asc': datetime.datetime(2025, 8, 9, 3, 3, 35)}, 'Carton_brun': {'main_port_id': 25836351, 'sub_port_id': 25836413, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17410102, 'last_updated_at': datetime.datetime(2025, 8, 9, 3, 3, 35), 'last_updated_at_desc': datetime.datetime(2025, 8, 9, 3, 3, 35), 'last_updated_at_asc': datetime.datetime(2025, 8, 9, 3, 3, 35)}, 'Teint_Dans_La_Masse': {'main_port_id': 25836351, 'sub_port_id': 25836414, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17410103, 'last_updated_at': datetime.datetime(2025, 8, 9, 3, 5, 31), 'last_updated_at_desc': datetime.datetime(2025, 8, 9, 3, 5, 31), 'last_updated_at_asc': datetime.datetime(2025, 8, 9, 3, 3, 35)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25836403,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25836390 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25836404,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25836391 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25836405,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25836392 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25836406,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25836393 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25836407,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25836394 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25836408,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25836395 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25836409,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25836396 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25836410,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25836397 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25836411,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25836398 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25836412,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25836399 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25836413,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25836400 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25836414,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25836401 lien utilise dans velours : https://www.fotonower.com/velours/25836403,25836404,25836405,25836406,25836407,25836408,25836409,25836410,25836411,25836412,25836413,25836414?tags=flou,cartonnette,mal_croppe,plastique,autre_refus,kraft,Carton_gris,papier,environnement,metal,Carton_brun,Teint_Dans_La_Masse After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25836351]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1376021055, 1376021027, 1376021003, 1376020740, 1376020717, 1376020693, 1376020670, 1376020638, 1376020593] map_info['map_portfolio_photo'] : {25836351: [1376021055, 1376021027, 1376021003, 1376020740, 1376020717, 1376020693, 1376020670, 1376020638, 1376020593, 1376020126, 1376020079, 1376020030, 1376019982, 1376019834, 1376019558, 1376019532, 1376019507, 1376019362, 1376019336, 1376019312, 1376019285]} final : False mtd_id 4302 list_pids : [1376021055, 1376021027, 1376021003, 1376020740, 1376020717, 1376020693, 1376020670, 1376020638, 1376020593] Looping around the photos to save general results len do output : 1 /25836351. 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, '3489532') ('4302', '25836351', '1376021055', None, None, None, None, None, '3489532') ('4302', None, None, None, None, None, None, None, '3489532') ('4302', '25836351', '1376021027', None, None, None, None, None, '3489532') ('4302', None, None, None, None, None, None, None, '3489532') ('4302', '25836351', '1376021003', None, None, None, None, None, '3489532') ('4302', None, None, None, None, None, None, None, '3489532') ('4302', '25836351', '1376020740', None, None, None, None, None, '3489532') ('4302', None, None, None, None, None, None, None, '3489532') ('4302', '25836351', '1376020717', None, None, None, None, None, '3489532') ('4302', None, None, None, None, None, None, None, '3489532') ('4302', '25836351', '1376020693', None, None, None, None, None, '3489532') ('4302', None, None, None, None, None, None, None, '3489532') ('4302', '25836351', '1376020670', None, None, None, None, None, '3489532') ('4302', None, None, None, None, None, None, None, '3489532') ('4302', '25836351', '1376020638', None, None, None, None, None, '3489532') ('4302', None, None, None, None, None, None, None, '3489532') ('4302', '25836351', '1376020593', None, None, None, None, None, '3489532') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '25836351', "{'flou': 25836390, 'cartonnette': 25836391, 'mal_croppe': 25836392, 'plastique': 25836393, 'autre_refus': 25836394, 'kraft': 25836395, 'Carton_gris': 25836396, 'papier': 25836397, 'environnement': 25836398, 'metal': 25836399, 'Carton_brun': 25836400, 'Teint_Dans_La_Masse': 25836401}", None, None, None, None, '3489532'), ('4302', '25836351', '1376021055', None, None, None, None, None, '3489532'), ('4302', '25836351', '1376021027', None, None, None, None, None, '3489532'), ('4302', '25836351', '1376021003', None, None, None, None, None, '3489532'), ('4302', '25836351', '1376020740', None, None, None, None, None, '3489532'), ('4302', '25836351', '1376020717', None, None, None, None, None, '3489532'), ('4302', '25836351', '1376020693', None, None, None, None, None, '3489532'), ('4302', '25836351', '1376020670', None, None, None, None, None, '3489532'), ('4302', '25836351', '1376020638', None, None, None, None, None, '3489532'), ('4302', '25836351', '1376020593', None, None, None, None, None, '3489532')] time used for this insertion : 0.013923883438110352 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4358320236206055 time spend to save output : 0.014214515686035156 total time spend for step 1 : 1.4500465393066406 step2:final Sat Aug 9 03:06:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25836351) 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 25836351 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1376019362,1376019336,1376019312,1376019285,1376019558,1376019532,1376019507,1376020126,1376020079,1376020030,1376019834,1376019982,1376020740,1376020717,1376020693,1376020670,1376020638,1376020593,1376021055,1376021027,1376021003); After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25836351]) Inside saveOutput : final : False verbose : True original output for save of step final : {1376021055: ('0.0',), 1376021027: ('0.0',), 1376021003: ('0.0',), 1376020740: ('0.0',), 1376020717: ('0.0',), 1376020693: ('0.0',), 1376020670: ('0.0',), 1376020638: ('0.0',), 1376020593: ('0.0',)} new output for save of step final : {1376021055: ('0.0',), 1376021027: ('0.0',), 1376021003: ('0.0',), 1376020740: ('0.0',), 1376020717: ('0.0',), 1376020693: ('0.0',), 1376020670: ('0.0',), 1376020638: ('0.0',), 1376020593: ('0.0',)} [1376021055, 1376021027, 1376021003, 1376020740, 1376020717, 1376020693, 1376020670, 1376020638, 1376020593] map_info['map_portfolio_photo'] : {25836351: [1376021055, 1376021027, 1376021003, 1376020740, 1376020717, 1376020693, 1376020670, 1376020638, 1376020593, 1376020126, 1376020079, 1376020030, 1376019982, 1376019834, 1376019558, 1376019532, 1376019507, 1376019362, 1376019336, 1376019312, 1376019285]} final : False mtd_id 4302 list_pids : [1376021055, 1376021027, 1376021003, 1376020740, 1376020717, 1376020693, 1376020670, 1376020638, 1376020593] Looping around the photos to save general results len do output : 9 /1376021055.Didn't retrieve data . /1376021027.Didn't retrieve data . /1376021003.Didn't retrieve data . /1376020740.Didn't retrieve data . /1376020717.Didn't retrieve data . /1376020693.Didn't retrieve data . /1376020670.Didn't retrieve data . /1376020638.Didn't retrieve data . /1376020593.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, '3489532') ('4302', '25836351', '1376021055', None, None, None, None, None, '3489532') ('4302', None, None, None, None, None, None, None, '3489532') ('4302', '25836351', '1376021027', None, None, None, None, None, '3489532') ('4302', None, None, None, None, None, None, None, '3489532') ('4302', '25836351', '1376021003', None, None, None, None, None, '3489532') ('4302', None, None, None, None, None, None, None, '3489532') ('4302', '25836351', '1376020740', None, None, None, None, None, '3489532') ('4302', None, None, None, None, None, None, None, '3489532') ('4302', '25836351', '1376020717', None, None, None, None, None, '3489532') ('4302', None, None, None, None, None, None, None, '3489532') ('4302', '25836351', '1376020693', None, None, None, None, None, '3489532') ('4302', None, None, None, None, None, None, None, '3489532') ('4302', '25836351', '1376020670', None, None, None, None, None, '3489532') ('4302', None, None, None, None, None, None, None, '3489532') ('4302', '25836351', '1376020638', None, None, None, None, None, '3489532') ('4302', None, None, None, None, None, None, None, '3489532') ('4302', '25836351', '1376020593', None, None, None, None, None, '3489532') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 27 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '25836351', '1376021055', '0.0', None, None, None, None, '3489532'), ('4302', '25836351', '1376021027', '0.0', None, None, None, None, '3489532'), ('4302', '25836351', '1376021003', '0.0', None, None, None, None, '3489532'), ('4302', '25836351', '1376020740', '0.0', None, None, None, None, '3489532'), ('4302', '25836351', '1376020717', '0.0', None, None, None, None, '3489532'), ('4302', '25836351', '1376020693', '0.0', None, None, None, None, '3489532'), ('4302', '25836351', '1376020670', '0.0', None, None, None, None, '3489532'), ('4302', '25836351', '1376020638', '0.0', None, None, None, None, '3489532'), ('4302', '25836351', '1376020593', '0.0', None, None, None, None, '3489532')] time used for this insertion : 0.012029647827148438 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.050026655197143555 time spend to save output : 0.012498855590820312 total time spend for step 2 : 0.06252551078796387 step3:velours_tree Sat Aug 9 03:06: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 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 : {25836351: [{'flou': 25836390, 'cartonnette': 25836391, 'mal_croppe': 25836392, 'plastique': 25836393, 'autre_refus': 25836394, 'kraft': 25836395, 'Carton_gris': 25836396, 'papier': 25836397, 'environnement': 25836398, 'metal': 25836399, 'Carton_brun': 25836400, 'Teint_Dans_La_Masse': 25836401}]} input_args_next_step : {25836351: ()} output_args : {25836351: [{'flou': 25836390, 'cartonnette': 25836391, 'mal_croppe': 25836392, 'plastique': 25836393, 'autre_refus': 25836394, 'kraft': 25836395, 'Carton_gris': 25836396, 'papier': 25836397, 'environnement': 25836398, 'metal': 25836399, 'Carton_brun': 25836400, 'Teint_Dans_La_Masse': 25836401}]} args : 25836351 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 : ({'flou': 25836390, 'cartonnette': 25836391, 'mal_croppe': 25836392, 'plastique': 25836393, 'autre_refus': 25836394, 'kraft': 25836395, 'Carton_gris': 25836396, 'papier': 25836397, 'environnement': 25836398, 'metal': 25836399, 'Carton_brun': 25836400, 'Teint_Dans_La_Masse': 25836401},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25836351) 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([25836351]) 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.31153416633605957 time spend to save output : 4.57763671875e-05 total time spend for step 3 : 0.31157994270324707 step4:send_mail_cod Sat Aug 9 03:06: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 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 : {1376021055: ('0.0',), 1376021027: ('0.0',), 1376021003: ('0.0',), 1376020740: ('0.0',), 1376020717: ('0.0',), 1376020693: ('0.0',), 1376020670: ('0.0',), 1376020638: ('0.0',), 1376020593: ('0.0',)} input_args_next_step : {1376021055: ()} output_args : {1376021055: ('0.0',), 1376021027: ('0.0',), 1376021003: ('0.0',), 1376020740: ('0.0',), 1376020717: ('0.0',), 1376020693: ('0.0',), 1376020670: ('0.0',), 1376020638: ('0.0',), 1376020593: ('0.0',)} args : 1376021055 depend.output_id : 0 input_args_next_step : {1376021055: ('0.0',), 1376021027: ()} output_args : {1376021055: ('0.0',), 1376021027: ('0.0',), 1376021003: ('0.0',), 1376020740: ('0.0',), 1376020717: ('0.0',), 1376020693: ('0.0',), 1376020670: ('0.0',), 1376020638: ('0.0',), 1376020593: ('0.0',)} args : 1376021027 depend.output_id : 0 input_args_next_step : {1376021055: ('0.0',), 1376021027: ('0.0',), 1376021003: ()} output_args : {1376021055: ('0.0',), 1376021027: ('0.0',), 1376021003: ('0.0',), 1376020740: ('0.0',), 1376020717: ('0.0',), 1376020693: ('0.0',), 1376020670: ('0.0',), 1376020638: ('0.0',), 1376020593: ('0.0',)} args : 1376021003 depend.output_id : 0 input_args_next_step : {1376021055: ('0.0',), 1376021027: ('0.0',), 1376021003: ('0.0',), 1376020740: ()} output_args : {1376021055: ('0.0',), 1376021027: ('0.0',), 1376021003: ('0.0',), 1376020740: ('0.0',), 1376020717: ('0.0',), 1376020693: ('0.0',), 1376020670: ('0.0',), 1376020638: ('0.0',), 1376020593: ('0.0',)} args : 1376020740 depend.output_id : 0 input_args_next_step : {1376021055: ('0.0',), 1376021027: ('0.0',), 1376021003: ('0.0',), 1376020740: ('0.0',), 1376020717: ()} output_args : {1376021055: ('0.0',), 1376021027: ('0.0',), 1376021003: ('0.0',), 1376020740: ('0.0',), 1376020717: ('0.0',), 1376020693: ('0.0',), 1376020670: ('0.0',), 1376020638: ('0.0',), 1376020593: ('0.0',)} args : 1376020717 depend.output_id : 0 input_args_next_step : {1376021055: ('0.0',), 1376021027: ('0.0',), 1376021003: ('0.0',), 1376020740: ('0.0',), 1376020717: ('0.0',), 1376020693: ()} output_args : {1376021055: ('0.0',), 1376021027: ('0.0',), 1376021003: ('0.0',), 1376020740: ('0.0',), 1376020717: ('0.0',), 1376020693: ('0.0',), 1376020670: ('0.0',), 1376020638: ('0.0',), 1376020593: ('0.0',)} args : 1376020693 depend.output_id : 0 input_args_next_step : {1376021055: ('0.0',), 1376021027: ('0.0',), 1376021003: ('0.0',), 1376020740: ('0.0',), 1376020717: ('0.0',), 1376020693: ('0.0',), 1376020670: ()} output_args : {1376021055: ('0.0',), 1376021027: ('0.0',), 1376021003: ('0.0',), 1376020740: ('0.0',), 1376020717: ('0.0',), 1376020693: ('0.0',), 1376020670: ('0.0',), 1376020638: ('0.0',), 1376020593: ('0.0',)} args : 1376020670 depend.output_id : 0 input_args_next_step : {1376021055: ('0.0',), 1376021027: ('0.0',), 1376021003: ('0.0',), 1376020740: ('0.0',), 1376020717: ('0.0',), 1376020693: ('0.0',), 1376020670: ('0.0',), 1376020638: ()} output_args : {1376021055: ('0.0',), 1376021027: ('0.0',), 1376021003: ('0.0',), 1376020740: ('0.0',), 1376020717: ('0.0',), 1376020693: ('0.0',), 1376020670: ('0.0',), 1376020638: ('0.0',), 1376020593: ('0.0',)} args : 1376020638 depend.output_id : 0 input_args_next_step : {1376021055: ('0.0',), 1376021027: ('0.0',), 1376021003: ('0.0',), 1376020740: ('0.0',), 1376020717: ('0.0',), 1376020693: ('0.0',), 1376020670: ('0.0',), 1376020638: ('0.0',), 1376020593: ()} output_args : {1376021055: ('0.0',), 1376021027: ('0.0',), 1376021003: ('0.0',), 1376020740: ('0.0',), 1376020717: ('0.0',), 1376020693: ('0.0',), 1376020670: ('0.0',), 1376020638: ('0.0',), 1376020593: ('0.0',)} args : 1376020593 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 : {25836351: [{'flou': 25836390, 'cartonnette': 25836391, 'mal_croppe': 25836392, 'plastique': 25836393, 'autre_refus': 25836394, 'kraft': 25836395, 'Carton_gris': 25836396, 'papier': 25836397, 'environnement': 25836398, 'metal': 25836399, 'Carton_brun': 25836400, 'Teint_Dans_La_Masse': 25836401}]} input_args_next_step : {1376021055: ('0.0',), 1376021027: ('0.0',), 1376021003: ('0.0',), 1376020740: ('0.0',), 1376020717: ('0.0',), 1376020693: ('0.0',), 1376020670: ('0.0',), 1376020638: ('0.0',), 1376020593: ('0.0',), 25836351: ()} output_args : {25836351: [{'flou': 25836390, 'cartonnette': 25836391, 'mal_croppe': 25836392, 'plastique': 25836393, 'autre_refus': 25836394, 'kraft': 25836395, 'Carton_gris': 25836396, 'papier': 25836397, 'environnement': 25836398, 'metal': 25836399, 'Carton_brun': 25836400, 'Teint_Dans_La_Masse': 25836401}]} args : 25836351 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :10, first value : ('0.0',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25836351) 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 (1376021055,1376021027,1376021003,1376020740,1376020717,1376020693,1376020670,1376020638,1376020593) Found this number of photos: 9 ##### Call download_photos : nb_thread : 5 begin to download photo : 1376020593 begin to download photo : 1376020670 begin to download photo : 1376020717 begin to download photo : 1376021003 begin to download photo : 1376021055 download finish for photo 1376021003 begin to download photo : 1376021027 download finish for photo 1376020593 begin to download photo : 1376020638 download finish for photo 1376021055 download finish for photo 1376020670 begin to download photo : 1376020693 download finish for photo 1376020717 begin to download photo : 1376020740 download finish for photo 1376021027 download finish for photo 1376020693 download finish for photo 1376020638 download finish for photo 1376020740 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette258363901754701619/ imagette258363911754701619/ imagette258363921754701619/ imagette258363931754701619/ imagette258363941754701619/ imagette258363951754701619/ imagette258363991754701619/ imagette258363961754701619/ imagette258364001754701619/ imagette258364011754701619/ length of list_filenames : 9 ; length of list_pids : 9 ; length of list_args : 9 results_Auto_P25836351_09-08-2025_03_06_59.pdf 25836390 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=25836390 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette258363901754701619 25836391 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=25836391 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette258363911754701619 25836392 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=25836392 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette258363921754701619 25836393 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=25836393 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette258363931754701619 25836394 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=25836394 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette258363941754701619 25836395 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=25836395 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette258363951754701619 25836399 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=25836399 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette258363991754701619 25836396 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=25836396 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette258363961754701619 25836400 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=25836400 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette258364001754701619 25836401 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=25836401 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette258364011754701619 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=25836351 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/25836403,25836404,25836405,25836406,25836407,25836408,25836409,25836410,25836411,25836412,25836413,25836414?tags=flou,cartonnette,mal_croppe,plastique,autre_refus,kraft,Carton_gris,papier,environnement,metal,Carton_brun,Teint_Dans_La_Masse your option no_mail is active, we will not send the real mail to your client args[1376021055] : ('0.0',) no score found for photo 1376021055 We are sending mail with results at report@fotonower.com args[1376021027] : ('0.0',) no score found for photo 1376021027 We are sending mail with results at report@fotonower.com args[1376021003] : ('0.0',) no score found for photo 1376021003 We are sending mail with results at report@fotonower.com args[1376020740] : ('0.0',) no score found for photo 1376020740 We are sending mail with results at report@fotonower.com args[1376020717] : ('0.0',) no score found for photo 1376020717 We are sending mail with results at report@fotonower.com args[1376020693] : ('0.0',) no score found for photo 1376020693 We are sending mail with results at report@fotonower.com args[1376020670] : ('0.0',) no score found for photo 1376020670 We are sending mail with results at report@fotonower.com args[1376020638] : ('0.0',) no score found for photo 1376020638 We are sending mail with results at report@fotonower.com args[1376020593] : ('0.0',) no score found for photo 1376020593 We are sending mail with results at report@fotonower.com refus_total : 0.0 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=25836351 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_P25836351_09-08-2025_03_06_59.pdf results_Auto_P25836351_09-08-2025_03_06_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25836351_09-08-2025_03_06_59.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','25836351','results_Auto_P25836351_09-08-2025_03_06_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25836351_09-08-2025_03_06_59.pdf','pdf','','0.09','0.0') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25836351]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1376021055, 1376021027, 1376021003, 1376020740, 1376020717, 1376020693, 1376020670, 1376020638, 1376020593] map_info['map_portfolio_photo'] : {25836351: [1376021055, 1376021027, 1376021003, 1376020740, 1376020717, 1376020693, 1376020670, 1376020638, 1376020593, 1376020126, 1376020079, 1376020030, 1376019982, 1376019834, 1376019558, 1376019532, 1376019507, 1376019362, 1376019336, 1376019312, 1376019285]} final : False mtd_id 4302 list_pids : [1376021055, 1376021027, 1376021003, 1376020740, 1376020717, 1376020693, 1376020670, 1376020638, 1376020593] 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, '3489532') ('4302', '25836351', '1376021055', None, None, None, None, None, '3489532') ('4302', None, None, None, None, None, None, None, '3489532') ('4302', '25836351', '1376021027', None, None, None, None, None, '3489532') ('4302', None, None, None, None, None, None, None, '3489532') ('4302', '25836351', '1376021003', None, None, None, None, None, '3489532') ('4302', None, None, None, None, None, None, None, '3489532') ('4302', '25836351', '1376020740', None, None, None, None, None, '3489532') ('4302', None, None, None, None, None, None, None, '3489532') ('4302', '25836351', '1376020717', None, None, None, None, None, '3489532') ('4302', None, None, None, None, None, None, None, '3489532') ('4302', '25836351', '1376020693', None, None, None, None, None, '3489532') ('4302', None, None, None, None, None, None, None, '3489532') ('4302', '25836351', '1376020670', None, None, None, None, None, '3489532') ('4302', None, None, None, None, None, None, None, '3489532') ('4302', '25836351', '1376020638', None, None, None, None, None, '3489532') ('4302', None, None, None, None, None, None, None, '3489532') ('4302', '25836351', '1376020593', None, None, None, None, None, '3489532') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '25836351', '1376021055', None, None, None, None, None, '3489532'), ('4302', '25836351', '1376021027', None, None, None, None, None, '3489532'), ('4302', '25836351', '1376021003', None, None, None, None, None, '3489532'), ('4302', '25836351', '1376020740', None, None, None, None, None, '3489532'), ('4302', '25836351', '1376020717', None, None, None, None, None, '3489532'), ('4302', '25836351', '1376020693', None, None, None, None, None, '3489532'), ('4302', '25836351', '1376020670', None, None, None, None, None, '3489532'), ('4302', '25836351', '1376020638', None, None, None, None, None, '3489532'), ('4302', '25836351', '1376020593', None, None, None, None, None, '3489532')] time used for this insertion : 0.01302194595336914 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.3830256462097168 time spend to save output : 0.01323246955871582 total time spend for step 4 : 1.3962581157684326 step5:split_time_score Sat Aug 9 03:07:00 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 : ['25836351'] 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 : [('25836351',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25836351) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1376021055: {'path': 'temp/1754701619_252627_1376021055_849593c119bd4513dba41155197390c6.jpg', 'extension': 'jpg'}, 1376021003: {'path': 'temp/1754701619_252627_1376021003_07737e7938e0dd4d59944b4ff3de3d57.jpg', 'extension': 'jpg'}, 1376021027: {'path': 'temp/1754701619_252627_1376021027_809e56e84ca85661ac264dac79448581.jpg', 'extension': 'jpg'}, 1376020670: {'path': 'temp/1754701619_252627_1376020670_df27e83b5d3be835590b4ef356199026.jpg', 'extension': 'jpg'}, 1376020693: {'path': 'temp/1754701619_252627_1376020693_3e3fb3950a820c3da3f9a60d33db1f29.jpg', 'extension': 'jpg'}, 1376020593: {'path': 'temp/1754701619_252627_1376020593_50f88bcdd218918db03812610c63ce36.jpg', 'extension': 'jpg'}, 1376020638: {'path': 'temp/1754701619_252627_1376020638_255311fa8986e977e8afd2d2edfb5469.jpg', 'extension': 'jpg'}, 1376020717: {'path': 'temp/1754701619_252627_1376020717_d71bdc5a1bc3f3fb62bb9e1c50a62e0c.jpg', 'extension': 'jpg'}, 1376020740: {'path': 'temp/1754701619_252627_1376020740_8234944199a034b7d3aa1f0aa3b05638.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 = 25836351; (('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 = 25836351 group by h (('03', 21),) 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=25836351 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 (25836351) 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 (25836351) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 09082025 25836351 Nombre de photos uploadées : 21 / 23040 (0%) 09082025 25836351 Nombre de photos taguées (types de déchets): 0 / 21 (0%) 09082025 25836351 Nombre de photos taguées (volume) : 0 / 21 (0%) [{'photo_id': 1376019362, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/9/8c057053bb4917d63226bf11192d6c35.jpg', 'username': None, 'uploaded_at': 1754701297, 'text': 'image_09082025_03_00_04_10140.jpg'}, {'photo_id': 1376019336, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/9/193c7883dbaf86c098562f4626684434.jpg', 'username': None, 'uploaded_at': 1754701297, 'text': 'image_09082025_03_00_14_10134.jpg'}, {'photo_id': 1376019312, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/9/30a75bd6d5db55a9c7bc798292d02191.jpg', 'username': None, 'uploaded_at': 1754701297, 'text': 'image_09082025_03_00_25_10135.jpg'}, {'photo_id': 1376019285, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/9/d0001f7d2fa53b25df0528b690c251e6.jpg', 'username': None, 'uploaded_at': 1754701297, 'text': 'image_09082025_03_00_34_9125.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.1920928955078125e-06 elapsed_time : order_list_meta_photo_and_scores 4.76837158203125e-06 ????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0010225772857666016 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 25836351, '2025-08-09' ) 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-08-09' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2092509,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.20432734489440918 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= 2092509 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2092509, 'dashboard_run_id': 2100493, 'mtr_portfolio_id': 25831279, 'dashboard_result_id': 13815088, '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_P25831279_09-08-2025_00_17_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25831286, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25831287, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25831288, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25831289, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25831290, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25831291, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25831292, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25831293, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25831294, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25831295, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25831296, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25831297, 'pht': 3726}}"}, {'dashboat_entry_day': 2092509, 'dashboard_run_id': 2100493, 'mtr_portfolio_id': 25831553, 'dashboard_result_id': 13815089, '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_P25831553_09-08-2025_00_33_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25831561, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25831562, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25831563, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25831564, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25831565, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25831566, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25831567, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25831568, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25831569, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25831570, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25831571, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25831572, 'pht': 3726}}"}, {'dashboat_entry_day': 2092509, 'dashboard_run_id': 2100493, 'mtr_portfolio_id': 25831945, 'dashboard_result_id': 13815090, '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_P25831945_09-08-2025_00_49_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25832014, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25832015, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25832016, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25832017, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25832018, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25832019, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25832020, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25832021, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25832022, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25832023, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25832024, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25832025, 'pht': 3726}}"}, {'dashboat_entry_day': 2092509, 'dashboard_run_id': 2100493, 'mtr_portfolio_id': 25832395, 'dashboard_result_id': 13815091, '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_P25832395_09-08-2025_01_33_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25832428, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25832429, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25832430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25832431, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25832432, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25832433, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25832434, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25832435, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25832436, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25832438, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25832439, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25832440, 'pht': 3726}}"}, {'dashboat_entry_day': 2092509, 'dashboard_run_id': 2100493, 'mtr_portfolio_id': 25833660, 'dashboard_result_id': 13815092, '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_P25833660_09-08-2025_01_46_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25833668, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25833669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25833670, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25833671, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25833672, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25833673, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25833674, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25833675, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25833676, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25833677, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25833678, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25833679, 'pht': 3726}}"}, {'dashboat_entry_day': 2092509, 'dashboard_run_id': 2100493, 'mtr_portfolio_id': 25833954, 'dashboard_result_id': 13815093, '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_P25833954_09-08-2025_02_02_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25833986, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25833987, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25833988, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25833989, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25833990, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25833991, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25833992, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25833993, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25833994, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25833995, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25833996, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25833997, 'pht': 3726}}"}, {'dashboat_entry_day': 2092509, 'dashboard_run_id': 2100493, 'mtr_portfolio_id': 25834271, 'dashboard_result_id': 13815094, '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_P25834271_09-08-2025_02_16_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25834287, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25834288, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25834289, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25834290, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25834291, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25834292, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25834293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25834294, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25834295, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25834296, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25834297, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25834298, 'pht': 3726}}"}, {'dashboat_entry_day': 2092509, 'dashboard_run_id': 2100493, 'mtr_portfolio_id': 25834794, 'dashboard_result_id': 13815095, '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_P25834794_09-08-2025_02_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25834832, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25834833, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25834834, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25834835, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25834836, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25834837, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25834838, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25834839, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25834840, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25834841, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25834842, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25834843, 'pht': 3726}}"}, {'dashboat_entry_day': 2092509, 'dashboard_run_id': 2100493, 'mtr_portfolio_id': 25835385, 'dashboard_result_id': 13815096, '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_P25835385_09-08-2025_02_48_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25835427, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25835428, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25835429, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25835430, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25835431, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25835432, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25835433, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25835434, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25835435, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25835436, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25835437, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25835438, 'pht': 3726}}"}, {'dashboat_entry_day': 2092509, 'dashboard_run_id': 2100493, 'mtr_portfolio_id': 25835945, 'dashboard_result_id': 13815097, '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_P25835945_09-08-2025_03_05_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25835978, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25835979, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25835980, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25835981, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25835982, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25835983, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25835984, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25835985, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25835986, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25835987, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25835988, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25835989, 'pht': 3726}}"}, {'dashboat_entry_day': 2092509, 'dashboard_run_id': 2100493, 'mtr_portfolio_id': 25836351, 'dashboard_result_id': 13815098, '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_P25836351_09-08-2025_03_05_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25836390, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25836391, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25836392, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25836393, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25836394, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25836395, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25836396, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25836397, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25836398, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25836399, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25836400, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25836401, '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 = 25831279 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': 3488050, 'mtr_portfolio_id': 25831279, 'created_at': datetime.datetime(2025, 8, 9, 0, 17, 1), 'result': '0.03584028283752547', 'result_long': None, 'result_double': None}] Qualite : 0.03584028283752547 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25831279 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25831279_09-08-2025_00_17_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25831279 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_P25831279_09-08-2025_00_17_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25831286, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25831287, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25831288, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25831289, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25831290, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25831291, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25831292, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25831293, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25831294, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25831295, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25831296, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25831297, 'pht': 3726}}" where mtr_portfolio_id = 25831279 and dashboard_run_id = 2100493 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`=25831279 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13815088, 0.03584028283752547, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25831279_09-08-2025_00_17_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25831286, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25831287, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25831288, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25831289, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25831290, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25831291, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25831292, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25831293, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25831294, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25831295, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25831296, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25831297, '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 = 25831553 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': 3488100, 'mtr_portfolio_id': 25831553, 'created_at': datetime.datetime(2025, 8, 9, 0, 33, 2), 'result': '0.050576561606317835', 'result_long': None, 'result_double': None}] Qualite : 0.050576561606317835 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25831553 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25831553_09-08-2025_00_33_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25831553 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_P25831553_09-08-2025_00_33_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25831561, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25831562, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25831563, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25831564, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25831565, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25831566, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25831567, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25831568, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25831569, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25831570, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25831571, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25831572, 'pht': 3726}}" where mtr_portfolio_id = 25831553 and dashboard_run_id = 2100493 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`=25831553 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13815089, 0.050576561606317835, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25831553_09-08-2025_00_33_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25831561, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25831562, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25831563, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25831564, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25831565, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25831566, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25831567, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25831568, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25831569, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25831570, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25831571, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25831572, '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 = 25831945 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': 3488192, 'mtr_portfolio_id': 25831945, 'created_at': datetime.datetime(2025, 8, 9, 0, 49, 1), 'result': '0.04300078148046064', 'result_long': None, 'result_double': None}] Qualite : 0.04300078148046064 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25831945 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25831945_09-08-2025_00_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25831945 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_P25831945_09-08-2025_00_49_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25832014, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25832015, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25832016, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25832017, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25832018, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25832019, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25832020, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25832021, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25832022, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25832023, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25832024, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25832025, 'pht': 3726}}" where mtr_portfolio_id = 25831945 and dashboard_run_id = 2100493 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`=25831945 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13815090, 0.04300078148046064, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25831945_09-08-2025_00_49_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25832014, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25832015, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25832016, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25832017, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25832018, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25832019, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25832020, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25832021, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25832022, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25832023, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25832024, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25832025, '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 = 25832395 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': 3488323, 'mtr_portfolio_id': 25832395, 'created_at': datetime.datetime(2025, 8, 9, 1, 33), 'result': '0.04885643775230168', 'result_long': None, 'result_double': None}] Qualite : 0.04885643775230168 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25832395 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25832395_09-08-2025_01_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25832395 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_P25832395_09-08-2025_01_33_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25832428, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25832429, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25832430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25832431, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25832432, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25832433, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25832434, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25832435, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25832436, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25832438, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25832439, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25832440, 'pht': 3726}}" where mtr_portfolio_id = 25832395 and dashboard_run_id = 2100493 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`=25832395 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13815091, 0.04885643775230168, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25832395_09-08-2025_01_33_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25832428, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25832429, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25832430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25832431, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25832432, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25832433, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25832434, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25832435, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25832436, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25832438, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25832439, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25832440, '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 = 25833660 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': 3488635, 'mtr_portfolio_id': 25833660, 'created_at': datetime.datetime(2025, 8, 9, 1, 46, 58), 'result': '0.04309153742237902', 'result_long': None, 'result_double': None}] Qualite : 0.04309153742237902 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25833660 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25833660_09-08-2025_01_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25833660 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_P25833660_09-08-2025_01_46_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25833668, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25833669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25833670, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25833671, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25833672, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25833673, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25833674, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25833675, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25833676, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25833677, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25833678, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25833679, 'pht': 3726}}" where mtr_portfolio_id = 25833660 and dashboard_run_id = 2100493 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`=25833660 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13815092, 0.04309153742237902, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25833660_09-08-2025_01_46_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25833668, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25833669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25833670, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25833671, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25833672, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25833673, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25833674, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25833675, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25833676, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25833677, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25833678, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25833679, '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 = 25833954 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': 3488699, 'mtr_portfolio_id': 25833954, 'created_at': datetime.datetime(2025, 8, 9, 2, 2, 57), 'result': '0.04923741822450803', 'result_long': None, 'result_double': None}] Qualite : 0.04923741822450803 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25833954 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25833954_09-08-2025_02_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25833954 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_P25833954_09-08-2025_02_02_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25833986, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25833987, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25833988, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25833989, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25833990, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25833991, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25833992, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25833993, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25833994, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25833995, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25833996, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25833997, 'pht': 3726}}" where mtr_portfolio_id = 25833954 and dashboard_run_id = 2100493 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`=25833954 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13815093, 0.04923741822450803, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25833954_09-08-2025_02_02_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25833986, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25833987, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25833988, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25833989, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25833990, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25833991, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25833992, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25833993, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25833994, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25833995, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25833996, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25833997, '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 = 25834271 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': 3488807, 'mtr_portfolio_id': 25834271, 'created_at': datetime.datetime(2025, 8, 9, 2, 16, 58), 'result': '0.08804082577723758', 'result_long': None, 'result_double': None}] Qualite : 0.08804082577723758 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25834271 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25834271_09-08-2025_02_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25834271 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_P25834271_09-08-2025_02_16_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25834287, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25834288, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25834289, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25834290, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25834291, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25834292, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25834293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25834294, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25834295, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25834296, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25834297, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25834298, 'pht': 3726}}" where mtr_portfolio_id = 25834271 and dashboard_run_id = 2100493 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`=25834271 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13815094, 0.08804082577723758, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25834271_09-08-2025_02_16_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25834287, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25834288, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25834289, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25834290, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25834291, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25834292, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25834293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25834294, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25834295, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25834296, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25834297, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25834298, '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 = 25834794 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': 3488895, 'mtr_portfolio_id': 25834794, 'created_at': datetime.datetime(2025, 8, 9, 2, 32, 58), 'result': '0.04312003623298692', 'result_long': None, 'result_double': None}] Qualite : 0.04312003623298692 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25834794 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25834794_09-08-2025_02_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25834794 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_P25834794_09-08-2025_02_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25834832, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25834833, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25834834, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25834835, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25834836, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25834837, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25834838, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25834839, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25834840, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25834841, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25834842, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25834843, 'pht': 3726}}" where mtr_portfolio_id = 25834794 and dashboard_run_id = 2100495 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`=25834794 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13815095, 0.04312003623298692, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25834794_09-08-2025_02_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25834832, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25834833, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25834834, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25834835, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25834836, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25834837, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25834838, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25834839, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25834840, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25834841, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25834842, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25834843, '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 = 25835385 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': 3489111, 'mtr_portfolio_id': 25835385, 'created_at': datetime.datetime(2025, 8, 9, 2, 48, 58), 'result': '0.05109000312524347', 'result_long': None, 'result_double': None}] Qualite : 0.05109000312524347 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25835385 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25835385_09-08-2025_02_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25835385 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_P25835385_09-08-2025_02_48_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25835427, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25835428, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25835429, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25835430, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25835431, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25835432, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25835433, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25835434, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25835435, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25835436, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25835437, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25835438, 'pht': 3726}}" where mtr_portfolio_id = 25835385 and dashboard_run_id = 2100495 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`=25835385 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13815096, 0.05109000312524347, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25835385_09-08-2025_02_48_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25835427, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25835428, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25835429, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25835430, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25835431, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25835432, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25835433, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25835434, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25835435, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25835436, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25835437, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25835438, '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 = 25835945 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': 3489334, 'mtr_portfolio_id': 25835945, 'created_at': datetime.datetime(2025, 8, 9, 3, 4, 59), 'result': '0.06429109873132419', 'result_long': None, 'result_double': None}] Qualite : 0.06429109873132419 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25835945 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25835945_09-08-2025_03_05_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25835945 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_P25835945_09-08-2025_03_05_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25835978, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25835979, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25835980, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25835981, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25835982, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25835983, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25835984, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25835985, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25835986, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25835987, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25835988, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25835989, 'pht': 3726}}" where mtr_portfolio_id = 25835945 and dashboard_run_id = 2100495 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`=25835945 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13815097, 0.06429109873132419, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25835945_09-08-2025_03_05_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25835978, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25835979, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25835980, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25835981, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25835982, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25835983, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25835984, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25835985, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25835986, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25835987, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25835988, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25835989, '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 = 25836351 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 25836351 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 25836351 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25836351 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25836351 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25836351 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25836351_09-08-2025_03_06_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25836351 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_P25836351_09-08-2025_03_06_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25836390, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25836391, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25836392, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25836393, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25836394, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25836395, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25836396, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25836397, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25836398, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25836399, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25836400, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25836401, 'pht': 3726}}" where mtr_portfolio_id = 25836351 and dashboard_run_id = 2100495 SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25831279,25831553,25831945,25832395,25833660,25833954,25834271,25834794,25835385,25835945,25836351) result : ((1375996266,), (1375996270,), (1375996420,), (1375996439,), (1375996461,), (1375996482,), (1375996500,), (1375996816,), (1375996868,), (1375996910,), (1375996958,), (1375996997,), (1375997030,), (1375997304,), (1375997336,), (1375997367,), (1375997401,), (1375997951,), (1375998029,), (1375998080,), (1375998693,), (1375998755,), (1375998829,), (1375998892,), (1375998946,), (1375998996,), (1375999365,), (1375999392,), (1375999409,), (1375999429,), (1375999598,), (1375999623,), (1375999643,), (1376000063,), (1376000096,), (1376000128,), (1376000165,), (1376000208,), (1376000528,), (1376000545,), (1376000569,), (1376000606,), (1376000642,), (1376000835,), (1376000854,), (1376000866,), (1376000867,), (1376000882,), (1376000934,), (1376000935,), (1376000937,), (1376000956,), (1376000959,), (1376000961,), (1376000962,), (1376000964,), (1376000965,), (1376000986,), (1376000990,), (1376000991,), (1376000995,), (1376000998,), (1376001000,), (1376001005,), (1376001008,), (1376001012,), (1376001014,), (1376001022,), (1376001025,), (1376001030,), (1376001033,), (1376001058,), (1376001046,), (1376001048,), (1376001052,), (1376001054,), (1376001072,), (1376001073,), (1376001075,), (1376001077,), (1376001096,), (1376001099,), (1376001101,), (1376001104,), (1376001107,), (1376001121,), (1376001124,), (1376001126,), (1376001160,), (1376001166,), (1376001167,), (1376001170,), (1376001174,), (1376001178,), (1376001211,), (1376001230,), (1376001246,), (1376001264,), (1376001283,), (1376001303,), (1376001378,), (1376001396,), (1376001418,), (1376001444,), (1376001476,), (1376001498,), (1376001566,), (1376001588,), (1376001765,), (1376001783,), (1376001802,), (1376001819,), (1376001844,), (1376002034,), (1376002054,), (1376002075,), (1376002095,), (1376002117,), (1376002138,), (1376002204,), (1376002224,), (1376002242,), (1376002341,), (1376002359,), (1376002380,), (1376002389,), (1376002655,), (1376002686,), (1376002689,), (1376002692,), (1376002711,), (1376002713,), (1376002715,), (1376002717,), (1376002720,), (1376002746,), (1376002748,), (1376002749,), (1376002751,), (1376002754,), (1376002757,), (1376002776,), (1376002778,), (1376002781,), (1376002783,), (1376002829,), (1376002813,), (1376002818,), (1376002820,), (1376002823,), (1376002827,), (1376002846,), (1376002849,), (1376002851,), (1376002852,), (1376002854,), (1376002864,), (1376002867,), (1376002870,), (1376002872,), (1376002875,), (1376002894,), (1376002896,), (1376002898,), (1376002899,), (1376002901,), (1376002903,), (1376002920,), (1376002923,), (1376002926,), (1376002927,), (1376002929,), (1376002944,), (1376002953,), (1376002956,), (1376002960,), (1376002963,), (1376002966,), (1376002979,), (1376002982,), (1376003009,), (1376003011,), (1376003013,), (1376003015,), (1376003029,), (1376003033,), (1376003034,), (1376003062,), (1376003067,), (1376003075,), (1376003078,), (1376003081,), (1376003100,), (1376003105,), (1376003109,), (1376003112,), (1376003116,), (1376003139,), (1376003141,), (1376003143,), (1376003180,), (1376003183,), (1376003186,), (1376003190,), (1376003194,), (1376003197,), (1376003210,), (1376003212,), (1376003215,), (1376003218,), (1376003237,), (1376003238,), (1376003240,), (1376003242,), (1376003245,), (1376003269,), (1376003261,), (1376003263,), (1376003264,), (1376003266,), (1376003311,), (1376003319,), (1376003324,), (1376003326,), (1376003329,), (1376003333,), (1376003341,), (1376003344,), (1376003347,), (1376003357,), (1376003359,), (1376003363,), (1376003370,), (1376003372,), (1376003389,), (1376003390,), (1376003391,), (1376003392,), (1376003394,), (1376003396,), (1376003431,), (1376003433,), (1376003437,), (1376003440,), (1376003441,), (1376003443,), (1376003450,), (1376003452,), (1376003460,), (1376003465,), (1376003471,), (1376003474,), (1376003476,), (1376003479,), (1376003491,), (1376003492,), (1376003494,), (1376003506,), (1376003507,), (1376003509,), (1376003515,), (1376003518,), (1376003522,), (1376003525,), (1376003551,), (1376003553,), (1376003554,), (1376003556,), (1376003558,), (1376003561,), (1376003570,), (1376008020,), (1376008013,), (1376008015,), (1376008016,), (1376008035,), (1376008037,), (1376008051,), (1376008081,), (1376008084,), (1376008086,), (1376008100,), (1376008107,), (1376008108,), (1376008110,), (1376008130,), (1376008131,), (1376008132,), (1376008134,), (1376008137,), (1376008140,), (1376008161,), (1376008162,), (1376008233,), (1376008275,), (1376008277,), (1376008279,), (1376008311,), (1376008313,), (1376008316,), (1376008319,), (1376008323,), (1376008325,), (1376008337,), (1376008339,), (1376008340,), (1376008342,), (1376008343,), (1376008345,), (1376008360,), (1376008362,), (1376008364,), (1376008366,), (1376008380,), (1376008406,), (1376008402,), (1376008403,), (1376008404,), (1376008438,), (1376008439,), (1376008440,), (1376008443,), (1376008446,), (1376008450,), (1376008474,), (1376008476,), (1376008477,), (1376008479,), (1376008492,), (1376008493,), (1376008495,), (1376008497,), (1376008506,), (1376008515,), (1376008521,), (1376008529,), (1376008532,), (1376008560,), (1376008562,), (1376008563,), (1376008565,), (1376008569,), (1376008572,), (1376008590,), (1376008592,), (1376008593,), (1376008595,), (1376008609,), (1376008611,), (1376008614,), (1376008617,), (1376008619,), (1376008638,), (1376008640,), (1376008643,), (1376008647,), (1376008652,), (1376008655,), (1376008662,), (1376008664,), (1376008666,), (1376008682,), (1376008683,), (1376008684,), (1376008686,), (1376008688,), (1376008722,), (1376008724,), (1376008725,), (1376008727,), (1376008730,), (1376008731,), (1376008747,), (1376008749,), (1376008750,), (1376008752,), (1376008775,), (1376008780,), (1376008784,), (1376008786,), (1376008788,), (1376008791,), (1376009220,), (1376009115,), (1376009173,), (1376009836,), (1376009922,), (1376009986,), (1376010083,), (1376010175,), (1376011202,), (1376011261,), (1376011308,), (1376011356,), (1376011982,), (1376012072,), (1376013190,), (1376013255,), (1376013309,), (1376013368,), (1376013426,), (1376014033,), (1376014103,), (1376014171,), (1376014242,), (1376014323,), (1376014701,), (1376014702,), (1376014719,), (1376014744,), (1376014976,), (1376015013,), (1376015060,), (1376015122,), (1376015170,), (1376015217,), (1376015757,), (1376015803,), (1376015838,), (1376015869,), (1376015892,), (1376016282,), (1376016307,), (1376016329,), (1376016358,), (1376016704,), (1376016728,), (1376016755,), (1376016765,), (1376016774,), (1376016775,), (1376016806,), (1376016834,), (1376016859,), (1376016881,), (1376016904,), (1376016929,), (1376017049,), (1376017074,), (1376017081,), (1376017096,), (1376017097,), (1376017099,), (1376017101,), (1376017104,), (1376017118,), (1376017120,), (1376017121,), (1376017123,), (1376017126,), (1376017131,), (1376017155,), (1376017151,), (1376017152,), (1376017153,), (1376017179,), (1376017180,), (1376017181,), (1376017183,), (1376017185,), (1376017188,), (1376017223,), (1376017224,), (1376017225,), (1376017227,), (1376017244,), (1376017245,), (1376017246,), (1376017248,), (1376017252,), (1376017256,), (1376017278,), (1376017279,), (1376017280,), (1376017282,), (1376017285,), (1376017288,), (1376017317,), (1376017319,), (1376017321,), (1376017346,), (1376017348,), (1376017349,), (1376017352,), (1376017373,), (1376017374,), (1376017375,), (1376017377,), (1376017400,), (1376017401,), (1376017402,), (1376017422,), (1376017423,), (1376017424,), (1376017426,), (1376017457,), (1376017459,), (1376017460,), (1376017462,), (1376017465,), (1376017481,), (1376017482,), (1376017483,), (1376017484,), (1376017511,), (1376017515,), (1376017554,), (1376017638,), (1376018069,), (1376018077,), (1376018139,), (1376018144,), (1376018220,), (1376018222,), (1376018270,), (1376018261,), (1376018262,), (1376018263,), (1376018266,), (1376018304,), (1376018306,), (1376018308,), (1376018310,), (1376018338,), (1376018340,), (1376018341,), (1376018365,), (1376018367,), (1376018368,), (1376018370,), (1376018371,), (1376018374,), (1376018384,), (1376018385,), (1376018386,), (1376018388,), (1376018391,), (1376018418,), (1376018422,), (1376018423,), (1376018425,), (1376018429,), (1376018433,), (1376018457,), (1376018458,), (1376018459,), (1376018461,), (1376018464,), (1376018468,), (1376018500,), (1376018503,), (1376018505,), (1376018507,), (1376018531,), (1376018532,), (1376018533,), (1376018565,), (1376018566,), (1376018567,), (1376018649,), (1376018651,), (1376018652,), (1376018655,), (1376018657,), (1376018678,), (1376018681,), (1376018699,), (1376018745,), (1376018735,), (1376018736,), (1376018737,), (1376018739,), (1376018742,), (1376018771,), (1376018772,), (1376018773,), (1376018801,), (1376018802,), (1376018803,), (1376018804,), (1376018825,), (1376018826,), (1376018827,), (1376018860,), (1376018861,), (1376018862,), (1376018864,), (1376018886,), (1376018888,), (1376018889,), (1376018918,), (1376018920,), (1376018922,), (1376018924,), (1376018941,), (1376018943,), (1376018945,), (1376018949,), (1376018954,), (1376018957,), (1376018981,), (1376018983,), (1376018984,), (1376018985,), (1376018987,), (1376018995,), (1376018996,), (1376018997,), (1376018999,), (1376019015,), (1376019016,), (1376019017,), (1376019020,), (1376019025,), (1376019047,), (1376019048,), (1376019049,), (1376019051,), (1376019053,), (1376019057,), (1376019079,), (1376019080,), (1376019081,), (1376019083,), (1376019086,), (1376019114,), (1376019117,), (1376019121,), (1376019123,), (1376019125,), (1376019139,), (1376019141,), (1376019144,), (1376019148,), (1376019392,), (1376019416,), (1376019582,), (1376019606,), (1376019633,), (1376019285,), (1376019312,), (1376019336,), (1376019362,), (1376019507,), (1376019532,), (1376019558,), (1376019834,), (1376019982,), (1376020030,), (1376020079,), (1376020126,), (1376020593,), (1376020638,), (1376020670,), (1376020693,), (1376020717,), (1376020740,), (1376021003,), (1376021027,), (1376021055,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'09082025': {'nb_upload': 21, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25836351]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1376021055, 1376021027, 1376021003, 1376020740, 1376020717, 1376020693, 1376020670, 1376020638, 1376020593] map_info['map_portfolio_photo'] : {25836351: [1376021055, 1376021027, 1376021003, 1376020740, 1376020717, 1376020693, 1376020670, 1376020638, 1376020593, 1376020126, 1376020079, 1376020030, 1376019982, 1376019834, 1376019558, 1376019532, 1376019507, 1376019362, 1376019336, 1376019312, 1376019285]} final : True mtd_id 4302 list_pids : [1376021055, 1376021027, 1376021003, 1376020740, 1376020717, 1376020693, 1376020670, 1376020638, 1376020593] Looping around the photos to save general results len do output : 1 /25836351Didn'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, '3489532') ('4302', '25836351', '1376021055', None, None, None, None, None, '3489532') ('4302', None, None, None, None, None, None, None, '3489532') ('4302', '25836351', '1376021027', None, None, None, None, None, '3489532') ('4302', None, None, None, None, None, None, None, '3489532') ('4302', '25836351', '1376021003', None, None, None, None, None, '3489532') ('4302', None, None, None, None, None, None, None, '3489532') ('4302', '25836351', '1376020740', None, None, None, None, None, '3489532') ('4302', None, None, None, None, None, None, None, '3489532') ('4302', '25836351', '1376020717', None, None, None, None, None, '3489532') ('4302', None, None, None, None, None, None, None, '3489532') ('4302', '25836351', '1376020693', None, None, None, None, None, '3489532') ('4302', None, None, None, None, None, None, None, '3489532') ('4302', '25836351', '1376020670', None, None, None, None, None, '3489532') ('4302', None, None, None, None, None, None, None, '3489532') ('4302', '25836351', '1376020638', None, None, None, None, None, '3489532') ('4302', None, None, None, None, None, None, None, '3489532') ('4302', '25836351', '1376020593', None, None, None, None, None, '3489532') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '25836351', 'None', None, None, None, None, '3489532'), ('4302', '25836351', '1376021055', None, None, None, None, None, '3489532'), ('4302', '25836351', '1376021027', None, None, None, None, None, '3489532'), ('4302', '25836351', '1376021003', None, None, None, None, None, '3489532'), ('4302', '25836351', '1376020740', None, None, None, None, None, '3489532'), ('4302', '25836351', '1376020717', None, None, None, None, None, '3489532'), ('4302', '25836351', '1376020693', None, None, None, None, None, '3489532'), ('4302', '25836351', '1376020670', None, None, None, None, None, '3489532'), ('4302', '25836351', '1376020638', None, None, None, None, None, '3489532'), ('4302', '25836351', '1376020593', None, None, None, None, None, '3489532')] time used for this insertion : 0.013583898544311523 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.8733716011047363 time spend to save output : 0.013797998428344727 total time spend for step 5 : 0.887169599533081 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 (3489532) 2.02user 2.67system 0:05.55elapsed 84%CPU (0avgtext+0avgdata 159532maxresident)k 4336inputs+4976outputs (40major+64129minor)pagefaults 0swaps