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 : 4020374 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 (2612045) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2612045) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20794162 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2612045'] with mtr_portfolio_ids : ['20794162'] and first list_photo_ids : [] new path : /proc/4020374/ Name: python3 Umask: 0002 State: R (running) Tgid: 4020374 Ngid: 0 Pid: 4020374 PPid: 4020373 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 4020374 NSpid: 4020374 NSpgid: 4017644 NSsid: 4017644 VmPeak: 1106848 kB VmSize: 1106848 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99012 kB VmRSS: 99012 kB RssAnon: 59756 kB RssFile: 39256 kB RssShmem: 0 kB VmData: 865596 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 584 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 3/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 49 nonvoluntary_ctxt_switches: 132 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '4020374', 'Ngid': '0', 'Pid': '4020374', 'PPid': '4020373', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '4020374', 'NSpid': '4020374', 'NSpgid': '4017644', 'NSsid': '4017644', 'VmPeak': '1106848 kB', 'VmSize': '1106848 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99012 kB', 'VmRSS': '99012 kB', 'RssAnon': '59756 kB', 'RssFile': '39256 kB', 'RssShmem': '0 kB', 'VmData': '865596 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '584 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '3/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '49', 'nonvoluntary_ctxt_switches': '132'} ('datou_batch_current', '4020374', '1106848', '0', '1106848', '865596', '99012', b'', 'marlene', '2612045') 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 (20794162) 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 (2612045 ) ) 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 (20794162) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1339513238, 'portfolio_id': 20794162}, {'photo_id': 1339513235, 'portfolio_id': 20794162}, {'photo_id': 1339513231, 'portfolio_id': 20794162}, {'photo_id': 1339513227, 'portfolio_id': 20794162}, {'photo_id': 1339513223, 'portfolio_id': 20794162}, {'photo_id': 1339513198, 'portfolio_id': 20794162}, {'photo_id': 1339513195, 'portfolio_id': 20794162}, {'photo_id': 1339513192, 'portfolio_id': 20794162}, {'photo_id': 1339513189, 'portfolio_id': 20794162}, {'photo_id': 1339513148, 'portfolio_id': 20794162}, {'photo_id': 1339513147, 'portfolio_id': 20794162}, {'photo_id': 1339513145, 'portfolio_id': 20794162}, {'photo_id': 1339513142, 'portfolio_id': 20794162}, {'photo_id': 1339513116, 'portfolio_id': 20794162}, {'photo_id': 1339513108, 'portfolio_id': 20794162}, {'photo_id': 1339513086, 'portfolio_id': 20794162}, {'photo_id': 1339513082, 'portfolio_id': 20794162}, {'photo_id': 1339513030, 'portfolio_id': 20794162}, {'photo_id': 1339512953, 'portfolio_id': 20794162}, {'photo_id': 1339512894, 'portfolio_id': 20794162}, {'photo_id': 1339512889, 'portfolio_id': 20794162}, {'photo_id': 1339512880, 'portfolio_id': 20794162}, {'photo_id': 1339512874, 'portfolio_id': 20794162}, {'photo_id': 1339512867, 'portfolio_id': 20794162}, {'photo_id': 1339512856, 'portfolio_id': 20794162}, {'photo_id': 1339512802, 'portfolio_id': 20794162}, {'photo_id': 1339512799, 'portfolio_id': 20794162}, {'photo_id': 1339512796, 'portfolio_id': 20794162}, {'photo_id': 1339512792, 'portfolio_id': 20794162}, {'photo_id': 1339512651, 'portfolio_id': 20794162}, {'photo_id': 1339512649, 'portfolio_id': 20794162}, {'photo_id': 1339512646, 'portfolio_id': 20794162}, {'photo_id': 1339512643, 'portfolio_id': 20794162}, {'photo_id': 1339512608, 'portfolio_id': 20794162}, {'photo_id': 1339512324, 'portfolio_id': 20794162}, {'photo_id': 1339512271, 'portfolio_id': 20794162}, {'photo_id': 1339512266, 'portfolio_id': 20794162}, {'photo_id': 1339512261, 'portfolio_id': 20794162}, {'photo_id': 1339512258, 'portfolio_id': 20794162}] map_portfolio_id_photo_id: {20794162: [1339513238, 1339513235, 1339513231, 1339513227, 1339513223, 1339513198, 1339513195, 1339513192, 1339513189, 1339513148, 1339513147, 1339513145, 1339513142, 1339513116, 1339513108, 1339513086, 1339513082, 1339513030, 1339512953, 1339512894, 1339512889, 1339512880, 1339512874, 1339512867, 1339512856, 1339512802, 1339512799, 1339512796, 1339512792, 1339512651, 1339512649, 1339512646, 1339512643, 1339512608, 1339512324, 1339512271, 1339512266, 1339512261, 1339512258]} ##### 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.015024662017822266 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Tue Feb 25 08:24: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 After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20794162) 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 : 20794162 get user id for portfolio 20794162 get sub ptf for main ptf 20794162, type 3726 and hashtags ['kraft', 'cartonnette', 'flou', 'mal_croppe', 'Carton_gris', 'autre_refus', 'papier', 'environnement', 'plastique', 'Teint_Dans_La_Masse', 'metal', 'Carton_brun'] 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`=20794162 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','cartonnette','flou','mal_croppe','Carton_gris','autre_refus','papier','environnement','plastique','Teint_Dans_La_Masse','metal','Carton_brun')) 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`=20794162 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','cartonnette','flou','mal_croppe','Carton_gris','autre_refus','papier','environnement','plastique','Teint_Dans_La_Masse','metal','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 20794162, 'sub_port_id': 20794235, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13432521, 'last_updated_at': datetime.datetime(2025, 2, 25, 8, 22, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 8, 22, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 8, 19, 29)}, 'papier': {'main_port_id': 20794162, 'sub_port_id': 20794236, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13432522, 'last_updated_at': datetime.datetime(2025, 2, 25, 8, 22, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 8, 22, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 8, 19, 29)}, 'Carton_brun': {'main_port_id': 20794162, 'sub_port_id': 20794237, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13432523, 'last_updated_at': datetime.datetime(2025, 2, 25, 8, 22, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 8, 22, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 8, 19, 29)}, 'cartonnette': {'main_port_id': 20794162, 'sub_port_id': 20794238, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13432524, 'last_updated_at': datetime.datetime(2025, 2, 25, 8, 22, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 8, 22, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 8, 19, 29)}, 'kraft': {'main_port_id': 20794162, 'sub_port_id': 20794239, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13432525, 'last_updated_at': datetime.datetime(2025, 2, 25, 8, 22, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 8, 22, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 8, 19, 29)}, 'autre_refus': {'main_port_id': 20794162, 'sub_port_id': 20794240, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13432526, 'last_updated_at': datetime.datetime(2025, 2, 25, 8, 22, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 8, 22, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 8, 19, 29)}, 'mal_croppe': {'main_port_id': 20794162, 'sub_port_id': 20794241, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13432527, 'last_updated_at': datetime.datetime(2025, 2, 25, 8, 22, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 8, 22, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 8, 19, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 20794162, 'sub_port_id': 20794242, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13432528, 'last_updated_at': datetime.datetime(2025, 2, 25, 8, 22, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 8, 22, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 8, 19, 29)}, 'environnement': {'main_port_id': 20794162, 'sub_port_id': 20794243, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13432529, 'last_updated_at': datetime.datetime(2025, 2, 25, 8, 22, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 8, 22, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 8, 19, 29)}, 'flou': {'main_port_id': 20794162, 'sub_port_id': 20794244, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13432530, 'last_updated_at': datetime.datetime(2025, 2, 25, 8, 22, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 8, 22, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 8, 19, 29)}, 'Carton_gris': {'main_port_id': 20794162, 'sub_port_id': 20794245, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13432531, 'last_updated_at': datetime.datetime(2025, 2, 25, 8, 22, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 8, 22, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 8, 19, 29)}, 'metal': {'main_port_id': 20794162, 'sub_port_id': 20794246, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13432532, 'last_updated_at': datetime.datetime(2025, 2, 25, 8, 22, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 8, 22, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 8, 19, 29)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20794235 , 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=20794162 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 (20794235) result : ((1339513114,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20794162) result : ((1339512258,), (1339512261,), (1339512266,), (1339512271,), (1339512324,), (1339512608,), (1339512643,), (1339512646,), (1339512649,), (1339512651,), (1339512792,), (1339512796,), (1339512799,), (1339512802,), (1339512856,), (1339512867,), (1339512874,), (1339512880,), (1339512889,), (1339512894,), (1339512953,), (1339513030,), (1339513082,), (1339513086,), (1339513108,), (1339513116,), (1339513142,), (1339513145,), (1339513147,), (1339513148,), (1339513189,), (1339513192,), (1339513195,), (1339513198,), (1339513223,), (1339513227,), (1339513231,), (1339513235,), (1339513238,)) 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 20794236 , 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=20794162 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 (20794236) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20794162) result : ((1339512258,), (1339512261,), (1339512266,), (1339512271,), (1339512324,), (1339512608,), (1339512643,), (1339512646,), (1339512649,), (1339512651,), (1339512792,), (1339512796,), (1339512799,), (1339512802,), (1339512856,), (1339512867,), (1339512874,), (1339512880,), (1339512889,), (1339512894,), (1339512953,), (1339513030,), (1339513082,), (1339513086,), (1339513108,), (1339513116,), (1339513142,), (1339513145,), (1339513147,), (1339513148,), (1339513189,), (1339513192,), (1339513195,), (1339513198,), (1339513223,), (1339513227,), (1339513231,), (1339513235,), (1339513238,)) 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 20794237 , 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=20794162 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 (20794237) result : ((1339513121,), (1339513253,), (1339513254,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20794162) result : ((1339512258,), (1339512261,), (1339512266,), (1339512271,), (1339512324,), (1339512608,), (1339512643,), (1339512646,), (1339512649,), (1339512651,), (1339512792,), (1339512796,), (1339512799,), (1339512802,), (1339512856,), (1339512867,), (1339512874,), (1339512880,), (1339512889,), (1339512894,), (1339512953,), (1339513030,), (1339513082,), (1339513086,), (1339513108,), (1339513116,), (1339513142,), (1339513145,), (1339513147,), (1339513148,), (1339513189,), (1339513192,), (1339513195,), (1339513198,), (1339513223,), (1339513227,), (1339513231,), (1339513235,), (1339513238,)) 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 20794238 , 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=20794162 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 (20794238) result : ((1339513111,), (1339513112,), (1339513117,), (1339513118,), (1339513119,), (1339513170,), (1339513252,), (1339513282,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20794162) result : ((1339512258,), (1339512261,), (1339512266,), (1339512271,), (1339512324,), (1339512608,), (1339512643,), (1339512646,), (1339512649,), (1339512651,), (1339512792,), (1339512796,), (1339512799,), (1339512802,), (1339512856,), (1339512867,), (1339512874,), (1339512880,), (1339512889,), (1339512894,), (1339512953,), (1339513030,), (1339513082,), (1339513086,), (1339513108,), (1339513116,), (1339513142,), (1339513145,), (1339513147,), (1339513148,), (1339513189,), (1339513192,), (1339513195,), (1339513198,), (1339513223,), (1339513227,), (1339513231,), (1339513235,), (1339513238,)) 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 20794239 , 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=20794162 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 (20794239) result : ((1339513140,), (1339513256,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20794162) result : ((1339512258,), (1339512261,), (1339512266,), (1339512271,), (1339512324,), (1339512608,), (1339512643,), (1339512646,), (1339512649,), (1339512651,), (1339512792,), (1339512796,), (1339512799,), (1339512802,), (1339512856,), (1339512867,), (1339512874,), (1339512880,), (1339512889,), (1339512894,), (1339512953,), (1339513030,), (1339513082,), (1339513086,), (1339513108,), (1339513116,), (1339513142,), (1339513145,), (1339513147,), (1339513148,), (1339513189,), (1339513192,), (1339513195,), (1339513198,), (1339513223,), (1339513227,), (1339513231,), (1339513235,), (1339513238,)) 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 20794240 , 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=20794162 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 (20794240) result : ((1339513165,), (1339513247,), (1339513278,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20794162) result : ((1339512258,), (1339512261,), (1339512266,), (1339512271,), (1339512324,), (1339512608,), (1339512643,), (1339512646,), (1339512649,), (1339512651,), (1339512792,), (1339512796,), (1339512799,), (1339512802,), (1339512856,), (1339512867,), (1339512874,), (1339512880,), (1339512889,), (1339512894,), (1339512953,), (1339513030,), (1339513082,), (1339513086,), (1339513108,), (1339513116,), (1339513142,), (1339513145,), (1339513147,), (1339513148,), (1339513189,), (1339513192,), (1339513195,), (1339513198,), (1339513223,), (1339513227,), (1339513231,), (1339513235,), (1339513238,)) 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 20794241 , 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=20794162 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 (20794241) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20794162) result : ((1339512258,), (1339512261,), (1339512266,), (1339512271,), (1339512324,), (1339512608,), (1339512643,), (1339512646,), (1339512649,), (1339512651,), (1339512792,), (1339512796,), (1339512799,), (1339512802,), (1339512856,), (1339512867,), (1339512874,), (1339512880,), (1339512889,), (1339512894,), (1339512953,), (1339513030,), (1339513082,), (1339513086,), (1339513108,), (1339513116,), (1339513142,), (1339513145,), (1339513147,), (1339513148,), (1339513189,), (1339513192,), (1339513195,), (1339513198,), (1339513223,), (1339513227,), (1339513231,), (1339513235,), (1339513238,)) 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 20794242 , 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=20794162 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 (20794242) result : ((1339513157,), (1339513158,), (1339513159,), (1339513160,), (1339513161,), (1339513162,), (1339513163,), (1339513164,), (1339513242,), (1339513243,), (1339513244,), (1339513245,), (1339513246,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20794162) result : ((1339512258,), (1339512261,), (1339512266,), (1339512271,), (1339512324,), (1339512608,), (1339512643,), (1339512646,), (1339512649,), (1339512651,), (1339512792,), (1339512796,), (1339512799,), (1339512802,), (1339512856,), (1339512867,), (1339512874,), (1339512880,), (1339512889,), (1339512894,), (1339512953,), (1339513030,), (1339513082,), (1339513086,), (1339513108,), (1339513116,), (1339513142,), (1339513145,), (1339513147,), (1339513148,), (1339513189,), (1339513192,), (1339513195,), (1339513198,), (1339513223,), (1339513227,), (1339513231,), (1339513235,), (1339513238,)) 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 20794243 , 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=20794162 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 (20794243) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20794162) result : ((1339512258,), (1339512261,), (1339512266,), (1339512271,), (1339512324,), (1339512608,), (1339512643,), (1339512646,), (1339512649,), (1339512651,), (1339512792,), (1339512796,), (1339512799,), (1339512802,), (1339512856,), (1339512867,), (1339512874,), (1339512880,), (1339512889,), (1339512894,), (1339512953,), (1339513030,), (1339513082,), (1339513086,), (1339513108,), (1339513116,), (1339513142,), (1339513145,), (1339513147,), (1339513148,), (1339513189,), (1339513192,), (1339513195,), (1339513198,), (1339513223,), (1339513227,), (1339513231,), (1339513235,), (1339513238,)) 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 20794244 , 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=20794162 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 (20794244) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20794162) result : ((1339512258,), (1339512261,), (1339512266,), (1339512271,), (1339512324,), (1339512608,), (1339512643,), (1339512646,), (1339512649,), (1339512651,), (1339512792,), (1339512796,), (1339512799,), (1339512802,), (1339512856,), (1339512867,), (1339512874,), (1339512880,), (1339512889,), (1339512894,), (1339512953,), (1339513030,), (1339513082,), (1339513086,), (1339513108,), (1339513116,), (1339513142,), (1339513145,), (1339513147,), (1339513148,), (1339513189,), (1339513192,), (1339513195,), (1339513198,), (1339513223,), (1339513227,), (1339513231,), (1339513235,), (1339513238,)) 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 20794245 , 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=20794162 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 (20794245) result : ((1339513167,), (1339513248,), (1339513249,), (1339513250,), (1339513251,), (1339513281,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20794162) result : ((1339512258,), (1339512261,), (1339512266,), (1339512271,), (1339512324,), (1339512608,), (1339512643,), (1339512646,), (1339512649,), (1339512651,), (1339512792,), (1339512796,), (1339512799,), (1339512802,), (1339512856,), (1339512867,), (1339512874,), (1339512880,), (1339512889,), (1339512894,), (1339512953,), (1339513030,), (1339513082,), (1339513086,), (1339513108,), (1339513116,), (1339513142,), (1339513145,), (1339513147,), (1339513148,), (1339513189,), (1339513192,), (1339513195,), (1339513198,), (1339513223,), (1339513227,), (1339513231,), (1339513235,), (1339513238,)) 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 20794246 , 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=20794162 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 (20794246) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20794162) result : ((1339512258,), (1339512261,), (1339512266,), (1339512271,), (1339512324,), (1339512608,), (1339512643,), (1339512646,), (1339512649,), (1339512651,), (1339512792,), (1339512796,), (1339512799,), (1339512802,), (1339512856,), (1339512867,), (1339512874,), (1339512880,), (1339512889,), (1339512894,), (1339512953,), (1339513030,), (1339513082,), (1339513086,), (1339513108,), (1339513116,), (1339513142,), (1339513145,), (1339513147,), (1339513148,), (1339513189,), (1339513192,), (1339513195,), (1339513198,), (1339513223,), (1339513227,), (1339513231,), (1339513235,), (1339513238,)) 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`=20794162 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','cartonnette','flou','mal_croppe','Carton_gris','autre_refus','papier','environnement','plastique','Teint_Dans_La_Masse','metal','Carton_brun')) 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`=20794162 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','cartonnette','flou','mal_croppe','Carton_gris','autre_refus','papier','environnement','plastique','Teint_Dans_La_Masse','metal','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 20794162, 'sub_port_id': 20794247, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13432533, 'last_updated_at': datetime.datetime(2025, 2, 25, 8, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 8, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 8, 19, 30)}, 'papier': {'main_port_id': 20794162, 'sub_port_id': 20794248, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13432534, 'last_updated_at': datetime.datetime(2025, 2, 25, 8, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 8, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 8, 19, 30)}, 'Carton_brun': {'main_port_id': 20794162, 'sub_port_id': 20794249, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13432535, 'last_updated_at': datetime.datetime(2025, 2, 25, 8, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 8, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 8, 19, 30)}, 'cartonnette': {'main_port_id': 20794162, 'sub_port_id': 20794250, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13432536, 'last_updated_at': datetime.datetime(2025, 2, 25, 8, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 8, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 8, 19, 30)}, 'kraft': {'main_port_id': 20794162, 'sub_port_id': 20794251, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13432537, 'last_updated_at': datetime.datetime(2025, 2, 25, 8, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 8, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 8, 19, 30)}, 'autre_refus': {'main_port_id': 20794162, 'sub_port_id': 20794252, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13432538, 'last_updated_at': datetime.datetime(2025, 2, 25, 8, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 8, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 8, 19, 30)}, 'mal_croppe': {'main_port_id': 20794162, 'sub_port_id': 20794253, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13432539, 'last_updated_at': datetime.datetime(2025, 2, 25, 8, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 8, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 8, 19, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 20794162, 'sub_port_id': 20794254, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13432540, 'last_updated_at': datetime.datetime(2025, 2, 25, 8, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 8, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 8, 19, 30)}, 'environnement': {'main_port_id': 20794162, 'sub_port_id': 20794255, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13432541, 'last_updated_at': datetime.datetime(2025, 2, 25, 8, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 8, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 8, 19, 30)}, 'flou': {'main_port_id': 20794162, 'sub_port_id': 20794256, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13432542, 'last_updated_at': datetime.datetime(2025, 2, 25, 8, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 8, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 8, 19, 30)}, 'Carton_gris': {'main_port_id': 20794162, 'sub_port_id': 20794257, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13432543, 'last_updated_at': datetime.datetime(2025, 2, 25, 8, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 8, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 8, 19, 30)}, 'metal': {'main_port_id': 20794162, 'sub_port_id': 20794258, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13432544, 'last_updated_at': datetime.datetime(2025, 2, 25, 8, 23), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 8, 23), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 8, 19, 30)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20794247,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20794235 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20794248,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20794236 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20794249,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20794237 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20794250,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20794238 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20794251,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20794239 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20794252,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20794240 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20794253,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20794241 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20794254,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20794242 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20794255,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20794243 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20794256,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20794244 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20794257,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20794245 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20794258,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20794246 lien utilise dans velours : https://www.fotonower.com/velours/20794247,20794248,20794249,20794250,20794251,20794252,20794253,20794254,20794255,20794256,20794257,20794258?tags=plastique,papier,Carton_brun,cartonnette,kraft,autre_refus,mal_croppe,Teint_Dans_La_Masse,environnement,flou,Carton_gris,metal After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20794162]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1339513238, 1339513235, 1339513231, 1339513227, 1339513223, 1339513198, 1339513195, 1339513192, 1339513189] map_info['map_portfolio_photo'] : {20794162: [1339513238, 1339513235, 1339513231, 1339513227, 1339513223, 1339513198, 1339513195, 1339513192, 1339513189, 1339513148, 1339513147, 1339513145, 1339513142, 1339513116, 1339513108, 1339513086, 1339513082, 1339513030, 1339512953, 1339512894, 1339512889, 1339512880, 1339512874, 1339512867, 1339512856, 1339512802, 1339512799, 1339512796, 1339512792, 1339512651, 1339512649, 1339512646, 1339512643, 1339512608, 1339512324, 1339512271, 1339512266, 1339512261, 1339512258]} final : False mtd_id 4302 list_pids : [1339513238, 1339513235, 1339513231, 1339513227, 1339513223, 1339513198, 1339513195, 1339513192, 1339513189] Looping around the photos to save general results len do output : 1 /20794162. 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, '2612045') ('4302', '20794162', '1339513238', None, None, None, None, None, '2612045') ('4302', None, None, None, None, None, None, None, '2612045') ('4302', '20794162', '1339513235', None, None, None, None, None, '2612045') ('4302', None, None, None, None, None, None, None, '2612045') ('4302', '20794162', '1339513231', None, None, None, None, None, '2612045') ('4302', None, None, None, None, None, None, None, '2612045') ('4302', '20794162', '1339513227', None, None, None, None, None, '2612045') ('4302', None, None, None, None, None, None, None, '2612045') ('4302', '20794162', '1339513223', None, None, None, None, None, '2612045') ('4302', None, None, None, None, None, None, None, '2612045') ('4302', '20794162', '1339513198', None, None, None, None, None, '2612045') ('4302', None, None, None, None, None, None, None, '2612045') ('4302', '20794162', '1339513195', None, None, None, None, None, '2612045') ('4302', None, None, None, None, None, None, None, '2612045') ('4302', '20794162', '1339513192', None, None, None, None, None, '2612045') ('4302', None, None, None, None, None, None, None, '2612045') ('4302', '20794162', '1339513189', None, None, None, None, None, '2612045') 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, '20794162', "{'plastique': 20794235, 'papier': 20794236, 'Carton_brun': 20794237, 'cartonnette': 20794238, 'kraft': 20794239, 'autre_refus': 20794240, 'mal_croppe': 20794241, 'Teint_Dans_La_Masse': 20794242, 'environnement': 20794243, 'flou': 20794244, 'Carton_gris': 20794245, 'metal': 20794246}", None, None, None, None, '2612045'), ('4302', '20794162', '1339513238', None, None, None, None, None, '2612045'), ('4302', '20794162', '1339513235', None, None, None, None, None, '2612045'), ('4302', '20794162', '1339513231', None, None, None, None, None, '2612045'), ('4302', '20794162', '1339513227', None, None, None, None, None, '2612045'), ('4302', '20794162', '1339513223', None, None, None, None, None, '2612045'), ('4302', '20794162', '1339513198', None, None, None, None, None, '2612045'), ('4302', '20794162', '1339513195', None, None, None, None, None, '2612045'), ('4302', '20794162', '1339513192', None, None, None, None, None, '2612045'), ('4302', '20794162', '1339513189', None, None, None, None, None, '2612045')] time used for this insertion : 0.013995647430419922 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4456417560577393 time spend to save output : 0.01427769660949707 total time spend for step 1 : 1.4599194526672363 step2:final Tue Feb 25 08:25: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 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 (20794162) 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 20794162 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1339512271,1339512266,1339512261,1339512258,1339512651,1339512649,1339512646,1339512643,1339512608,1339512324,1339512802,1339512799,1339512796,1339512792,1339512894,1339512889,1339512880,1339512874,1339512867,1339512856,1339513086,1339513082,1339513030,1339512953,1339513148,1339513147,1339513145,1339513142,1339513116,1339513108,1339513198,1339513195,1339513192,1339513189,1339513238,1339513235,1339513231,1339513227,1339513223); insert ignore into MTRUser.portfolio_carac_ratio (portfolio_id, hashtag_type, hashtag_id, value) values (%s,%s,%s,%s) on DUPLICATE KEY UPDATE value=VALUES(value) After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20794162]) Inside saveOutput : final : False verbose : True original output for save of step final : {1339513238: ('0.034169765116543634',), 1339513235: ('0.034169765116543634',), 1339513231: ('0.034169765116543634',), 1339513227: ('0.034169765116543634',), 1339513223: ('0.034169765116543634',), 1339513198: ('0.034169765116543634',), 1339513195: ('0.034169765116543634',), 1339513192: ('0.034169765116543634',), 1339513189: ('0.034169765116543634',)} new output for save of step final : {1339513238: ('0.034169765116543634',), 1339513235: ('0.034169765116543634',), 1339513231: ('0.034169765116543634',), 1339513227: ('0.034169765116543634',), 1339513223: ('0.034169765116543634',), 1339513198: ('0.034169765116543634',), 1339513195: ('0.034169765116543634',), 1339513192: ('0.034169765116543634',), 1339513189: ('0.034169765116543634',)} [1339513238, 1339513235, 1339513231, 1339513227, 1339513223, 1339513198, 1339513195, 1339513192, 1339513189] map_info['map_portfolio_photo'] : {20794162: [1339513238, 1339513235, 1339513231, 1339513227, 1339513223, 1339513198, 1339513195, 1339513192, 1339513189, 1339513148, 1339513147, 1339513145, 1339513142, 1339513116, 1339513108, 1339513086, 1339513082, 1339513030, 1339512953, 1339512894, 1339512889, 1339512880, 1339512874, 1339512867, 1339512856, 1339512802, 1339512799, 1339512796, 1339512792, 1339512651, 1339512649, 1339512646, 1339512643, 1339512608, 1339512324, 1339512271, 1339512266, 1339512261, 1339512258]} final : False mtd_id 4302 list_pids : [1339513238, 1339513235, 1339513231, 1339513227, 1339513223, 1339513198, 1339513195, 1339513192, 1339513189] Looping around the photos to save general results len do output : 9 /1339513238.Didn't retrieve data . /1339513235.Didn't retrieve data . /1339513231.Didn't retrieve data . /1339513227.Didn't retrieve data . /1339513223.Didn't retrieve data . /1339513198.Didn't retrieve data . /1339513195.Didn't retrieve data . /1339513192.Didn't retrieve data . /1339513189.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, '2612045') ('4302', '20794162', '1339513238', None, None, None, None, None, '2612045') ('4302', None, None, None, None, None, None, None, '2612045') ('4302', '20794162', '1339513235', None, None, None, None, None, '2612045') ('4302', None, None, None, None, None, None, None, '2612045') ('4302', '20794162', '1339513231', None, None, None, None, None, '2612045') ('4302', None, None, None, None, None, None, None, '2612045') ('4302', '20794162', '1339513227', None, None, None, None, None, '2612045') ('4302', None, None, None, None, None, None, None, '2612045') ('4302', '20794162', '1339513223', None, None, None, None, None, '2612045') ('4302', None, None, None, None, None, None, None, '2612045') ('4302', '20794162', '1339513198', None, None, None, None, None, '2612045') ('4302', None, None, None, None, None, None, None, '2612045') ('4302', '20794162', '1339513195', None, None, None, None, None, '2612045') ('4302', None, None, None, None, None, None, None, '2612045') ('4302', '20794162', '1339513192', None, None, None, None, None, '2612045') ('4302', None, None, None, None, None, None, None, '2612045') ('4302', '20794162', '1339513189', None, None, None, None, None, '2612045') 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', '20794162', '1339513238', '0.034169765116543634', None, None, None, None, '2612045'), ('4302', '20794162', '1339513235', '0.034169765116543634', None, None, None, None, '2612045'), ('4302', '20794162', '1339513231', '0.034169765116543634', None, None, None, None, '2612045'), ('4302', '20794162', '1339513227', '0.034169765116543634', None, None, None, None, '2612045'), ('4302', '20794162', '1339513223', '0.034169765116543634', None, None, None, None, '2612045'), ('4302', '20794162', '1339513198', '0.034169765116543634', None, None, None, None, '2612045'), ('4302', '20794162', '1339513195', '0.034169765116543634', None, None, None, None, '2612045'), ('4302', '20794162', '1339513192', '0.034169765116543634', None, None, None, None, '2612045'), ('4302', '20794162', '1339513189', '0.034169765116543634', None, None, None, None, '2612045')] time used for this insertion : 0.014019012451171875 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0668187141418457 time spend to save output : 0.014346122741699219 total time spend for step 2 : 0.08116483688354492 step3:velours_tree Tue Feb 25 08:25: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 : {20794162: [{'plastique': 20794235, 'papier': 20794236, 'Carton_brun': 20794237, 'cartonnette': 20794238, 'kraft': 20794239, 'autre_refus': 20794240, 'mal_croppe': 20794241, 'Teint_Dans_La_Masse': 20794242, 'environnement': 20794243, 'flou': 20794244, 'Carton_gris': 20794245, 'metal': 20794246}]} input_args_next_step : {20794162: ()} output_args : {20794162: [{'plastique': 20794235, 'papier': 20794236, 'Carton_brun': 20794237, 'cartonnette': 20794238, 'kraft': 20794239, 'autre_refus': 20794240, 'mal_croppe': 20794241, 'Teint_Dans_La_Masse': 20794242, 'environnement': 20794243, 'flou': 20794244, 'Carton_gris': 20794245, 'metal': 20794246}]} args : 20794162 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 : ({'plastique': 20794235, 'papier': 20794236, 'Carton_brun': 20794237, 'cartonnette': 20794238, 'kraft': 20794239, 'autre_refus': 20794240, 'mal_croppe': 20794241, 'Teint_Dans_La_Masse': 20794242, 'environnement': 20794243, 'flou': 20794244, 'Carton_gris': 20794245, 'metal': 20794246},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20794162) 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([20794162]) 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.3504793643951416 time spend to save output : 7.843971252441406e-05 total time spend for step 3 : 0.350557804107666 step4:send_mail_cod Tue Feb 25 08:25: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 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 : {1339513238: ('0.034169765116543634',), 1339513235: ('0.034169765116543634',), 1339513231: ('0.034169765116543634',), 1339513227: ('0.034169765116543634',), 1339513223: ('0.034169765116543634',), 1339513198: ('0.034169765116543634',), 1339513195: ('0.034169765116543634',), 1339513192: ('0.034169765116543634',), 1339513189: ('0.034169765116543634',)} input_args_next_step : {1339513238: ()} output_args : {1339513238: ('0.034169765116543634',), 1339513235: ('0.034169765116543634',), 1339513231: ('0.034169765116543634',), 1339513227: ('0.034169765116543634',), 1339513223: ('0.034169765116543634',), 1339513198: ('0.034169765116543634',), 1339513195: ('0.034169765116543634',), 1339513192: ('0.034169765116543634',), 1339513189: ('0.034169765116543634',)} args : 1339513238 depend.output_id : 0 input_args_next_step : {1339513238: ('0.034169765116543634',), 1339513235: ()} output_args : {1339513238: ('0.034169765116543634',), 1339513235: ('0.034169765116543634',), 1339513231: ('0.034169765116543634',), 1339513227: ('0.034169765116543634',), 1339513223: ('0.034169765116543634',), 1339513198: ('0.034169765116543634',), 1339513195: ('0.034169765116543634',), 1339513192: ('0.034169765116543634',), 1339513189: ('0.034169765116543634',)} args : 1339513235 depend.output_id : 0 input_args_next_step : {1339513238: ('0.034169765116543634',), 1339513235: ('0.034169765116543634',), 1339513231: ()} output_args : {1339513238: ('0.034169765116543634',), 1339513235: ('0.034169765116543634',), 1339513231: ('0.034169765116543634',), 1339513227: ('0.034169765116543634',), 1339513223: ('0.034169765116543634',), 1339513198: ('0.034169765116543634',), 1339513195: ('0.034169765116543634',), 1339513192: ('0.034169765116543634',), 1339513189: ('0.034169765116543634',)} args : 1339513231 depend.output_id : 0 input_args_next_step : {1339513238: ('0.034169765116543634',), 1339513235: ('0.034169765116543634',), 1339513231: ('0.034169765116543634',), 1339513227: ()} output_args : {1339513238: ('0.034169765116543634',), 1339513235: ('0.034169765116543634',), 1339513231: ('0.034169765116543634',), 1339513227: ('0.034169765116543634',), 1339513223: ('0.034169765116543634',), 1339513198: ('0.034169765116543634',), 1339513195: ('0.034169765116543634',), 1339513192: ('0.034169765116543634',), 1339513189: ('0.034169765116543634',)} args : 1339513227 depend.output_id : 0 input_args_next_step : {1339513238: ('0.034169765116543634',), 1339513235: ('0.034169765116543634',), 1339513231: ('0.034169765116543634',), 1339513227: ('0.034169765116543634',), 1339513223: ()} output_args : {1339513238: ('0.034169765116543634',), 1339513235: ('0.034169765116543634',), 1339513231: ('0.034169765116543634',), 1339513227: ('0.034169765116543634',), 1339513223: ('0.034169765116543634',), 1339513198: ('0.034169765116543634',), 1339513195: ('0.034169765116543634',), 1339513192: ('0.034169765116543634',), 1339513189: ('0.034169765116543634',)} args : 1339513223 depend.output_id : 0 input_args_next_step : {1339513238: ('0.034169765116543634',), 1339513235: ('0.034169765116543634',), 1339513231: ('0.034169765116543634',), 1339513227: ('0.034169765116543634',), 1339513223: ('0.034169765116543634',), 1339513198: ()} output_args : {1339513238: ('0.034169765116543634',), 1339513235: ('0.034169765116543634',), 1339513231: ('0.034169765116543634',), 1339513227: ('0.034169765116543634',), 1339513223: ('0.034169765116543634',), 1339513198: ('0.034169765116543634',), 1339513195: ('0.034169765116543634',), 1339513192: ('0.034169765116543634',), 1339513189: ('0.034169765116543634',)} args : 1339513198 depend.output_id : 0 input_args_next_step : {1339513238: ('0.034169765116543634',), 1339513235: ('0.034169765116543634',), 1339513231: ('0.034169765116543634',), 1339513227: ('0.034169765116543634',), 1339513223: ('0.034169765116543634',), 1339513198: ('0.034169765116543634',), 1339513195: ()} output_args : {1339513238: ('0.034169765116543634',), 1339513235: ('0.034169765116543634',), 1339513231: ('0.034169765116543634',), 1339513227: ('0.034169765116543634',), 1339513223: ('0.034169765116543634',), 1339513198: ('0.034169765116543634',), 1339513195: ('0.034169765116543634',), 1339513192: ('0.034169765116543634',), 1339513189: ('0.034169765116543634',)} args : 1339513195 depend.output_id : 0 input_args_next_step : {1339513238: ('0.034169765116543634',), 1339513235: ('0.034169765116543634',), 1339513231: ('0.034169765116543634',), 1339513227: ('0.034169765116543634',), 1339513223: ('0.034169765116543634',), 1339513198: ('0.034169765116543634',), 1339513195: ('0.034169765116543634',), 1339513192: ()} output_args : {1339513238: ('0.034169765116543634',), 1339513235: ('0.034169765116543634',), 1339513231: ('0.034169765116543634',), 1339513227: ('0.034169765116543634',), 1339513223: ('0.034169765116543634',), 1339513198: ('0.034169765116543634',), 1339513195: ('0.034169765116543634',), 1339513192: ('0.034169765116543634',), 1339513189: ('0.034169765116543634',)} args : 1339513192 depend.output_id : 0 input_args_next_step : {1339513238: ('0.034169765116543634',), 1339513235: ('0.034169765116543634',), 1339513231: ('0.034169765116543634',), 1339513227: ('0.034169765116543634',), 1339513223: ('0.034169765116543634',), 1339513198: ('0.034169765116543634',), 1339513195: ('0.034169765116543634',), 1339513192: ('0.034169765116543634',), 1339513189: ()} output_args : {1339513238: ('0.034169765116543634',), 1339513235: ('0.034169765116543634',), 1339513231: ('0.034169765116543634',), 1339513227: ('0.034169765116543634',), 1339513223: ('0.034169765116543634',), 1339513198: ('0.034169765116543634',), 1339513195: ('0.034169765116543634',), 1339513192: ('0.034169765116543634',), 1339513189: ('0.034169765116543634',)} args : 1339513189 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 : {20794162: [{'plastique': 20794235, 'papier': 20794236, 'Carton_brun': 20794237, 'cartonnette': 20794238, 'kraft': 20794239, 'autre_refus': 20794240, 'mal_croppe': 20794241, 'Teint_Dans_La_Masse': 20794242, 'environnement': 20794243, 'flou': 20794244, 'Carton_gris': 20794245, 'metal': 20794246}]} input_args_next_step : {1339513238: ('0.034169765116543634',), 1339513235: ('0.034169765116543634',), 1339513231: ('0.034169765116543634',), 1339513227: ('0.034169765116543634',), 1339513223: ('0.034169765116543634',), 1339513198: ('0.034169765116543634',), 1339513195: ('0.034169765116543634',), 1339513192: ('0.034169765116543634',), 1339513189: ('0.034169765116543634',), 20794162: ()} output_args : {20794162: [{'plastique': 20794235, 'papier': 20794236, 'Carton_brun': 20794237, 'cartonnette': 20794238, 'kraft': 20794239, 'autre_refus': 20794240, 'mal_croppe': 20794241, 'Teint_Dans_La_Masse': 20794242, 'environnement': 20794243, 'flou': 20794244, 'Carton_gris': 20794245, 'metal': 20794246}]} args : 20794162 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.034169765116543634',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20794162) 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 (1339513238,1339513235,1339513231,1339513227,1339513223,1339513198,1339513195,1339513192,1339513189) Found this number of photos: 9 ##### Call download_photos : nb_thread : 5 begin to download photo : 1339513189 begin to download photo : 1339513195 begin to download photo : 1339513223 begin to download photo : 1339513231 begin to download photo : 1339513238 download finish for photo 1339513238 download finish for photo 1339513189 begin to download photo : 1339513192 download finish for photo 1339513195 begin to download photo : 1339513198 download finish for photo 1339513223 begin to download photo : 1339513227 download finish for photo 1339513231 begin to download photo : 1339513235 download finish for photo 1339513198 download finish for photo 1339513192 download finish for photo 1339513227 download finish for photo 1339513235 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 9 ; length of list_pids : 9 ; length of list_args : 9 results_Auto_P20794162_25-02-2025_08_25_00.pdf 20794235 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=20794235 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339513114: '1740468051_1116390_1339512792_492526c52d6ceeb53004c2157a25aceb_rle_crop_3686228599_0.png'} change filename to text .imagette207942351740468300/ imagette207942351740468300/1740468051_1116390_1339512792_492526c52d6ceeb53004c2157a25aceb_rle_crop_3686228599_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/6ffa403e1d8100afc636ad6c6b7e6c59_54089995.png imagette207942351740468300 20794238 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=20794238 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339513111: '1740468051_1116390_1339512799_23f48a42be97b5c0d8217e100e86bf1e_rle_crop_3686228529_0.png', 1339513112: '1740468051_1116390_1339512796_3aed06b1fe602f73cd8f2068b69a2761_rle_crop_3686228570_0.png', 1339513117: '1740468033_1116095_1339512649_409cf3f85359b7c5ea626066bffb16fc_rle_crop_3686228538_0.png', 1339513118: '1740468033_1116095_1339512646_ff724f33dd681513d93cf458d627bb64_rle_crop_3686228562_0.png', 1339513119: '1740468033_1116095_1339512324_7e7872ca8dd1a51ad1ae0256604583c7_rle_crop_3686228632_0.png', 1339513170: '1740468073_1116683_1339512271_e923a3cf935f56d0dba8a49a51bb749d_rle_crop_3686229368_0.png', 1339513252: '1740468171_1118298_1339512880_919577f6ac29c2ff4b2fc9c7e7fd11ed_rle_crop_3686230608_0.png', 1339513282: '1740468231_1119273_1339513148_4928e40d74ba7978de22b0a5916db5c0_rle_crop_3686231366_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/bbed00e4504104fb92570a4c2b592e40_34325101.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/827d996d7e317004c8463ba8287657d9_20176297.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/bafb358fd1b6668e1739a663854171c9_81155203.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/40741d97768c9883c4f0f2bdf122b0c4_5053195.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/b28d8f2c747db26fcd3b473ecd37f2a2_50175767.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/d60a5e8aac6c1d2d521ad0ee440b75b2_6048459.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/b59f4e8ce9911539c08aa6a8d4b23966_55708045.png change filename to text .imagette207942381740468300/ imagette207942381740468300/1740468231_1119273_1339513148_4928e40d74ba7978de22b0a5916db5c0_rle_crop_3686231366_0.png.png imagette207942381740468300/1740468051_1116390_1339512796_3aed06b1fe602f73cd8f2068b69a2761_rle_crop_3686228570_0.png.png imagette207942381740468300/1740468033_1116095_1339512649_409cf3f85359b7c5ea626066bffb16fc_rle_crop_3686228538_0.png.png imagette207942381740468300/1740468033_1116095_1339512646_ff724f33dd681513d93cf458d627bb64_rle_crop_3686228562_0.png.png imagette207942381740468300/1740468073_1116683_1339512271_e923a3cf935f56d0dba8a49a51bb749d_rle_crop_3686229368_0.png.png imagette207942381740468300/1740468033_1116095_1339512324_7e7872ca8dd1a51ad1ae0256604583c7_rle_crop_3686228632_0.png.png imagette207942381740468300/1740468171_1118298_1339512880_919577f6ac29c2ff4b2fc9c7e7fd11ed_rle_crop_3686230608_0.png.png imagette207942381740468300/1740468051_1116390_1339512799_23f48a42be97b5c0d8217e100e86bf1e_rle_crop_3686228529_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/41eef509375f3a9e23d1ca3c11289b40_58413930.png imagette207942381740468300 20794239 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=20794239 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339513140: '1740468033_1116095_1339512649_409cf3f85359b7c5ea626066bffb16fc_rle_crop_3686228533_0.png', 1339513256: '1740468171_1118298_1339512856_83443ead86f0e6b408959195aadac30b_rle_crop_3686230873_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/8e8e790e520466e6770e9a824c033d1f_67670978.png change filename to text .imagette207942391740468301/ imagette207942391740468301/1740468033_1116095_1339512649_409cf3f85359b7c5ea626066bffb16fc_rle_crop_3686228533_0.png.png imagette207942391740468301/1740468171_1118298_1339512856_83443ead86f0e6b408959195aadac30b_rle_crop_3686230873_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/372d3059e5880cddc9ba3294ad6af7ba_61390673.png imagette207942391740468301 20794240 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=20794240 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339513165: '1740468073_1116683_1339512261_f84630073afab1b3d63e1f6d5c7f2568_rle_crop_3686229414_0.png', 1339513247: '1740468171_1118298_1339512856_83443ead86f0e6b408959195aadac30b_rle_crop_3686230871_0.png', 1339513278: '1740468231_1119273_1339513148_4928e40d74ba7978de22b0a5916db5c0_rle_crop_3686231361_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/eead2ebe56657b26a7d2936459bcc5ea_53756803.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/121cf57c5e83abd95139e3b2a04a535e_92410883.png change filename to text .imagette207942401740468301/ imagette207942401740468301/1740468231_1119273_1339513148_4928e40d74ba7978de22b0a5916db5c0_rle_crop_3686231361_0.png.png imagette207942401740468301/1740468073_1116683_1339512261_f84630073afab1b3d63e1f6d5c7f2568_rle_crop_3686229414_0.png.png imagette207942401740468301/1740468171_1118298_1339512856_83443ead86f0e6b408959195aadac30b_rle_crop_3686230871_0.png.png imagette207942411740468301/ imagette207942441740468301/ imagette207942461740468301/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/aef20dfed37df6a779b1930617afb4ef_48561767.png imagette207942401740468301 20794241 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=20794241 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette207942411740468301 20794244 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=20794244 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette207942441740468301 20794246 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=20794246 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette207942461740468301 20794237 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=20794237 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339513121: '1740468033_1116095_1339512643_0acad542f582589eeae64ede37583c6c_rle_crop_3686228581_0.png', 1339513253: '1740468171_1118298_1339513086_0cfd5fa32aa9c77d6e525f25162ec7f3_rle_crop_3686230555_0.png', 1339513254: '1740468171_1118298_1339513086_0cfd5fa32aa9c77d6e525f25162ec7f3_rle_crop_3686230560_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/1b281af534071d136b6d6f43c7b26a43_22039904.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/04a8cbfe87893bb1a8426d725e360f37_3128958.png change filename to text .imagette207942371740468301/ imagette207942371740468301/1740468171_1118298_1339513086_0cfd5fa32aa9c77d6e525f25162ec7f3_rle_crop_3686230555_0.png.png imagette207942371740468301/1740468171_1118298_1339513086_0cfd5fa32aa9c77d6e525f25162ec7f3_rle_crop_3686230560_0.png.png imagette207942371740468301/1740468033_1116095_1339512643_0acad542f582589eeae64ede37583c6c_rle_crop_3686228581_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/ccb2ba562cdf072f86e10f1c3ddeb248_58931803.png imagette207942371740468301 20794242 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=20794242 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339513157: '1740468073_1116683_1339512651_d6d98b062d6734faea635d5c549d3afb_rle_crop_3686229339_0.png', 1339513158: '1740468073_1116683_1339512271_e923a3cf935f56d0dba8a49a51bb749d_rle_crop_3686229372_0.png', 1339513159: '1740468073_1116683_1339512271_e923a3cf935f56d0dba8a49a51bb749d_rle_crop_3686229374_0.png', 1339513160: '1740468073_1116683_1339512266_6480d46e87483884a4bc3d7447e3eff9_rle_crop_3686229402_0.png', 1339513161: '1740468073_1116683_1339512261_f84630073afab1b3d63e1f6d5c7f2568_rle_crop_3686229417_0.png', 1339513162: '1740468073_1116683_1339512261_f84630073afab1b3d63e1f6d5c7f2568_rle_crop_3686229418_0.png', 1339513163: '1740468073_1116683_1339512258_9600e2d038652e1bd0228eb49547e10b_rle_crop_3686229438_0.png', 1339513164: '1740468073_1116683_1339512258_9600e2d038652e1bd0228eb49547e10b_rle_crop_3686229439_0.png', 1339513242: '1740468171_1118298_1339513086_0cfd5fa32aa9c77d6e525f25162ec7f3_rle_crop_3686230554_0.png', 1339513243: '1740468171_1118298_1339512889_3801647e2d2f07872bee564c905bcdce_rle_crop_3686230575_0.png', 1339513244: '1740468171_1118298_1339512867_3cf9f66a6104280bb99e7583596be7a9_rle_crop_3686230829_0.png', 1339513245: '1740468171_1118298_1339512856_83443ead86f0e6b408959195aadac30b_rle_crop_3686230880_0.png', 1339513246: '1740468171_1118298_1339512856_83443ead86f0e6b408959195aadac30b_rle_crop_3686230882_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/5216a35b43c18c4685b9eae3f761b22b_36283445.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/703188d71bc8797e11e6955210aeec75_35544980.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/f7f55685b60bd14e7fc6e16574e4c7c5_54590108.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/30deb12fe7dc9a3370269c33fe72037f_91603339.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/c8fa21a4625c75329b98b06d8bc25b5a_22865825.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/4e1a1c2b9df6003ee714b787d4ef4cf0_91462520.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/1c13213f013366695a10be24afe05a86_37528896.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/636499449fad162cd071d9eba407d881_92870863.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/fa708e4e9b5748aee80b8b783682d24e_99067999.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/64c26d975bfa9b0a8da96dc8c1966765_10965260.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/f5795fc8cdceb0a27303fc07cd513716_41941025.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/757b282cee9cc8087595bee3036101e1_80299970.png change filename to text .imagette207942421740468301/ imagette207942421740468301/1740468171_1118298_1339513086_0cfd5fa32aa9c77d6e525f25162ec7f3_rle_crop_3686230554_0.png.png imagette207942421740468301/1740468171_1118298_1339512867_3cf9f66a6104280bb99e7583596be7a9_rle_crop_3686230829_0.png.png imagette207942421740468301/1740468171_1118298_1339512856_83443ead86f0e6b408959195aadac30b_rle_crop_3686230882_0.png.png imagette207942421740468301/1740468073_1116683_1339512266_6480d46e87483884a4bc3d7447e3eff9_rle_crop_3686229402_0.png.png imagette207942421740468301/1740468073_1116683_1339512271_e923a3cf935f56d0dba8a49a51bb749d_rle_crop_3686229374_0.png.png imagette207942421740468301/1740468073_1116683_1339512651_d6d98b062d6734faea635d5c549d3afb_rle_crop_3686229339_0.png.png imagette207942421740468301/1740468073_1116683_1339512258_9600e2d038652e1bd0228eb49547e10b_rle_crop_3686229439_0.png.png imagette207942421740468301/1740468073_1116683_1339512261_f84630073afab1b3d63e1f6d5c7f2568_rle_crop_3686229417_0.png.png imagette207942421740468301/1740468073_1116683_1339512261_f84630073afab1b3d63e1f6d5c7f2568_rle_crop_3686229418_0.png.png imagette207942421740468301/1740468171_1118298_1339512856_83443ead86f0e6b408959195aadac30b_rle_crop_3686230880_0.png.png imagette207942421740468301/1740468073_1116683_1339512271_e923a3cf935f56d0dba8a49a51bb749d_rle_crop_3686229372_0.png.png imagette207942421740468301/1740468171_1118298_1339512889_3801647e2d2f07872bee564c905bcdce_rle_crop_3686230575_0.png.png imagette207942421740468301/1740468073_1116683_1339512258_9600e2d038652e1bd0228eb49547e10b_rle_crop_3686229438_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/5b8603d49afec1c6d793cc2b0a91861b_61640109.png imagette207942421740468301 20794245 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=20794245 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339513167: '1740468073_1116683_1339512266_6480d46e87483884a4bc3d7447e3eff9_rle_crop_3686229396_0.png', 1339513248: '1740468171_1118298_1339512880_919577f6ac29c2ff4b2fc9c7e7fd11ed_rle_crop_3686230613_0.png', 1339513249: '1740468171_1118298_1339512880_919577f6ac29c2ff4b2fc9c7e7fd11ed_rle_crop_3686230610_0.png', 1339513250: '1740468171_1118298_1339512867_3cf9f66a6104280bb99e7583596be7a9_rle_crop_3686230827_0.png', 1339513251: '1740468171_1118298_1339512856_83443ead86f0e6b408959195aadac30b_rle_crop_3686230874_0.png', 1339513281: '1740468231_1119273_1339513082_780937e9dc8a8580ab2de27120569724_rle_crop_3686230144_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/71797a2e7951b2e81c570a0504a8c64a_19107561.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/43984ca132f5c15b578ca36be96ac453_12741875.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/4a554f5104eb1819d6d7442431c921b5_47096966.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/6968175cf7c64e5b744edc97f548ef1b_18965827.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/a3ce14877077a2c8715e34d2e3da254e_22790968.png change filename to text .imagette207942451740468302/ imagette207942451740468302/1740468231_1119273_1339513082_780937e9dc8a8580ab2de27120569724_rle_crop_3686230144_0.png.png imagette207942451740468302/1740468171_1118298_1339512856_83443ead86f0e6b408959195aadac30b_rle_crop_3686230874_0.png.png imagette207942451740468302/1740468171_1118298_1339512867_3cf9f66a6104280bb99e7583596be7a9_rle_crop_3686230827_0.png.png imagette207942451740468302/1740468171_1118298_1339512880_919577f6ac29c2ff4b2fc9c7e7fd11ed_rle_crop_3686230613_0.png.png imagette207942451740468302/1740468171_1118298_1339512880_919577f6ac29c2ff4b2fc9c7e7fd11ed_rle_crop_3686230610_0.png.png imagette207942451740468302/1740468073_1116683_1339512266_6480d46e87483884a4bc3d7447e3eff9_rle_crop_3686229396_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/8c0345580eef6e68a1f06357b0df199b_68914137.png imagette207942451740468302 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20794162 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20794247,20794248,20794249,20794250,20794251,20794252,20794253,20794254,20794255,20794256,20794257,20794258?tags=plastique,papier,Carton_brun,cartonnette,kraft,autre_refus,mal_croppe,Teint_Dans_La_Masse,environnement,flou,Carton_gris,metal your option no_mail is active, we will not send the real mail to your client args[1339513238] : ('0.034169765116543634',) no score found for photo 1339513238 We are sending mail with results at report@fotonower.com args[1339513235] : ('0.034169765116543634',) no score found for photo 1339513235 We are sending mail with results at report@fotonower.com args[1339513231] : ('0.034169765116543634',) no score found for photo 1339513231 We are sending mail with results at report@fotonower.com args[1339513227] : ('0.034169765116543634',) no score found for photo 1339513227 We are sending mail with results at report@fotonower.com args[1339513223] : ('0.034169765116543634',) no score found for photo 1339513223 We are sending mail with results at report@fotonower.com args[1339513198] : ('0.034169765116543634',) no score found for photo 1339513198 We are sending mail with results at report@fotonower.com args[1339513195] : ('0.034169765116543634',) no score found for photo 1339513195 We are sending mail with results at report@fotonower.com args[1339513192] : ('0.034169765116543634',) no score found for photo 1339513192 We are sending mail with results at report@fotonower.com args[1339513189] : ('0.034169765116543634',) no score found for photo 1339513189 We are sending mail with results at report@fotonower.com refus_total : 0.034169765116543634 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=20794162 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_P20794162_25-02-2025_08_25_00.pdf results_Auto_P20794162_25-02-2025_08_25_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20794162_25-02-2025_08_25_00.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','20794162','results_Auto_P20794162_25-02-2025_08_25_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20794162_25-02-2025_08_25_00.pdf','pdf','','0.2','0.034169765116543634') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20794162]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1339513238, 1339513235, 1339513231, 1339513227, 1339513223, 1339513198, 1339513195, 1339513192, 1339513189] map_info['map_portfolio_photo'] : {20794162: [1339513238, 1339513235, 1339513231, 1339513227, 1339513223, 1339513198, 1339513195, 1339513192, 1339513189, 1339513148, 1339513147, 1339513145, 1339513142, 1339513116, 1339513108, 1339513086, 1339513082, 1339513030, 1339512953, 1339512894, 1339512889, 1339512880, 1339512874, 1339512867, 1339512856, 1339512802, 1339512799, 1339512796, 1339512792, 1339512651, 1339512649, 1339512646, 1339512643, 1339512608, 1339512324, 1339512271, 1339512266, 1339512261, 1339512258]} final : False mtd_id 4302 list_pids : [1339513238, 1339513235, 1339513231, 1339513227, 1339513223, 1339513198, 1339513195, 1339513192, 1339513189] 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, '2612045') ('4302', '20794162', '1339513238', None, None, None, None, None, '2612045') ('4302', None, None, None, None, None, None, None, '2612045') ('4302', '20794162', '1339513235', None, None, None, None, None, '2612045') ('4302', None, None, None, None, None, None, None, '2612045') ('4302', '20794162', '1339513231', None, None, None, None, None, '2612045') ('4302', None, None, None, None, None, None, None, '2612045') ('4302', '20794162', '1339513227', None, None, None, None, None, '2612045') ('4302', None, None, None, None, None, None, None, '2612045') ('4302', '20794162', '1339513223', None, None, None, None, None, '2612045') ('4302', None, None, None, None, None, None, None, '2612045') ('4302', '20794162', '1339513198', None, None, None, None, None, '2612045') ('4302', None, None, None, None, None, None, None, '2612045') ('4302', '20794162', '1339513195', None, None, None, None, None, '2612045') ('4302', None, None, None, None, None, None, None, '2612045') ('4302', '20794162', '1339513192', None, None, None, None, None, '2612045') ('4302', None, None, None, None, None, None, None, '2612045') ('4302', '20794162', '1339513189', None, None, None, None, None, '2612045') 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', '20794162', '1339513238', None, None, None, None, None, '2612045'), ('4302', '20794162', '1339513235', None, None, None, None, None, '2612045'), ('4302', '20794162', '1339513231', None, None, None, None, None, '2612045'), ('4302', '20794162', '1339513227', None, None, None, None, None, '2612045'), ('4302', '20794162', '1339513223', None, None, None, None, None, '2612045'), ('4302', '20794162', '1339513198', None, None, None, None, None, '2612045'), ('4302', '20794162', '1339513195', None, None, None, None, None, '2612045'), ('4302', '20794162', '1339513192', None, None, None, None, None, '2612045'), ('4302', '20794162', '1339513189', None, None, None, None, None, '2612045')] time used for this insertion : 0.013676643371582031 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.363884449005127 time spend to save output : 0.013880252838134766 total time spend for step 4 : 3.3777647018432617 step5:split_time_score Tue Feb 25 08:25:04 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 : ['20794162'] 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 : [('20794162',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20794162) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1339513238: {'path': 'temp/1740468300_4020374_1339513238_ac8352fc128f3f498ed1d961c8d6790e.jpg', 'extension': 'jpg'}, 1339513195: {'path': 'temp/1740468300_4020374_1339513195_b15394721ed148ed2ce55029ef3efb25.jpg', 'extension': 'jpg'}, 1339513198: {'path': 'temp/1740468300_4020374_1339513198_242ef21fa4371a42f59e57a01e83d7b7.jpg', 'extension': 'jpg'}, 1339513189: {'path': 'temp/1740468300_4020374_1339513189_9c95fbf04226cd24e92ba635b1aee839.jpg', 'extension': 'jpg'}, 1339513192: {'path': 'temp/1740468300_4020374_1339513192_092efe5a54f003915a0927dba1d80157.jpg', 'extension': 'jpg'}, 1339513223: {'path': 'temp/1740468300_4020374_1339513223_f8027e4bed821832782224ffaf100e12.jpg', 'extension': 'jpg'}, 1339513227: {'path': 'temp/1740468300_4020374_1339513227_607a184a91a10c1beebf4d468ab8226f.jpg', 'extension': 'jpg'}, 1339513231: {'path': 'temp/1740468300_4020374_1339513231_90ddfadac46d63d9745489999b5b1f9c.jpg', 'extension': 'jpg'}, 1339513235: {'path': 'temp/1740468300_4020374_1339513235_51cca694bc5bdd25053c4b157854b754.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 = 20794162; (('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 = 20794162 group by h (('08', 39),) 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=20794162 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 (20794162) 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 (20794162) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 25022025 20794162 Nombre de photos uploadées : 39 / 23040 (0%) 25022025 20794162 Nombre de photos taguées (types de déchets): 0 / 39 (0%) 25022025 20794162 Nombre de photos taguées (volume) : 0 / 39 (0%) [{'photo_id': 1339512271, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/e923a3cf935f56d0dba8a49a51bb749d.jpg', 'username': None, 'uploaded_at': 1740467792, 'text': 'image_25022025_08_15_14_10135.jpg 1e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1339512266, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/6480d46e87483884a4bc3d7447e3eff9.jpg', 'username': None, 'uploaded_at': 1740467792, 'text': 'image_25022025_08_15_24_10134.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1339512261, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/f84630073afab1b3d63e1f6d5c7f2568.jpg', 'username': None, 'uploaded_at': 1740467792, 'text': 'image_25022025_08_15_35_10143.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1339512258, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/9600e2d038652e1bd0228eb49547e10b.jpg', 'username': None, 'uploaded_at': 1740467792, 'text': 'image_25022025_08_15_44_9125.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 3.814697265625e-06 ??????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0012989044189453125 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20794162, '2025-02-25' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1621897,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02346968650817871 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= 1621897 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1621897, 'dashboard_run_id': 1630268, 'mtr_portfolio_id': 20792366, 'dashboard_result_id': 9042821, '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_P20792366_25-02-2025_07_49_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20792397, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20792398, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20792399, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20792400, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20792401, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20792402, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20792403, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20792404, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20792405, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20792406, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20792407, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20792408, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1630268, 'mtr_portfolio_id': 20792964, 'dashboard_result_id': 9042822, '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_P20792964_25-02-2025_08_04_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20792989, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20792990, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20792991, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20792992, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20792993, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20792994, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20792995, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20792996, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20792997, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20792998, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20792999, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20793000, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1630268, 'mtr_portfolio_id': 20793580, 'dashboard_result_id': 9042823, '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_P20793580_25-02-2025_08_19_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20793648, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20793649, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20793650, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20793651, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20793652, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20793653, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20793654, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20793655, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20793656, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20793657, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20793658, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20793659, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1630268, 'mtr_portfolio_id': 20794162, 'dashboard_result_id': 9042824, '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_P20794162_25-02-2025_08_23_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20794235, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20794236, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20794237, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20794238, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20794239, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20794240, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20794241, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20794242, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20794243, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20794244, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20794245, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20794246, '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 = 20792366 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': 2611903, 'mtr_portfolio_id': 20792366, 'created_at': datetime.datetime(2025, 2, 25, 7, 49), 'result': '0.05277814776262212', 'result_long': None, 'result_double': None}] Qualite : 0.05277814776262212 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20792366 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20792366_25-02-2025_07_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20792366 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_P20792366_25-02-2025_07_49_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20792397, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20792398, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20792399, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20792400, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20792401, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20792402, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20792403, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20792404, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20792405, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20792406, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20792407, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20792408, 'pht': 3726}}" where mtr_portfolio_id = 20792366 and dashboard_run_id = 1630268 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`=20792366 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9042821, 0.05277814776262212, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20792366_25-02-2025_07_49_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20792397, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20792398, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20792399, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20792400, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20792401, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20792402, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20792403, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20792404, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20792405, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20792406, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20792407, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20792408, '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 = 20792964 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': 2611944, 'mtr_portfolio_id': 20792964, 'created_at': datetime.datetime(2025, 2, 25, 8, 4, 57), 'result': '0.03207553968782561', 'result_long': None, 'result_double': None}] Qualite : 0.03207553968782561 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20792964 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20792964_25-02-2025_08_04_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20792964 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_P20792964_25-02-2025_08_04_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20792989, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20792990, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20792991, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20792992, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20792993, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20792994, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20792995, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20792996, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20792997, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20792998, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20792999, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20793000, 'pht': 3726}}" where mtr_portfolio_id = 20792964 and dashboard_run_id = 1630268 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`=20792964 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9042822, 0.03207553968782561, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20792964_25-02-2025_08_04_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20792989, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20792990, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20792991, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20792992, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20792993, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20792994, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20792995, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20792996, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20792997, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20792998, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20792999, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20793000, '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 = 20793580 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': 2611995, 'mtr_portfolio_id': 20793580, 'created_at': datetime.datetime(2025, 2, 25, 8, 19, 2), 'result': '0.03894331869955055', 'result_long': None, 'result_double': None}] Qualite : 0.03894331869955055 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20793580 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20793580_25-02-2025_08_19_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20793580 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_P20793580_25-02-2025_08_19_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20793648, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20793649, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20793650, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20793651, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20793652, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20793653, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20793654, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20793655, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20793656, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20793657, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20793658, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20793659, 'pht': 3726}}" where mtr_portfolio_id = 20793580 and dashboard_run_id = 1630268 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`=20793580 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9042823, 0.03894331869955055, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20793580_25-02-2025_08_19_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20793648, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20793649, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20793650, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20793651, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20793652, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20793653, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20793654, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20793655, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20793656, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20793657, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20793658, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20793659, '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 = 20794162 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': 2612045, 'mtr_portfolio_id': 20794162, 'created_at': datetime.datetime(2025, 2, 25, 8, 25), 'result': '0.034169765116543634', 'result_long': None, 'result_double': None}] Qualite : 0.034169765116543634 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20794162 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20794162_25-02-2025_08_25_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20794162 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_P20794162_25-02-2025_08_25_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20794235, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20794236, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20794237, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20794238, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20794239, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20794240, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20794241, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20794242, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20794243, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20794244, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20794245, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20794246, 'pht': 3726}}" where mtr_portfolio_id = 20794162 and dashboard_run_id = 1630268 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`=20794162 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9042824, 0.034169765116543634, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20794162_25-02-2025_08_25_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20794235, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20794236, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20794237, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20794238, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20794239, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20794240, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20794241, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20794242, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20794243, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20794244, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20794245, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20794246, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20792366,20792964,20793580,20794162) result : ((1339506485,), (1339506489,), (1339506492,), (1339506528,), (1339506531,), (1339506535,), (1339506539,), (1339506543,), (1339506546,), (1339506571,), (1339506574,), (1339506578,), (1339506582,), (1339507094,), (1339507128,), (1339507140,), (1339507148,), (1339507151,), (1339507154,), (1339507223,), (1339507228,), (1339507232,), (1339507236,), (1339507241,), (1339507298,), (1339507301,), (1339507303,), (1339507307,), (1339507310,), (1339507348,), (1339507354,), (1339507359,), (1339507364,), (1339507367,), (1339507401,), (1339507415,), (1339507426,), (1339507429,), (1339507434,), (1339507437,), (1339507467,), (1339507475,), (1339507481,), (1339507486,), (1339507491,), (1339507494,), (1339507526,), (1339507532,), (1339507569,), (1339507703,), (1339507706,), (1339507709,), (1339507711,), (1339507714,), (1339507723,), (1339507750,), (1339507753,), (1339507756,), (1339507774,), (1339507779,), (1339507783,), (1339507787,), (1339507791,), (1339507803,), (1339507822,), (1339507826,), (1339507829,), (1339507832,), (1339507851,), (1339507852,), (1339507855,), (1339507859,), (1339507864,), (1339507868,), (1339508064,), (1339508027,), (1339508030,), (1339508053,), (1339508057,), (1339508089,), (1339508095,), (1339508100,), (1339508103,), (1339508108,), (1339508110,), (1339508148,), (1339508151,), (1339508154,), (1339508912,), (1339508913,), (1339508916,), (1339508937,), (1339509026,), (1339509074,), (1339509128,), (1339509131,), (1339509134,), (1339509137,), (1339509181,), (1339509187,), (1339509193,), (1339509203,), (1339509234,), (1339509238,), (1339509241,), (1339509246,), (1339509252,), (1339509254,), (1339509295,), (1339509299,), (1339509303,), (1339509306,), (1339509384,), (1339509458,), (1339509985,), (1339509989,), (1339509992,), (1339509995,), (1339510022,), (1339510028,), (1339510033,), (1339510036,), (1339510041,), (1339510044,), (1339510070,), (1339510073,), (1339510076,), (1339510079,), (1339510082,), (1339510103,), (1339510108,), (1339510112,), (1339510125,), (1339510130,), (1339510135,), (1339510138,), (1339510143,), (1339510716,), (1339510719,), (1339510722,), (1339510726,), (1339510816,), (1339510862,), (1339510978,), (1339511163,), (1339511190,), (1339511195,), (1339511198,), (1339511256,), (1339510874,), (1339510930,), (1339510933,), (1339510965,), (1339510973,), (1339511362,), (1339511452,), (1339511518,), (1339511544,), (1339511548,), (1339511550,), (1339511554,), (1339511558,), (1339511561,), (1339511584,), (1339511588,), (1339511591,), (1339511594,), (1339511617,), (1339511622,), (1339511628,), (1339511634,), (1339511642,), (1339511650,), (1339511810,), (1339511815,), (1339511818,), (1339511863,), (1339511868,), (1339511871,), (1339511874,), (1339511877,), (1339511879,), (1339511906,), (1339511912,), (1339511919,), (1339511926,), (1339511927,), (1339511946,), (1339511951,), (1339511960,), (1339511966,), (1339511969,), (1339511990,), (1339511995,), (1339511999,), (1339512003,), (1339512008,), (1339512011,), (1339512030,), (1339512035,), (1339512044,), (1339512091,), (1339512095,), (1339512098,), (1339512103,), (1339512105,), (1339512107,), (1339512122,), (1339512125,), (1339512128,), (1339512132,), (1339512136,), (1339512160,), (1339512170,), (1339512174,), (1339512178,), (1339512180,), (1339512181,), (1339512206,), (1339512211,), (1339512236,), (1339512240,), (1339512277,), (1339512258,), (1339512261,), (1339512266,), (1339512271,), (1339512324,), (1339512608,), (1339512643,), (1339512646,), (1339512649,), (1339512651,), (1339512792,), (1339512796,), (1339512799,), (1339512802,), (1339512856,), (1339512867,), (1339512874,), (1339512880,), (1339512889,), (1339512894,), (1339512953,), (1339513030,), (1339513082,), (1339513086,), (1339513108,), (1339513116,), (1339513142,), (1339513145,), (1339513147,), (1339513148,), (1339513189,), (1339513192,), (1339513195,), (1339513198,), (1339513223,), (1339513227,), (1339513231,), (1339513235,), (1339513238,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'25022025': {'nb_upload': 39, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20794162]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1339513238, 1339513235, 1339513231, 1339513227, 1339513223, 1339513198, 1339513195, 1339513192, 1339513189] map_info['map_portfolio_photo'] : {20794162: [1339513238, 1339513235, 1339513231, 1339513227, 1339513223, 1339513198, 1339513195, 1339513192, 1339513189, 1339513148, 1339513147, 1339513145, 1339513142, 1339513116, 1339513108, 1339513086, 1339513082, 1339513030, 1339512953, 1339512894, 1339512889, 1339512880, 1339512874, 1339512867, 1339512856, 1339512802, 1339512799, 1339512796, 1339512792, 1339512651, 1339512649, 1339512646, 1339512643, 1339512608, 1339512324, 1339512271, 1339512266, 1339512261, 1339512258]} final : True mtd_id 4302 list_pids : [1339513238, 1339513235, 1339513231, 1339513227, 1339513223, 1339513198, 1339513195, 1339513192, 1339513189] Looping around the photos to save general results len do output : 1 /20794162Didn'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, '2612045') ('4302', '20794162', '1339513238', None, None, None, None, None, '2612045') ('4302', None, None, None, None, None, None, None, '2612045') ('4302', '20794162', '1339513235', None, None, None, None, None, '2612045') ('4302', None, None, None, None, None, None, None, '2612045') ('4302', '20794162', '1339513231', None, None, None, None, None, '2612045') ('4302', None, None, None, None, None, None, None, '2612045') ('4302', '20794162', '1339513227', None, None, None, None, None, '2612045') ('4302', None, None, None, None, None, None, None, '2612045') ('4302', '20794162', '1339513223', None, None, None, None, None, '2612045') ('4302', None, None, None, None, None, None, None, '2612045') ('4302', '20794162', '1339513198', None, None, None, None, None, '2612045') ('4302', None, None, None, None, None, None, None, '2612045') ('4302', '20794162', '1339513195', None, None, None, None, None, '2612045') ('4302', None, None, None, None, None, None, None, '2612045') ('4302', '20794162', '1339513192', None, None, None, None, None, '2612045') ('4302', None, None, None, None, None, None, None, '2612045') ('4302', '20794162', '1339513189', None, None, None, None, None, '2612045') 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, '20794162', 'None', None, None, None, None, '2612045'), ('4302', '20794162', '1339513238', None, None, None, None, None, '2612045'), ('4302', '20794162', '1339513235', None, None, None, None, None, '2612045'), ('4302', '20794162', '1339513231', None, None, None, None, None, '2612045'), ('4302', '20794162', '1339513227', None, None, None, None, None, '2612045'), ('4302', '20794162', '1339513223', None, None, None, None, None, '2612045'), ('4302', '20794162', '1339513198', None, None, None, None, None, '2612045'), ('4302', '20794162', '1339513195', None, None, None, None, None, '2612045'), ('4302', '20794162', '1339513192', None, None, None, None, None, '2612045'), ('4302', '20794162', '1339513189', None, None, None, None, None, '2612045')] time used for this insertion : 0.012154817581176758 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.33681583404541016 time spend to save output : 0.01237034797668457 total time spend for step 5 : 0.3491861820220947 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 (2612045) 2.08user 1.82system 0:09.21elapsed 42%CPU (0avgtext+0avgdata 160060maxresident)k 1904inputs+10720outputs (47major+78780minor)pagefaults 0swaps