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 : 2164775 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 (2575711) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2575711) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20439280 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2575711'] with mtr_portfolio_ids : ['20439280'] and first list_photo_ids : [] new path : /proc/2164775/ Name: python3 Umask: 0002 State: R (running) Tgid: 2164775 Ngid: 0 Pid: 2164775 PPid: 2164774 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2164775 NSpid: 2164775 NSpgid: 2161849 NSsid: 2161849 VmPeak: 1106932 kB VmSize: 1106932 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97744 kB VmRSS: 97744 kB RssAnon: 59760 kB RssFile: 37984 kB RssShmem: 0 kB VmData: 865684 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 616 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/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: 51 nonvoluntary_ctxt_switches: 107 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2164775', 'Ngid': '0', 'Pid': '2164775', 'PPid': '2164774', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2164775', 'NSpid': '2164775', 'NSpgid': '2161849', 'NSsid': '2161849', 'VmPeak': '1106932 kB', 'VmSize': '1106932 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97744 kB', 'VmRSS': '97744 kB', 'RssAnon': '59760 kB', 'RssFile': '37984 kB', 'RssShmem': '0 kB', 'VmData': '865684 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '616 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/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': '51', 'nonvoluntary_ctxt_switches': '107'} ('datou_batch_current', '2164775', '1106932', '0', '1106932', '865684', '97744', b'', 'marlene', '2575711') 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 (20439280) 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 (2575711 ) ) 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 (20439280) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1336780895, 'portfolio_id': 20439280}, {'photo_id': 1336780892, 'portfolio_id': 20439280}, {'photo_id': 1336780890, 'portfolio_id': 20439280}, {'photo_id': 1336780889, 'portfolio_id': 20439280}, {'photo_id': 1336779693, 'portfolio_id': 20439280}, {'photo_id': 1336779665, 'portfolio_id': 20439280}, {'photo_id': 1336779602, 'portfolio_id': 20439280}, {'photo_id': 1336779499, 'portfolio_id': 20439280}, {'photo_id': 1336779490, 'portfolio_id': 20439280}, {'photo_id': 1336779487, 'portfolio_id': 20439280}, {'photo_id': 1336779483, 'portfolio_id': 20439280}, {'photo_id': 1336779482, 'portfolio_id': 20439280}, {'photo_id': 1336779449, 'portfolio_id': 20439280}, {'photo_id': 1336779443, 'portfolio_id': 20439280}, {'photo_id': 1336779431, 'portfolio_id': 20439280}, {'photo_id': 1336779428, 'portfolio_id': 20439280}, {'photo_id': 1336779426, 'portfolio_id': 20439280}, {'photo_id': 1336779418, 'portfolio_id': 20439280}, {'photo_id': 1336779212, 'portfolio_id': 20439280}, {'photo_id': 1336779210, 'portfolio_id': 20439280}, {'photo_id': 1336779207, 'portfolio_id': 20439280}, {'photo_id': 1336779205, 'portfolio_id': 20439280}, {'photo_id': 1336779169, 'portfolio_id': 20439280}, {'photo_id': 1336779165, 'portfolio_id': 20439280}, {'photo_id': 1336779164, 'portfolio_id': 20439280}, {'photo_id': 1336779163, 'portfolio_id': 20439280}, {'photo_id': 1336779161, 'portfolio_id': 20439280}, {'photo_id': 1336778994, 'portfolio_id': 20439280}, {'photo_id': 1336778992, 'portfolio_id': 20439280}, {'photo_id': 1336778990, 'portfolio_id': 20439280}, {'photo_id': 1336778987, 'portfolio_id': 20439280}, {'photo_id': 1336778983, 'portfolio_id': 20439280}, {'photo_id': 1336778683, 'portfolio_id': 20439280}, {'photo_id': 1336778678, 'portfolio_id': 20439280}] map_portfolio_id_photo_id: {20439280: [1336780895, 1336780892, 1336780890, 1336780889, 1336779693, 1336779665, 1336779602, 1336779499, 1336779490, 1336779487, 1336779483, 1336779482, 1336779449, 1336779443, 1336779431, 1336779428, 1336779426, 1336779418, 1336779212, 1336779210, 1336779207, 1336779205, 1336779169, 1336779165, 1336779164, 1336779163, 1336779161, 1336778994, 1336778992, 1336778990, 1336778987, 1336778983, 1336778683, 1336778678]} ##### 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.014094829559326172 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Tue Feb 11 10:38:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20439280) 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 : 20439280 get user id for portfolio 20439280 get sub ptf for main ptf 20439280, type 3726 and hashtags ['Carton_gris', 'mal_croppe', 'cartonnette', 'autre_refus', 'kraft', 'papier', 'plastique', 'environnement', 'flou', 'metal', 'Teint_Dans_La_Masse', 'Carton_brun'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20439280 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','mal_croppe','cartonnette','autre_refus','kraft','papier','plastique','environnement','flou','metal','Teint_Dans_La_Masse','Carton_brun')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20439280 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','mal_croppe','cartonnette','autre_refus','kraft','papier','plastique','environnement','flou','metal','Teint_Dans_La_Masse','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 20439280, 'sub_port_id': 20439312, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13114714, 'last_updated_at': datetime.datetime(2025, 2, 11, 10, 36, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 10, 36, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 10, 34, 56)}, 'Carton_brun': {'main_port_id': 20439280, 'sub_port_id': 20439313, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13114715, 'last_updated_at': datetime.datetime(2025, 2, 11, 10, 36, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 10, 36, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 10, 34, 56)}, 'Teint_Dans_La_Masse': {'main_port_id': 20439280, 'sub_port_id': 20439314, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13114716, 'last_updated_at': datetime.datetime(2025, 2, 11, 10, 36, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 10, 36, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 10, 34, 56)}, 'kraft': {'main_port_id': 20439280, 'sub_port_id': 20439315, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13114717, 'last_updated_at': datetime.datetime(2025, 2, 11, 10, 36, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 10, 36, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 10, 34, 56)}, 'environnement': {'main_port_id': 20439280, 'sub_port_id': 20439316, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13114718, 'last_updated_at': datetime.datetime(2025, 2, 11, 10, 36, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 10, 36, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 10, 34, 56)}, 'mal_croppe': {'main_port_id': 20439280, 'sub_port_id': 20439317, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13114719, 'last_updated_at': datetime.datetime(2025, 2, 11, 10, 36, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 10, 36, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 10, 34, 56)}, 'cartonnette': {'main_port_id': 20439280, 'sub_port_id': 20439318, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13114720, 'last_updated_at': datetime.datetime(2025, 2, 11, 10, 36, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 10, 36, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 10, 34, 56)}, 'papier': {'main_port_id': 20439280, 'sub_port_id': 20439319, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13114721, 'last_updated_at': datetime.datetime(2025, 2, 11, 10, 36, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 10, 36, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 10, 34, 56)}, 'autre_refus': {'main_port_id': 20439280, 'sub_port_id': 20439320, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13114722, 'last_updated_at': datetime.datetime(2025, 2, 11, 10, 36, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 10, 36, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 10, 34, 56)}, 'metal': {'main_port_id': 20439280, 'sub_port_id': 20439321, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13114723, 'last_updated_at': datetime.datetime(2025, 2, 11, 10, 36, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 10, 36, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 10, 34, 56)}, 'flou': {'main_port_id': 20439280, 'sub_port_id': 20439322, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13114724, 'last_updated_at': datetime.datetime(2025, 2, 11, 10, 36, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 10, 36, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 10, 34, 56)}, 'plastique': {'main_port_id': 20439280, 'sub_port_id': 20439323, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13114725, 'last_updated_at': datetime.datetime(2025, 2, 11, 10, 36, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 10, 36, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 10, 34, 56)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20439312 , 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=20439280 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 (20439312) result : ((1336779420,), (1336780793,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20439280) result : ((1336778678,), (1336778683,), (1336778983,), (1336778987,), (1336778990,), (1336778992,), (1336778994,), (1336779161,), (1336779163,), (1336779164,), (1336779165,), (1336779169,), (1336779205,), (1336779207,), (1336779210,), (1336779212,), (1336779418,), (1336779426,), (1336779428,), (1336779431,), (1336779443,), (1336779449,), (1336779482,), (1336779483,), (1336779487,), (1336779490,), (1336779499,), (1336779602,), (1336779665,), (1336779693,), (1336780889,), (1336780890,), (1336780892,), (1336780895,)) 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 20439313 , 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=20439280 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 (20439313) result : ((1336779423,), (1336779424,), (1336779425,), (1336779432,), (1336779434,), (1336779435,), (1336780887,), (1336780888,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20439280) result : ((1336778678,), (1336778683,), (1336778983,), (1336778987,), (1336778990,), (1336778992,), (1336778994,), (1336779161,), (1336779163,), (1336779164,), (1336779165,), (1336779169,), (1336779205,), (1336779207,), (1336779210,), (1336779212,), (1336779418,), (1336779426,), (1336779428,), (1336779431,), (1336779443,), (1336779449,), (1336779482,), (1336779483,), (1336779487,), (1336779490,), (1336779499,), (1336779602,), (1336779665,), (1336779693,), (1336780889,), (1336780890,), (1336780892,), (1336780895,)) 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 20439314 , 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=20439280 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 (20439314) result : ((1336779416,), (1336779429,), (1336780743,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20439280) result : ((1336778678,), (1336778683,), (1336778983,), (1336778987,), (1336778990,), (1336778992,), (1336778994,), (1336779161,), (1336779163,), (1336779164,), (1336779165,), (1336779169,), (1336779205,), (1336779207,), (1336779210,), (1336779212,), (1336779418,), (1336779426,), (1336779428,), (1336779431,), (1336779443,), (1336779449,), (1336779482,), (1336779483,), (1336779487,), (1336779490,), (1336779499,), (1336779602,), (1336779665,), (1336779693,), (1336780889,), (1336780890,), (1336780892,), (1336780895,)) 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 20439315 , 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=20439280 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 (20439315) result : ((1336779438,), (1336779439,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20439280) result : ((1336778678,), (1336778683,), (1336778983,), (1336778987,), (1336778990,), (1336778992,), (1336778994,), (1336779161,), (1336779163,), (1336779164,), (1336779165,), (1336779169,), (1336779205,), (1336779207,), (1336779210,), (1336779212,), (1336779418,), (1336779426,), (1336779428,), (1336779431,), (1336779443,), (1336779449,), (1336779482,), (1336779483,), (1336779487,), (1336779490,), (1336779499,), (1336779602,), (1336779665,), (1336779693,), (1336780889,), (1336780890,), (1336780892,), (1336780895,)) 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 20439316 , 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=20439280 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 (20439316) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20439280) result : ((1336778678,), (1336778683,), (1336778983,), (1336778987,), (1336778990,), (1336778992,), (1336778994,), (1336779161,), (1336779163,), (1336779164,), (1336779165,), (1336779169,), (1336779205,), (1336779207,), (1336779210,), (1336779212,), (1336779418,), (1336779426,), (1336779428,), (1336779431,), (1336779443,), (1336779449,), (1336779482,), (1336779483,), (1336779487,), (1336779490,), (1336779499,), (1336779602,), (1336779665,), (1336779693,), (1336780889,), (1336780890,), (1336780892,), (1336780895,)) 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 20439317 , 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=20439280 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 (20439317) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20439280) result : ((1336778678,), (1336778683,), (1336778983,), (1336778987,), (1336778990,), (1336778992,), (1336778994,), (1336779161,), (1336779163,), (1336779164,), (1336779165,), (1336779169,), (1336779205,), (1336779207,), (1336779210,), (1336779212,), (1336779418,), (1336779426,), (1336779428,), (1336779431,), (1336779443,), (1336779449,), (1336779482,), (1336779483,), (1336779487,), (1336779490,), (1336779499,), (1336779602,), (1336779665,), (1336779693,), (1336780889,), (1336780890,), (1336780892,), (1336780895,)) 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 20439318 , 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=20439280 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 (20439318) result : ((1336779430,), (1336780840,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20439280) result : ((1336778678,), (1336778683,), (1336778983,), (1336778987,), (1336778990,), (1336778992,), (1336778994,), (1336779161,), (1336779163,), (1336779164,), (1336779165,), (1336779169,), (1336779205,), (1336779207,), (1336779210,), (1336779212,), (1336779418,), (1336779426,), (1336779428,), (1336779431,), (1336779443,), (1336779449,), (1336779482,), (1336779483,), (1336779487,), (1336779490,), (1336779499,), (1336779602,), (1336779665,), (1336779693,), (1336780889,), (1336780890,), (1336780892,), (1336780895,)) 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 20439319 , 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=20439280 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 (20439319) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20439280) result : ((1336778678,), (1336778683,), (1336778983,), (1336778987,), (1336778990,), (1336778992,), (1336778994,), (1336779161,), (1336779163,), (1336779164,), (1336779165,), (1336779169,), (1336779205,), (1336779207,), (1336779210,), (1336779212,), (1336779418,), (1336779426,), (1336779428,), (1336779431,), (1336779443,), (1336779449,), (1336779482,), (1336779483,), (1336779487,), (1336779490,), (1336779499,), (1336779602,), (1336779665,), (1336779693,), (1336780889,), (1336780890,), (1336780892,), (1336780895,)) 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 20439320 , 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=20439280 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 (20439320) result : ((1336779417,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20439280) result : ((1336778678,), (1336778683,), (1336778983,), (1336778987,), (1336778990,), (1336778992,), (1336778994,), (1336779161,), (1336779163,), (1336779164,), (1336779165,), (1336779169,), (1336779205,), (1336779207,), (1336779210,), (1336779212,), (1336779418,), (1336779426,), (1336779428,), (1336779431,), (1336779443,), (1336779449,), (1336779482,), (1336779483,), (1336779487,), (1336779490,), (1336779499,), (1336779602,), (1336779665,), (1336779693,), (1336780889,), (1336780890,), (1336780892,), (1336780895,)) 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 20439321 , 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=20439280 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 (20439321) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20439280) result : ((1336778678,), (1336778683,), (1336778983,), (1336778987,), (1336778990,), (1336778992,), (1336778994,), (1336779161,), (1336779163,), (1336779164,), (1336779165,), (1336779169,), (1336779205,), (1336779207,), (1336779210,), (1336779212,), (1336779418,), (1336779426,), (1336779428,), (1336779431,), (1336779443,), (1336779449,), (1336779482,), (1336779483,), (1336779487,), (1336779490,), (1336779499,), (1336779602,), (1336779665,), (1336779693,), (1336780889,), (1336780890,), (1336780892,), (1336780895,)) 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 20439322 , 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=20439280 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 (20439322) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20439280) result : ((1336778678,), (1336778683,), (1336778983,), (1336778987,), (1336778990,), (1336778992,), (1336778994,), (1336779161,), (1336779163,), (1336779164,), (1336779165,), (1336779169,), (1336779205,), (1336779207,), (1336779210,), (1336779212,), (1336779418,), (1336779426,), (1336779428,), (1336779431,), (1336779443,), (1336779449,), (1336779482,), (1336779483,), (1336779487,), (1336779490,), (1336779499,), (1336779602,), (1336779665,), (1336779693,), (1336780889,), (1336780890,), (1336780892,), (1336780895,)) 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 20439323 , 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=20439280 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 (20439323) result : ((1336779436,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20439280) result : ((1336778678,), (1336778683,), (1336778983,), (1336778987,), (1336778990,), (1336778992,), (1336778994,), (1336779161,), (1336779163,), (1336779164,), (1336779165,), (1336779169,), (1336779205,), (1336779207,), (1336779210,), (1336779212,), (1336779418,), (1336779426,), (1336779428,), (1336779431,), (1336779443,), (1336779449,), (1336779482,), (1336779483,), (1336779487,), (1336779490,), (1336779499,), (1336779602,), (1336779665,), (1336779693,), (1336780889,), (1336780890,), (1336780892,), (1336780895,)) 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`=20439280 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','mal_croppe','cartonnette','autre_refus','kraft','papier','plastique','environnement','flou','metal','Teint_Dans_La_Masse','Carton_brun')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20439280 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','mal_croppe','cartonnette','autre_refus','kraft','papier','plastique','environnement','flou','metal','Teint_Dans_La_Masse','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 20439280, 'sub_port_id': 20439324, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13114726, 'last_updated_at': datetime.datetime(2025, 2, 11, 10, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 10, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 10, 34, 58)}, 'Carton_brun': {'main_port_id': 20439280, 'sub_port_id': 20439325, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13114727, 'last_updated_at': datetime.datetime(2025, 2, 11, 10, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 10, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 10, 34, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 20439280, 'sub_port_id': 20439326, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13114728, 'last_updated_at': datetime.datetime(2025, 2, 11, 10, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 10, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 10, 34, 58)}, 'kraft': {'main_port_id': 20439280, 'sub_port_id': 20439327, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13114729, 'last_updated_at': datetime.datetime(2025, 2, 11, 10, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 10, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 10, 34, 58)}, 'environnement': {'main_port_id': 20439280, 'sub_port_id': 20439328, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13114730, 'last_updated_at': datetime.datetime(2025, 2, 11, 10, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 10, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 10, 34, 58)}, 'mal_croppe': {'main_port_id': 20439280, 'sub_port_id': 20439329, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13114731, 'last_updated_at': datetime.datetime(2025, 2, 11, 10, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 10, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 10, 34, 58)}, 'cartonnette': {'main_port_id': 20439280, 'sub_port_id': 20439330, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13114732, 'last_updated_at': datetime.datetime(2025, 2, 11, 10, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 10, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 10, 34, 58)}, 'papier': {'main_port_id': 20439280, 'sub_port_id': 20439331, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13114733, 'last_updated_at': datetime.datetime(2025, 2, 11, 10, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 10, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 10, 34, 58)}, 'autre_refus': {'main_port_id': 20439280, 'sub_port_id': 20439332, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13114734, 'last_updated_at': datetime.datetime(2025, 2, 11, 10, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 10, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 10, 34, 58)}, 'metal': {'main_port_id': 20439280, 'sub_port_id': 20439333, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13114735, 'last_updated_at': datetime.datetime(2025, 2, 11, 10, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 10, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 10, 34, 58)}, 'flou': {'main_port_id': 20439280, 'sub_port_id': 20439334, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13114736, 'last_updated_at': datetime.datetime(2025, 2, 11, 10, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 10, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 10, 34, 58)}, 'plastique': {'main_port_id': 20439280, 'sub_port_id': 20439335, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13114737, 'last_updated_at': datetime.datetime(2025, 2, 11, 10, 36, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 10, 36, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 10, 34, 58)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20439324,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20439312 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20439325,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20439313 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20439326,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20439314 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20439327,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20439315 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20439328,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20439316 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20439329,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20439317 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20439330,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20439318 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20439331,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20439319 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20439332,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20439320 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20439333,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20439321 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20439334,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20439322 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20439335,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20439323 lien utilise dans velours : https://www.fotonower.com/velours/20439324,20439325,20439326,20439327,20439328,20439329,20439330,20439331,20439332,20439333,20439334,20439335?tags=Carton_gris,Carton_brun,Teint_Dans_La_Masse,kraft,environnement,mal_croppe,cartonnette,papier,autre_refus,metal,flou,plastique After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20439280]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1336780895, 1336780892, 1336780890, 1336780889, 1336779693, 1336779665, 1336779602, 1336779499, 1336779490, 1336779487, 1336779483, 1336779482] map_info['map_portfolio_photo'] : {20439280: [1336780895, 1336780892, 1336780890, 1336780889, 1336779693, 1336779665, 1336779602, 1336779499, 1336779490, 1336779487, 1336779483, 1336779482, 1336779449, 1336779443, 1336779431, 1336779428, 1336779426, 1336779418, 1336779212, 1336779210, 1336779207, 1336779205, 1336779169, 1336779165, 1336779164, 1336779163, 1336779161, 1336778994, 1336778992, 1336778990, 1336778987, 1336778983, 1336778683, 1336778678]} final : False mtd_id 4302 list_pids : [1336780895, 1336780892, 1336780890, 1336780889, 1336779693, 1336779665, 1336779602, 1336779499, 1336779490, 1336779487, 1336779483, 1336779482] Looping around the photos to save general results len do output : 1 /20439280. 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, '2575711') ('4302', '20439280', '1336780895', None, None, None, None, None, '2575711') ('4302', None, None, None, None, None, None, None, '2575711') ('4302', '20439280', '1336780892', None, None, None, None, None, '2575711') ('4302', None, None, None, None, None, None, None, '2575711') ('4302', '20439280', '1336780890', None, None, None, None, None, '2575711') ('4302', None, None, None, None, None, None, None, '2575711') ('4302', '20439280', '1336780889', None, None, None, None, None, '2575711') ('4302', None, None, None, None, None, None, None, '2575711') ('4302', '20439280', '1336779693', None, None, None, None, None, '2575711') ('4302', None, None, None, None, None, None, None, '2575711') ('4302', '20439280', '1336779665', None, None, None, None, None, '2575711') ('4302', None, None, None, None, None, None, None, '2575711') ('4302', '20439280', '1336779602', None, None, None, None, None, '2575711') ('4302', None, None, None, None, None, None, None, '2575711') ('4302', '20439280', '1336779499', None, None, None, None, None, '2575711') ('4302', None, None, None, None, None, None, None, '2575711') ('4302', '20439280', '1336779490', None, None, None, None, None, '2575711') ('4302', None, None, None, None, None, None, None, '2575711') ('4302', '20439280', '1336779487', None, None, None, None, None, '2575711') ('4302', None, None, None, None, None, None, None, '2575711') ('4302', '20439280', '1336779483', None, None, None, None, None, '2575711') ('4302', None, None, None, None, None, None, None, '2575711') ('4302', '20439280', '1336779482', None, None, None, None, None, '2575711') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '20439280', "{'Carton_gris': 20439312, 'Carton_brun': 20439313, 'Teint_Dans_La_Masse': 20439314, 'kraft': 20439315, 'environnement': 20439316, 'mal_croppe': 20439317, 'cartonnette': 20439318, 'papier': 20439319, 'autre_refus': 20439320, 'metal': 20439321, 'flou': 20439322, 'plastique': 20439323}", None, None, None, None, '2575711'), ('4302', '20439280', '1336780895', None, None, None, None, None, '2575711'), ('4302', '20439280', '1336780892', None, None, None, None, None, '2575711'), ('4302', '20439280', '1336780890', None, None, None, None, None, '2575711'), ('4302', '20439280', '1336780889', None, None, None, None, None, '2575711'), ('4302', '20439280', '1336779693', None, None, None, None, None, '2575711'), ('4302', '20439280', '1336779665', None, None, None, None, None, '2575711'), ('4302', '20439280', '1336779602', None, None, None, None, None, '2575711'), ('4302', '20439280', '1336779499', None, None, None, None, None, '2575711'), ('4302', '20439280', '1336779490', None, None, None, None, None, '2575711'), ('4302', '20439280', '1336779487', None, None, None, None, None, '2575711'), ('4302', '20439280', '1336779483', None, None, None, None, None, '2575711'), ('4302', '20439280', '1336779482', None, None, None, None, None, '2575711')] time used for this insertion : 0.013747215270996094 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5696136951446533 time spend to save output : 0.014017581939697266 total time spend for step 1 : 1.5836312770843506 step2:final Tue Feb 11 10: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 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 (20439280) 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 20439280 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1336778683,1336778678,1336778994,1336778992,1336778990,1336778987,1336778983,1336779169,1336779165,1336779164,1336779163,1336779161,1336779212,1336779210,1336779207,1336779205,1336779449,1336779443,1336779431,1336779428,1336779426,1336779418,1336779499,1336779490,1336779487,1336779483,1336779482,1336779693,1336779665,1336779602,1336780895,1336780892,1336780890,1336780889); 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([20439280]) Inside saveOutput : final : False verbose : True original output for save of step final : {1336780895: ('0.0455625087124581',), 1336780892: ('0.0455625087124581',), 1336780890: ('0.0455625087124581',), 1336780889: ('0.0455625087124581',), 1336779693: ('0.0455625087124581',), 1336779665: ('0.0455625087124581',), 1336779602: ('0.0455625087124581',), 1336779499: ('0.0455625087124581',), 1336779490: ('0.0455625087124581',), 1336779487: ('0.0455625087124581',), 1336779483: ('0.0455625087124581',), 1336779482: ('0.0455625087124581',)} new output for save of step final : {1336780895: ('0.0455625087124581',), 1336780892: ('0.0455625087124581',), 1336780890: ('0.0455625087124581',), 1336780889: ('0.0455625087124581',), 1336779693: ('0.0455625087124581',), 1336779665: ('0.0455625087124581',), 1336779602: ('0.0455625087124581',), 1336779499: ('0.0455625087124581',), 1336779490: ('0.0455625087124581',), 1336779487: ('0.0455625087124581',), 1336779483: ('0.0455625087124581',), 1336779482: ('0.0455625087124581',)} [1336780895, 1336780892, 1336780890, 1336780889, 1336779693, 1336779665, 1336779602, 1336779499, 1336779490, 1336779487, 1336779483, 1336779482] map_info['map_portfolio_photo'] : {20439280: [1336780895, 1336780892, 1336780890, 1336780889, 1336779693, 1336779665, 1336779602, 1336779499, 1336779490, 1336779487, 1336779483, 1336779482, 1336779449, 1336779443, 1336779431, 1336779428, 1336779426, 1336779418, 1336779212, 1336779210, 1336779207, 1336779205, 1336779169, 1336779165, 1336779164, 1336779163, 1336779161, 1336778994, 1336778992, 1336778990, 1336778987, 1336778983, 1336778683, 1336778678]} final : False mtd_id 4302 list_pids : [1336780895, 1336780892, 1336780890, 1336780889, 1336779693, 1336779665, 1336779602, 1336779499, 1336779490, 1336779487, 1336779483, 1336779482] Looping around the photos to save general results len do output : 12 /1336780895.Didn't retrieve data . /1336780892.Didn't retrieve data . /1336780890.Didn't retrieve data . /1336780889.Didn't retrieve data . /1336779693.Didn't retrieve data . /1336779665.Didn't retrieve data . /1336779602.Didn't retrieve data . /1336779499.Didn't retrieve data . /1336779490.Didn't retrieve data . /1336779487.Didn't retrieve data . /1336779483.Didn't retrieve data . /1336779482.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, '2575711') ('4302', '20439280', '1336780895', None, None, None, None, None, '2575711') ('4302', None, None, None, None, None, None, None, '2575711') ('4302', '20439280', '1336780892', None, None, None, None, None, '2575711') ('4302', None, None, None, None, None, None, None, '2575711') ('4302', '20439280', '1336780890', None, None, None, None, None, '2575711') ('4302', None, None, None, None, None, None, None, '2575711') ('4302', '20439280', '1336780889', None, None, None, None, None, '2575711') ('4302', None, None, None, None, None, None, None, '2575711') ('4302', '20439280', '1336779693', None, None, None, None, None, '2575711') ('4302', None, None, None, None, None, None, None, '2575711') ('4302', '20439280', '1336779665', None, None, None, None, None, '2575711') ('4302', None, None, None, None, None, None, None, '2575711') ('4302', '20439280', '1336779602', None, None, None, None, None, '2575711') ('4302', None, None, None, None, None, None, None, '2575711') ('4302', '20439280', '1336779499', None, None, None, None, None, '2575711') ('4302', None, None, None, None, None, None, None, '2575711') ('4302', '20439280', '1336779490', None, None, None, None, None, '2575711') ('4302', None, None, None, None, None, None, None, '2575711') ('4302', '20439280', '1336779487', None, None, None, None, None, '2575711') ('4302', None, None, None, None, None, None, None, '2575711') ('4302', '20439280', '1336779483', None, None, None, None, None, '2575711') ('4302', None, None, None, None, None, None, None, '2575711') ('4302', '20439280', '1336779482', None, None, None, None, None, '2575711') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 36 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', '20439280', '1336780895', '0.0455625087124581', None, None, None, None, '2575711'), ('4302', '20439280', '1336780892', '0.0455625087124581', None, None, None, None, '2575711'), ('4302', '20439280', '1336780890', '0.0455625087124581', None, None, None, None, '2575711'), ('4302', '20439280', '1336780889', '0.0455625087124581', None, None, None, None, '2575711'), ('4302', '20439280', '1336779693', '0.0455625087124581', None, None, None, None, '2575711'), ('4302', '20439280', '1336779665', '0.0455625087124581', None, None, None, None, '2575711'), ('4302', '20439280', '1336779602', '0.0455625087124581', None, None, None, None, '2575711'), ('4302', '20439280', '1336779499', '0.0455625087124581', None, None, None, None, '2575711'), ('4302', '20439280', '1336779490', '0.0455625087124581', None, None, None, None, '2575711'), ('4302', '20439280', '1336779487', '0.0455625087124581', None, None, None, None, '2575711'), ('4302', '20439280', '1336779483', '0.0455625087124581', None, None, None, None, '2575711'), ('4302', '20439280', '1336779482', '0.0455625087124581', None, None, None, None, '2575711')] time used for this insertion : 0.014025688171386719 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06707215309143066 time spend to save output : 0.014870643615722656 total time spend for step 2 : 0.08194279670715332 step3:velours_tree Tue Feb 11 10: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 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 : {20439280: [{'Carton_gris': 20439312, 'Carton_brun': 20439313, 'Teint_Dans_La_Masse': 20439314, 'kraft': 20439315, 'environnement': 20439316, 'mal_croppe': 20439317, 'cartonnette': 20439318, 'papier': 20439319, 'autre_refus': 20439320, 'metal': 20439321, 'flou': 20439322, 'plastique': 20439323}]} input_args_next_step : {20439280: ()} output_args : {20439280: [{'Carton_gris': 20439312, 'Carton_brun': 20439313, 'Teint_Dans_La_Masse': 20439314, 'kraft': 20439315, 'environnement': 20439316, 'mal_croppe': 20439317, 'cartonnette': 20439318, 'papier': 20439319, 'autre_refus': 20439320, 'metal': 20439321, 'flou': 20439322, 'plastique': 20439323}]} args : 20439280 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': 20439312, 'Carton_brun': 20439313, 'Teint_Dans_La_Masse': 20439314, 'kraft': 20439315, 'environnement': 20439316, 'mal_croppe': 20439317, 'cartonnette': 20439318, 'papier': 20439319, 'autre_refus': 20439320, 'metal': 20439321, 'flou': 20439322, 'plastique': 20439323},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20439280) 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([20439280]) 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.30754899978637695 time spend to save output : 7.867813110351562e-05 total time spend for step 3 : 0.30762767791748047 step4:send_mail_cod Tue Feb 11 10: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 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 : {1336780895: ('0.0455625087124581',), 1336780892: ('0.0455625087124581',), 1336780890: ('0.0455625087124581',), 1336780889: ('0.0455625087124581',), 1336779693: ('0.0455625087124581',), 1336779665: ('0.0455625087124581',), 1336779602: ('0.0455625087124581',), 1336779499: ('0.0455625087124581',), 1336779490: ('0.0455625087124581',), 1336779487: ('0.0455625087124581',), 1336779483: ('0.0455625087124581',), 1336779482: ('0.0455625087124581',)} input_args_next_step : {1336780895: ()} output_args : {1336780895: ('0.0455625087124581',), 1336780892: ('0.0455625087124581',), 1336780890: ('0.0455625087124581',), 1336780889: ('0.0455625087124581',), 1336779693: ('0.0455625087124581',), 1336779665: ('0.0455625087124581',), 1336779602: ('0.0455625087124581',), 1336779499: ('0.0455625087124581',), 1336779490: ('0.0455625087124581',), 1336779487: ('0.0455625087124581',), 1336779483: ('0.0455625087124581',), 1336779482: ('0.0455625087124581',)} args : 1336780895 depend.output_id : 0 input_args_next_step : {1336780895: ('0.0455625087124581',), 1336780892: ()} output_args : {1336780895: ('0.0455625087124581',), 1336780892: ('0.0455625087124581',), 1336780890: ('0.0455625087124581',), 1336780889: ('0.0455625087124581',), 1336779693: ('0.0455625087124581',), 1336779665: ('0.0455625087124581',), 1336779602: ('0.0455625087124581',), 1336779499: ('0.0455625087124581',), 1336779490: ('0.0455625087124581',), 1336779487: ('0.0455625087124581',), 1336779483: ('0.0455625087124581',), 1336779482: ('0.0455625087124581',)} args : 1336780892 depend.output_id : 0 input_args_next_step : {1336780895: ('0.0455625087124581',), 1336780892: ('0.0455625087124581',), 1336780890: ()} output_args : {1336780895: ('0.0455625087124581',), 1336780892: ('0.0455625087124581',), 1336780890: ('0.0455625087124581',), 1336780889: ('0.0455625087124581',), 1336779693: ('0.0455625087124581',), 1336779665: ('0.0455625087124581',), 1336779602: ('0.0455625087124581',), 1336779499: ('0.0455625087124581',), 1336779490: ('0.0455625087124581',), 1336779487: ('0.0455625087124581',), 1336779483: ('0.0455625087124581',), 1336779482: ('0.0455625087124581',)} args : 1336780890 depend.output_id : 0 input_args_next_step : {1336780895: ('0.0455625087124581',), 1336780892: ('0.0455625087124581',), 1336780890: ('0.0455625087124581',), 1336780889: ()} output_args : {1336780895: ('0.0455625087124581',), 1336780892: ('0.0455625087124581',), 1336780890: ('0.0455625087124581',), 1336780889: ('0.0455625087124581',), 1336779693: ('0.0455625087124581',), 1336779665: ('0.0455625087124581',), 1336779602: ('0.0455625087124581',), 1336779499: ('0.0455625087124581',), 1336779490: ('0.0455625087124581',), 1336779487: ('0.0455625087124581',), 1336779483: ('0.0455625087124581',), 1336779482: ('0.0455625087124581',)} args : 1336780889 depend.output_id : 0 input_args_next_step : {1336780895: ('0.0455625087124581',), 1336780892: ('0.0455625087124581',), 1336780890: ('0.0455625087124581',), 1336780889: ('0.0455625087124581',), 1336779693: ()} output_args : {1336780895: ('0.0455625087124581',), 1336780892: ('0.0455625087124581',), 1336780890: ('0.0455625087124581',), 1336780889: ('0.0455625087124581',), 1336779693: ('0.0455625087124581',), 1336779665: ('0.0455625087124581',), 1336779602: ('0.0455625087124581',), 1336779499: ('0.0455625087124581',), 1336779490: ('0.0455625087124581',), 1336779487: ('0.0455625087124581',), 1336779483: ('0.0455625087124581',), 1336779482: ('0.0455625087124581',)} args : 1336779693 depend.output_id : 0 input_args_next_step : {1336780895: ('0.0455625087124581',), 1336780892: ('0.0455625087124581',), 1336780890: ('0.0455625087124581',), 1336780889: ('0.0455625087124581',), 1336779693: ('0.0455625087124581',), 1336779665: ()} output_args : {1336780895: ('0.0455625087124581',), 1336780892: ('0.0455625087124581',), 1336780890: ('0.0455625087124581',), 1336780889: ('0.0455625087124581',), 1336779693: ('0.0455625087124581',), 1336779665: ('0.0455625087124581',), 1336779602: ('0.0455625087124581',), 1336779499: ('0.0455625087124581',), 1336779490: ('0.0455625087124581',), 1336779487: ('0.0455625087124581',), 1336779483: ('0.0455625087124581',), 1336779482: ('0.0455625087124581',)} args : 1336779665 depend.output_id : 0 input_args_next_step : {1336780895: ('0.0455625087124581',), 1336780892: ('0.0455625087124581',), 1336780890: ('0.0455625087124581',), 1336780889: ('0.0455625087124581',), 1336779693: ('0.0455625087124581',), 1336779665: ('0.0455625087124581',), 1336779602: ()} output_args : {1336780895: ('0.0455625087124581',), 1336780892: ('0.0455625087124581',), 1336780890: ('0.0455625087124581',), 1336780889: ('0.0455625087124581',), 1336779693: ('0.0455625087124581',), 1336779665: ('0.0455625087124581',), 1336779602: ('0.0455625087124581',), 1336779499: ('0.0455625087124581',), 1336779490: ('0.0455625087124581',), 1336779487: ('0.0455625087124581',), 1336779483: ('0.0455625087124581',), 1336779482: ('0.0455625087124581',)} args : 1336779602 depend.output_id : 0 input_args_next_step : {1336780895: ('0.0455625087124581',), 1336780892: ('0.0455625087124581',), 1336780890: ('0.0455625087124581',), 1336780889: ('0.0455625087124581',), 1336779693: ('0.0455625087124581',), 1336779665: ('0.0455625087124581',), 1336779602: ('0.0455625087124581',), 1336779499: ()} output_args : {1336780895: ('0.0455625087124581',), 1336780892: ('0.0455625087124581',), 1336780890: ('0.0455625087124581',), 1336780889: ('0.0455625087124581',), 1336779693: ('0.0455625087124581',), 1336779665: ('0.0455625087124581',), 1336779602: ('0.0455625087124581',), 1336779499: ('0.0455625087124581',), 1336779490: ('0.0455625087124581',), 1336779487: ('0.0455625087124581',), 1336779483: ('0.0455625087124581',), 1336779482: ('0.0455625087124581',)} args : 1336779499 depend.output_id : 0 input_args_next_step : {1336780895: ('0.0455625087124581',), 1336780892: ('0.0455625087124581',), 1336780890: ('0.0455625087124581',), 1336780889: ('0.0455625087124581',), 1336779693: ('0.0455625087124581',), 1336779665: ('0.0455625087124581',), 1336779602: ('0.0455625087124581',), 1336779499: ('0.0455625087124581',), 1336779490: ()} output_args : {1336780895: ('0.0455625087124581',), 1336780892: ('0.0455625087124581',), 1336780890: ('0.0455625087124581',), 1336780889: ('0.0455625087124581',), 1336779693: ('0.0455625087124581',), 1336779665: ('0.0455625087124581',), 1336779602: ('0.0455625087124581',), 1336779499: ('0.0455625087124581',), 1336779490: ('0.0455625087124581',), 1336779487: ('0.0455625087124581',), 1336779483: ('0.0455625087124581',), 1336779482: ('0.0455625087124581',)} args : 1336779490 depend.output_id : 0 input_args_next_step : {1336780895: ('0.0455625087124581',), 1336780892: ('0.0455625087124581',), 1336780890: ('0.0455625087124581',), 1336780889: ('0.0455625087124581',), 1336779693: ('0.0455625087124581',), 1336779665: ('0.0455625087124581',), 1336779602: ('0.0455625087124581',), 1336779499: ('0.0455625087124581',), 1336779490: ('0.0455625087124581',), 1336779487: ()} output_args : {1336780895: ('0.0455625087124581',), 1336780892: ('0.0455625087124581',), 1336780890: ('0.0455625087124581',), 1336780889: ('0.0455625087124581',), 1336779693: ('0.0455625087124581',), 1336779665: ('0.0455625087124581',), 1336779602: ('0.0455625087124581',), 1336779499: ('0.0455625087124581',), 1336779490: ('0.0455625087124581',), 1336779487: ('0.0455625087124581',), 1336779483: ('0.0455625087124581',), 1336779482: ('0.0455625087124581',)} args : 1336779487 depend.output_id : 0 input_args_next_step : {1336780895: ('0.0455625087124581',), 1336780892: ('0.0455625087124581',), 1336780890: ('0.0455625087124581',), 1336780889: ('0.0455625087124581',), 1336779693: ('0.0455625087124581',), 1336779665: ('0.0455625087124581',), 1336779602: ('0.0455625087124581',), 1336779499: ('0.0455625087124581',), 1336779490: ('0.0455625087124581',), 1336779487: ('0.0455625087124581',), 1336779483: ()} output_args : {1336780895: ('0.0455625087124581',), 1336780892: ('0.0455625087124581',), 1336780890: ('0.0455625087124581',), 1336780889: ('0.0455625087124581',), 1336779693: ('0.0455625087124581',), 1336779665: ('0.0455625087124581',), 1336779602: ('0.0455625087124581',), 1336779499: ('0.0455625087124581',), 1336779490: ('0.0455625087124581',), 1336779487: ('0.0455625087124581',), 1336779483: ('0.0455625087124581',), 1336779482: ('0.0455625087124581',)} args : 1336779483 depend.output_id : 0 input_args_next_step : {1336780895: ('0.0455625087124581',), 1336780892: ('0.0455625087124581',), 1336780890: ('0.0455625087124581',), 1336780889: ('0.0455625087124581',), 1336779693: ('0.0455625087124581',), 1336779665: ('0.0455625087124581',), 1336779602: ('0.0455625087124581',), 1336779499: ('0.0455625087124581',), 1336779490: ('0.0455625087124581',), 1336779487: ('0.0455625087124581',), 1336779483: ('0.0455625087124581',), 1336779482: ()} output_args : {1336780895: ('0.0455625087124581',), 1336780892: ('0.0455625087124581',), 1336780890: ('0.0455625087124581',), 1336780889: ('0.0455625087124581',), 1336779693: ('0.0455625087124581',), 1336779665: ('0.0455625087124581',), 1336779602: ('0.0455625087124581',), 1336779499: ('0.0455625087124581',), 1336779490: ('0.0455625087124581',), 1336779487: ('0.0455625087124581',), 1336779483: ('0.0455625087124581',), 1336779482: ('0.0455625087124581',)} args : 1336779482 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 : {20439280: [{'Carton_gris': 20439312, 'Carton_brun': 20439313, 'Teint_Dans_La_Masse': 20439314, 'kraft': 20439315, 'environnement': 20439316, 'mal_croppe': 20439317, 'cartonnette': 20439318, 'papier': 20439319, 'autre_refus': 20439320, 'metal': 20439321, 'flou': 20439322, 'plastique': 20439323}]} input_args_next_step : {1336780895: ('0.0455625087124581',), 1336780892: ('0.0455625087124581',), 1336780890: ('0.0455625087124581',), 1336780889: ('0.0455625087124581',), 1336779693: ('0.0455625087124581',), 1336779665: ('0.0455625087124581',), 1336779602: ('0.0455625087124581',), 1336779499: ('0.0455625087124581',), 1336779490: ('0.0455625087124581',), 1336779487: ('0.0455625087124581',), 1336779483: ('0.0455625087124581',), 1336779482: ('0.0455625087124581',), 20439280: ()} output_args : {20439280: [{'Carton_gris': 20439312, 'Carton_brun': 20439313, 'Teint_Dans_La_Masse': 20439314, 'kraft': 20439315, 'environnement': 20439316, 'mal_croppe': 20439317, 'cartonnette': 20439318, 'papier': 20439319, 'autre_refus': 20439320, 'metal': 20439321, 'flou': 20439322, 'plastique': 20439323}]} args : 20439280 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 :13, first value : ('0.0455625087124581',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20439280) 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 (1336780895,1336780892,1336780890,1336780889,1336779693,1336779665,1336779602,1336779499,1336779490,1336779487,1336779483,1336779482) Found this number of photos: 12 ##### Call download_photos : nb_thread : 5 begin to download photo : 1336779482 begin to download photo : 1336779490 begin to download photo : 1336779665 begin to download photo : 1336780890 download finish for photo 1336779482 begin to download photo : 1336779483 download finish for photo 1336779490 begin to download photo : 1336779499 download finish for photo 1336780890 begin to download photo : 1336780892 download finish for photo 1336779665 begin to download photo : 1336779693 download finish for photo 1336779693 begin to download photo : 1336780889 download finish for photo 1336779483 begin to download photo : 1336779487 download finish for photo 1336779499 begin to download photo : 1336779602 download finish for photo 1336780892 begin to download photo : 1336780895 download finish for photo 1336779602 download finish for photo 1336779487 download finish for photo 1336780889 download finish for photo 1336780895 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 : 12 ; length of list_pids : 12 ; length of list_args : 12 results_Auto_P20439280_11-02-2025_10_39_01.pdf 20439315 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=20439315 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336779438: '1739266471_1814678_1336778994_f17307d6a0c547aac78fc34163a6f3cc_rle_crop_3669754405_0.png', 1336779439: '1739266471_1814678_1336778678_1841d37a1ef74dc1fbd858473a6e8691_rle_crop_3669754427_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/12b2d9559e6f34cefcb32e811f5b91b6_46979354.png change filename to text .imagette204393151739266741/ imagette204393151739266741/1739266471_1814678_1336778678_1841d37a1ef74dc1fbd858473a6e8691_rle_crop_3669754427_0.png.png imagette204393151739266741/1739266471_1814678_1336778994_f17307d6a0c547aac78fc34163a6f3cc_rle_crop_3669754405_0.png.png imagette204393171739266741/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/78d71c3ce808e444d92326cc5505c92d_79179051.png imagette204393151739266741 20439317 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=20439317 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette204393171739266741 20439318 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=20439318 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336779430: '1739266471_1814678_1336778678_1841d37a1ef74dc1fbd858473a6e8691_rle_crop_3669754429_0.png', 1336780840: '1739266593_1818229_1336779165_72e8ff5657f92729de7fa62748762afd_rle_crop_3669756535_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/a3b9c03c5541c164f3163aaf476cead5_96014230.png change filename to text .imagette204393181739266741/ imagette204393181739266741/1739266593_1818229_1336779165_72e8ff5657f92729de7fa62748762afd_rle_crop_3669756535_0.png.png imagette204393181739266741/1739266471_1814678_1336778678_1841d37a1ef74dc1fbd858473a6e8691_rle_crop_3669754429_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/185aa89a25586ed21a01c02c6600fde8_21708610.png imagette204393181739266741 20439320 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=20439320 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336779417: '1739266452_1814453_1336778987_6615f6d64767b9832d47919dd4c9bb0c_rle_crop_3669754302_0.png'} change filename to text .imagette204393201739266741/ imagette204393201739266741/1739266452_1814453_1336778987_6615f6d64767b9832d47919dd4c9bb0c_rle_crop_3669754302_0.png.png imagette204393211739266741/ imagette204393221739266741/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/21e21ef81c9b554ef432bcba56868445_84156380.png imagette204393201739266741 20439321 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=20439321 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette204393211739266741 20439322 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=20439322 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette204393221739266741 20439323 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=20439323 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336779436: '1739266471_1814678_1336778994_f17307d6a0c547aac78fc34163a6f3cc_rle_crop_3669754404_0.png'} change filename to text .imagette204393231739266741/ imagette204393231739266741/1739266471_1814678_1336778994_f17307d6a0c547aac78fc34163a6f3cc_rle_crop_3669754404_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/4b6df0c32c272b4b375e0ebe95118812_15258865.png imagette204393231739266741 20439312 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=20439312 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336779420: '1739266452_1814453_1336778983_6ace3d7a3dce776917611328198c3782_rle_crop_3669754380_0.png', 1336780793: '1739266593_1818229_1336779163_ff5743ae1410f1b2aa9264dd021fda5f_rle_crop_3669756564_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/794e87c0fafc2891756e84058d6f6eb5_63739383.png change filename to text .imagette204393121739266741/ imagette204393121739266741/1739266452_1814453_1336778983_6ace3d7a3dce776917611328198c3782_rle_crop_3669754380_0.png.png imagette204393121739266741/1739266593_1818229_1336779163_ff5743ae1410f1b2aa9264dd021fda5f_rle_crop_3669756564_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/5db632939eb2457def502a554db55d5c_35995651.png imagette204393121739266741 20439313 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=20439313 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336779423: '1739266452_1814453_1336778987_6615f6d64767b9832d47919dd4c9bb0c_rle_crop_3669754308_0.png', 1336779424: '1739266452_1814453_1336778987_6615f6d64767b9832d47919dd4c9bb0c_rle_crop_3669754306_0.png', 1336779425: '1739266452_1814453_1336778983_6ace3d7a3dce776917611328198c3782_rle_crop_3669754388_0.png', 1336779432: '1739266471_1814678_1336778994_f17307d6a0c547aac78fc34163a6f3cc_rle_crop_3669754406_0.png', 1336779434: '1739266471_1814678_1336778994_f17307d6a0c547aac78fc34163a6f3cc_rle_crop_3669754402_0.png', 1336779435: '1739266471_1814678_1336778678_1841d37a1ef74dc1fbd858473a6e8691_rle_crop_3669754426_0.png', 1336780887: '1739266593_1818229_1336779164_29e2dd14a5b360e7d55d385b3925c7ca_rle_crop_3669756553_0.png', 1336780888: '1739266593_1818229_1336779163_ff5743ae1410f1b2aa9264dd021fda5f_rle_crop_3669756571_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/6468bdd363b2cec554c8513105d76a47_48089038.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/438a2c8ac3da413750c5c12b0c860fed_76584447.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/efe91ed4953d3ba28dbfe05fdbb5e2fa_90753752.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/84591001b84481b63acf493ec2e36059_65713938.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/10f89d033604a7fa1204ee3842d4b25c_3849956.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/b9b739c95f91afbb8962f2ea3c039334_97247550.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/b5b8743929a7d1d79939824d3c95ecc2_44106116.png change filename to text .imagette204393131739266741/ imagette204393131739266741/1739266452_1814453_1336778987_6615f6d64767b9832d47919dd4c9bb0c_rle_crop_3669754308_0.png.png imagette204393131739266741/1739266452_1814453_1336778987_6615f6d64767b9832d47919dd4c9bb0c_rle_crop_3669754306_0.png.png imagette204393131739266741/1739266471_1814678_1336778678_1841d37a1ef74dc1fbd858473a6e8691_rle_crop_3669754426_0.png.png imagette204393131739266741/1739266471_1814678_1336778994_f17307d6a0c547aac78fc34163a6f3cc_rle_crop_3669754402_0.png.png imagette204393131739266741/1739266452_1814453_1336778983_6ace3d7a3dce776917611328198c3782_rle_crop_3669754388_0.png.png imagette204393131739266741/1739266593_1818229_1336779163_ff5743ae1410f1b2aa9264dd021fda5f_rle_crop_3669756571_0.png.png imagette204393131739266741/1739266471_1814678_1336778994_f17307d6a0c547aac78fc34163a6f3cc_rle_crop_3669754406_0.png.png imagette204393131739266741/1739266593_1818229_1336779164_29e2dd14a5b360e7d55d385b3925c7ca_rle_crop_3669756553_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/e215e611df1e4abea4dc737af1f57840_9818532.png imagette204393131739266741 20439314 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=20439314 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336779416: '1739266452_1814453_1336778990_a24f21498e09d132fc88a5f3b5bf0728_rle_crop_3669754274_0.png', 1336779429: '1739266471_1814678_1336778678_1841d37a1ef74dc1fbd858473a6e8691_rle_crop_3669754434_0.png', 1336780743: '1739266593_1818229_1336779161_1fecb9282bdb0aa9ac9366e38ac333a3_rle_crop_3669756586_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/78b4d3d0e32070a67c6afd54a2bcc43f_70500939.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/5309222140be87e8994746e94a8ad0e2_60934915.png change filename to text .imagette204393141739266742/ imagette204393141739266742/1739266471_1814678_1336778678_1841d37a1ef74dc1fbd858473a6e8691_rle_crop_3669754434_0.png.png imagette204393141739266742/1739266452_1814453_1336778990_a24f21498e09d132fc88a5f3b5bf0728_rle_crop_3669754274_0.png.png imagette204393141739266742/1739266593_1818229_1336779161_1fecb9282bdb0aa9ac9366e38ac333a3_rle_crop_3669756586_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/90608ad722190ce7a9a9d47dda554be7_11432828.png imagette204393141739266742 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20439280 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20439324,20439325,20439326,20439327,20439328,20439329,20439330,20439331,20439332,20439333,20439334,20439335?tags=Carton_gris,Carton_brun,Teint_Dans_La_Masse,kraft,environnement,mal_croppe,cartonnette,papier,autre_refus,metal,flou,plastique your option no_mail is active, we will not send the real mail to your client args[1336780895] : ('0.0455625087124581',) no score found for photo 1336780895 apple ('0.0455625087124581',) We are sending mail with results at report@fotonower.com args[1336780892] : ('0.0455625087124581',) no score found for photo 1336780892 apple ('0.0455625087124581',) We are sending mail with results at report@fotonower.com args[1336780890] : ('0.0455625087124581',) no score found for photo 1336780890 apple ('0.0455625087124581',) We are sending mail with results at report@fotonower.com args[1336780889] : ('0.0455625087124581',) no score found for photo 1336780889 apple ('0.0455625087124581',) We are sending mail with results at report@fotonower.com args[1336779693] : ('0.0455625087124581',) no score found for photo 1336779693 apple ('0.0455625087124581',) We are sending mail with results at report@fotonower.com args[1336779665] : ('0.0455625087124581',) no score found for photo 1336779665 apple ('0.0455625087124581',) We are sending mail with results at report@fotonower.com args[1336779602] : ('0.0455625087124581',) no score found for photo 1336779602 apple ('0.0455625087124581',) We are sending mail with results at report@fotonower.com args[1336779499] : ('0.0455625087124581',) no score found for photo 1336779499 apple ('0.0455625087124581',) We are sending mail with results at report@fotonower.com args[1336779490] : ('0.0455625087124581',) no score found for photo 1336779490 apple ('0.0455625087124581',) We are sending mail with results at report@fotonower.com args[1336779487] : ('0.0455625087124581',) no score found for photo 1336779487 apple ('0.0455625087124581',) We are sending mail with results at report@fotonower.com args[1336779483] : ('0.0455625087124581',) no score found for photo 1336779483 apple ('0.0455625087124581',) We are sending mail with results at report@fotonower.com args[1336779482] : ('0.0455625087124581',) no score found for photo 1336779482 apple ('0.0455625087124581',) We are sending mail with results at report@fotonower.com refus_total : 0.0455625087124581 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=20439280 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_P20439280_11-02-2025_10_39_01.pdf results_Auto_P20439280_11-02-2025_10_39_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20439280_11-02-2025_10_39_01.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','20439280','results_Auto_P20439280_11-02-2025_10_39_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20439280_11-02-2025_10_39_01.pdf','pdf','','0.16','0.0455625087124581') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20439280]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1336780895, 1336780892, 1336780890, 1336780889, 1336779693, 1336779665, 1336779602, 1336779499, 1336779490, 1336779487, 1336779483, 1336779482] map_info['map_portfolio_photo'] : {20439280: [1336780895, 1336780892, 1336780890, 1336780889, 1336779693, 1336779665, 1336779602, 1336779499, 1336779490, 1336779487, 1336779483, 1336779482, 1336779449, 1336779443, 1336779431, 1336779428, 1336779426, 1336779418, 1336779212, 1336779210, 1336779207, 1336779205, 1336779169, 1336779165, 1336779164, 1336779163, 1336779161, 1336778994, 1336778992, 1336778990, 1336778987, 1336778983, 1336778683, 1336778678]} final : False mtd_id 4302 list_pids : [1336780895, 1336780892, 1336780890, 1336780889, 1336779693, 1336779665, 1336779602, 1336779499, 1336779490, 1336779487, 1336779483, 1336779482] 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, '2575711') ('4302', '20439280', '1336780895', None, None, None, None, None, '2575711') ('4302', None, None, None, None, None, None, None, '2575711') ('4302', '20439280', '1336780892', None, None, None, None, None, '2575711') ('4302', None, None, None, None, None, None, None, '2575711') ('4302', '20439280', '1336780890', None, None, None, None, None, '2575711') ('4302', None, None, None, None, None, None, None, '2575711') ('4302', '20439280', '1336780889', None, None, None, None, None, '2575711') ('4302', None, None, None, None, None, None, None, '2575711') ('4302', '20439280', '1336779693', None, None, None, None, None, '2575711') ('4302', None, None, None, None, None, None, None, '2575711') ('4302', '20439280', '1336779665', None, None, None, None, None, '2575711') ('4302', None, None, None, None, None, None, None, '2575711') ('4302', '20439280', '1336779602', None, None, None, None, None, '2575711') ('4302', None, None, None, None, None, None, None, '2575711') ('4302', '20439280', '1336779499', None, None, None, None, None, '2575711') ('4302', None, None, None, None, None, None, None, '2575711') ('4302', '20439280', '1336779490', None, None, None, None, None, '2575711') ('4302', None, None, None, None, None, None, None, '2575711') ('4302', '20439280', '1336779487', None, None, None, None, None, '2575711') ('4302', None, None, None, None, None, None, None, '2575711') ('4302', '20439280', '1336779483', None, None, None, None, None, '2575711') ('4302', None, None, None, None, None, None, None, '2575711') ('4302', '20439280', '1336779482', None, None, None, None, None, '2575711') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 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', '20439280', '1336780895', None, None, None, None, None, '2575711'), ('4302', '20439280', '1336780892', None, None, None, None, None, '2575711'), ('4302', '20439280', '1336780890', None, None, None, None, None, '2575711'), ('4302', '20439280', '1336780889', None, None, None, None, None, '2575711'), ('4302', '20439280', '1336779693', None, None, None, None, None, '2575711'), ('4302', '20439280', '1336779665', None, None, None, None, None, '2575711'), ('4302', '20439280', '1336779602', None, None, None, None, None, '2575711'), ('4302', '20439280', '1336779499', None, None, None, None, None, '2575711'), ('4302', '20439280', '1336779490', None, None, None, None, None, '2575711'), ('4302', '20439280', '1336779487', None, None, None, None, None, '2575711'), ('4302', '20439280', '1336779483', None, None, None, None, None, '2575711'), ('4302', '20439280', '1336779482', None, None, None, None, None, '2575711')] time used for this insertion : 0.015210628509521484 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.608715057373047 time spend to save output : 0.01549386978149414 total time spend for step 4 : 2.624208927154541 step5:split_time_score Tue Feb 11 10: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 complete output_args for input 0 : ['20439280'] 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 : [('20439280',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20439280) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1336779490: {'path': 'temp/1739266740_2164775_1336779490_ff8e760eeb35260cac0456519deef79c.jpg', 'extension': 'jpg'}, 1336779499: {'path': 'temp/1739266740_2164775_1336779499_b7eee93f4c68d22240ae57f2a3100aa8.jpg', 'extension': 'jpg'}, 1336779602: {'path': 'temp/1739266740_2164775_1336779602_a2a13f1632062c50276834e064a06e85.jpg', 'extension': 'jpg'}, 1336779482: {'path': 'temp/1739266740_2164775_1336779482_ec9a0ee784462226e2c3ba03450db61d.jpg', 'extension': 'jpg'}, 1336779483: {'path': 'temp/1739266740_2164775_1336779483_0dd2d2fe3133d4dc52a97a372018de3f.jpg', 'extension': 'jpg'}, 1336779487: {'path': 'temp/1739266740_2164775_1336779487_8c76c4ff21eb61126b7baba2b0789497.jpg', 'extension': 'jpg'}, 1336779665: {'path': 'temp/1739266740_2164775_1336779665_535bf2cc2d9ab02d66f1235d4c3e5e39.jpg', 'extension': 'jpg'}, 1336779693: {'path': 'temp/1739266740_2164775_1336779693_1b169d8126df700ca06e4ac185921868.jpg', 'extension': 'jpg'}, 1336780889: {'path': 'temp/1739266740_2164775_1336780889_a23200a4d78a6870e4d6187dae8010ad.jpg', 'extension': 'jpg'}, 1336780890: {'path': 'temp/1739266740_2164775_1336780890_8b8bb18700041831a90dc54353721ceb.jpg', 'extension': 'jpg'}, 1336780892: {'path': 'temp/1739266740_2164775_1336780892_9bc069fd40153e851a699c31ac38c0da.jpg', 'extension': 'jpg'}, 1336780895: {'path': 'temp/1739266740_2164775_1336780895_f860a1db6a7665d635b2e014e409b369.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 = 20439280; (('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 = 20439280 group by h (('10', 34),) 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=20439280 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 (20439280) 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 (20439280) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 11022025 20439280 Nombre de photos uploadées : 34 / 23040 (0%) 11022025 20439280 Nombre de photos taguées (types de déchets): 0 / 34 (0%) 11022025 20439280 Nombre de photos taguées (volume) : 0 / 34 (0%) [{'photo_id': 1336778683, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/dcdbfd4a7532f59c16da396d9969d1aa.jpg', 'username': None, 'uploaded_at': 1739266267, 'text': 'image_11022025_10_30_03_10156.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1336778678, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/1841d37a1ef74dc1fbd858473a6e8691.jpg', 'username': None, 'uploaded_at': 1739266267, 'text': 'image_11022025_10_30_44_10133.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1336778994, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/f17307d6a0c547aac78fc34163a6f3cc.jpg', 'username': None, 'uploaded_at': 1739266327, 'text': 'image_11022025_10_30_54_10136.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1336778992, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/9e67741dc398d56bf0bc6474955bc8ce.jpg', 'username': None, 'uploaded_at': 1739266327, 'text': 'image_11022025_10_31_03_9137.jpg'}] 0 [] elapsed_time : load_data_split_time_score 7.152557373046875e-07 elapsed_time : order_list_meta_photo_and_scores 3.814697265625e-06 ?????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002299070358276367 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20439280, '2025-02-11' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1593540,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02226400375366211 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= 1593540 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1593540, 'dashboard_run_id': 1602245, 'mtr_portfolio_id': 20437526, 'dashboard_result_id': 8814555, '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_P20437526_11-02-2025_10_04_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20437558, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20437559, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20437560, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20437561, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20437562, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20437563, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20437564, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20437565, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20437566, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20437567, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20437568, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20437569, 'pht': 3726}}"}, {'dashboat_entry_day': 1593540, 'dashboard_run_id': 1602245, 'mtr_portfolio_id': 20438188, 'dashboard_result_id': 8814556, '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_P20438188_11-02-2025_10_16_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20438194, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20438195, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20438196, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20438197, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20438198, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20438199, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20438200, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20438201, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20438202, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20438203, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20438204, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20438205, 'pht': 3726}}"}, {'dashboat_entry_day': 1593540, 'dashboard_run_id': 1602245, 'mtr_portfolio_id': 20438640, 'dashboard_result_id': 8814557, '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_P20438640_11-02-2025_10_32_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20438686, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20438687, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20438688, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20438689, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20438690, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20438691, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20438692, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20438693, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20438694, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20438695, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20438696, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20438697, 'pht': 3726}}"}, {'dashboat_entry_day': 1593540, 'dashboard_run_id': 1602245, 'mtr_portfolio_id': 20439280, 'dashboard_result_id': 8814558, '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_P20439280_11-02-2025_10_36_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20439312, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20439313, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20439314, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20439315, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20439316, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20439317, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20439318, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20439319, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20439320, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20439321, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20439322, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20439323, '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 = 20437526 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': 2575461, 'mtr_portfolio_id': 20437526, 'created_at': datetime.datetime(2025, 2, 11, 10, 4, 30), 'result': '0.04483930662154942', 'result_long': None, 'result_double': None}] Qualite : 0.04483930662154942 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20437526 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20437526_11-02-2025_10_04_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20437526 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_P20437526_11-02-2025_10_04_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20437558, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20437559, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20437560, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20437561, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20437562, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20437563, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20437564, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20437565, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20437566, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20437567, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20437568, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20437569, 'pht': 3726}}" where mtr_portfolio_id = 20437526 and dashboard_run_id = 1602245 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`=20437526 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8814555, 0.04483930662154942, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20437526_11-02-2025_10_04_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20437558, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20437559, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20437560, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20437561, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20437562, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20437563, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20437564, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20437565, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20437566, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20437567, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20437568, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20437569, '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 = 20438188 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': 2575522, 'mtr_portfolio_id': 20438188, 'created_at': datetime.datetime(2025, 2, 11, 10, 16, 58), 'result': '0.04109393714644114', 'result_long': None, 'result_double': None}] Qualite : 0.04109393714644114 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20438188 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20438188_11-02-2025_10_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20438188 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_P20438188_11-02-2025_10_16_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20438194, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20438195, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20438196, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20438197, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20438198, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20438199, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20438200, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20438201, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20438202, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20438203, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20438204, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20438205, 'pht': 3726}}" where mtr_portfolio_id = 20438188 and dashboard_run_id = 1602245 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`=20438188 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8814556, 0.04109393714644114, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20438188_11-02-2025_10_16_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20438194, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20438195, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20438196, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20438197, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20438198, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20438199, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20438200, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20438201, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20438202, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20438203, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20438204, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20438205, '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 = 20438640 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': 2575585, 'mtr_portfolio_id': 20438640, 'created_at': datetime.datetime(2025, 2, 11, 10, 32, 29), 'result': '0.0441644749362582', 'result_long': None, 'result_double': None}] Qualite : 0.0441644749362582 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20438640 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20438640_11-02-2025_10_32_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20438640 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_P20438640_11-02-2025_10_32_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20438686, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20438687, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20438688, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20438689, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20438690, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20438691, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20438692, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20438693, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20438694, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20438695, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20438696, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20438697, 'pht': 3726}}" where mtr_portfolio_id = 20438640 and dashboard_run_id = 1602245 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`=20438640 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8814557, 0.0441644749362582, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20438640_11-02-2025_10_32_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20438686, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20438687, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20438688, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20438689, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20438690, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20438691, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20438692, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20438693, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20438694, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20438695, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20438696, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20438697, '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 = 20439280 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': 2575711, 'mtr_portfolio_id': 20439280, 'created_at': datetime.datetime(2025, 2, 11, 10, 39), 'result': '0.0455625087124581', 'result_long': None, 'result_double': None}] Qualite : 0.0455625087124581 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20439280 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20439280_11-02-2025_10_39_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20439280 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_P20439280_11-02-2025_10_39_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20439312, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20439313, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20439314, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20439315, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20439316, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20439317, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20439318, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20439319, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20439320, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20439321, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20439322, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20439323, 'pht': 3726}}" where mtr_portfolio_id = 20439280 and dashboard_run_id = 1602245 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`=20439280 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8814558, 0.0455625087124581, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20439280_11-02-2025_10_39_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20439312, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20439313, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20439314, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20439315, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20439316, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20439317, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20439318, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20439319, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20439320, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20439321, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20439322, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20439323, '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 (20437526,20438188,20438640,20439280) result : ((1336768657,), (1336768660,), (1336768663,), (1336768665,), (1336768881,), (1336768883,), (1336768887,), (1336768916,), (1336768925,), (1336768931,), (1336768934,), (1336769508,), (1336769519,), (1336769527,), (1336769529,), (1336770051,), (1336770195,), (1336770372,), (1336770427,), (1336770671,), (1336770746,), (1336770752,), (1336770834,), (1336770845,), (1336770848,), (1336770853,), (1336770856,), (1336770859,), (1336770885,), (1336770889,), (1336770892,), (1336770895,), (1336770899,), (1336770902,), (1336770923,), (1336770925,), (1336770928,), (1336771209,), (1336771213,), (1336771220,), (1336771262,), (1336771265,), (1336771307,), (1336771309,), (1336771313,), (1336771353,), (1336771360,), (1336771365,), (1336771368,), (1336771374,), (1336771378,), (1336771397,), (1336771399,), (1336771410,), (1336771413,), (1336771417,), (1336771529,), (1336771534,), (1336771540,), (1336771546,), (1336771552,), (1336771623,), (1336771586,), (1336771589,), (1336771593,), (1336771618,), (1336771726,), (1336771728,), (1336771730,), (1336771764,), (1336771766,), (1336771769,), (1336771803,), (1336771968,), (1336771982,), (1336772045,), (1336772174,), (1336773591,), (1336773593,), (1336773601,), (1336773605,), (1336773758,), (1336773932,), (1336773974,), (1336774028,), (1336774123,), (1336774441,), (1336774443,), (1336774444,), (1336774447,), (1336774452,), (1336774456,), (1336774507,), (1336774508,), (1336774511,), (1336774513,), (1336774516,), (1336774555,), (1336774556,), (1336774558,), (1336774561,), (1336774776,), (1336774778,), (1336774781,), (1336774783,), (1336774787,), (1336774790,), (1336774954,), (1336774956,), (1336774958,), (1336774960,), (1336774964,), (1336774968,), (1336775001,), (1336775002,), (1336775004,), (1336776241,), (1336776095,), (1336776192,), (1336776236,), (1336776239,), (1336776273,), (1336776277,), (1336776283,), (1336776298,), (1336776386,), (1336776774,), (1336776776,), (1336776788,), (1336776837,), (1336776855,), (1336776869,), (1336776898,), (1336776899,), (1336776901,), (1336777445,), (1336777486,), (1336777488,), (1336777490,), (1336777613,), (1336777619,), (1336777693,), (1336777695,), (1336777698,), (1336777702,), (1336777706,), (1336777708,), (1336777840,), (1336777846,), (1336777850,), (1336777855,), (1336777858,), (1336777958,), (1336777962,), (1336777967,), (1336777969,), (1336777981,), (1336778029,), (1336778093,), (1336778097,), (1336778102,), (1336778109,), (1336778144,), (1336778149,), (1336778154,), (1336778159,), (1336778162,), (1336778166,), (1336778216,), (1336778218,), (1336778221,), (1336778224,), (1336778254,), (1336778256,), (1336778284,), (1336778287,), (1336778288,), (1336778292,), (1336778327,), (1336778350,), (1336778357,), (1336778361,), (1336778366,), (1336778370,), (1336778451,), (1336778458,), (1336778470,), (1336778472,), (1336778557,), (1336778560,), (1336778563,), (1336778641,), (1336778644,), (1336778647,), (1336778687,), (1336778678,), (1336778683,), (1336778983,), (1336778987,), (1336778990,), (1336778992,), (1336778994,), (1336779161,), (1336779163,), (1336779164,), (1336779165,), (1336779169,), (1336779205,), (1336779207,), (1336779210,), (1336779212,), (1336779418,), (1336779426,), (1336779428,), (1336779431,), (1336779443,), (1336779449,), (1336779482,), (1336779483,), (1336779487,), (1336779490,), (1336779499,), (1336779602,), (1336779665,), (1336779693,), (1336780889,), (1336780890,), (1336780892,), (1336780895,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'11022025': {'nb_upload': 34, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20439280]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1336780895, 1336780892, 1336780890, 1336780889, 1336779693, 1336779665, 1336779602, 1336779499, 1336779490, 1336779487, 1336779483, 1336779482] map_info['map_portfolio_photo'] : {20439280: [1336780895, 1336780892, 1336780890, 1336780889, 1336779693, 1336779665, 1336779602, 1336779499, 1336779490, 1336779487, 1336779483, 1336779482, 1336779449, 1336779443, 1336779431, 1336779428, 1336779426, 1336779418, 1336779212, 1336779210, 1336779207, 1336779205, 1336779169, 1336779165, 1336779164, 1336779163, 1336779161, 1336778994, 1336778992, 1336778990, 1336778987, 1336778983, 1336778683, 1336778678]} final : True mtd_id 4302 list_pids : [1336780895, 1336780892, 1336780890, 1336780889, 1336779693, 1336779665, 1336779602, 1336779499, 1336779490, 1336779487, 1336779483, 1336779482] Looping around the photos to save general results len do output : 1 /20439280Didn'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, '2575711') ('4302', '20439280', '1336780895', None, None, None, None, None, '2575711') ('4302', None, None, None, None, None, None, None, '2575711') ('4302', '20439280', '1336780892', None, None, None, None, None, '2575711') ('4302', None, None, None, None, None, None, None, '2575711') ('4302', '20439280', '1336780890', None, None, None, None, None, '2575711') ('4302', None, None, None, None, None, None, None, '2575711') ('4302', '20439280', '1336780889', None, None, None, None, None, '2575711') ('4302', None, None, None, None, None, None, None, '2575711') ('4302', '20439280', '1336779693', None, None, None, None, None, '2575711') ('4302', None, None, None, None, None, None, None, '2575711') ('4302', '20439280', '1336779665', None, None, None, None, None, '2575711') ('4302', None, None, None, None, None, None, None, '2575711') ('4302', '20439280', '1336779602', None, None, None, None, None, '2575711') ('4302', None, None, None, None, None, None, None, '2575711') ('4302', '20439280', '1336779499', None, None, None, None, None, '2575711') ('4302', None, None, None, None, None, None, None, '2575711') ('4302', '20439280', '1336779490', None, None, None, None, None, '2575711') ('4302', None, None, None, None, None, None, None, '2575711') ('4302', '20439280', '1336779487', None, None, None, None, None, '2575711') ('4302', None, None, None, None, None, None, None, '2575711') ('4302', '20439280', '1336779483', None, None, None, None, None, '2575711') ('4302', None, None, None, None, None, None, None, '2575711') ('4302', '20439280', '1336779482', None, None, None, None, None, '2575711') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '20439280', 'None', None, None, None, None, '2575711'), ('4302', '20439280', '1336780895', None, None, None, None, None, '2575711'), ('4302', '20439280', '1336780892', None, None, None, None, None, '2575711'), ('4302', '20439280', '1336780890', None, None, None, None, None, '2575711'), ('4302', '20439280', '1336780889', None, None, None, None, None, '2575711'), ('4302', '20439280', '1336779693', None, None, None, None, None, '2575711'), ('4302', '20439280', '1336779665', None, None, None, None, None, '2575711'), ('4302', '20439280', '1336779602', None, None, None, None, None, '2575711'), ('4302', '20439280', '1336779499', None, None, None, None, None, '2575711'), ('4302', '20439280', '1336779490', None, None, None, None, None, '2575711'), ('4302', '20439280', '1336779487', None, None, None, None, None, '2575711'), ('4302', '20439280', '1336779483', None, None, None, None, None, '2575711'), ('4302', '20439280', '1336779482', None, None, None, None, None, '2575711')] time used for this insertion : 1.326073408126831 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3134040832519531 time spend to save output : 1.3263776302337646 total time spend for step 5 : 1.6397817134857178 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 (2575711) 2.16user 2.64system 0:08.83elapsed 54%CPU (0avgtext+0avgdata 158556maxresident)k 328inputs+8792outputs (15major+64140minor)pagefaults 0swaps