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 : 3639045 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 (2648862) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2648862) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21147941 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2648862'] with mtr_portfolio_ids : ['21147941'] and first list_photo_ids : [] new path : /proc/3639045/ Name: python3 Umask: 0002 State: R (running) Tgid: 3639045 Ngid: 0 Pid: 3639045 PPid: 3639044 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3639045 NSpid: 3639045 NSpgid: 3635739 NSsid: 3635739 VmPeak: 1106848 kB VmSize: 1106848 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97832 kB VmRSS: 97832 kB RssAnon: 59760 kB RssFile: 38072 kB RssShmem: 0 kB VmData: 865596 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 596 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 3/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 68 nonvoluntary_ctxt_switches: 161 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3639045', 'Ngid': '0', 'Pid': '3639045', 'PPid': '3639044', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3639045', 'NSpid': '3639045', 'NSpgid': '3635739', 'NSsid': '3635739', 'VmPeak': '1106848 kB', 'VmSize': '1106848 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97832 kB', 'VmRSS': '97832 kB', 'RssAnon': '59760 kB', 'RssFile': '38072 kB', 'RssShmem': '0 kB', 'VmData': '865596 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '596 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '3/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '68', 'nonvoluntary_ctxt_switches': '161'} ('datou_batch_current', '3639045', '1106848', '0', '1106848', '865596', '97832', b'', 'marlene', '2648862') 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 (21147941) 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 (2648862 ) ) 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 (21147941) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1341495668, 'portfolio_id': 21147941}, {'photo_id': 1341495661, 'portfolio_id': 21147941}, {'photo_id': 1341495654, 'portfolio_id': 21147941}, {'photo_id': 1341495548, 'portfolio_id': 21147941}, {'photo_id': 1341495529, 'portfolio_id': 21147941}, {'photo_id': 1341495525, 'portfolio_id': 21147941}, {'photo_id': 1341495520, 'portfolio_id': 21147941}, {'photo_id': 1341495511, 'portfolio_id': 21147941}, {'photo_id': 1341495497, 'portfolio_id': 21147941}, {'photo_id': 1341495281, 'portfolio_id': 21147941}, {'photo_id': 1341495269, 'portfolio_id': 21147941}, {'photo_id': 1341495251, 'portfolio_id': 21147941}, {'photo_id': 1341495236, 'portfolio_id': 21147941}, {'photo_id': 1341495221, 'portfolio_id': 21147941}, {'photo_id': 1341495137, 'portfolio_id': 21147941}, {'photo_id': 1341495132, 'portfolio_id': 21147941}, {'photo_id': 1341495047, 'portfolio_id': 21147941}, {'photo_id': 1341495043, 'portfolio_id': 21147941}, {'photo_id': 1341495033, 'portfolio_id': 21147941}, {'photo_id': 1341494987, 'portfolio_id': 21147941}, {'photo_id': 1341494915, 'portfolio_id': 21147941}, {'photo_id': 1341494901, 'portfolio_id': 21147941}, {'photo_id': 1341494875, 'portfolio_id': 21147941}, {'photo_id': 1341494821, 'portfolio_id': 21147941}, {'photo_id': 1341494807, 'portfolio_id': 21147941}, {'photo_id': 1341494719, 'portfolio_id': 21147941}, {'photo_id': 1341493801, 'portfolio_id': 21147941}, {'photo_id': 1341493638, 'portfolio_id': 21147941}] map_portfolio_id_photo_id: {21147941: [1341495668, 1341495661, 1341495654, 1341495548, 1341495529, 1341495525, 1341495520, 1341495511, 1341495497, 1341495281, 1341495269, 1341495251, 1341495236, 1341495221, 1341495137, 1341495132, 1341495047, 1341495043, 1341495033, 1341494987, 1341494915, 1341494901, 1341494875, 1341494821, 1341494807, 1341494719, 1341493801, 1341493638]} ##### 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.014219522476196289 #### 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 Fri Mar 7 16:39:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21147941) 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 : 21147941 get user id for portfolio 21147941 get sub ptf for main ptf 21147941, type 3726 and hashtags ['mal_croppe', 'flou', 'Carton_brun', 'metal', 'kraft', 'papier', 'Carton_gris', 'plastique', 'autre_refus', 'cartonnette', 'environnement', 'Teint_Dans_La_Masse'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21147941 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','flou','Carton_brun','metal','kraft','papier','Carton_gris','plastique','autre_refus','cartonnette','environnement','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21147941 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','flou','Carton_brun','metal','kraft','papier','Carton_gris','plastique','autre_refus','cartonnette','environnement','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 21147941, 'sub_port_id': 21147948, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13746783, 'last_updated_at': datetime.datetime(2025, 3, 7, 16, 37), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 16, 37), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 16, 34, 57)}, 'Carton_brun': {'main_port_id': 21147941, 'sub_port_id': 21147949, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13746784, 'last_updated_at': datetime.datetime(2025, 3, 7, 16, 37), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 16, 37), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 16, 34, 57)}, 'cartonnette': {'main_port_id': 21147941, 'sub_port_id': 21147950, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13746785, 'last_updated_at': datetime.datetime(2025, 3, 7, 16, 37), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 16, 37), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 16, 34, 57)}, 'kraft': {'main_port_id': 21147941, 'sub_port_id': 21147951, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13746786, 'last_updated_at': datetime.datetime(2025, 3, 7, 16, 37), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 16, 37), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 16, 34, 57)}, 'papier': {'main_port_id': 21147941, 'sub_port_id': 21147952, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13746787, 'last_updated_at': datetime.datetime(2025, 3, 7, 16, 37), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 16, 37), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 16, 34, 57)}, 'metal': {'main_port_id': 21147941, 'sub_port_id': 21147953, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13746788, 'last_updated_at': datetime.datetime(2025, 3, 7, 16, 37), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 16, 37), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 16, 34, 57)}, 'flou': {'main_port_id': 21147941, 'sub_port_id': 21147954, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13746789, 'last_updated_at': datetime.datetime(2025, 3, 7, 16, 37), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 16, 37), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 16, 34, 57)}, 'autre_refus': {'main_port_id': 21147941, 'sub_port_id': 21147955, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13746790, 'last_updated_at': datetime.datetime(2025, 3, 7, 16, 37), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 16, 37), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 16, 34, 57)}, 'plastique': {'main_port_id': 21147941, 'sub_port_id': 21147956, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13746791, 'last_updated_at': datetime.datetime(2025, 3, 7, 16, 37), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 16, 37), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 16, 34, 57)}, 'mal_croppe': {'main_port_id': 21147941, 'sub_port_id': 21147957, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13746792, 'last_updated_at': datetime.datetime(2025, 3, 7, 16, 37), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 16, 37), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 16, 34, 57)}, 'environnement': {'main_port_id': 21147941, 'sub_port_id': 21147958, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13746793, 'last_updated_at': datetime.datetime(2025, 3, 7, 16, 37), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 16, 37), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 16, 34, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 21147941, 'sub_port_id': 21147959, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13746794, 'last_updated_at': datetime.datetime(2025, 3, 7, 16, 37), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 16, 37), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 16, 34, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21147948 , 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=21147941 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 (21147948) result : ((1341495422,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21147941) result : ((1341493638,), (1341493801,), (1341494719,), (1341494807,), (1341494821,), (1341494875,), (1341494901,), (1341494915,), (1341494987,), (1341495033,), (1341495043,), (1341495047,), (1341495132,), (1341495137,), (1341495221,), (1341495236,), (1341495251,), (1341495269,), (1341495281,), (1341495497,), (1341495511,), (1341495520,), (1341495525,), (1341495529,), (1341495548,), (1341495654,), (1341495661,), (1341495668,)) 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 21147949 , 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=21147941 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 (21147949) result : ((1341495427,), (1341495428,), (1341495429,), (1341495431,), (1341495433,), (1341495679,), (1341495735,), (1341495736,), (1341495757,), (1341495758,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21147941) result : ((1341493638,), (1341493801,), (1341494719,), (1341494807,), (1341494821,), (1341494875,), (1341494901,), (1341494915,), (1341494987,), (1341495033,), (1341495043,), (1341495047,), (1341495132,), (1341495137,), (1341495221,), (1341495236,), (1341495251,), (1341495269,), (1341495281,), (1341495497,), (1341495511,), (1341495520,), (1341495525,), (1341495529,), (1341495548,), (1341495654,), (1341495661,), (1341495668,)) 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 21147950 , 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=21147941 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 (21147950) result : ((1341495423,), (1341495424,), (1341495425,), (1341495754,), (1341495755,), (1341495756,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21147941) result : ((1341493638,), (1341493801,), (1341494719,), (1341494807,), (1341494821,), (1341494875,), (1341494901,), (1341494915,), (1341494987,), (1341495033,), (1341495043,), (1341495047,), (1341495132,), (1341495137,), (1341495221,), (1341495236,), (1341495251,), (1341495269,), (1341495281,), (1341495497,), (1341495511,), (1341495520,), (1341495525,), (1341495529,), (1341495548,), (1341495654,), (1341495661,), (1341495668,)) 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 21147951 , 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=21147941 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 (21147951) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21147941) result : ((1341493638,), (1341493801,), (1341494719,), (1341494807,), (1341494821,), (1341494875,), (1341494901,), (1341494915,), (1341494987,), (1341495033,), (1341495043,), (1341495047,), (1341495132,), (1341495137,), (1341495221,), (1341495236,), (1341495251,), (1341495269,), (1341495281,), (1341495497,), (1341495511,), (1341495520,), (1341495525,), (1341495529,), (1341495548,), (1341495654,), (1341495661,), (1341495668,)) 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 21147952 , 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=21147941 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 (21147952) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21147941) result : ((1341493638,), (1341493801,), (1341494719,), (1341494807,), (1341494821,), (1341494875,), (1341494901,), (1341494915,), (1341494987,), (1341495033,), (1341495043,), (1341495047,), (1341495132,), (1341495137,), (1341495221,), (1341495236,), (1341495251,), (1341495269,), (1341495281,), (1341495497,), (1341495511,), (1341495520,), (1341495525,), (1341495529,), (1341495548,), (1341495654,), (1341495661,), (1341495668,)) 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 21147953 , 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=21147941 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 (21147953) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21147941) result : ((1341493638,), (1341493801,), (1341494719,), (1341494807,), (1341494821,), (1341494875,), (1341494901,), (1341494915,), (1341494987,), (1341495033,), (1341495043,), (1341495047,), (1341495132,), (1341495137,), (1341495221,), (1341495236,), (1341495251,), (1341495269,), (1341495281,), (1341495497,), (1341495511,), (1341495520,), (1341495525,), (1341495529,), (1341495548,), (1341495654,), (1341495661,), (1341495668,)) 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 21147954 , 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=21147941 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 (21147954) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21147941) result : ((1341493638,), (1341493801,), (1341494719,), (1341494807,), (1341494821,), (1341494875,), (1341494901,), (1341494915,), (1341494987,), (1341495033,), (1341495043,), (1341495047,), (1341495132,), (1341495137,), (1341495221,), (1341495236,), (1341495251,), (1341495269,), (1341495281,), (1341495497,), (1341495511,), (1341495520,), (1341495525,), (1341495529,), (1341495548,), (1341495654,), (1341495661,), (1341495668,)) 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 21147955 , 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=21147941 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 (21147955) result : ((1341495400,), (1341495408,), (1341495416,), (1341495418,), (1341495419,), (1341495420,), (1341495421,), (1341495678,), (1341495731,), (1341495732,), (1341495733,), (1341495734,), (1341495750,), (1341495751,), (1341495752,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21147941) result : ((1341493638,), (1341493801,), (1341494719,), (1341494807,), (1341494821,), (1341494875,), (1341494901,), (1341494915,), (1341494987,), (1341495033,), (1341495043,), (1341495047,), (1341495132,), (1341495137,), (1341495221,), (1341495236,), (1341495251,), (1341495269,), (1341495281,), (1341495497,), (1341495511,), (1341495520,), (1341495525,), (1341495529,), (1341495548,), (1341495654,), (1341495661,), (1341495668,)) 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 21147956 , 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=21147941 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 (21147956) result : ((1341495441,), (1341495443,), (1341495737,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21147941) result : ((1341493638,), (1341493801,), (1341494719,), (1341494807,), (1341494821,), (1341494875,), (1341494901,), (1341494915,), (1341494987,), (1341495033,), (1341495043,), (1341495047,), (1341495132,), (1341495137,), (1341495221,), (1341495236,), (1341495251,), (1341495269,), (1341495281,), (1341495497,), (1341495511,), (1341495520,), (1341495525,), (1341495529,), (1341495548,), (1341495654,), (1341495661,), (1341495668,)) 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 21147957 , 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=21147941 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 (21147957) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21147941) result : ((1341493638,), (1341493801,), (1341494719,), (1341494807,), (1341494821,), (1341494875,), (1341494901,), (1341494915,), (1341494987,), (1341495033,), (1341495043,), (1341495047,), (1341495132,), (1341495137,), (1341495221,), (1341495236,), (1341495251,), (1341495269,), (1341495281,), (1341495497,), (1341495511,), (1341495520,), (1341495525,), (1341495529,), (1341495548,), (1341495654,), (1341495661,), (1341495668,)) 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 21147958 , 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=21147941 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 (21147958) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21147941) result : ((1341493638,), (1341493801,), (1341494719,), (1341494807,), (1341494821,), (1341494875,), (1341494901,), (1341494915,), (1341494987,), (1341495033,), (1341495043,), (1341495047,), (1341495132,), (1341495137,), (1341495221,), (1341495236,), (1341495251,), (1341495269,), (1341495281,), (1341495497,), (1341495511,), (1341495520,), (1341495525,), (1341495529,), (1341495548,), (1341495654,), (1341495661,), (1341495668,)) 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 21147959 , 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=21147941 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 (21147959) result : ((1341495355,), (1341495747,), (1341495748,), (1341495749,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21147941) result : ((1341493638,), (1341493801,), (1341494719,), (1341494807,), (1341494821,), (1341494875,), (1341494901,), (1341494915,), (1341494987,), (1341495033,), (1341495043,), (1341495047,), (1341495132,), (1341495137,), (1341495221,), (1341495236,), (1341495251,), (1341495269,), (1341495281,), (1341495497,), (1341495511,), (1341495520,), (1341495525,), (1341495529,), (1341495548,), (1341495654,), (1341495661,), (1341495668,)) 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`=21147941 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','flou','Carton_brun','metal','kraft','papier','Carton_gris','plastique','autre_refus','cartonnette','environnement','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21147941 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','flou','Carton_brun','metal','kraft','papier','Carton_gris','plastique','autre_refus','cartonnette','environnement','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 21147941, 'sub_port_id': 21147960, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13746795, 'last_updated_at': datetime.datetime(2025, 3, 7, 16, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 16, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 16, 34, 59)}, 'Carton_brun': {'main_port_id': 21147941, 'sub_port_id': 21147961, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13746796, 'last_updated_at': datetime.datetime(2025, 3, 7, 16, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 16, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 16, 34, 59)}, 'cartonnette': {'main_port_id': 21147941, 'sub_port_id': 21147962, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13746797, 'last_updated_at': datetime.datetime(2025, 3, 7, 16, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 16, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 16, 34, 59)}, 'kraft': {'main_port_id': 21147941, 'sub_port_id': 21147963, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13746798, 'last_updated_at': datetime.datetime(2025, 3, 7, 16, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 16, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 16, 34, 59)}, 'papier': {'main_port_id': 21147941, 'sub_port_id': 21147964, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13746799, 'last_updated_at': datetime.datetime(2025, 3, 7, 16, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 16, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 16, 34, 59)}, 'metal': {'main_port_id': 21147941, 'sub_port_id': 21147965, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13746800, 'last_updated_at': datetime.datetime(2025, 3, 7, 16, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 16, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 16, 34, 59)}, 'flou': {'main_port_id': 21147941, 'sub_port_id': 21147966, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13746801, 'last_updated_at': datetime.datetime(2025, 3, 7, 16, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 16, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 16, 34, 59)}, 'autre_refus': {'main_port_id': 21147941, 'sub_port_id': 21147967, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13746802, 'last_updated_at': datetime.datetime(2025, 3, 7, 16, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 16, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 16, 34, 59)}, 'plastique': {'main_port_id': 21147941, 'sub_port_id': 21147968, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13746803, 'last_updated_at': datetime.datetime(2025, 3, 7, 16, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 16, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 16, 34, 59)}, 'mal_croppe': {'main_port_id': 21147941, 'sub_port_id': 21147969, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13746804, 'last_updated_at': datetime.datetime(2025, 3, 7, 16, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 16, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 16, 34, 59)}, 'environnement': {'main_port_id': 21147941, 'sub_port_id': 21147970, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13746805, 'last_updated_at': datetime.datetime(2025, 3, 7, 16, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 16, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 16, 34, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 21147941, 'sub_port_id': 21147971, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13746806, 'last_updated_at': datetime.datetime(2025, 3, 7, 16, 37), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 16, 37), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 16, 34, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21147960,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21147948 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21147961,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21147949 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21147962,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21147950 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21147963,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21147951 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21147964,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21147952 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21147965,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21147953 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21147966,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21147954 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21147967,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21147955 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21147968,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21147956 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21147969,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21147957 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21147970,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21147958 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21147971,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21147959 lien utilise dans velours : https://www.fotonower.com/velours/21147960,21147961,21147962,21147963,21147964,21147965,21147966,21147967,21147968,21147969,21147970,21147971?tags=Carton_gris,Carton_brun,cartonnette,kraft,papier,metal,flou,autre_refus,plastique,mal_croppe,environnement,Teint_Dans_La_Masse After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21147941]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1341495668, 1341495661, 1341495654, 1341495548, 1341495529, 1341495525, 1341495520, 1341495511, 1341495497] map_info['map_portfolio_photo'] : {21147941: [1341495668, 1341495661, 1341495654, 1341495548, 1341495529, 1341495525, 1341495520, 1341495511, 1341495497, 1341495281, 1341495269, 1341495251, 1341495236, 1341495221, 1341495137, 1341495132, 1341495047, 1341495043, 1341495033, 1341494987, 1341494915, 1341494901, 1341494875, 1341494821, 1341494807, 1341494719, 1341493801, 1341493638]} final : False mtd_id 4302 list_pids : [1341495668, 1341495661, 1341495654, 1341495548, 1341495529, 1341495525, 1341495520, 1341495511, 1341495497] Looping around the photos to save general results len do output : 1 /21147941. 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, '2648862') ('4302', '21147941', '1341495668', None, None, None, None, None, '2648862') ('4302', None, None, None, None, None, None, None, '2648862') ('4302', '21147941', '1341495661', None, None, None, None, None, '2648862') ('4302', None, None, None, None, None, None, None, '2648862') ('4302', '21147941', '1341495654', None, None, None, None, None, '2648862') ('4302', None, None, None, None, None, None, None, '2648862') ('4302', '21147941', '1341495548', None, None, None, None, None, '2648862') ('4302', None, None, None, None, None, None, None, '2648862') ('4302', '21147941', '1341495529', None, None, None, None, None, '2648862') ('4302', None, None, None, None, None, None, None, '2648862') ('4302', '21147941', '1341495525', None, None, None, None, None, '2648862') ('4302', None, None, None, None, None, None, None, '2648862') ('4302', '21147941', '1341495520', None, None, None, None, None, '2648862') ('4302', None, None, None, None, None, None, None, '2648862') ('4302', '21147941', '1341495511', None, None, None, None, None, '2648862') ('4302', None, None, None, None, None, None, None, '2648862') ('4302', '21147941', '1341495497', None, None, None, None, None, '2648862') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21147941', "{'Carton_gris': 21147948, 'Carton_brun': 21147949, 'cartonnette': 21147950, 'kraft': 21147951, 'papier': 21147952, 'metal': 21147953, 'flou': 21147954, 'autre_refus': 21147955, 'plastique': 21147956, 'mal_croppe': 21147957, 'environnement': 21147958, 'Teint_Dans_La_Masse': 21147959}", None, None, None, None, '2648862'), ('4302', '21147941', '1341495668', None, None, None, None, None, '2648862'), ('4302', '21147941', '1341495661', None, None, None, None, None, '2648862'), ('4302', '21147941', '1341495654', None, None, None, None, None, '2648862'), ('4302', '21147941', '1341495548', None, None, None, None, None, '2648862'), ('4302', '21147941', '1341495529', None, None, None, None, None, '2648862'), ('4302', '21147941', '1341495525', None, None, None, None, None, '2648862'), ('4302', '21147941', '1341495520', None, None, None, None, None, '2648862'), ('4302', '21147941', '1341495511', None, None, None, None, None, '2648862'), ('4302', '21147941', '1341495497', None, None, None, None, None, '2648862')] time used for this insertion : 0.013562679290771484 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.6700196266174316 time spend to save output : 0.013852834701538086 total time spend for step 1 : 1.6838724613189697 step2:final Fri Mar 7 16:39:02 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 (21147941) 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 21147941 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1341493801,1341493638,1341494915,1341494901,1341494875,1341494821,1341494807,1341495047,1341494719,1341495043,1341495033,1341494987,1341495137,1341495132,1341495281,1341495269,1341495251,1341495236,1341495221,1341495548,1341495529,1341495525,1341495520,1341495511,1341495497,1341495668,1341495661,1341495654); 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([21147941]) Inside saveOutput : final : False verbose : True original output for save of step final : {1341495668: ('0.053940243663047734',), 1341495661: ('0.053940243663047734',), 1341495654: ('0.053940243663047734',), 1341495548: ('0.053940243663047734',), 1341495529: ('0.053940243663047734',), 1341495525: ('0.053940243663047734',), 1341495520: ('0.053940243663047734',), 1341495511: ('0.053940243663047734',), 1341495497: ('0.053940243663047734',)} new output for save of step final : {1341495668: ('0.053940243663047734',), 1341495661: ('0.053940243663047734',), 1341495654: ('0.053940243663047734',), 1341495548: ('0.053940243663047734',), 1341495529: ('0.053940243663047734',), 1341495525: ('0.053940243663047734',), 1341495520: ('0.053940243663047734',), 1341495511: ('0.053940243663047734',), 1341495497: ('0.053940243663047734',)} [1341495668, 1341495661, 1341495654, 1341495548, 1341495529, 1341495525, 1341495520, 1341495511, 1341495497] map_info['map_portfolio_photo'] : {21147941: [1341495668, 1341495661, 1341495654, 1341495548, 1341495529, 1341495525, 1341495520, 1341495511, 1341495497, 1341495281, 1341495269, 1341495251, 1341495236, 1341495221, 1341495137, 1341495132, 1341495047, 1341495043, 1341495033, 1341494987, 1341494915, 1341494901, 1341494875, 1341494821, 1341494807, 1341494719, 1341493801, 1341493638]} final : False mtd_id 4302 list_pids : [1341495668, 1341495661, 1341495654, 1341495548, 1341495529, 1341495525, 1341495520, 1341495511, 1341495497] Looping around the photos to save general results len do output : 9 /1341495668.Didn't retrieve data . /1341495661.Didn't retrieve data . /1341495654.Didn't retrieve data . /1341495548.Didn't retrieve data . /1341495529.Didn't retrieve data . /1341495525.Didn't retrieve data . /1341495520.Didn't retrieve data . /1341495511.Didn't retrieve data . /1341495497.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, '2648862') ('4302', '21147941', '1341495668', None, None, None, None, None, '2648862') ('4302', None, None, None, None, None, None, None, '2648862') ('4302', '21147941', '1341495661', None, None, None, None, None, '2648862') ('4302', None, None, None, None, None, None, None, '2648862') ('4302', '21147941', '1341495654', None, None, None, None, None, '2648862') ('4302', None, None, None, None, None, None, None, '2648862') ('4302', '21147941', '1341495548', None, None, None, None, None, '2648862') ('4302', None, None, None, None, None, None, None, '2648862') ('4302', '21147941', '1341495529', None, None, None, None, None, '2648862') ('4302', None, None, None, None, None, None, None, '2648862') ('4302', '21147941', '1341495525', None, None, None, None, None, '2648862') ('4302', None, None, None, None, None, None, None, '2648862') ('4302', '21147941', '1341495520', None, None, None, None, None, '2648862') ('4302', None, None, None, None, None, None, None, '2648862') ('4302', '21147941', '1341495511', None, None, None, None, None, '2648862') ('4302', None, None, None, None, None, None, None, '2648862') ('4302', '21147941', '1341495497', None, None, None, None, None, '2648862') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 27 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21147941', '1341495668', '0.053940243663047734', None, None, None, None, '2648862'), ('4302', '21147941', '1341495661', '0.053940243663047734', None, None, None, None, '2648862'), ('4302', '21147941', '1341495654', '0.053940243663047734', None, None, None, None, '2648862'), ('4302', '21147941', '1341495548', '0.053940243663047734', None, None, None, None, '2648862'), ('4302', '21147941', '1341495529', '0.053940243663047734', None, None, None, None, '2648862'), ('4302', '21147941', '1341495525', '0.053940243663047734', None, None, None, None, '2648862'), ('4302', '21147941', '1341495520', '0.053940243663047734', None, None, None, None, '2648862'), ('4302', '21147941', '1341495511', '0.053940243663047734', None, None, None, None, '2648862'), ('4302', '21147941', '1341495497', '0.053940243663047734', None, None, None, None, '2648862')] time used for this insertion : 0.015700101852416992 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.2664830684661865 time spend to save output : 0.01682877540588379 total time spend for step 2 : 0.2833118438720703 step3:velours_tree Fri Mar 7 16:39:02 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 : {21147941: [{'Carton_gris': 21147948, 'Carton_brun': 21147949, 'cartonnette': 21147950, 'kraft': 21147951, 'papier': 21147952, 'metal': 21147953, 'flou': 21147954, 'autre_refus': 21147955, 'plastique': 21147956, 'mal_croppe': 21147957, 'environnement': 21147958, 'Teint_Dans_La_Masse': 21147959}]} input_args_next_step : {21147941: ()} output_args : {21147941: [{'Carton_gris': 21147948, 'Carton_brun': 21147949, 'cartonnette': 21147950, 'kraft': 21147951, 'papier': 21147952, 'metal': 21147953, 'flou': 21147954, 'autre_refus': 21147955, 'plastique': 21147956, 'mal_croppe': 21147957, 'environnement': 21147958, 'Teint_Dans_La_Masse': 21147959}]} args : 21147941 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': 21147948, 'Carton_brun': 21147949, 'cartonnette': 21147950, 'kraft': 21147951, 'papier': 21147952, 'metal': 21147953, 'flou': 21147954, 'autre_refus': 21147955, 'plastique': 21147956, 'mal_croppe': 21147957, 'environnement': 21147958, 'Teint_Dans_La_Masse': 21147959},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21147941) 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([21147941]) 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.3556191921234131 time spend to save output : 7.677078247070312e-05 total time spend for step 3 : 0.3556959629058838 step4:send_mail_cod Fri Mar 7 16:39:03 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 : {1341495668: ('0.053940243663047734',), 1341495661: ('0.053940243663047734',), 1341495654: ('0.053940243663047734',), 1341495548: ('0.053940243663047734',), 1341495529: ('0.053940243663047734',), 1341495525: ('0.053940243663047734',), 1341495520: ('0.053940243663047734',), 1341495511: ('0.053940243663047734',), 1341495497: ('0.053940243663047734',)} input_args_next_step : {1341495668: ()} output_args : {1341495668: ('0.053940243663047734',), 1341495661: ('0.053940243663047734',), 1341495654: ('0.053940243663047734',), 1341495548: ('0.053940243663047734',), 1341495529: ('0.053940243663047734',), 1341495525: ('0.053940243663047734',), 1341495520: ('0.053940243663047734',), 1341495511: ('0.053940243663047734',), 1341495497: ('0.053940243663047734',)} args : 1341495668 depend.output_id : 0 input_args_next_step : {1341495668: ('0.053940243663047734',), 1341495661: ()} output_args : {1341495668: ('0.053940243663047734',), 1341495661: ('0.053940243663047734',), 1341495654: ('0.053940243663047734',), 1341495548: ('0.053940243663047734',), 1341495529: ('0.053940243663047734',), 1341495525: ('0.053940243663047734',), 1341495520: ('0.053940243663047734',), 1341495511: ('0.053940243663047734',), 1341495497: ('0.053940243663047734',)} args : 1341495661 depend.output_id : 0 input_args_next_step : {1341495668: ('0.053940243663047734',), 1341495661: ('0.053940243663047734',), 1341495654: ()} output_args : {1341495668: ('0.053940243663047734',), 1341495661: ('0.053940243663047734',), 1341495654: ('0.053940243663047734',), 1341495548: ('0.053940243663047734',), 1341495529: ('0.053940243663047734',), 1341495525: ('0.053940243663047734',), 1341495520: ('0.053940243663047734',), 1341495511: ('0.053940243663047734',), 1341495497: ('0.053940243663047734',)} args : 1341495654 depend.output_id : 0 input_args_next_step : {1341495668: ('0.053940243663047734',), 1341495661: ('0.053940243663047734',), 1341495654: ('0.053940243663047734',), 1341495548: ()} output_args : {1341495668: ('0.053940243663047734',), 1341495661: ('0.053940243663047734',), 1341495654: ('0.053940243663047734',), 1341495548: ('0.053940243663047734',), 1341495529: ('0.053940243663047734',), 1341495525: ('0.053940243663047734',), 1341495520: ('0.053940243663047734',), 1341495511: ('0.053940243663047734',), 1341495497: ('0.053940243663047734',)} args : 1341495548 depend.output_id : 0 input_args_next_step : {1341495668: ('0.053940243663047734',), 1341495661: ('0.053940243663047734',), 1341495654: ('0.053940243663047734',), 1341495548: ('0.053940243663047734',), 1341495529: ()} output_args : {1341495668: ('0.053940243663047734',), 1341495661: ('0.053940243663047734',), 1341495654: ('0.053940243663047734',), 1341495548: ('0.053940243663047734',), 1341495529: ('0.053940243663047734',), 1341495525: ('0.053940243663047734',), 1341495520: ('0.053940243663047734',), 1341495511: ('0.053940243663047734',), 1341495497: ('0.053940243663047734',)} args : 1341495529 depend.output_id : 0 input_args_next_step : {1341495668: ('0.053940243663047734',), 1341495661: ('0.053940243663047734',), 1341495654: ('0.053940243663047734',), 1341495548: ('0.053940243663047734',), 1341495529: ('0.053940243663047734',), 1341495525: ()} output_args : {1341495668: ('0.053940243663047734',), 1341495661: ('0.053940243663047734',), 1341495654: ('0.053940243663047734',), 1341495548: ('0.053940243663047734',), 1341495529: ('0.053940243663047734',), 1341495525: ('0.053940243663047734',), 1341495520: ('0.053940243663047734',), 1341495511: ('0.053940243663047734',), 1341495497: ('0.053940243663047734',)} args : 1341495525 depend.output_id : 0 input_args_next_step : {1341495668: ('0.053940243663047734',), 1341495661: ('0.053940243663047734',), 1341495654: ('0.053940243663047734',), 1341495548: ('0.053940243663047734',), 1341495529: ('0.053940243663047734',), 1341495525: ('0.053940243663047734',), 1341495520: ()} output_args : {1341495668: ('0.053940243663047734',), 1341495661: ('0.053940243663047734',), 1341495654: ('0.053940243663047734',), 1341495548: ('0.053940243663047734',), 1341495529: ('0.053940243663047734',), 1341495525: ('0.053940243663047734',), 1341495520: ('0.053940243663047734',), 1341495511: ('0.053940243663047734',), 1341495497: ('0.053940243663047734',)} args : 1341495520 depend.output_id : 0 input_args_next_step : {1341495668: ('0.053940243663047734',), 1341495661: ('0.053940243663047734',), 1341495654: ('0.053940243663047734',), 1341495548: ('0.053940243663047734',), 1341495529: ('0.053940243663047734',), 1341495525: ('0.053940243663047734',), 1341495520: ('0.053940243663047734',), 1341495511: ()} output_args : {1341495668: ('0.053940243663047734',), 1341495661: ('0.053940243663047734',), 1341495654: ('0.053940243663047734',), 1341495548: ('0.053940243663047734',), 1341495529: ('0.053940243663047734',), 1341495525: ('0.053940243663047734',), 1341495520: ('0.053940243663047734',), 1341495511: ('0.053940243663047734',), 1341495497: ('0.053940243663047734',)} args : 1341495511 depend.output_id : 0 input_args_next_step : {1341495668: ('0.053940243663047734',), 1341495661: ('0.053940243663047734',), 1341495654: ('0.053940243663047734',), 1341495548: ('0.053940243663047734',), 1341495529: ('0.053940243663047734',), 1341495525: ('0.053940243663047734',), 1341495520: ('0.053940243663047734',), 1341495511: ('0.053940243663047734',), 1341495497: ()} output_args : {1341495668: ('0.053940243663047734',), 1341495661: ('0.053940243663047734',), 1341495654: ('0.053940243663047734',), 1341495548: ('0.053940243663047734',), 1341495529: ('0.053940243663047734',), 1341495525: ('0.053940243663047734',), 1341495520: ('0.053940243663047734',), 1341495511: ('0.053940243663047734',), 1341495497: ('0.053940243663047734',)} args : 1341495497 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 : {21147941: [{'Carton_gris': 21147948, 'Carton_brun': 21147949, 'cartonnette': 21147950, 'kraft': 21147951, 'papier': 21147952, 'metal': 21147953, 'flou': 21147954, 'autre_refus': 21147955, 'plastique': 21147956, 'mal_croppe': 21147957, 'environnement': 21147958, 'Teint_Dans_La_Masse': 21147959}]} input_args_next_step : {1341495668: ('0.053940243663047734',), 1341495661: ('0.053940243663047734',), 1341495654: ('0.053940243663047734',), 1341495548: ('0.053940243663047734',), 1341495529: ('0.053940243663047734',), 1341495525: ('0.053940243663047734',), 1341495520: ('0.053940243663047734',), 1341495511: ('0.053940243663047734',), 1341495497: ('0.053940243663047734',), 21147941: ()} output_args : {21147941: [{'Carton_gris': 21147948, 'Carton_brun': 21147949, 'cartonnette': 21147950, 'kraft': 21147951, 'papier': 21147952, 'metal': 21147953, 'flou': 21147954, 'autre_refus': 21147955, 'plastique': 21147956, 'mal_croppe': 21147957, 'environnement': 21147958, 'Teint_Dans_La_Masse': 21147959}]} args : 21147941 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :10, first value : ('0.053940243663047734',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21147941) 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 (1341495668,1341495661,1341495654,1341495548,1341495529,1341495525,1341495520,1341495511,1341495497) Found this number of photos: 9 ##### Call download_photos : nb_thread : 5 begin to download photo : 1341495497 begin to download photo : 1341495520 begin to download photo : 1341495529 begin to download photo : 1341495654 begin to download photo : 1341495668 download finish for photo 1341495654 begin to download photo : 1341495661 download finish for photo 1341495529 begin to download photo : 1341495548 download finish for photo 1341495668 download finish for photo 1341495497 begin to download photo : 1341495511 download finish for photo 1341495520 begin to download photo : 1341495525 download finish for photo 1341495661 download finish for photo 1341495548 download finish for photo 1341495525 download finish for photo 1341495511 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 9 ; length of list_pids : 9 ; length of list_args : 9 results_Auto_P21147941_07-03-2025_16_39_03.pdf 21147950 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=21147950 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1341495423: '1741361725_467904_1341494901_1af39529a08285d9186f4df58a6eb0d6_rle_crop_3697493239_0.png', 1341495424: '1741361725_467904_1341494821_f010f53d59c97816e11314b71a92ffae_rle_crop_3697493266_0.png', 1341495425: '1741361725_467904_1341494719_9f4b85c518f3d2a526bf6a67ef7b9748_rle_crop_3697493420_0.png', 1341495754: '1741361851_204854_1341493801_288200e00f6ca80f5c680dd68347e894_rle_crop_3697495898_0.png', 1341495755: '1741361851_204854_1341493801_288200e00f6ca80f5c680dd68347e894_rle_crop_3697495895_0.png', 1341495756: '1741361851_204854_1341493638_69a6f596c753a024c6eaacf054f6c20b_rle_crop_3697495903_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/aec92510db22ddbdef97a49cdde4752f_50604990.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/34f42918ba27553f190345801258af4c_33326915.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/970151f307bb75a29665124a3a005121_11653369.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/4e8499f05fda1d42af7b187a78f34a90_54794741.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/ab58f94fd8371e1fd6f50757c57fdeec_80343892.png change filename to text .imagette211479501741361943/ imagette211479501741361943/1741361851_204854_1341493801_288200e00f6ca80f5c680dd68347e894_rle_crop_3697495898_0.png.png imagette211479501741361943/1741361725_467904_1341494901_1af39529a08285d9186f4df58a6eb0d6_rle_crop_3697493239_0.png.png imagette211479501741361943/1741361725_467904_1341494821_f010f53d59c97816e11314b71a92ffae_rle_crop_3697493266_0.png.png imagette211479501741361943/1741361851_204854_1341493638_69a6f596c753a024c6eaacf054f6c20b_rle_crop_3697495903_0.png.png imagette211479501741361943/1741361851_204854_1341493801_288200e00f6ca80f5c680dd68347e894_rle_crop_3697495895_0.png.png imagette211479501741361943/1741361725_467904_1341494719_9f4b85c518f3d2a526bf6a67ef7b9748_rle_crop_3697493420_0.png.png imagette211479511741361943/ imagette211479531741361943/ imagette211479541741361943/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/b88922fe0dfe6d9a3168379c7777f121_53334580.png imagette211479501741361943 21147951 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=21147951 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette211479511741361943 21147953 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=21147953 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette211479531741361943 21147954 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=21147954 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette211479541741361943 21147955 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=21147955 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1341495400: '1741361725_467904_1341495047_98b7920f203bd2bd302cd250b4429bbb_rle_crop_3697493225_0.png', 1341495408: '1741361725_467904_1341494901_1af39529a08285d9186f4df58a6eb0d6_rle_crop_3697493244_0.png', 1341495416: '1741361725_467904_1341494901_1af39529a08285d9186f4df58a6eb0d6_rle_crop_3697493234_0.png', 1341495418: '1741361725_467904_1341494875_191cc0eaae8c405741e79e0d6bddcfb3_rle_crop_3697493252_0.png', 1341495419: '1741361725_467904_1341494821_f010f53d59c97816e11314b71a92ffae_rle_crop_3697493272_0.png', 1341495420: '1741361725_467904_1341494807_ca31f814fa1b3529a82c4db047300e4a_rle_crop_3697493370_0.png', 1341495421: '1741361725_467904_1341494719_9f4b85c518f3d2a526bf6a67ef7b9748_rle_crop_3697493428_0.png', 1341495678: '1741361847_471052_1341495281_e308dfd4941844311edf24840ec25f2f_rle_crop_3697495633_0.png', 1341495731: '1741361847_783237_1341495269_f6ad51a3e6ec4727a563570472f7d309_rle_crop_3697495649_0.png', 1341495732: '1741361847_783237_1341495251_9719bf47676cd9e3da3a3dafa85c3ad4_rle_crop_3697495675_0.png', 1341495733: '1741361847_783237_1341495236_fccc5e2a4ec7e8e9feae86f6b988e2d5_rle_crop_3697495703_0.png', 1341495734: '1741361847_783237_1341495221_fb4ab4ed3a790fb2ec5abbfc47bd82fc_rle_crop_3697495815_0.png', 1341495750: '1741361851_204854_1341494915_bb29097cd6db0f423efdae351c98ad92_rle_crop_3697495883_0.png', 1341495751: '1741361851_204854_1341493801_288200e00f6ca80f5c680dd68347e894_rle_crop_3697495893_0.png', 1341495752: '1741361851_204854_1341493638_69a6f596c753a024c6eaacf054f6c20b_rle_crop_3697495911_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/661045bf9377fa2a97b7c70c4c32dea4_46669556.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/948c19bbb0fffe7f32a4f2b3571cd605_47671822.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/640af34729cbb45208056eaa9061cda1_49463703.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/c6482dde791e09e649335cf9b81350b3_93086597.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/74233054d000c4cf1855117813b48dd3_29915190.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/2489081e91ae784330f4d5f5db98a0fa_49623642.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/9592fed075ba43e9bba954f4545d2a3a_7188637.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/0a75e77094a4f42869bad48f77bf23a9_47397345.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/a05736ffe96b140a56b64453e6c555ed_99787274.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/7e0f836664f2727193685d7a73a81bd1_12316116.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/f4b6af85db7a7e137f2687298e04dedc_88006245.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/fc57554bbc3e6d9a1341891aeef3a3bc_32844532.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/7268ba2c7de90b31e1eb76180c55ea5c_49202428.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/cb4e1512140501f8d57d4899f51fbd45_47941830.png change filename to text .imagette211479551741361943/ imagette211479551741361943/1741361847_783237_1341495221_fb4ab4ed3a790fb2ec5abbfc47bd82fc_rle_crop_3697495815_0.png.png imagette211479551741361943/1741361847_783237_1341495269_f6ad51a3e6ec4727a563570472f7d309_rle_crop_3697495649_0.png.png imagette211479551741361943/1741361725_467904_1341495047_98b7920f203bd2bd302cd250b4429bbb_rle_crop_3697493225_0.png.png imagette211479551741361943/1741361851_204854_1341493638_69a6f596c753a024c6eaacf054f6c20b_rle_crop_3697495911_0.png.png imagette211479551741361943/1741361725_467904_1341494901_1af39529a08285d9186f4df58a6eb0d6_rle_crop_3697493234_0.png.png imagette211479551741361943/1741361847_783237_1341495251_9719bf47676cd9e3da3a3dafa85c3ad4_rle_crop_3697495675_0.png.png imagette211479551741361943/1741361725_467904_1341494875_191cc0eaae8c405741e79e0d6bddcfb3_rle_crop_3697493252_0.png.png imagette211479551741361943/1741361847_783237_1341495236_fccc5e2a4ec7e8e9feae86f6b988e2d5_rle_crop_3697495703_0.png.png imagette211479551741361943/1741361851_204854_1341493801_288200e00f6ca80f5c680dd68347e894_rle_crop_3697495893_0.png.png imagette211479551741361943/1741361725_467904_1341494821_f010f53d59c97816e11314b71a92ffae_rle_crop_3697493272_0.png.png imagette211479551741361943/1741361725_467904_1341494901_1af39529a08285d9186f4df58a6eb0d6_rle_crop_3697493244_0.png.png imagette211479551741361943/1741361847_471052_1341495281_e308dfd4941844311edf24840ec25f2f_rle_crop_3697495633_0.png.png imagette211479551741361943/1741361725_467904_1341494719_9f4b85c518f3d2a526bf6a67ef7b9748_rle_crop_3697493428_0.png.png imagette211479551741361943/1741361725_467904_1341494807_ca31f814fa1b3529a82c4db047300e4a_rle_crop_3697493370_0.png.png imagette211479551741361943/1741361851_204854_1341494915_bb29097cd6db0f423efdae351c98ad92_rle_crop_3697495883_0.png.png wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/326e50a68624beca88a44f80ee308c5f_53320555.png imagette211479551741361943 21147956 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=21147956 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1341495441: '1741361725_467904_1341494875_191cc0eaae8c405741e79e0d6bddcfb3_rle_crop_3697493251_0.png', 1341495443: '1741361725_467904_1341494807_ca31f814fa1b3529a82c4db047300e4a_rle_crop_3697493369_0.png', 1341495737: '1741361847_783237_1341495236_fccc5e2a4ec7e8e9feae86f6b988e2d5_rle_crop_3697495702_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/75f760cbb16bf6a0a528579e65c6fdba_84560577.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/1522b7a4d9c730b7e045c93bb31e83e8_16064211.png change filename to text .imagette211479561741361944/ imagette211479561741361944/1741361725_467904_1341494807_ca31f814fa1b3529a82c4db047300e4a_rle_crop_3697493369_0.png.png imagette211479561741361944/1741361725_467904_1341494875_191cc0eaae8c405741e79e0d6bddcfb3_rle_crop_3697493251_0.png.png imagette211479561741361944/1741361847_783237_1341495236_fccc5e2a4ec7e8e9feae86f6b988e2d5_rle_crop_3697495702_0.png.png imagette211479571741361944/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/ba181f605e71ed8468f57bffbb41afb3_72211527.png imagette211479561741361944 21147957 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=21147957 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette211479571741361944 21147948 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=21147948 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1341495422: '1741361725_467904_1341494821_f010f53d59c97816e11314b71a92ffae_rle_crop_3697493267_0.png'} change filename to text .imagette211479481741361944/ imagette211479481741361944/1741361725_467904_1341494821_f010f53d59c97816e11314b71a92ffae_rle_crop_3697493267_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/d5f0423c9de572bd9c2d7eb00aacf796_71208644.png imagette211479481741361944 21147949 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=21147949 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1341495427: '1741361725_467904_1341494901_1af39529a08285d9186f4df58a6eb0d6_rle_crop_3697493242_0.png', 1341495428: '1741361725_467904_1341494875_191cc0eaae8c405741e79e0d6bddcfb3_rle_crop_3697493254_0.png', 1341495429: '1741361725_467904_1341494821_f010f53d59c97816e11314b71a92ffae_rle_crop_3697493269_0.png', 1341495431: '1741361725_467904_1341494807_ca31f814fa1b3529a82c4db047300e4a_rle_crop_3697493367_0.png', 1341495433: '1741361725_467904_1341494719_9f4b85c518f3d2a526bf6a67ef7b9748_rle_crop_3697493426_0.png', 1341495679: '1741361847_471052_1341495281_e308dfd4941844311edf24840ec25f2f_rle_crop_3697495634_0.png', 1341495735: '1741361847_783237_1341495269_f6ad51a3e6ec4727a563570472f7d309_rle_crop_3697495652_0.png', 1341495736: '1741361847_783237_1341495221_fb4ab4ed3a790fb2ec5abbfc47bd82fc_rle_crop_3697495813_0.png', 1341495757: '1741361851_204854_1341494915_bb29097cd6db0f423efdae351c98ad92_rle_crop_3697495875_0.png', 1341495758: '1741361851_204854_1341493801_288200e00f6ca80f5c680dd68347e894_rle_crop_3697495897_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/bcc4a0de8d81ee6f705fe98efed31809_25999382.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/329d06178a9bb71130112cd1046c1382_51008004.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/c83771e42f725750d6b767c719a09c31_9757252.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/76d043660863126d50b4017d18870433_83382630.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/8b20b200b74541af126ab294337a2cc3_39510314.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/a16bb3e4b84473809435709ba276c858_79320678.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/1e51c229518e56ae73e5a10fed5e11fd_12742455.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/2f020d20e48477e23ef30ef5ece41302_87325892.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/b5f067822c52b9b2c2364e4c03e2c3c0_70989778.png change filename to text .imagette211479491741361944/ imagette211479491741361944/1741361725_467904_1341494875_191cc0eaae8c405741e79e0d6bddcfb3_rle_crop_3697493254_0.png.png imagette211479491741361944/1741361847_783237_1341495269_f6ad51a3e6ec4727a563570472f7d309_rle_crop_3697495652_0.png.png imagette211479491741361944/1741361725_467904_1341494807_ca31f814fa1b3529a82c4db047300e4a_rle_crop_3697493367_0.png.png imagette211479491741361944/1741361851_204854_1341494915_bb29097cd6db0f423efdae351c98ad92_rle_crop_3697495875_0.png.png imagette211479491741361944/1741361851_204854_1341493801_288200e00f6ca80f5c680dd68347e894_rle_crop_3697495897_0.png.png imagette211479491741361944/1741361725_467904_1341494719_9f4b85c518f3d2a526bf6a67ef7b9748_rle_crop_3697493426_0.png.png imagette211479491741361944/1741361725_467904_1341494821_f010f53d59c97816e11314b71a92ffae_rle_crop_3697493269_0.png.png imagette211479491741361944/1741361847_471052_1341495281_e308dfd4941844311edf24840ec25f2f_rle_crop_3697495634_0.png.png imagette211479491741361944/1741361847_783237_1341495221_fb4ab4ed3a790fb2ec5abbfc47bd82fc_rle_crop_3697495813_0.png.png imagette211479491741361944/1741361725_467904_1341494901_1af39529a08285d9186f4df58a6eb0d6_rle_crop_3697493242_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/b60f21976271b896afc084e5203e6a13_85937931.png imagette211479491741361944 21147959 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=21147959 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1341495355: '1741361725_467904_1341494901_1af39529a08285d9186f4df58a6eb0d6_rle_crop_3697493246_0.png', 1341495747: '1741361851_204854_1341494915_bb29097cd6db0f423efdae351c98ad92_rle_crop_3697495882_0.png', 1341495748: '1741361851_204854_1341493638_69a6f596c753a024c6eaacf054f6c20b_rle_crop_3697495913_0.png', 1341495749: '1741361851_204854_1341493638_69a6f596c753a024c6eaacf054f6c20b_rle_crop_3697495909_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/2f65b9a882630a68382c62d8da45fb32_65785881.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/239fca5a83d8374e8518e6be21e7132c_15590663.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/df9c0ca407cf19f58a49baa3c8ffcf12_978391.png change filename to text .imagette211479591741361945/ imagette211479591741361945/1741361725_467904_1341494901_1af39529a08285d9186f4df58a6eb0d6_rle_crop_3697493246_0.png.png imagette211479591741361945/1741361851_204854_1341493638_69a6f596c753a024c6eaacf054f6c20b_rle_crop_3697495913_0.png.png imagette211479591741361945/1741361851_204854_1341493638_69a6f596c753a024c6eaacf054f6c20b_rle_crop_3697495909_0.png.png imagette211479591741361945/1741361851_204854_1341494915_bb29097cd6db0f423efdae351c98ad92_rle_crop_3697495882_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/ab0b272a093a0cbb40146a8dbd3124a0_80482972.png imagette211479591741361945 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21147941 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21147960,21147961,21147962,21147963,21147964,21147965,21147966,21147967,21147968,21147969,21147970,21147971?tags=Carton_gris,Carton_brun,cartonnette,kraft,papier,metal,flou,autre_refus,plastique,mal_croppe,environnement,Teint_Dans_La_Masse your option no_mail is active, we will not send the real mail to your client args[1341495668] : ('0.053940243663047734',) no score found for photo 1341495668 We are sending mail with results at report@fotonower.com args[1341495661] : ('0.053940243663047734',) no score found for photo 1341495661 We are sending mail with results at report@fotonower.com args[1341495654] : ('0.053940243663047734',) no score found for photo 1341495654 We are sending mail with results at report@fotonower.com args[1341495548] : ('0.053940243663047734',) no score found for photo 1341495548 We are sending mail with results at report@fotonower.com args[1341495529] : ('0.053940243663047734',) no score found for photo 1341495529 We are sending mail with results at report@fotonower.com args[1341495525] : ('0.053940243663047734',) no score found for photo 1341495525 We are sending mail with results at report@fotonower.com args[1341495520] : ('0.053940243663047734',) no score found for photo 1341495520 We are sending mail with results at report@fotonower.com args[1341495511] : ('0.053940243663047734',) no score found for photo 1341495511 We are sending mail with results at report@fotonower.com args[1341495497] : ('0.053940243663047734',) no score found for photo 1341495497 We are sending mail with results at report@fotonower.com refus_total : 0.053940243663047734 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=21147941 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_P21147941_07-03-2025_16_39_03.pdf results_Auto_P21147941_07-03-2025_16_39_03.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21147941_07-03-2025_16_39_03.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','21147941','results_Auto_P21147941_07-03-2025_16_39_03.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21147941_07-03-2025_16_39_03.pdf','pdf','','0.2','0.053940243663047734') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21147941]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1341495668, 1341495661, 1341495654, 1341495548, 1341495529, 1341495525, 1341495520, 1341495511, 1341495497] map_info['map_portfolio_photo'] : {21147941: [1341495668, 1341495661, 1341495654, 1341495548, 1341495529, 1341495525, 1341495520, 1341495511, 1341495497, 1341495281, 1341495269, 1341495251, 1341495236, 1341495221, 1341495137, 1341495132, 1341495047, 1341495043, 1341495033, 1341494987, 1341494915, 1341494901, 1341494875, 1341494821, 1341494807, 1341494719, 1341493801, 1341493638]} final : False mtd_id 4302 list_pids : [1341495668, 1341495661, 1341495654, 1341495548, 1341495529, 1341495525, 1341495520, 1341495511, 1341495497] 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, '2648862') ('4302', '21147941', '1341495668', None, None, None, None, None, '2648862') ('4302', None, None, None, None, None, None, None, '2648862') ('4302', '21147941', '1341495661', None, None, None, None, None, '2648862') ('4302', None, None, None, None, None, None, None, '2648862') ('4302', '21147941', '1341495654', None, None, None, None, None, '2648862') ('4302', None, None, None, None, None, None, None, '2648862') ('4302', '21147941', '1341495548', None, None, None, None, None, '2648862') ('4302', None, None, None, None, None, None, None, '2648862') ('4302', '21147941', '1341495529', None, None, None, None, None, '2648862') ('4302', None, None, None, None, None, None, None, '2648862') ('4302', '21147941', '1341495525', None, None, None, None, None, '2648862') ('4302', None, None, None, None, None, None, None, '2648862') ('4302', '21147941', '1341495520', None, None, None, None, None, '2648862') ('4302', None, None, None, None, None, None, None, '2648862') ('4302', '21147941', '1341495511', None, None, None, None, None, '2648862') ('4302', None, None, None, None, None, None, None, '2648862') ('4302', '21147941', '1341495497', None, None, None, None, None, '2648862') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21147941', '1341495668', None, None, None, None, None, '2648862'), ('4302', '21147941', '1341495661', None, None, None, None, None, '2648862'), ('4302', '21147941', '1341495654', None, None, None, None, None, '2648862'), ('4302', '21147941', '1341495548', None, None, None, None, None, '2648862'), ('4302', '21147941', '1341495529', None, None, None, None, None, '2648862'), ('4302', '21147941', '1341495525', None, None, None, None, None, '2648862'), ('4302', '21147941', '1341495520', None, None, None, None, None, '2648862'), ('4302', '21147941', '1341495511', None, None, None, None, None, '2648862'), ('4302', '21147941', '1341495497', None, None, None, None, None, '2648862')] time used for this insertion : 0.01284170150756836 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.3601932525634766 time spend to save output : 0.013016939163208008 total time spend for step 4 : 3.3732101917266846 step5:split_time_score Fri Mar 7 16:39:06 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 : ['21147941'] 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 : [('21147941',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21147941) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1341495668: {'path': 'temp/1741361943_3639045_1341495668_4c4dbee293688e263c8a5e113600815d.jpg', 'extension': 'jpg'}, 1341495654: {'path': 'temp/1741361943_3639045_1341495654_5c57393bcae1685f414d092e8ae98f96.jpg', 'extension': 'jpg'}, 1341495661: {'path': 'temp/1741361943_3639045_1341495661_a2dae455cc85d68c170eebb0d9276a9f.jpg', 'extension': 'jpg'}, 1341495529: {'path': 'temp/1741361943_3639045_1341495529_808bc4b3ed9b8e3bfd793b8331355a47.jpg', 'extension': 'jpg'}, 1341495548: {'path': 'temp/1741361943_3639045_1341495548_667eae9523242921d8d119210093a31f.jpg', 'extension': 'jpg'}, 1341495520: {'path': 'temp/1741361943_3639045_1341495520_bc4e01a6e8a8c872356a69c4856e7768.jpg', 'extension': 'jpg'}, 1341495525: {'path': 'temp/1741361943_3639045_1341495525_c3937dd0f9aeb0a568ea137493718cc4.jpg', 'extension': 'jpg'}, 1341495497: {'path': 'temp/1741361943_3639045_1341495497_fea8d7cfdb4beac2e5a02e6e242e2299.jpg', 'extension': 'jpg'}, 1341495511: {'path': 'temp/1741361943_3639045_1341495511_6c736f70017e17229235a919fc7f89ef.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 = 21147941; (('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 = 21147941 group by h (('16', 28),) 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=21147941 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 (21147941) 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 (21147941) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 07032025 21147941 Nombre de photos uploadées : 28 / 23040 (0%) 07032025 21147941 Nombre de photos taguées (types de déchets): 0 / 28 (0%) 07032025 21147941 Nombre de photos taguées (volume) : 0 / 28 (0%) [{'photo_id': 1341493801, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/288200e00f6ca80f5c680dd68347e894.jpg', 'username': None, 'uploaded_at': 1741361489, 'text': 'image_07032025_16_30_24_10139.jpg'}, {'photo_id': 1341493638, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/69a6f596c753a024c6eaacf054f6c20b.jpg', 'username': None, 'uploaded_at': 1741361489, 'text': 'image_07032025_16_30_34_10135.jpg'}, {'photo_id': 1341494915, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/bb29097cd6db0f423efdae351c98ad92.jpg', 'username': None, 'uploaded_at': 1741361564, 'text': 'image_07032025_16_30_54_10136.jpg'}, {'photo_id': 1341494901, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/1af39529a08285d9186f4df58a6eb0d6.jpg', 'username': None, 'uploaded_at': 1741361564, 'text': 'image_07032025_16_31_04_10158.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.6226043701171875e-06 elapsed_time : order_list_meta_photo_and_scores 7.3909759521484375e-06 ???????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0015535354614257812 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21147941, '2025-03-07' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1646019,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 3.2676138877868652 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= 1646019 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1646019, 'dashboard_run_id': 1655705, 'mtr_portfolio_id': 21145713, 'dashboard_result_id': 9287286, '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_P21145713_07-03-2025_16_02_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21145717, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21145718, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21145719, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21145720, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21145721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21145722, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21145723, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21145724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21145725, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21145726, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21145727, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21145728, 'pht': 3726}}"}, {'dashboat_entry_day': 1646019, 'dashboard_run_id': 1655705, 'mtr_portfolio_id': 21146412, 'dashboard_result_id': 9287287, '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_P21146412_07-03-2025_16_19_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21146453, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21146454, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21146455, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21146456, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21146457, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21146458, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21146459, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21146460, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21146461, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21146462, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21146463, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21146464, 'pht': 3726}}"}, {'dashboat_entry_day': 1646019, 'dashboard_run_id': 1655705, 'mtr_portfolio_id': 21147216, 'dashboard_result_id': 9287288, '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_P21147216_07-03-2025_16_32_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21147264, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21147265, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21147266, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21147267, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21147268, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21147269, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21147270, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21147271, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21147272, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21147273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21147274, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21147275, 'pht': 3726}}"}, {'dashboat_entry_day': 1646019, 'dashboard_run_id': 1655705, 'mtr_portfolio_id': 21147941, 'dashboard_result_id': 9287289, '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_P21147941_07-03-2025_16_37_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21147948, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21147949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21147950, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21147951, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21147952, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21147953, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21147954, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21147955, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21147956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21147957, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21147958, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21147959, '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 = 21145713 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': 2648700, 'mtr_portfolio_id': 21145713, 'created_at': datetime.datetime(2025, 3, 7, 16, 2, 58), 'result': '0.0809560594286227', 'result_long': None, 'result_double': None}] Qualite : 0.0809560594286227 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21145713 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21145713_07-03-2025_16_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21145713 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_P21145713_07-03-2025_16_02_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21145717, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21145718, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21145719, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21145720, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21145721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21145722, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21145723, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21145724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21145725, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21145726, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21145727, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21145728, 'pht': 3726}}" where mtr_portfolio_id = 21145713 and dashboard_run_id = 1655705 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`=21145713 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9287286, 0.0809560594286227, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21145713_07-03-2025_16_02_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21145717, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21145718, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21145719, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21145720, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21145721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21145722, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21145723, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21145724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21145725, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21145726, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21145727, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21145728, '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 = 21146412 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': 2648759, 'mtr_portfolio_id': 21146412, 'created_at': datetime.datetime(2025, 3, 7, 16, 19, 29), 'result': '0.08191782066017682', 'result_long': None, 'result_double': None}] Qualite : 0.08191782066017682 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21146412 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21146412_07-03-2025_16_19_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21146412 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_P21146412_07-03-2025_16_19_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21146453, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21146454, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21146455, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21146456, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21146457, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21146458, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21146459, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21146460, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21146461, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21146462, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21146463, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21146464, 'pht': 3726}}" where mtr_portfolio_id = 21146412 and dashboard_run_id = 1655705 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`=21146412 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9287287, 0.08191782066017682, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21146412_07-03-2025_16_19_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21146453, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21146454, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21146455, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21146456, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21146457, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21146458, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21146459, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21146460, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21146461, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21146462, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21146463, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21146464, '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 = 21147216 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': 2648800, 'mtr_portfolio_id': 21147216, 'created_at': datetime.datetime(2025, 3, 7, 16, 32, 29), 'result': '0.0860101387582772', 'result_long': None, 'result_double': None}] Qualite : 0.0860101387582772 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21147216 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21147216_07-03-2025_16_32_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21147216 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_P21147216_07-03-2025_16_32_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21147264, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21147265, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21147266, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21147267, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21147268, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21147269, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21147270, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21147271, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21147272, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21147273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21147274, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21147275, 'pht': 3726}}" where mtr_portfolio_id = 21147216 and dashboard_run_id = 1655705 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`=21147216 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9287288, 0.0860101387582772, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21147216_07-03-2025_16_32_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21147264, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21147265, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21147266, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21147267, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21147268, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21147269, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21147270, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21147271, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21147272, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21147273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21147274, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21147275, '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 = 21147941 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': 2648862, 'mtr_portfolio_id': 21147941, 'created_at': datetime.datetime(2025, 3, 7, 16, 39, 2), 'result': '0.053940243663047734', 'result_long': None, 'result_double': None}] Qualite : 0.053940243663047734 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21147941 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21147941_07-03-2025_16_39_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21147941 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_P21147941_07-03-2025_16_39_03.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21147948, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21147949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21147950, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21147951, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21147952, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21147953, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21147954, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21147955, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21147956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21147957, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21147958, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21147959, 'pht': 3726}}" where mtr_portfolio_id = 21147941 and dashboard_run_id = 1655705 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`=21147941 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9287289, 0.053940243663047734, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21147941_07-03-2025_16_39_03.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21147948, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21147949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21147950, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21147951, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21147952, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21147953, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21147954, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21147955, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21147956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21147957, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21147958, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21147959, '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 (21145713,21146412,21147216,21147941) result : ((1341481882,), (1341481923,), (1341482044,), (1341482188,), (1341482197,), (1341482491,), (1341482499,), (1341482504,), (1341482769,), (1341482785,), (1341482799,), (1341482816,), (1341482827,), (1341483334,), (1341483338,), (1341483346,), (1341483351,), (1341483356,), (1341483388,), (1341483505,), (1341483529,), (1341483542,), (1341483563,), (1341483569,), (1341483575,), (1341483583,), (1341483590,), (1341483663,), (1341483670,), (1341483678,), (1341483684,), (1341483710,), (1341483714,), (1341483719,), (1341483726,), (1341483734,), (1341483771,), (1341483774,), (1341483780,), (1341483784,), (1341483788,), (1341483816,), (1341483820,), (1341483827,), (1341483833,), (1341483914,), (1341483921,), (1341483925,), (1341483985,), (1341483990,), (1341484004,), (1341484117,), (1341484149,), (1341484189,), (1341484195,), (1341484203,), (1341484206,), (1341484211,), (1341484216,), (1341484329,), (1341484334,), (1341484338,), (1341484343,), (1341484345,), (1341484349,), (1341484354,), (1341484357,), (1341484361,), (1341484397,), (1341484386,), (1341484391,), (1341484394,), (1341485051,), (1341485108,), (1341486187,), (1341486264,), (1341486369,), (1341486449,), (1341486557,), (1341487160,), (1341487181,), (1341487186,), (1341487190,), (1341487366,), (1341487505,), (1341487549,), (1341487600,), (1341487637,), (1341487671,), (1341488012,), (1341488683,), (1341488726,), (1341489158,), (1341489174,), (1341489197,), (1341489211,), (1341489500,), (1341489551,), (1341489860,), (1341489867,), (1341489874,), (1341489879,), (1341489933,), (1341489946,), (1341489952,), (1341489956,), (1341490026,), (1341490055,), (1341490082,), (1341490374,), (1341490400,), (1341490423,), (1341490432,), (1341490438,), (1341490676,), (1341490704,), (1341490736,), (1341490785,), (1341490821,), (1341490824,), (1341490933,), (1341490952,), (1341491037,), (1341491247,), (1341491208,), (1341491212,), (1341491221,), (1341491324,), (1341491341,), (1341491348,), (1341491355,), (1341491399,), (1341491530,), (1341491535,), (1341491551,), (1341491557,), (1341491567,), (1341491571,), (1341491614,), (1341491625,), (1341491638,), (1341491745,), (1341491753,), (1341491759,), (1341491764,), (1341491769,), (1341491789,), (1341491795,), (1341491799,), (1341491805,), (1341491811,), (1341491826,), (1341491878,), (1341491895,), (1341491929,), (1341491951,), (1341492004,), (1341492010,), (1341492016,), (1341492114,), (1341492118,), (1341492123,), (1341492129,), (1341492162,), (1341492413,), (1341492430,), (1341492437,), (1341493910,), (1341493638,), (1341493801,), (1341494719,), (1341494807,), (1341494821,), (1341494875,), (1341494901,), (1341494915,), (1341494987,), (1341495033,), (1341495043,), (1341495047,), (1341495132,), (1341495137,), (1341495221,), (1341495236,), (1341495251,), (1341495269,), (1341495281,), (1341495497,), (1341495511,), (1341495520,), (1341495525,), (1341495529,), (1341495548,), (1341495654,), (1341495661,), (1341495668,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'07032025': {'nb_upload': 28, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21147941]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1341495668, 1341495661, 1341495654, 1341495548, 1341495529, 1341495525, 1341495520, 1341495511, 1341495497] map_info['map_portfolio_photo'] : {21147941: [1341495668, 1341495661, 1341495654, 1341495548, 1341495529, 1341495525, 1341495520, 1341495511, 1341495497, 1341495281, 1341495269, 1341495251, 1341495236, 1341495221, 1341495137, 1341495132, 1341495047, 1341495043, 1341495033, 1341494987, 1341494915, 1341494901, 1341494875, 1341494821, 1341494807, 1341494719, 1341493801, 1341493638]} final : True mtd_id 4302 list_pids : [1341495668, 1341495661, 1341495654, 1341495548, 1341495529, 1341495525, 1341495520, 1341495511, 1341495497] Looping around the photos to save general results len do output : 1 /21147941Didn'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, '2648862') ('4302', '21147941', '1341495668', None, None, None, None, None, '2648862') ('4302', None, None, None, None, None, None, None, '2648862') ('4302', '21147941', '1341495661', None, None, None, None, None, '2648862') ('4302', None, None, None, None, None, None, None, '2648862') ('4302', '21147941', '1341495654', None, None, None, None, None, '2648862') ('4302', None, None, None, None, None, None, None, '2648862') ('4302', '21147941', '1341495548', None, None, None, None, None, '2648862') ('4302', None, None, None, None, None, None, None, '2648862') ('4302', '21147941', '1341495529', None, None, None, None, None, '2648862') ('4302', None, None, None, None, None, None, None, '2648862') ('4302', '21147941', '1341495525', None, None, None, None, None, '2648862') ('4302', None, None, None, None, None, None, None, '2648862') ('4302', '21147941', '1341495520', None, None, None, None, None, '2648862') ('4302', None, None, None, None, None, None, None, '2648862') ('4302', '21147941', '1341495511', None, None, None, None, None, '2648862') ('4302', None, None, None, None, None, None, None, '2648862') ('4302', '21147941', '1341495497', None, None, None, None, None, '2648862') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21147941', 'None', None, None, None, None, '2648862'), ('4302', '21147941', '1341495668', None, None, None, None, None, '2648862'), ('4302', '21147941', '1341495661', None, None, None, None, None, '2648862'), ('4302', '21147941', '1341495654', None, None, None, None, None, '2648862'), ('4302', '21147941', '1341495548', None, None, None, None, None, '2648862'), ('4302', '21147941', '1341495529', None, None, None, None, None, '2648862'), ('4302', '21147941', '1341495525', None, None, None, None, None, '2648862'), ('4302', '21147941', '1341495520', None, None, None, None, None, '2648862'), ('4302', '21147941', '1341495511', None, None, None, None, None, '2648862'), ('4302', '21147941', '1341495497', None, None, None, None, None, '2648862')] time used for this insertion : 4.189166069030762 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.212766885757446 time spend to save output : 4.189465045928955 total time spend for step 5 : 9.402231931686401 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 (2648862) 2.31user 2.56system 0:18.46elapsed 26%CPU (0avgtext+0avgdata 159396maxresident)k 968inputs+10624outputs (30major+76493minor)pagefaults 0swaps