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 : 22439 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 (2596723) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2596723) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20640740 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2596723'] with mtr_portfolio_ids : ['20640740'] and first list_photo_ids : [] new path : /proc/22439/ Name: python3 Umask: 0002 State: R (running) Tgid: 22439 Ngid: 0 Pid: 22439 PPid: 22438 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 22439 NSpid: 22439 NSpgid: 19791 NSsid: 19791 VmPeak: 1106840 kB VmSize: 1106840 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99152 kB VmRSS: 99152 kB RssAnon: 59748 kB RssFile: 39404 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 620 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 4/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: 87 nonvoluntary_ctxt_switches: 130 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '22439', 'Ngid': '0', 'Pid': '22439', 'PPid': '22438', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '22439', 'NSpid': '22439', 'NSpgid': '19791', 'NSsid': '19791', 'VmPeak': '1106840 kB', 'VmSize': '1106840 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99152 kB', 'VmRSS': '99152 kB', 'RssAnon': '59748 kB', 'RssFile': '39404 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '620 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '4/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': '87', 'nonvoluntary_ctxt_switches': '130'} ('datou_batch_current', '22439', '1106840', '0', '1106840', '865592', '99152', b'', 'marlene', '2596723') 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 (20640740) 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 (2596723 ) ) 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 (20640740) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1338349933, 'portfolio_id': 20640740}, {'photo_id': 1338349872, 'portfolio_id': 20640740}, {'photo_id': 1338349844, 'portfolio_id': 20640740}, {'photo_id': 1338349840, 'portfolio_id': 20640740}, {'photo_id': 1338349831, 'portfolio_id': 20640740}, {'photo_id': 1338349829, 'portfolio_id': 20640740}, {'photo_id': 1338349827, 'portfolio_id': 20640740}, {'photo_id': 1338349763, 'portfolio_id': 20640740}, {'photo_id': 1338349759, 'portfolio_id': 20640740}, {'photo_id': 1338349742, 'portfolio_id': 20640740}, {'photo_id': 1338349734, 'portfolio_id': 20640740}, {'photo_id': 1338349728, 'portfolio_id': 20640740}, {'photo_id': 1338349727, 'portfolio_id': 20640740}, {'photo_id': 1338349693, 'portfolio_id': 20640740}, {'photo_id': 1338349691, 'portfolio_id': 20640740}, {'photo_id': 1338349690, 'portfolio_id': 20640740}, {'photo_id': 1338349674, 'portfolio_id': 20640740}, {'photo_id': 1338349671, 'portfolio_id': 20640740}, {'photo_id': 1338349669, 'portfolio_id': 20640740}, {'photo_id': 1338349667, 'portfolio_id': 20640740}, {'photo_id': 1338349665, 'portfolio_id': 20640740}, {'photo_id': 1338349654, 'portfolio_id': 20640740}, {'photo_id': 1338349653, 'portfolio_id': 20640740}, {'photo_id': 1338349649, 'portfolio_id': 20640740}, {'photo_id': 1338349646, 'portfolio_id': 20640740}, {'photo_id': 1338349643, 'portfolio_id': 20640740}, {'photo_id': 1338349640, 'portfolio_id': 20640740}, {'photo_id': 1338349627, 'portfolio_id': 20640740}, {'photo_id': 1338349624, 'portfolio_id': 20640740}, {'photo_id': 1338349622, 'portfolio_id': 20640740}, {'photo_id': 1338349620, 'portfolio_id': 20640740}, {'photo_id': 1338349617, 'portfolio_id': 20640740}, {'photo_id': 1338349573, 'portfolio_id': 20640740}, {'photo_id': 1338349571, 'portfolio_id': 20640740}, {'photo_id': 1338349566, 'portfolio_id': 20640740}, {'photo_id': 1338349396, 'portfolio_id': 20640740}, {'photo_id': 1338349394, 'portfolio_id': 20640740}, {'photo_id': 1338349393, 'portfolio_id': 20640740}, {'photo_id': 1338349314, 'portfolio_id': 20640740}] map_portfolio_id_photo_id: {20640740: [1338349933, 1338349872, 1338349844, 1338349840, 1338349831, 1338349829, 1338349827, 1338349763, 1338349759, 1338349742, 1338349734, 1338349728, 1338349727, 1338349693, 1338349691, 1338349690, 1338349674, 1338349671, 1338349669, 1338349667, 1338349665, 1338349654, 1338349653, 1338349649, 1338349646, 1338349643, 1338349640, 1338349627, 1338349624, 1338349622, 1338349620, 1338349617, 1338349573, 1338349571, 1338349566, 1338349396, 1338349394, 1338349393, 1338349314]} ##### 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.015010833740234375 #### 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 18 15:46:56 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 (20640740) 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 : 20640740 get user id for portfolio 20640740 get sub ptf for main ptf 20640740, type 3726 and hashtags ['mal_croppe', 'flou', 'Carton_brun', 'metal', 'Carton_gris', 'Teint_Dans_La_Masse', 'autre_refus', 'papier', 'plastique', 'kraft', 'environnement', 'cartonnette'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20640740 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','flou','Carton_brun','metal','Carton_gris','Teint_Dans_La_Masse','autre_refus','papier','plastique','kraft','environnement','cartonnette')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20640740 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','flou','Carton_brun','metal','Carton_gris','Teint_Dans_La_Masse','autre_refus','papier','plastique','kraft','environnement','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 20640740, 'sub_port_id': 20640743, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13294398, 'last_updated_at': datetime.datetime(2025, 2, 18, 15, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 15, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 15, 40, 57)}, 'environnement': {'main_port_id': 20640740, 'sub_port_id': 20640744, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13294399, 'last_updated_at': datetime.datetime(2025, 2, 18, 15, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 15, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 15, 40, 57)}, 'cartonnette': {'main_port_id': 20640740, 'sub_port_id': 20640745, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13294400, 'last_updated_at': datetime.datetime(2025, 2, 18, 15, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 15, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 15, 40, 57)}, 'flou': {'main_port_id': 20640740, 'sub_port_id': 20640746, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13294401, 'last_updated_at': datetime.datetime(2025, 2, 18, 15, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 15, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 15, 40, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 20640740, 'sub_port_id': 20640747, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13294402, 'last_updated_at': datetime.datetime(2025, 2, 18, 15, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 15, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 15, 40, 57)}, 'plastique': {'main_port_id': 20640740, 'sub_port_id': 20640748, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13294403, 'last_updated_at': datetime.datetime(2025, 2, 18, 15, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 15, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 15, 40, 57)}, 'metal': {'main_port_id': 20640740, 'sub_port_id': 20640749, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13294404, 'last_updated_at': datetime.datetime(2025, 2, 18, 15, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 15, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 15, 40, 57)}, 'mal_croppe': {'main_port_id': 20640740, 'sub_port_id': 20640750, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13294405, 'last_updated_at': datetime.datetime(2025, 2, 18, 15, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 15, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 15, 40, 57)}, 'Carton_brun': {'main_port_id': 20640740, 'sub_port_id': 20640751, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13294406, 'last_updated_at': datetime.datetime(2025, 2, 18, 15, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 15, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 15, 40, 57)}, 'kraft': {'main_port_id': 20640740, 'sub_port_id': 20640752, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13294407, 'last_updated_at': datetime.datetime(2025, 2, 18, 15, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 15, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 15, 40, 57)}, 'autre_refus': {'main_port_id': 20640740, 'sub_port_id': 20640753, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13294408, 'last_updated_at': datetime.datetime(2025, 2, 18, 15, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 15, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 15, 40, 57)}, 'papier': {'main_port_id': 20640740, 'sub_port_id': 20640754, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13294409, 'last_updated_at': datetime.datetime(2025, 2, 18, 15, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 15, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 15, 40, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20640743 , 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=20640740 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 (20640743) result : ((1338349615,), (1338349618,), (1338349619,), (1338349737,), (1338349738,), (1338349917,), (1338349918,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20640740) result : ((1338349314,), (1338349393,), (1338349394,), (1338349396,), (1338349566,), (1338349571,), (1338349573,), (1338349617,), (1338349620,), (1338349622,), (1338349624,), (1338349627,), (1338349640,), (1338349643,), (1338349646,), (1338349649,), (1338349653,), (1338349654,), (1338349665,), (1338349667,), (1338349669,), (1338349671,), (1338349674,), (1338349690,), (1338349691,), (1338349693,), (1338349727,), (1338349728,), (1338349734,), (1338349742,), (1338349759,), (1338349763,), (1338349827,), (1338349829,), (1338349831,), (1338349840,), (1338349844,), (1338349872,), (1338349933,)) 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 20640744 , 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=20640740 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 (20640744) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20640740) result : ((1338349314,), (1338349393,), (1338349394,), (1338349396,), (1338349566,), (1338349571,), (1338349573,), (1338349617,), (1338349620,), (1338349622,), (1338349624,), (1338349627,), (1338349640,), (1338349643,), (1338349646,), (1338349649,), (1338349653,), (1338349654,), (1338349665,), (1338349667,), (1338349669,), (1338349671,), (1338349674,), (1338349690,), (1338349691,), (1338349693,), (1338349727,), (1338349728,), (1338349734,), (1338349742,), (1338349759,), (1338349763,), (1338349827,), (1338349829,), (1338349831,), (1338349840,), (1338349844,), (1338349872,), (1338349933,)) 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 20640745 , 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=20640740 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 (20640745) result : ((1338349739,), (1338349740,), (1338349741,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20640740) result : ((1338349314,), (1338349393,), (1338349394,), (1338349396,), (1338349566,), (1338349571,), (1338349573,), (1338349617,), (1338349620,), (1338349622,), (1338349624,), (1338349627,), (1338349640,), (1338349643,), (1338349646,), (1338349649,), (1338349653,), (1338349654,), (1338349665,), (1338349667,), (1338349669,), (1338349671,), (1338349674,), (1338349690,), (1338349691,), (1338349693,), (1338349727,), (1338349728,), (1338349734,), (1338349742,), (1338349759,), (1338349763,), (1338349827,), (1338349829,), (1338349831,), (1338349840,), (1338349844,), (1338349872,), (1338349933,)) 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 20640746 , 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=20640740 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 (20640746) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20640740) result : ((1338349314,), (1338349393,), (1338349394,), (1338349396,), (1338349566,), (1338349571,), (1338349573,), (1338349617,), (1338349620,), (1338349622,), (1338349624,), (1338349627,), (1338349640,), (1338349643,), (1338349646,), (1338349649,), (1338349653,), (1338349654,), (1338349665,), (1338349667,), (1338349669,), (1338349671,), (1338349674,), (1338349690,), (1338349691,), (1338349693,), (1338349727,), (1338349728,), (1338349734,), (1338349742,), (1338349759,), (1338349763,), (1338349827,), (1338349829,), (1338349831,), (1338349840,), (1338349844,), (1338349872,), (1338349933,)) 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 20640747 , 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=20640740 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 (20640747) result : ((1338349612,), (1338349613,), (1338349666,), (1338349730,), (1338349731,), (1338349732,), (1338349733,), (1338349912,), (1338349913,), (1338349919,), (1338349920,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20640740) result : ((1338349314,), (1338349393,), (1338349394,), (1338349396,), (1338349566,), (1338349571,), (1338349573,), (1338349617,), (1338349620,), (1338349622,), (1338349624,), (1338349627,), (1338349640,), (1338349643,), (1338349646,), (1338349649,), (1338349653,), (1338349654,), (1338349665,), (1338349667,), (1338349669,), (1338349671,), (1338349674,), (1338349690,), (1338349691,), (1338349693,), (1338349727,), (1338349728,), (1338349734,), (1338349742,), (1338349759,), (1338349763,), (1338349827,), (1338349829,), (1338349831,), (1338349840,), (1338349844,), (1338349872,), (1338349933,)) 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 20640748 , 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=20640740 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 (20640748) result : ((1338349748,), (1338349749,), (1338349750,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20640740) result : ((1338349314,), (1338349393,), (1338349394,), (1338349396,), (1338349566,), (1338349571,), (1338349573,), (1338349617,), (1338349620,), (1338349622,), (1338349624,), (1338349627,), (1338349640,), (1338349643,), (1338349646,), (1338349649,), (1338349653,), (1338349654,), (1338349665,), (1338349667,), (1338349669,), (1338349671,), (1338349674,), (1338349690,), (1338349691,), (1338349693,), (1338349727,), (1338349728,), (1338349734,), (1338349742,), (1338349759,), (1338349763,), (1338349827,), (1338349829,), (1338349831,), (1338349840,), (1338349844,), (1338349872,), (1338349933,)) 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 20640749 , 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=20640740 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 (20640749) result : ((1338349751,), (1338349752,), (1338349753,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20640740) result : ((1338349314,), (1338349393,), (1338349394,), (1338349396,), (1338349566,), (1338349571,), (1338349573,), (1338349617,), (1338349620,), (1338349622,), (1338349624,), (1338349627,), (1338349640,), (1338349643,), (1338349646,), (1338349649,), (1338349653,), (1338349654,), (1338349665,), (1338349667,), (1338349669,), (1338349671,), (1338349674,), (1338349690,), (1338349691,), (1338349693,), (1338349727,), (1338349728,), (1338349734,), (1338349742,), (1338349759,), (1338349763,), (1338349827,), (1338349829,), (1338349831,), (1338349840,), (1338349844,), (1338349872,), (1338349933,)) 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 20640750 , 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=20640740 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 (20640750) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20640740) result : ((1338349314,), (1338349393,), (1338349394,), (1338349396,), (1338349566,), (1338349571,), (1338349573,), (1338349617,), (1338349620,), (1338349622,), (1338349624,), (1338349627,), (1338349640,), (1338349643,), (1338349646,), (1338349649,), (1338349653,), (1338349654,), (1338349665,), (1338349667,), (1338349669,), (1338349671,), (1338349674,), (1338349690,), (1338349691,), (1338349693,), (1338349727,), (1338349728,), (1338349734,), (1338349742,), (1338349759,), (1338349763,), (1338349827,), (1338349829,), (1338349831,), (1338349840,), (1338349844,), (1338349872,), (1338349933,)) 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 20640751 , 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=20640740 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 (20640751) result : ((1338349743,), (1338349744,), (1338349745,), (1338349921,), (1338349922,), (1338349923,), (1338349924,), (1338349926,), (1338349927,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20640740) result : ((1338349314,), (1338349393,), (1338349394,), (1338349396,), (1338349566,), (1338349571,), (1338349573,), (1338349617,), (1338349620,), (1338349622,), (1338349624,), (1338349627,), (1338349640,), (1338349643,), (1338349646,), (1338349649,), (1338349653,), (1338349654,), (1338349665,), (1338349667,), (1338349669,), (1338349671,), (1338349674,), (1338349690,), (1338349691,), (1338349693,), (1338349727,), (1338349728,), (1338349734,), (1338349742,), (1338349759,), (1338349763,), (1338349827,), (1338349829,), (1338349831,), (1338349840,), (1338349844,), (1338349872,), (1338349933,)) 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 20640752 , 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=20640740 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 (20640752) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20640740) result : ((1338349314,), (1338349393,), (1338349394,), (1338349396,), (1338349566,), (1338349571,), (1338349573,), (1338349617,), (1338349620,), (1338349622,), (1338349624,), (1338349627,), (1338349640,), (1338349643,), (1338349646,), (1338349649,), (1338349653,), (1338349654,), (1338349665,), (1338349667,), (1338349669,), (1338349671,), (1338349674,), (1338349690,), (1338349691,), (1338349693,), (1338349727,), (1338349728,), (1338349734,), (1338349742,), (1338349759,), (1338349763,), (1338349827,), (1338349829,), (1338349831,), (1338349840,), (1338349844,), (1338349872,), (1338349933,)) 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 20640753 , 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=20640740 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 (20640753) result : ((1338349735,), (1338349736,), (1338349914,), (1338349915,), (1338349916,), (1338349925,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20640740) result : ((1338349314,), (1338349393,), (1338349394,), (1338349396,), (1338349566,), (1338349571,), (1338349573,), (1338349617,), (1338349620,), (1338349622,), (1338349624,), (1338349627,), (1338349640,), (1338349643,), (1338349646,), (1338349649,), (1338349653,), (1338349654,), (1338349665,), (1338349667,), (1338349669,), (1338349671,), (1338349674,), (1338349690,), (1338349691,), (1338349693,), (1338349727,), (1338349728,), (1338349734,), (1338349742,), (1338349759,), (1338349763,), (1338349827,), (1338349829,), (1338349831,), (1338349840,), (1338349844,), (1338349872,), (1338349933,)) 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 20640754 , 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=20640740 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 (20640754) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20640740) result : ((1338349314,), (1338349393,), (1338349394,), (1338349396,), (1338349566,), (1338349571,), (1338349573,), (1338349617,), (1338349620,), (1338349622,), (1338349624,), (1338349627,), (1338349640,), (1338349643,), (1338349646,), (1338349649,), (1338349653,), (1338349654,), (1338349665,), (1338349667,), (1338349669,), (1338349671,), (1338349674,), (1338349690,), (1338349691,), (1338349693,), (1338349727,), (1338349728,), (1338349734,), (1338349742,), (1338349759,), (1338349763,), (1338349827,), (1338349829,), (1338349831,), (1338349840,), (1338349844,), (1338349872,), (1338349933,)) 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`=20640740 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','flou','Carton_brun','metal','Carton_gris','Teint_Dans_La_Masse','autre_refus','papier','plastique','kraft','environnement','cartonnette')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20640740 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','flou','Carton_brun','metal','Carton_gris','Teint_Dans_La_Masse','autre_refus','papier','plastique','kraft','environnement','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 20640740, 'sub_port_id': 20640755, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13294410, 'last_updated_at': datetime.datetime(2025, 2, 18, 15, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 15, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 15, 40, 59)}, 'environnement': {'main_port_id': 20640740, 'sub_port_id': 20640756, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13294411, 'last_updated_at': datetime.datetime(2025, 2, 18, 15, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 15, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 15, 40, 59)}, 'cartonnette': {'main_port_id': 20640740, 'sub_port_id': 20640757, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13294412, 'last_updated_at': datetime.datetime(2025, 2, 18, 15, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 15, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 15, 40, 59)}, 'flou': {'main_port_id': 20640740, 'sub_port_id': 20640758, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13294413, 'last_updated_at': datetime.datetime(2025, 2, 18, 15, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 15, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 15, 40, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 20640740, 'sub_port_id': 20640759, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13294414, 'last_updated_at': datetime.datetime(2025, 2, 18, 15, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 15, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 15, 40, 59)}, 'plastique': {'main_port_id': 20640740, 'sub_port_id': 20640760, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13294415, 'last_updated_at': datetime.datetime(2025, 2, 18, 15, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 15, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 15, 40, 59)}, 'metal': {'main_port_id': 20640740, 'sub_port_id': 20640761, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13294416, 'last_updated_at': datetime.datetime(2025, 2, 18, 15, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 15, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 15, 40, 59)}, 'mal_croppe': {'main_port_id': 20640740, 'sub_port_id': 20640762, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13294417, 'last_updated_at': datetime.datetime(2025, 2, 18, 15, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 15, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 15, 40, 59)}, 'Carton_brun': {'main_port_id': 20640740, 'sub_port_id': 20640763, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13294418, 'last_updated_at': datetime.datetime(2025, 2, 18, 15, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 15, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 15, 40, 59)}, 'kraft': {'main_port_id': 20640740, 'sub_port_id': 20640764, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13294419, 'last_updated_at': datetime.datetime(2025, 2, 18, 15, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 15, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 15, 40, 59)}, 'autre_refus': {'main_port_id': 20640740, 'sub_port_id': 20640765, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13294420, 'last_updated_at': datetime.datetime(2025, 2, 18, 15, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 15, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 15, 40, 59)}, 'papier': {'main_port_id': 20640740, 'sub_port_id': 20640766, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13294421, 'last_updated_at': datetime.datetime(2025, 2, 18, 15, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 15, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 15, 40, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20640755,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20640743 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20640756,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20640744 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20640757,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20640745 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20640758,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20640746 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20640759,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20640747 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20640760,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20640748 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20640761,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20640749 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20640762,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20640750 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20640763,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20640751 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20640764,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20640752 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20640765,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20640753 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20640766,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20640754 lien utilise dans velours : https://www.fotonower.com/velours/20640755,20640756,20640757,20640758,20640759,20640760,20640761,20640762,20640763,20640764,20640765,20640766?tags=Carton_gris,environnement,cartonnette,flou,Teint_Dans_La_Masse,plastique,metal,mal_croppe,Carton_brun,kraft,autre_refus,papier After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20640740]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1338349933, 1338349872, 1338349844, 1338349840, 1338349831, 1338349829, 1338349827, 1338349763, 1338349759, 1338349742, 1338349734, 1338349728, 1338349727] map_info['map_portfolio_photo'] : {20640740: [1338349933, 1338349872, 1338349844, 1338349840, 1338349831, 1338349829, 1338349827, 1338349763, 1338349759, 1338349742, 1338349734, 1338349728, 1338349727, 1338349693, 1338349691, 1338349690, 1338349674, 1338349671, 1338349669, 1338349667, 1338349665, 1338349654, 1338349653, 1338349649, 1338349646, 1338349643, 1338349640, 1338349627, 1338349624, 1338349622, 1338349620, 1338349617, 1338349573, 1338349571, 1338349566, 1338349396, 1338349394, 1338349393, 1338349314]} final : False mtd_id 4302 list_pids : [1338349933, 1338349872, 1338349844, 1338349840, 1338349831, 1338349829, 1338349827, 1338349763, 1338349759, 1338349742, 1338349734, 1338349728, 1338349727] Looping around the photos to save general results len do output : 1 /20640740. 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, '2596723') ('4302', '20640740', '1338349933', None, None, None, None, None, '2596723') ('4302', None, None, None, None, None, None, None, '2596723') ('4302', '20640740', '1338349872', None, None, None, None, None, '2596723') ('4302', None, None, None, None, None, None, None, '2596723') ('4302', '20640740', '1338349844', None, None, None, None, None, '2596723') ('4302', None, None, None, None, None, None, None, '2596723') ('4302', '20640740', '1338349840', None, None, None, None, None, '2596723') ('4302', None, None, None, None, None, None, None, '2596723') ('4302', '20640740', '1338349831', None, None, None, None, None, '2596723') ('4302', None, None, None, None, None, None, None, '2596723') ('4302', '20640740', '1338349829', None, None, None, None, None, '2596723') ('4302', None, None, None, None, None, None, None, '2596723') ('4302', '20640740', '1338349827', None, None, None, None, None, '2596723') ('4302', None, None, None, None, None, None, None, '2596723') ('4302', '20640740', '1338349763', None, None, None, None, None, '2596723') ('4302', None, None, None, None, None, None, None, '2596723') ('4302', '20640740', '1338349759', None, None, None, None, None, '2596723') ('4302', None, None, None, None, None, None, None, '2596723') ('4302', '20640740', '1338349742', None, None, None, None, None, '2596723') ('4302', None, None, None, None, None, None, None, '2596723') ('4302', '20640740', '1338349734', None, None, None, None, None, '2596723') ('4302', None, None, None, None, None, None, None, '2596723') ('4302', '20640740', '1338349728', None, None, None, None, None, '2596723') ('4302', None, None, None, None, None, None, None, '2596723') ('4302', '20640740', '1338349727', None, None, None, None, None, '2596723') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 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, '20640740', "{'Carton_gris': 20640743, 'environnement': 20640744, 'cartonnette': 20640745, 'flou': 20640746, 'Teint_Dans_La_Masse': 20640747, 'plastique': 20640748, 'metal': 20640749, 'mal_croppe': 20640750, 'Carton_brun': 20640751, 'kraft': 20640752, 'autre_refus': 20640753, 'papier': 20640754}", None, None, None, None, '2596723'), ('4302', '20640740', '1338349933', None, None, None, None, None, '2596723'), ('4302', '20640740', '1338349872', None, None, None, None, None, '2596723'), ('4302', '20640740', '1338349844', None, None, None, None, None, '2596723'), ('4302', '20640740', '1338349840', None, None, None, None, None, '2596723'), ('4302', '20640740', '1338349831', None, None, None, None, None, '2596723'), ('4302', '20640740', '1338349829', None, None, None, None, None, '2596723'), ('4302', '20640740', '1338349827', None, None, None, None, None, '2596723'), ('4302', '20640740', '1338349763', None, None, None, None, None, '2596723'), ('4302', '20640740', '1338349759', None, None, None, None, None, '2596723'), ('4302', '20640740', '1338349742', None, None, None, None, None, '2596723'), ('4302', '20640740', '1338349734', None, None, None, None, None, '2596723'), ('4302', '20640740', '1338349728', None, None, None, None, None, '2596723'), ('4302', '20640740', '1338349727', None, None, None, None, None, '2596723')] time used for this insertion : 0.01442408561706543 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.412454605102539 time spend to save output : 0.014824390411376953 total time spend for step 1 : 1.427278995513916 step2:final Tue Feb 18 15:46:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 (20640740) 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 20640740 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1338349314,1338349396,1338349394,1338349393,1338349573,1338349571,1338349566,1338349627,1338349624,1338349622,1338349620,1338349617,1338349654,1338349653,1338349649,1338349646,1338349643,1338349640,1338349674,1338349671,1338349669,1338349667,1338349665,1338349693,1338349691,1338349690,1338349763,1338349759,1338349742,1338349734,1338349728,1338349727,1338349872,1338349844,1338349840,1338349831,1338349829,1338349827,1338349933); 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([20640740]) Inside saveOutput : final : False verbose : True original output for save of step final : {1338349933: ('0.023352821994835647',), 1338349872: ('0.023352821994835647',), 1338349844: ('0.023352821994835647',), 1338349840: ('0.023352821994835647',), 1338349831: ('0.023352821994835647',), 1338349829: ('0.023352821994835647',), 1338349827: ('0.023352821994835647',), 1338349763: ('0.023352821994835647',), 1338349759: ('0.023352821994835647',), 1338349742: ('0.023352821994835647',), 1338349734: ('0.023352821994835647',), 1338349728: ('0.023352821994835647',), 1338349727: ('0.023352821994835647',)} new output for save of step final : {1338349933: ('0.023352821994835647',), 1338349872: ('0.023352821994835647',), 1338349844: ('0.023352821994835647',), 1338349840: ('0.023352821994835647',), 1338349831: ('0.023352821994835647',), 1338349829: ('0.023352821994835647',), 1338349827: ('0.023352821994835647',), 1338349763: ('0.023352821994835647',), 1338349759: ('0.023352821994835647',), 1338349742: ('0.023352821994835647',), 1338349734: ('0.023352821994835647',), 1338349728: ('0.023352821994835647',), 1338349727: ('0.023352821994835647',)} [1338349933, 1338349872, 1338349844, 1338349840, 1338349831, 1338349829, 1338349827, 1338349763, 1338349759, 1338349742, 1338349734, 1338349728, 1338349727] map_info['map_portfolio_photo'] : {20640740: [1338349933, 1338349872, 1338349844, 1338349840, 1338349831, 1338349829, 1338349827, 1338349763, 1338349759, 1338349742, 1338349734, 1338349728, 1338349727, 1338349693, 1338349691, 1338349690, 1338349674, 1338349671, 1338349669, 1338349667, 1338349665, 1338349654, 1338349653, 1338349649, 1338349646, 1338349643, 1338349640, 1338349627, 1338349624, 1338349622, 1338349620, 1338349617, 1338349573, 1338349571, 1338349566, 1338349396, 1338349394, 1338349393, 1338349314]} final : False mtd_id 4302 list_pids : [1338349933, 1338349872, 1338349844, 1338349840, 1338349831, 1338349829, 1338349827, 1338349763, 1338349759, 1338349742, 1338349734, 1338349728, 1338349727] Looping around the photos to save general results len do output : 13 /1338349933.Didn't retrieve data . /1338349872.Didn't retrieve data . /1338349844.Didn't retrieve data . /1338349840.Didn't retrieve data . /1338349831.Didn't retrieve data . /1338349829.Didn't retrieve data . /1338349827.Didn't retrieve data . /1338349763.Didn't retrieve data . /1338349759.Didn't retrieve data . /1338349742.Didn't retrieve data . /1338349734.Didn't retrieve data . /1338349728.Didn't retrieve data . /1338349727.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, '2596723') ('4302', '20640740', '1338349933', None, None, None, None, None, '2596723') ('4302', None, None, None, None, None, None, None, '2596723') ('4302', '20640740', '1338349872', None, None, None, None, None, '2596723') ('4302', None, None, None, None, None, None, None, '2596723') ('4302', '20640740', '1338349844', None, None, None, None, None, '2596723') ('4302', None, None, None, None, None, None, None, '2596723') ('4302', '20640740', '1338349840', None, None, None, None, None, '2596723') ('4302', None, None, None, None, None, None, None, '2596723') ('4302', '20640740', '1338349831', None, None, None, None, None, '2596723') ('4302', None, None, None, None, None, None, None, '2596723') ('4302', '20640740', '1338349829', None, None, None, None, None, '2596723') ('4302', None, None, None, None, None, None, None, '2596723') ('4302', '20640740', '1338349827', None, None, None, None, None, '2596723') ('4302', None, None, None, None, None, None, None, '2596723') ('4302', '20640740', '1338349763', None, None, None, None, None, '2596723') ('4302', None, None, None, None, None, None, None, '2596723') ('4302', '20640740', '1338349759', None, None, None, None, None, '2596723') ('4302', None, None, None, None, None, None, None, '2596723') ('4302', '20640740', '1338349742', None, None, None, None, None, '2596723') ('4302', None, None, None, None, None, None, None, '2596723') ('4302', '20640740', '1338349734', None, None, None, None, None, '2596723') ('4302', None, None, None, None, None, None, None, '2596723') ('4302', '20640740', '1338349728', None, None, None, None, None, '2596723') ('4302', None, None, None, None, None, None, None, '2596723') ('4302', '20640740', '1338349727', None, None, None, None, None, '2596723') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 39 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', '20640740', '1338349933', '0.023352821994835647', None, None, None, None, '2596723'), ('4302', '20640740', '1338349872', '0.023352821994835647', None, None, None, None, '2596723'), ('4302', '20640740', '1338349844', '0.023352821994835647', None, None, None, None, '2596723'), ('4302', '20640740', '1338349840', '0.023352821994835647', None, None, None, None, '2596723'), ('4302', '20640740', '1338349831', '0.023352821994835647', None, None, None, None, '2596723'), ('4302', '20640740', '1338349829', '0.023352821994835647', None, None, None, None, '2596723'), ('4302', '20640740', '1338349827', '0.023352821994835647', None, None, None, None, '2596723'), ('4302', '20640740', '1338349763', '0.023352821994835647', None, None, None, None, '2596723'), ('4302', '20640740', '1338349759', '0.023352821994835647', None, None, None, None, '2596723'), ('4302', '20640740', '1338349742', '0.023352821994835647', None, None, None, None, '2596723'), ('4302', '20640740', '1338349734', '0.023352821994835647', None, None, None, None, '2596723'), ('4302', '20640740', '1338349728', '0.023352821994835647', None, None, None, None, '2596723'), ('4302', '20640740', '1338349727', '0.023352821994835647', None, None, None, None, '2596723')] time used for this insertion : 0.013306379318237305 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06500005722045898 time spend to save output : 0.014060497283935547 total time spend for step 2 : 0.07906055450439453 step3:velours_tree Tue Feb 18 15:46:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {20640740: [{'Carton_gris': 20640743, 'environnement': 20640744, 'cartonnette': 20640745, 'flou': 20640746, 'Teint_Dans_La_Masse': 20640747, 'plastique': 20640748, 'metal': 20640749, 'mal_croppe': 20640750, 'Carton_brun': 20640751, 'kraft': 20640752, 'autre_refus': 20640753, 'papier': 20640754}]} input_args_next_step : {20640740: ()} output_args : {20640740: [{'Carton_gris': 20640743, 'environnement': 20640744, 'cartonnette': 20640745, 'flou': 20640746, 'Teint_Dans_La_Masse': 20640747, 'plastique': 20640748, 'metal': 20640749, 'mal_croppe': 20640750, 'Carton_brun': 20640751, 'kraft': 20640752, 'autre_refus': 20640753, 'papier': 20640754}]} args : 20640740 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_gris': 20640743, 'environnement': 20640744, 'cartonnette': 20640745, 'flou': 20640746, 'Teint_Dans_La_Masse': 20640747, 'plastique': 20640748, 'metal': 20640749, 'mal_croppe': 20640750, 'Carton_brun': 20640751, 'kraft': 20640752, 'autre_refus': 20640753, 'papier': 20640754},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20640740) 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([20640740]) 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.32795023918151855 time spend to save output : 4.363059997558594e-05 total time spend for step 3 : 0.32799386978149414 step4:send_mail_cod Tue Feb 18 15:46:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1338349933: ('0.023352821994835647',), 1338349872: ('0.023352821994835647',), 1338349844: ('0.023352821994835647',), 1338349840: ('0.023352821994835647',), 1338349831: ('0.023352821994835647',), 1338349829: ('0.023352821994835647',), 1338349827: ('0.023352821994835647',), 1338349763: ('0.023352821994835647',), 1338349759: ('0.023352821994835647',), 1338349742: ('0.023352821994835647',), 1338349734: ('0.023352821994835647',), 1338349728: ('0.023352821994835647',), 1338349727: ('0.023352821994835647',)} input_args_next_step : {1338349933: ()} output_args : {1338349933: ('0.023352821994835647',), 1338349872: ('0.023352821994835647',), 1338349844: ('0.023352821994835647',), 1338349840: ('0.023352821994835647',), 1338349831: ('0.023352821994835647',), 1338349829: ('0.023352821994835647',), 1338349827: ('0.023352821994835647',), 1338349763: ('0.023352821994835647',), 1338349759: ('0.023352821994835647',), 1338349742: ('0.023352821994835647',), 1338349734: ('0.023352821994835647',), 1338349728: ('0.023352821994835647',), 1338349727: ('0.023352821994835647',)} args : 1338349933 depend.output_id : 0 input_args_next_step : {1338349933: ('0.023352821994835647',), 1338349872: ()} output_args : {1338349933: ('0.023352821994835647',), 1338349872: ('0.023352821994835647',), 1338349844: ('0.023352821994835647',), 1338349840: ('0.023352821994835647',), 1338349831: ('0.023352821994835647',), 1338349829: ('0.023352821994835647',), 1338349827: ('0.023352821994835647',), 1338349763: ('0.023352821994835647',), 1338349759: ('0.023352821994835647',), 1338349742: ('0.023352821994835647',), 1338349734: ('0.023352821994835647',), 1338349728: ('0.023352821994835647',), 1338349727: ('0.023352821994835647',)} args : 1338349872 depend.output_id : 0 input_args_next_step : {1338349933: ('0.023352821994835647',), 1338349872: ('0.023352821994835647',), 1338349844: ()} output_args : {1338349933: ('0.023352821994835647',), 1338349872: ('0.023352821994835647',), 1338349844: ('0.023352821994835647',), 1338349840: ('0.023352821994835647',), 1338349831: ('0.023352821994835647',), 1338349829: ('0.023352821994835647',), 1338349827: ('0.023352821994835647',), 1338349763: ('0.023352821994835647',), 1338349759: ('0.023352821994835647',), 1338349742: ('0.023352821994835647',), 1338349734: ('0.023352821994835647',), 1338349728: ('0.023352821994835647',), 1338349727: ('0.023352821994835647',)} args : 1338349844 depend.output_id : 0 input_args_next_step : {1338349933: ('0.023352821994835647',), 1338349872: ('0.023352821994835647',), 1338349844: ('0.023352821994835647',), 1338349840: ()} output_args : {1338349933: ('0.023352821994835647',), 1338349872: ('0.023352821994835647',), 1338349844: ('0.023352821994835647',), 1338349840: ('0.023352821994835647',), 1338349831: ('0.023352821994835647',), 1338349829: ('0.023352821994835647',), 1338349827: ('0.023352821994835647',), 1338349763: ('0.023352821994835647',), 1338349759: ('0.023352821994835647',), 1338349742: ('0.023352821994835647',), 1338349734: ('0.023352821994835647',), 1338349728: ('0.023352821994835647',), 1338349727: ('0.023352821994835647',)} args : 1338349840 depend.output_id : 0 input_args_next_step : {1338349933: ('0.023352821994835647',), 1338349872: ('0.023352821994835647',), 1338349844: ('0.023352821994835647',), 1338349840: ('0.023352821994835647',), 1338349831: ()} output_args : {1338349933: ('0.023352821994835647',), 1338349872: ('0.023352821994835647',), 1338349844: ('0.023352821994835647',), 1338349840: ('0.023352821994835647',), 1338349831: ('0.023352821994835647',), 1338349829: ('0.023352821994835647',), 1338349827: ('0.023352821994835647',), 1338349763: ('0.023352821994835647',), 1338349759: ('0.023352821994835647',), 1338349742: ('0.023352821994835647',), 1338349734: ('0.023352821994835647',), 1338349728: ('0.023352821994835647',), 1338349727: ('0.023352821994835647',)} args : 1338349831 depend.output_id : 0 input_args_next_step : {1338349933: ('0.023352821994835647',), 1338349872: ('0.023352821994835647',), 1338349844: ('0.023352821994835647',), 1338349840: ('0.023352821994835647',), 1338349831: ('0.023352821994835647',), 1338349829: ()} output_args : {1338349933: ('0.023352821994835647',), 1338349872: ('0.023352821994835647',), 1338349844: ('0.023352821994835647',), 1338349840: ('0.023352821994835647',), 1338349831: ('0.023352821994835647',), 1338349829: ('0.023352821994835647',), 1338349827: ('0.023352821994835647',), 1338349763: ('0.023352821994835647',), 1338349759: ('0.023352821994835647',), 1338349742: ('0.023352821994835647',), 1338349734: ('0.023352821994835647',), 1338349728: ('0.023352821994835647',), 1338349727: ('0.023352821994835647',)} args : 1338349829 depend.output_id : 0 input_args_next_step : {1338349933: ('0.023352821994835647',), 1338349872: ('0.023352821994835647',), 1338349844: ('0.023352821994835647',), 1338349840: ('0.023352821994835647',), 1338349831: ('0.023352821994835647',), 1338349829: ('0.023352821994835647',), 1338349827: ()} output_args : {1338349933: ('0.023352821994835647',), 1338349872: ('0.023352821994835647',), 1338349844: ('0.023352821994835647',), 1338349840: ('0.023352821994835647',), 1338349831: ('0.023352821994835647',), 1338349829: ('0.023352821994835647',), 1338349827: ('0.023352821994835647',), 1338349763: ('0.023352821994835647',), 1338349759: ('0.023352821994835647',), 1338349742: ('0.023352821994835647',), 1338349734: ('0.023352821994835647',), 1338349728: ('0.023352821994835647',), 1338349727: ('0.023352821994835647',)} args : 1338349827 depend.output_id : 0 input_args_next_step : {1338349933: ('0.023352821994835647',), 1338349872: ('0.023352821994835647',), 1338349844: ('0.023352821994835647',), 1338349840: ('0.023352821994835647',), 1338349831: ('0.023352821994835647',), 1338349829: ('0.023352821994835647',), 1338349827: ('0.023352821994835647',), 1338349763: ()} output_args : {1338349933: ('0.023352821994835647',), 1338349872: ('0.023352821994835647',), 1338349844: ('0.023352821994835647',), 1338349840: ('0.023352821994835647',), 1338349831: ('0.023352821994835647',), 1338349829: ('0.023352821994835647',), 1338349827: ('0.023352821994835647',), 1338349763: ('0.023352821994835647',), 1338349759: ('0.023352821994835647',), 1338349742: ('0.023352821994835647',), 1338349734: ('0.023352821994835647',), 1338349728: ('0.023352821994835647',), 1338349727: ('0.023352821994835647',)} args : 1338349763 depend.output_id : 0 input_args_next_step : {1338349933: ('0.023352821994835647',), 1338349872: ('0.023352821994835647',), 1338349844: ('0.023352821994835647',), 1338349840: ('0.023352821994835647',), 1338349831: ('0.023352821994835647',), 1338349829: ('0.023352821994835647',), 1338349827: ('0.023352821994835647',), 1338349763: ('0.023352821994835647',), 1338349759: ()} output_args : {1338349933: ('0.023352821994835647',), 1338349872: ('0.023352821994835647',), 1338349844: ('0.023352821994835647',), 1338349840: ('0.023352821994835647',), 1338349831: ('0.023352821994835647',), 1338349829: ('0.023352821994835647',), 1338349827: ('0.023352821994835647',), 1338349763: ('0.023352821994835647',), 1338349759: ('0.023352821994835647',), 1338349742: ('0.023352821994835647',), 1338349734: ('0.023352821994835647',), 1338349728: ('0.023352821994835647',), 1338349727: ('0.023352821994835647',)} args : 1338349759 depend.output_id : 0 input_args_next_step : {1338349933: ('0.023352821994835647',), 1338349872: ('0.023352821994835647',), 1338349844: ('0.023352821994835647',), 1338349840: ('0.023352821994835647',), 1338349831: ('0.023352821994835647',), 1338349829: ('0.023352821994835647',), 1338349827: ('0.023352821994835647',), 1338349763: ('0.023352821994835647',), 1338349759: ('0.023352821994835647',), 1338349742: ()} output_args : {1338349933: ('0.023352821994835647',), 1338349872: ('0.023352821994835647',), 1338349844: ('0.023352821994835647',), 1338349840: ('0.023352821994835647',), 1338349831: ('0.023352821994835647',), 1338349829: ('0.023352821994835647',), 1338349827: ('0.023352821994835647',), 1338349763: ('0.023352821994835647',), 1338349759: ('0.023352821994835647',), 1338349742: ('0.023352821994835647',), 1338349734: ('0.023352821994835647',), 1338349728: ('0.023352821994835647',), 1338349727: ('0.023352821994835647',)} args : 1338349742 depend.output_id : 0 input_args_next_step : {1338349933: ('0.023352821994835647',), 1338349872: ('0.023352821994835647',), 1338349844: ('0.023352821994835647',), 1338349840: ('0.023352821994835647',), 1338349831: ('0.023352821994835647',), 1338349829: ('0.023352821994835647',), 1338349827: ('0.023352821994835647',), 1338349763: ('0.023352821994835647',), 1338349759: ('0.023352821994835647',), 1338349742: ('0.023352821994835647',), 1338349734: ()} output_args : {1338349933: ('0.023352821994835647',), 1338349872: ('0.023352821994835647',), 1338349844: ('0.023352821994835647',), 1338349840: ('0.023352821994835647',), 1338349831: ('0.023352821994835647',), 1338349829: ('0.023352821994835647',), 1338349827: ('0.023352821994835647',), 1338349763: ('0.023352821994835647',), 1338349759: ('0.023352821994835647',), 1338349742: ('0.023352821994835647',), 1338349734: ('0.023352821994835647',), 1338349728: ('0.023352821994835647',), 1338349727: ('0.023352821994835647',)} args : 1338349734 depend.output_id : 0 input_args_next_step : {1338349933: ('0.023352821994835647',), 1338349872: ('0.023352821994835647',), 1338349844: ('0.023352821994835647',), 1338349840: ('0.023352821994835647',), 1338349831: ('0.023352821994835647',), 1338349829: ('0.023352821994835647',), 1338349827: ('0.023352821994835647',), 1338349763: ('0.023352821994835647',), 1338349759: ('0.023352821994835647',), 1338349742: ('0.023352821994835647',), 1338349734: ('0.023352821994835647',), 1338349728: ()} output_args : {1338349933: ('0.023352821994835647',), 1338349872: ('0.023352821994835647',), 1338349844: ('0.023352821994835647',), 1338349840: ('0.023352821994835647',), 1338349831: ('0.023352821994835647',), 1338349829: ('0.023352821994835647',), 1338349827: ('0.023352821994835647',), 1338349763: ('0.023352821994835647',), 1338349759: ('0.023352821994835647',), 1338349742: ('0.023352821994835647',), 1338349734: ('0.023352821994835647',), 1338349728: ('0.023352821994835647',), 1338349727: ('0.023352821994835647',)} args : 1338349728 depend.output_id : 0 input_args_next_step : {1338349933: ('0.023352821994835647',), 1338349872: ('0.023352821994835647',), 1338349844: ('0.023352821994835647',), 1338349840: ('0.023352821994835647',), 1338349831: ('0.023352821994835647',), 1338349829: ('0.023352821994835647',), 1338349827: ('0.023352821994835647',), 1338349763: ('0.023352821994835647',), 1338349759: ('0.023352821994835647',), 1338349742: ('0.023352821994835647',), 1338349734: ('0.023352821994835647',), 1338349728: ('0.023352821994835647',), 1338349727: ()} output_args : {1338349933: ('0.023352821994835647',), 1338349872: ('0.023352821994835647',), 1338349844: ('0.023352821994835647',), 1338349840: ('0.023352821994835647',), 1338349831: ('0.023352821994835647',), 1338349829: ('0.023352821994835647',), 1338349827: ('0.023352821994835647',), 1338349763: ('0.023352821994835647',), 1338349759: ('0.023352821994835647',), 1338349742: ('0.023352821994835647',), 1338349734: ('0.023352821994835647',), 1338349728: ('0.023352821994835647',), 1338349727: ('0.023352821994835647',)} args : 1338349727 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 : {20640740: [{'Carton_gris': 20640743, 'environnement': 20640744, 'cartonnette': 20640745, 'flou': 20640746, 'Teint_Dans_La_Masse': 20640747, 'plastique': 20640748, 'metal': 20640749, 'mal_croppe': 20640750, 'Carton_brun': 20640751, 'kraft': 20640752, 'autre_refus': 20640753, 'papier': 20640754}]} input_args_next_step : {1338349933: ('0.023352821994835647',), 1338349872: ('0.023352821994835647',), 1338349844: ('0.023352821994835647',), 1338349840: ('0.023352821994835647',), 1338349831: ('0.023352821994835647',), 1338349829: ('0.023352821994835647',), 1338349827: ('0.023352821994835647',), 1338349763: ('0.023352821994835647',), 1338349759: ('0.023352821994835647',), 1338349742: ('0.023352821994835647',), 1338349734: ('0.023352821994835647',), 1338349728: ('0.023352821994835647',), 1338349727: ('0.023352821994835647',), 20640740: ()} output_args : {20640740: [{'Carton_gris': 20640743, 'environnement': 20640744, 'cartonnette': 20640745, 'flou': 20640746, 'Teint_Dans_La_Masse': 20640747, 'plastique': 20640748, 'metal': 20640749, 'mal_croppe': 20640750, 'Carton_brun': 20640751, 'kraft': 20640752, 'autre_refus': 20640753, 'papier': 20640754}]} args : 20640740 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 :14, first value : ('0.023352821994835647',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20640740) 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 (1338349933,1338349872,1338349844,1338349840,1338349831,1338349829,1338349827,1338349763,1338349759,1338349742,1338349734,1338349728,1338349727) Found this number of photos: 13 ##### Call download_photos : nb_thread : 5 begin to download photo : 1338349727 begin to download photo : 1338349742 begin to download photo : 1338349840 begin to download photo : 1338349933 begin to download photo : 1338349827 download finish for photo 1338349742 begin to download photo : 1338349759 download finish for photo 1338349827 begin to download photo : 1338349829 download finish for photo 1338349727 begin to download photo : 1338349728 download finish for photo 1338349840 begin to download photo : 1338349844 download finish for photo 1338349933 download finish for photo 1338349759 begin to download photo : 1338349763 download finish for photo 1338349829 begin to download photo : 1338349831 download finish for photo 1338349728 begin to download photo : 1338349734 download finish for photo 1338349763 download finish for photo 1338349844 begin to download photo : 1338349872 download finish for photo 1338349734 download finish for photo 1338349831 download finish for photo 1338349872 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 : 13 ; length of list_pids : 13 ; length of list_args : 13 results_Auto_P20640740_18-02-2025_15_46_58.pdf 20640745 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=20640745 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338349739: '1739889772_57872_1338349653_272c972ff2b534e703cc2dea74ccaaf8_rle_crop_3679062578_0.png', 1338349740: '1739889772_57872_1338349646_c6938d09b40dccf1d620567beadf6c69_rle_crop_3679062639_0.png', 1338349741: '1739889772_57872_1338349640_3dbc1cc66329d66fdb76bc3b6593dc64_rle_crop_3679062783_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/86f60561ad363e08593cc33d290bbca0_60648409.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/a82c19abd31ea84aa8f8b0c5fd7eedc7_22895287.png change filename to text .imagette206407451739890018/ imagette206407451739890018/1739889772_57872_1338349646_c6938d09b40dccf1d620567beadf6c69_rle_crop_3679062639_0.png.png imagette206407451739890018/1739889772_57872_1338349653_272c972ff2b534e703cc2dea74ccaaf8_rle_crop_3679062578_0.png.png imagette206407451739890018/1739889772_57872_1338349640_3dbc1cc66329d66fdb76bc3b6593dc64_rle_crop_3679062783_0.png.png imagette206407461739890018/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/aa3a88948f206b7f23666e2d46b49d74_31923773.png imagette206407451739890018 20640746 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=20640746 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette206407461739890018 20640748 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=20640748 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338349748: '1739889772_57872_1338349646_c6938d09b40dccf1d620567beadf6c69_rle_crop_3679062644_0.png', 1338349749: '1739889772_57872_1338349646_c6938d09b40dccf1d620567beadf6c69_rle_crop_3679062640_0.png', 1338349750: '1739889772_57872_1338349643_f92f38cd77f1fa986525aec6c1b1b280_rle_crop_3679062680_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/d09f0139715076e52ce029cae2caabb9_93259507.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/67a6d36a61e24ed7bb3db8eff5243bae_18346642.png change filename to text .imagette206407481739890018/ imagette206407481739890018/1739889772_57872_1338349646_c6938d09b40dccf1d620567beadf6c69_rle_crop_3679062644_0.png.png imagette206407481739890018/1739889772_57872_1338349643_f92f38cd77f1fa986525aec6c1b1b280_rle_crop_3679062680_0.png.png imagette206407481739890018/1739889772_57872_1338349646_c6938d09b40dccf1d620567beadf6c69_rle_crop_3679062640_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/bd126a3038fd609c26b3246278ed3807_8737378.png imagette206407481739890018 20640749 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=20640749 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338349751: '1739889772_57872_1338349649_2b1bd663402eff175dec0c4561a3b735_rle_crop_3679062602_0.png', 1338349752: '1739889772_57872_1338349649_2b1bd663402eff175dec0c4561a3b735_rle_crop_3679062603_0.png', 1338349753: '1739889772_57872_1338349646_c6938d09b40dccf1d620567beadf6c69_rle_crop_3679062632_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/290f9c0468fe082c227affde351cdb1a_56894483.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/654fbba36a0c5a6db484dbda49612247_81546072.png change filename to text .imagette206407491739890019/ imagette206407491739890019/1739889772_57872_1338349649_2b1bd663402eff175dec0c4561a3b735_rle_crop_3679062603_0.png.png imagette206407491739890019/1739889772_57872_1338349646_c6938d09b40dccf1d620567beadf6c69_rle_crop_3679062632_0.png.png imagette206407491739890019/1739889772_57872_1338349649_2b1bd663402eff175dec0c4561a3b735_rle_crop_3679062602_0.png.png imagette206407501739890019/ imagette206407521739890019/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/30bbdace8b8f4c99fd61812497c9710c_92435677.png imagette206407491739890019 20640750 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=20640750 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette206407501739890019 20640752 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=20640752 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette206407521739890019 20640753 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=20640753 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338349735: '1739889772_57872_1338349653_272c972ff2b534e703cc2dea74ccaaf8_rle_crop_3679062582_0.png', 1338349736: '1739889772_57872_1338349649_2b1bd663402eff175dec0c4561a3b735_rle_crop_3679062604_0.png', 1338349914: '1739889893_58894_1338349671_6e50cb9a364f722859d4ebdfc269a921_rle_crop_3679064134_0.png', 1338349915: '1739889893_58894_1338349669_3bdfa0bd3bd0cc43f4bb588a747accf9_rle_crop_3679064150_0.png', 1338349916: '1739889893_58894_1338349669_3bdfa0bd3bd0cc43f4bb588a747accf9_rle_crop_3679064154_0.png', 1338349925: '1739889914_59149_1338349690_e286ca179c4aab98d18011da35224dcd_rle_crop_3679064216_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/8dee53e2c09badebb0205d5d6820debe_72722587.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/892cb04435eefaa8432cf02f04df1e78_12098258.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/f903da5a38833899119504385028f363_38716725.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/38dad961766843dc0073cea504cd240b_3870349.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/c22a2557069b7ccce2bed0e4d863be7f_96284842.png change filename to text .imagette206407531739890019/ imagette206407531739890019/1739889893_58894_1338349671_6e50cb9a364f722859d4ebdfc269a921_rle_crop_3679064134_0.png.png imagette206407531739890019/1739889914_59149_1338349690_e286ca179c4aab98d18011da35224dcd_rle_crop_3679064216_0.png.png imagette206407531739890019/1739889893_58894_1338349669_3bdfa0bd3bd0cc43f4bb588a747accf9_rle_crop_3679064154_0.png.png imagette206407531739890019/1739889772_57872_1338349653_272c972ff2b534e703cc2dea74ccaaf8_rle_crop_3679062582_0.png.png imagette206407531739890019/1739889772_57872_1338349649_2b1bd663402eff175dec0c4561a3b735_rle_crop_3679062604_0.png.png imagette206407531739890019/1739889893_58894_1338349669_3bdfa0bd3bd0cc43f4bb588a747accf9_rle_crop_3679064150_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/8279904e0ea7b6d71b1a7f8ed7bfad50_92270303.png imagette206407531739890019 20640743 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=20640743 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338349615: '1739889553_54003_1338349396_89b31da84e374cd9463b9e3495a61e93_rle_crop_3679060532_0.png', 1338349618: '1739889572_54229_1338349394_36cd70783c21ce6e3003e410fb18cfb1_rle_crop_3679060560_0.png', 1338349619: '1739889572_54229_1338349394_36cd70783c21ce6e3003e410fb18cfb1_rle_crop_3679060564_0.png', 1338349737: '1739889772_57872_1338349653_272c972ff2b534e703cc2dea74ccaaf8_rle_crop_3679062591_0.png', 1338349738: '1739889772_57872_1338349649_2b1bd663402eff175dec0c4561a3b735_rle_crop_3679062609_0.png', 1338349917: '1739889893_58894_1338349693_a7a28c1b3e6d9e5305bc42627e10345f_rle_crop_3679064049_0.png', 1338349918: '1739889893_58894_1338349665_2426b8507aaf20c3097ef22c2b543c90_rle_crop_3679064188_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/479b0d73a67480bba65865b596e9e8ac_22160046.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/ea96b57966583a6a96899063fda67d6a_28859336.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/25bb91477b40f1ad4180f6dc7b3ff524_2204040.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/ed03e98b5a8434d4933fcbd157f1049e_26112677.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/b9513e9f312ce99fc4bd3ab4788b0677_92286610.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/e43946a5f92f7275a0df75b513570a83_7712566.png change filename to text .imagette206407431739890019/ imagette206407431739890019/1739889772_57872_1338349649_2b1bd663402eff175dec0c4561a3b735_rle_crop_3679062609_0.png.png imagette206407431739890019/1739889772_57872_1338349653_272c972ff2b534e703cc2dea74ccaaf8_rle_crop_3679062591_0.png.png imagette206407431739890019/1739889553_54003_1338349396_89b31da84e374cd9463b9e3495a61e93_rle_crop_3679060532_0.png.png imagette206407431739890019/1739889572_54229_1338349394_36cd70783c21ce6e3003e410fb18cfb1_rle_crop_3679060560_0.png.png imagette206407431739890019/1739889893_58894_1338349693_a7a28c1b3e6d9e5305bc42627e10345f_rle_crop_3679064049_0.png.png imagette206407431739890019/1739889572_54229_1338349394_36cd70783c21ce6e3003e410fb18cfb1_rle_crop_3679060564_0.png.png imagette206407431739890019/1739889893_58894_1338349665_2426b8507aaf20c3097ef22c2b543c90_rle_crop_3679064188_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/2c353c8e25f8c5262e0f55c55c97e21b_25968687.png imagette206407431739890019 20640747 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=20640747 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338349612: '1739889553_54003_1338349396_89b31da84e374cd9463b9e3495a61e93_rle_crop_3679060537_0.png', 1338349613: '1739889553_54003_1338349314_fdbdd5a840ecce02f8018234cacdd42f_rle_crop_3679060551_0.png', 1338349666: '1739889661_55518_1338349571_ced436e90dad054511747c2fa4d4e84b_rle_crop_3679061929_0.png', 1338349730: '1739889772_57872_1338349653_272c972ff2b534e703cc2dea74ccaaf8_rle_crop_3679062587_0.png', 1338349731: '1739889772_57872_1338349649_2b1bd663402eff175dec0c4561a3b735_rle_crop_3679062607_0.png', 1338349732: '1739889772_57872_1338349646_c6938d09b40dccf1d620567beadf6c69_rle_crop_3679062634_0.png', 1338349733: '1739889772_57872_1338349640_3dbc1cc66329d66fdb76bc3b6593dc64_rle_crop_3679062785_0.png', 1338349912: '1739889893_58894_1338349693_a7a28c1b3e6d9e5305bc42627e10345f_rle_crop_3679064060_0.png', 1338349913: '1739889893_58894_1338349693_a7a28c1b3e6d9e5305bc42627e10345f_rle_crop_3679064054_0.png', 1338349919: '1739889914_59149_1338349691_560d6a3e205e4b8d3b754810f88b9fb1_rle_crop_3679064211_0.png', 1338349920: '1739889914_59149_1338349690_e286ca179c4aab98d18011da35224dcd_rle_crop_3679064219_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/b00a55c7c53802c9328828255a870aa2_34830306.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/19abe7591811aeb6083275bb492b4ebb_22886711.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/b21e6516f9acb35c7ef6327d8db10626_278376.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/616c8c7ae7d94064b3ca87aa169bacb8_21870472.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/d26a063aa9d763c28474b9e0ad2ddc70_72412756.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/b42366a70210cd0a3731e4d8fd8377e5_17571441.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/89d1f68cc52f634266a3f8a681bbe777_80299311.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/14c8da9c01f555cabdf90b38c56b4feb_24333965.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/83e82faffd3a0839d226bdd327d30732_41842155.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/8b1aff2cfeb4c3b2c20f50c4f163e712_61443885.png change filename to text .imagette206407471739890019/ imagette206407471739890019/1739889914_59149_1338349690_e286ca179c4aab98d18011da35224dcd_rle_crop_3679064219_0.png.png imagette206407471739890019/1739889553_54003_1338349314_fdbdd5a840ecce02f8018234cacdd42f_rle_crop_3679060551_0.png.png imagette206407471739890019/1739889893_58894_1338349693_a7a28c1b3e6d9e5305bc42627e10345f_rle_crop_3679064060_0.png.png imagette206407471739890019/1739889772_57872_1338349649_2b1bd663402eff175dec0c4561a3b735_rle_crop_3679062607_0.png.png imagette206407471739890019/1739889772_57872_1338349640_3dbc1cc66329d66fdb76bc3b6593dc64_rle_crop_3679062785_0.png.png imagette206407471739890019/1739889772_57872_1338349653_272c972ff2b534e703cc2dea74ccaaf8_rle_crop_3679062587_0.png.png imagette206407471739890019/1739889893_58894_1338349693_a7a28c1b3e6d9e5305bc42627e10345f_rle_crop_3679064054_0.png.png imagette206407471739890019/1739889661_55518_1338349571_ced436e90dad054511747c2fa4d4e84b_rle_crop_3679061929_0.png.png imagette206407471739890019/1739889772_57872_1338349646_c6938d09b40dccf1d620567beadf6c69_rle_crop_3679062634_0.png.png imagette206407471739890019/1739889914_59149_1338349691_560d6a3e205e4b8d3b754810f88b9fb1_rle_crop_3679064211_0.png.png imagette206407471739890019/1739889553_54003_1338349396_89b31da84e374cd9463b9e3495a61e93_rle_crop_3679060537_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/a36fff49070a7affd114268a7fc2bd8f_14841293.png imagette206407471739890019 20640751 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=20640751 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338349743: '1739889772_57872_1338349646_c6938d09b40dccf1d620567beadf6c69_rle_crop_3679062642_0.png', 1338349744: '1739889772_57872_1338349643_f92f38cd77f1fa986525aec6c1b1b280_rle_crop_3679062681_0.png', 1338349745: '1739889772_57872_1338349640_3dbc1cc66329d66fdb76bc3b6593dc64_rle_crop_3679062786_0.png', 1338349921: '1739889893_58894_1338349693_a7a28c1b3e6d9e5305bc42627e10345f_rle_crop_3679064051_0.png', 1338349922: '1739889893_58894_1338349667_e7019093fccd29d24cb62515577065a2_rle_crop_3679064163_0.png', 1338349923: '1739889893_58894_1338349665_2426b8507aaf20c3097ef22c2b543c90_rle_crop_3679064185_0.png', 1338349924: '1739889893_58894_1338349665_2426b8507aaf20c3097ef22c2b543c90_rle_crop_3679064181_0.png', 1338349926: '1739889914_59149_1338349691_560d6a3e205e4b8d3b754810f88b9fb1_rle_crop_3679064202_0.png', 1338349927: '1739889914_59149_1338349690_e286ca179c4aab98d18011da35224dcd_rle_crop_3679064222_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/8c3d19d25773113f38db75ef13465ca8_95644865.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/3b1baf0ef1bad6435c6ccab4f6e46475_61549921.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/a27e6fc329f093d0eeb57b32966a969e_97955052.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/e1459591f760a528779c1449de9d2b6a_12336274.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/00b17f3361070c3c614002779372f199_52004718.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/11b5a46415e3a8ee420635fe375870d5_74697987.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/1f10dd790e1827ec9dab730044a6b423_731532.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/5ff4657667e9dd1c773cb88dfcbe5842_44353249.png change filename to text .imagette206407511739890020/ imagette206407511739890020/1739889893_58894_1338349665_2426b8507aaf20c3097ef22c2b543c90_rle_crop_3679064185_0.png.png imagette206407511739890020/1739889893_58894_1338349667_e7019093fccd29d24cb62515577065a2_rle_crop_3679064163_0.png.png imagette206407511739890020/1739889893_58894_1338349665_2426b8507aaf20c3097ef22c2b543c90_rle_crop_3679064181_0.png.png imagette206407511739890020/1739889772_57872_1338349646_c6938d09b40dccf1d620567beadf6c69_rle_crop_3679062642_0.png.png imagette206407511739890020/1739889914_59149_1338349690_e286ca179c4aab98d18011da35224dcd_rle_crop_3679064222_0.png.png imagette206407511739890020/1739889772_57872_1338349640_3dbc1cc66329d66fdb76bc3b6593dc64_rle_crop_3679062786_0.png.png imagette206407511739890020/1739889893_58894_1338349693_a7a28c1b3e6d9e5305bc42627e10345f_rle_crop_3679064051_0.png.png imagette206407511739890020/1739889914_59149_1338349691_560d6a3e205e4b8d3b754810f88b9fb1_rle_crop_3679064202_0.png.png imagette206407511739890020/1739889772_57872_1338349643_f92f38cd77f1fa986525aec6c1b1b280_rle_crop_3679062681_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/41ba94dcd94037500df4a0e857296da7_66685795.png imagette206407511739890020 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20640740 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20640755,20640756,20640757,20640758,20640759,20640760,20640761,20640762,20640763,20640764,20640765,20640766?tags=Carton_gris,environnement,cartonnette,flou,Teint_Dans_La_Masse,plastique,metal,mal_croppe,Carton_brun,kraft,autre_refus,papier your option no_mail is active, we will not send the real mail to your client args[1338349933] : ('0.023352821994835647',) no score found for photo 1338349933 We are sending mail with results at report@fotonower.com args[1338349872] : ('0.023352821994835647',) no score found for photo 1338349872 We are sending mail with results at report@fotonower.com args[1338349844] : ('0.023352821994835647',) no score found for photo 1338349844 We are sending mail with results at report@fotonower.com args[1338349840] : ('0.023352821994835647',) no score found for photo 1338349840 We are sending mail with results at report@fotonower.com args[1338349831] : ('0.023352821994835647',) no score found for photo 1338349831 We are sending mail with results at report@fotonower.com args[1338349829] : ('0.023352821994835647',) no score found for photo 1338349829 We are sending mail with results at report@fotonower.com args[1338349827] : ('0.023352821994835647',) no score found for photo 1338349827 We are sending mail with results at report@fotonower.com args[1338349763] : ('0.023352821994835647',) no score found for photo 1338349763 We are sending mail with results at report@fotonower.com args[1338349759] : ('0.023352821994835647',) no score found for photo 1338349759 We are sending mail with results at report@fotonower.com args[1338349742] : ('0.023352821994835647',) no score found for photo 1338349742 We are sending mail with results at report@fotonower.com args[1338349734] : ('0.023352821994835647',) no score found for photo 1338349734 We are sending mail with results at report@fotonower.com args[1338349728] : ('0.023352821994835647',) no score found for photo 1338349728 We are sending mail with results at report@fotonower.com args[1338349727] : ('0.023352821994835647',) no score found for photo 1338349727 We are sending mail with results at report@fotonower.com refus_total : 0.023352821994835647 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=20640740 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_P20640740_18-02-2025_15_46_58.pdf results_Auto_P20640740_18-02-2025_15_46_58.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20640740_18-02-2025_15_46_58.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','20640740','results_Auto_P20640740_18-02-2025_15_46_58.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20640740_18-02-2025_15_46_58.pdf','pdf','','0.2','0.023352821994835647') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20640740]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1338349933, 1338349872, 1338349844, 1338349840, 1338349831, 1338349829, 1338349827, 1338349763, 1338349759, 1338349742, 1338349734, 1338349728, 1338349727] map_info['map_portfolio_photo'] : {20640740: [1338349933, 1338349872, 1338349844, 1338349840, 1338349831, 1338349829, 1338349827, 1338349763, 1338349759, 1338349742, 1338349734, 1338349728, 1338349727, 1338349693, 1338349691, 1338349690, 1338349674, 1338349671, 1338349669, 1338349667, 1338349665, 1338349654, 1338349653, 1338349649, 1338349646, 1338349643, 1338349640, 1338349627, 1338349624, 1338349622, 1338349620, 1338349617, 1338349573, 1338349571, 1338349566, 1338349396, 1338349394, 1338349393, 1338349314]} final : False mtd_id 4302 list_pids : [1338349933, 1338349872, 1338349844, 1338349840, 1338349831, 1338349829, 1338349827, 1338349763, 1338349759, 1338349742, 1338349734, 1338349728, 1338349727] 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, '2596723') ('4302', '20640740', '1338349933', None, None, None, None, None, '2596723') ('4302', None, None, None, None, None, None, None, '2596723') ('4302', '20640740', '1338349872', None, None, None, None, None, '2596723') ('4302', None, None, None, None, None, None, None, '2596723') ('4302', '20640740', '1338349844', None, None, None, None, None, '2596723') ('4302', None, None, None, None, None, None, None, '2596723') ('4302', '20640740', '1338349840', None, None, None, None, None, '2596723') ('4302', None, None, None, None, None, None, None, '2596723') ('4302', '20640740', '1338349831', None, None, None, None, None, '2596723') ('4302', None, None, None, None, None, None, None, '2596723') ('4302', '20640740', '1338349829', None, None, None, None, None, '2596723') ('4302', None, None, None, None, None, None, None, '2596723') ('4302', '20640740', '1338349827', None, None, None, None, None, '2596723') ('4302', None, None, None, None, None, None, None, '2596723') ('4302', '20640740', '1338349763', None, None, None, None, None, '2596723') ('4302', None, None, None, None, None, None, None, '2596723') ('4302', '20640740', '1338349759', None, None, None, None, None, '2596723') ('4302', None, None, None, None, None, None, None, '2596723') ('4302', '20640740', '1338349742', None, None, None, None, None, '2596723') ('4302', None, None, None, None, None, None, None, '2596723') ('4302', '20640740', '1338349734', None, None, None, None, None, '2596723') ('4302', None, None, None, None, None, None, None, '2596723') ('4302', '20640740', '1338349728', None, None, None, None, None, '2596723') ('4302', None, None, None, None, None, None, None, '2596723') ('4302', '20640740', '1338349727', None, None, None, None, None, '2596723') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '20640740', '1338349933', None, None, None, None, None, '2596723'), ('4302', '20640740', '1338349872', None, None, None, None, None, '2596723'), ('4302', '20640740', '1338349844', None, None, None, None, None, '2596723'), ('4302', '20640740', '1338349840', None, None, None, None, None, '2596723'), ('4302', '20640740', '1338349831', None, None, None, None, None, '2596723'), ('4302', '20640740', '1338349829', None, None, None, None, None, '2596723'), ('4302', '20640740', '1338349827', None, None, None, None, None, '2596723'), ('4302', '20640740', '1338349763', None, None, None, None, None, '2596723'), ('4302', '20640740', '1338349759', None, None, None, None, None, '2596723'), ('4302', '20640740', '1338349742', None, None, None, None, None, '2596723'), ('4302', '20640740', '1338349734', None, None, None, None, None, '2596723'), ('4302', '20640740', '1338349728', None, None, None, None, None, '2596723'), ('4302', '20640740', '1338349727', None, None, None, None, None, '2596723')] time used for this insertion : 0.012981176376342773 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.627863883972168 time spend to save output : 0.013265609741210938 total time spend for step 4 : 3.641129493713379 step5:split_time_score Tue Feb 18 15:47:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['20640740'] 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 : [('20640740',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20640740) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1338349933: {'path': 'temp/1739890018_22439_1338349933_72dfe67f58dd9da3f96d51700d032e90.jpg', 'extension': 'jpg'}, 1338349742: {'path': 'temp/1739890018_22439_1338349742_0d83ec995e00051e1f3f268cc4d972bd.jpg', 'extension': 'jpg'}, 1338349759: {'path': 'temp/1739890018_22439_1338349759_0ce52017865d696bf12ed1ccfc99935f.jpg', 'extension': 'jpg'}, 1338349763: {'path': 'temp/1739890018_22439_1338349763_61c86dde7dff8e074b6f417376334593.jpg', 'extension': 'jpg'}, 1338349727: {'path': 'temp/1739890018_22439_1338349727_78afed6d0f64295350733ea5c907c5b5.jpg', 'extension': 'jpg'}, 1338349728: {'path': 'temp/1739890018_22439_1338349728_0440032624ce19be330bb5e93cf6fcd8.jpg', 'extension': 'jpg'}, 1338349734: {'path': 'temp/1739890018_22439_1338349734_ace0a2f07c542ef378009d175f559eb7.jpg', 'extension': 'jpg'}, 1338349827: {'path': 'temp/1739890018_22439_1338349827_54f281e1766b9ad2bb4fb4aed6f26b14.jpg', 'extension': 'jpg'}, 1338349829: {'path': 'temp/1739890018_22439_1338349829_364c92f09508248a1dea934ac6b74926.jpg', 'extension': 'jpg'}, 1338349831: {'path': 'temp/1739890018_22439_1338349831_a305e149d60bcece38ad6e401cde2313.jpg', 'extension': 'jpg'}, 1338349840: {'path': 'temp/1739890018_22439_1338349840_ced56479df8d3f3a96be2b550f68ea23.jpg', 'extension': 'jpg'}, 1338349844: {'path': 'temp/1739890018_22439_1338349844_27215474a4f955caaeea4adfd19c3058.jpg', 'extension': 'jpg'}, 1338349872: {'path': 'temp/1739890018_22439_1338349872_a9766f50aab7d470c3e627bc864e9cc5.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 = 20640740; (('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 = 20640740 group by h (('15', 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=20640740 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 (20640740) 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 (20640740) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 18022025 20640740 Nombre de photos uploadées : 39 / 23040 (0%) 18022025 20640740 Nombre de photos taguées (types de déchets): 0 / 39 (0%) 18022025 20640740 Nombre de photos taguées (volume) : 0 / 39 (0%) [{'photo_id': 1338349314, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/fdbdd5a840ecce02f8018234cacdd42f.jpg', 'username': None, 'uploaded_at': 1739889247, 'text': 'image_18022025_15_33_04_10155.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1338349396, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/89b31da84e374cd9463b9e3495a61e93.jpg', 'username': None, 'uploaded_at': 1739889487, 'text': 'image_18022025_15_33_25_10136.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1338349394, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/36cd70783c21ce6e3003e410fb18cfb1.jpg', 'username': None, 'uploaded_at': 1739889487, 'text': 'image_18022025_15_37_15_10136.jpg'}, {'photo_id': 1338349393, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/89b3b847f3fc74c953a31e5e615b9494.jpg', 'username': None, 'uploaded_at': 1739889487, 'text': 'image_18022025_15_37_25_10138.jpg'}] 0 [] elapsed_time : load_data_split_time_score 2.6226043701171875e-06 elapsed_time : order_list_meta_photo_and_scores 6.9141387939453125e-06 ??????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.001398324966430664 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20640740, '2025-02-18' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1609467,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.024563312530517578 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= 1609467 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1609467, 'dashboard_run_id': 1618276, 'mtr_portfolio_id': 20639909, 'dashboard_result_id': 8952744, '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_P20639909_18-02-2025_15_16_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20639936, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20639937, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20639938, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20639939, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20639940, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20639941, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20639942, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20639943, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20639944, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20639945, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20639946, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20639947, 'pht': 3726}}"}, {'dashboat_entry_day': 1609467, 'dashboard_run_id': 1618276, 'mtr_portfolio_id': 20640740, 'dashboard_result_id': 8952745, '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_P20640740_18-02-2025_15_44_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20640743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20640744, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20640745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20640746, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20640747, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20640748, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20640749, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20640750, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20640751, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20640752, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20640753, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20640754, '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 = 20639909 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': 2596638, 'mtr_portfolio_id': 20639909, 'created_at': datetime.datetime(2025, 2, 18, 15, 16, 58), 'result': '0.03588712586654378', 'result_long': None, 'result_double': None}] Qualite : 0.03588712586654378 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20639909 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20639909_18-02-2025_15_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20639909 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_P20639909_18-02-2025_15_16_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20639936, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20639937, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20639938, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20639939, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20639940, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20639941, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20639942, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20639943, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20639944, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20639945, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20639946, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20639947, 'pht': 3726}}" where mtr_portfolio_id = 20639909 and dashboard_run_id = 1618276 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`=20639909 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8952744, 0.03588712586654378, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20639909_18-02-2025_15_16_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20639936, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20639937, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20639938, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20639939, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20639940, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20639941, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20639942, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20639943, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20639944, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20639945, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20639946, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20639947, '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 = 20640740 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': 2596723, 'mtr_portfolio_id': 20640740, 'created_at': datetime.datetime(2025, 2, 18, 15, 46, 57), 'result': '0.023352821994835647', 'result_long': None, 'result_double': None}] Qualite : 0.023352821994835647 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20640740 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20640740_18-02-2025_15_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20640740 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_P20640740_18-02-2025_15_46_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20640743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20640744, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20640745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20640746, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20640747, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20640748, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20640749, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20640750, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20640751, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20640752, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20640753, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20640754, 'pht': 3726}}" where mtr_portfolio_id = 20640740 and dashboard_run_id = 1618276 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`=20640740 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8952745, 0.023352821994835647, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20640740_18-02-2025_15_46_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20640743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20640744, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20640745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20640746, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20640747, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20640748, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20640749, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20640750, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20640751, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20640752, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20640753, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20640754, '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 (20639909,20640740) result : ((1338345777,), (1338345781,), (1338345784,), (1338345969,), (1338346371,), (1338346374,), (1338346377,), (1338346412,), (1338346414,), (1338346417,), (1338346420,), (1338346425,), (1338346458,), (1338346476,), (1338346679,), (1338346846,), (1338346986,), (1338347155,), (1338347157,), (1338347160,), (1338347163,), (1338347165,), (1338347272,), (1338347336,), (1338347395,), (1338347401,), (1338347405,), (1338347504,), (1338347507,), (1338347512,), (1338347517,), (1338347535,), (1338347547,), (1338347549,), (1338347573,), (1338347590,), (1338347597,), (1338347628,), (1338347630,), (1338347738,), (1338347741,), (1338347744,), (1338347748,), (1338347751,), (1338347820,), (1338347822,), (1338347825,), (1338347867,), (1338347880,), (1338347882,), (1338347885,), (1338347888,), (1338347890,), (1338347915,), (1338347917,), (1338347920,), (1338347943,), (1338347946,), (1338347949,), (1338347952,), (1338347954,), (1338347973,), (1338349314,), (1338349393,), (1338349394,), (1338349396,), (1338349566,), (1338349571,), (1338349573,), (1338349617,), (1338349620,), (1338349622,), (1338349624,), (1338349627,), (1338349640,), (1338349643,), (1338349646,), (1338349649,), (1338349653,), (1338349654,), (1338349665,), (1338349667,), (1338349669,), (1338349671,), (1338349674,), (1338349690,), (1338349691,), (1338349693,), (1338349727,), (1338349728,), (1338349734,), (1338349742,), (1338349759,), (1338349763,), (1338349827,), (1338349829,), (1338349831,), (1338349840,), (1338349844,), (1338349872,), (1338349933,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'18022025': {'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([20640740]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1338349933, 1338349872, 1338349844, 1338349840, 1338349831, 1338349829, 1338349827, 1338349763, 1338349759, 1338349742, 1338349734, 1338349728, 1338349727] map_info['map_portfolio_photo'] : {20640740: [1338349933, 1338349872, 1338349844, 1338349840, 1338349831, 1338349829, 1338349827, 1338349763, 1338349759, 1338349742, 1338349734, 1338349728, 1338349727, 1338349693, 1338349691, 1338349690, 1338349674, 1338349671, 1338349669, 1338349667, 1338349665, 1338349654, 1338349653, 1338349649, 1338349646, 1338349643, 1338349640, 1338349627, 1338349624, 1338349622, 1338349620, 1338349617, 1338349573, 1338349571, 1338349566, 1338349396, 1338349394, 1338349393, 1338349314]} final : True mtd_id 4302 list_pids : [1338349933, 1338349872, 1338349844, 1338349840, 1338349831, 1338349829, 1338349827, 1338349763, 1338349759, 1338349742, 1338349734, 1338349728, 1338349727] Looping around the photos to save general results len do output : 1 /20640740Didn'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, '2596723') ('4302', '20640740', '1338349933', None, None, None, None, None, '2596723') ('4302', None, None, None, None, None, None, None, '2596723') ('4302', '20640740', '1338349872', None, None, None, None, None, '2596723') ('4302', None, None, None, None, None, None, None, '2596723') ('4302', '20640740', '1338349844', None, None, None, None, None, '2596723') ('4302', None, None, None, None, None, None, None, '2596723') ('4302', '20640740', '1338349840', None, None, None, None, None, '2596723') ('4302', None, None, None, None, None, None, None, '2596723') ('4302', '20640740', '1338349831', None, None, None, None, None, '2596723') ('4302', None, None, None, None, None, None, None, '2596723') ('4302', '20640740', '1338349829', None, None, None, None, None, '2596723') ('4302', None, None, None, None, None, None, None, '2596723') ('4302', '20640740', '1338349827', None, None, None, None, None, '2596723') ('4302', None, None, None, None, None, None, None, '2596723') ('4302', '20640740', '1338349763', None, None, None, None, None, '2596723') ('4302', None, None, None, None, None, None, None, '2596723') ('4302', '20640740', '1338349759', None, None, None, None, None, '2596723') ('4302', None, None, None, None, None, None, None, '2596723') ('4302', '20640740', '1338349742', None, None, None, None, None, '2596723') ('4302', None, None, None, None, None, None, None, '2596723') ('4302', '20640740', '1338349734', None, None, None, None, None, '2596723') ('4302', None, None, None, None, None, None, None, '2596723') ('4302', '20640740', '1338349728', None, None, None, None, None, '2596723') ('4302', None, None, None, None, None, None, None, '2596723') ('4302', '20640740', '1338349727', None, None, None, None, None, '2596723') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 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, '20640740', 'None', None, None, None, None, '2596723'), ('4302', '20640740', '1338349933', None, None, None, None, None, '2596723'), ('4302', '20640740', '1338349872', None, None, None, None, None, '2596723'), ('4302', '20640740', '1338349844', None, None, None, None, None, '2596723'), ('4302', '20640740', '1338349840', None, None, None, None, None, '2596723'), ('4302', '20640740', '1338349831', None, None, None, None, None, '2596723'), ('4302', '20640740', '1338349829', None, None, None, None, None, '2596723'), ('4302', '20640740', '1338349827', None, None, None, None, None, '2596723'), ('4302', '20640740', '1338349763', None, None, None, None, None, '2596723'), ('4302', '20640740', '1338349759', None, None, None, None, None, '2596723'), ('4302', '20640740', '1338349742', None, None, None, None, None, '2596723'), ('4302', '20640740', '1338349734', None, None, None, None, None, '2596723'), ('4302', '20640740', '1338349728', None, None, None, None, None, '2596723'), ('4302', '20640740', '1338349727', None, None, None, None, None, '2596723')] time used for this insertion : 0.013298511505126953 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.2275388240814209 time spend to save output : 0.013700723648071289 total time spend for step 5 : 0.2412395477294922 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 (2596723) 2.27user 2.44system 0:07.61elapsed 61%CPU (0avgtext+0avgdata 160504maxresident)k 5840inputs+11264outputs (81major+75041minor)pagefaults 0swaps