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 : 1389858 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 (2633894) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2633894) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21023275 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2633894'] with mtr_portfolio_ids : ['21023275'] and first list_photo_ids : [] new path : /proc/1389858/ Name: python3 Umask: 0002 State: R (running) Tgid: 1389858 Ngid: 0 Pid: 1389858 PPid: 1389857 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1389858 NSpid: 1389858 NSpgid: 1386815 NSsid: 1386815 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99076 kB VmRSS: 99076 kB RssAnon: 59760 kB RssFile: 39316 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 580 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 3/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 50 nonvoluntary_ctxt_switches: 102 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1389858', 'Ngid': '0', 'Pid': '1389858', 'PPid': '1389857', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1389858', 'NSpid': '1389858', 'NSpgid': '1386815', 'NSsid': '1386815', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99076 kB', 'VmRSS': '99076 kB', 'RssAnon': '59760 kB', 'RssFile': '39316 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '580 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '3/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '50', 'nonvoluntary_ctxt_switches': '102'} ('datou_batch_current', '1389858', '1106844', '0', '1106844', '865592', '99076', b'', 'marlene', '2633894') 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 (21023275) 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 (2633894 ) ) 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 (21023275) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1340862168, 'portfolio_id': 21023275}, {'photo_id': 1340862163, 'portfolio_id': 21023275}, {'photo_id': 1340862144, 'portfolio_id': 21023275}, {'photo_id': 1340862092, 'portfolio_id': 21023275}, {'photo_id': 1340862087, 'portfolio_id': 21023275}, {'photo_id': 1340862063, 'portfolio_id': 21023275}, {'photo_id': 1340862058, 'portfolio_id': 21023275}, {'photo_id': 1340862055, 'portfolio_id': 21023275}, {'photo_id': 1340862051, 'portfolio_id': 21023275}, {'photo_id': 1340861823, 'portfolio_id': 21023275}, {'photo_id': 1340861819, 'portfolio_id': 21023275}, {'photo_id': 1340861814, 'portfolio_id': 21023275}, {'photo_id': 1340861812, 'portfolio_id': 21023275}, {'photo_id': 1340861807, 'portfolio_id': 21023275}, {'photo_id': 1340861672, 'portfolio_id': 21023275}, {'photo_id': 1340861670, 'portfolio_id': 21023275}, {'photo_id': 1340861667, 'portfolio_id': 21023275}, {'photo_id': 1340861512, 'portfolio_id': 21023275}, {'photo_id': 1340861078, 'portfolio_id': 21023275}, {'photo_id': 1340861074, 'portfolio_id': 21023275}, {'photo_id': 1340860783, 'portfolio_id': 21023275}, {'photo_id': 1340860764, 'portfolio_id': 21023275}, {'photo_id': 1340860755, 'portfolio_id': 21023275}, {'photo_id': 1340860707, 'portfolio_id': 21023275}, {'photo_id': 1340859991, 'portfolio_id': 21023275}, {'photo_id': 1340859987, 'portfolio_id': 21023275}, {'photo_id': 1340859978, 'portfolio_id': 21023275}, {'photo_id': 1340859925, 'portfolio_id': 21023275}, {'photo_id': 1340859920, 'portfolio_id': 21023275}, {'photo_id': 1340859846, 'portfolio_id': 21023275}, {'photo_id': 1340859841, 'portfolio_id': 21023275}, {'photo_id': 1340859806, 'portfolio_id': 21023275}, {'photo_id': 1340859799, 'portfolio_id': 21023275}, {'photo_id': 1340859797, 'portfolio_id': 21023275}, {'photo_id': 1340859794, 'portfolio_id': 21023275}, {'photo_id': 1340859601, 'portfolio_id': 21023275}, {'photo_id': 1340859575, 'portfolio_id': 21023275}, {'photo_id': 1340859569, 'portfolio_id': 21023275}, {'photo_id': 1340859566, 'portfolio_id': 21023275}, {'photo_id': 1340859563, 'portfolio_id': 21023275}] map_portfolio_id_photo_id: {21023275: [1340862168, 1340862163, 1340862144, 1340862092, 1340862087, 1340862063, 1340862058, 1340862055, 1340862051, 1340861823, 1340861819, 1340861814, 1340861812, 1340861807, 1340861672, 1340861670, 1340861667, 1340861512, 1340861078, 1340861074, 1340860783, 1340860764, 1340860755, 1340860707, 1340859991, 1340859987, 1340859978, 1340859925, 1340859920, 1340859846, 1340859841, 1340859806, 1340859799, 1340859797, 1340859794, 1340859601, 1340859575, 1340859569, 1340859566, 1340859563]} ##### 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.015282392501831055 #### 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 Mar 4 20:14: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 (21023275) 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 : 21023275 get user id for portfolio 21023275 get sub ptf for main ptf 21023275, type 3726 and hashtags ['environnement', 'Carton_brun', 'papier', 'flou', 'metal', 'kraft', 'Teint_Dans_La_Masse', 'Carton_gris', 'cartonnette', 'mal_croppe', 'plastique', 'autre_refus'] 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`=21023275 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Carton_brun','papier','flou','metal','kraft','Teint_Dans_La_Masse','Carton_gris','cartonnette','mal_croppe','plastique','autre_refus')) 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`=21023275 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Carton_brun','papier','flou','metal','kraft','Teint_Dans_La_Masse','Carton_gris','cartonnette','mal_croppe','plastique','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 21023275, 'sub_port_id': 21023303, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13638887, 'last_updated_at': datetime.datetime(2025, 3, 4, 20, 13), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 20, 13), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 20, 4, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 21023275, 'sub_port_id': 21023304, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13638888, 'last_updated_at': datetime.datetime(2025, 3, 4, 20, 13), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 20, 13), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 20, 4, 59)}, 'flou': {'main_port_id': 21023275, 'sub_port_id': 21023305, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13638889, 'last_updated_at': datetime.datetime(2025, 3, 4, 20, 13), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 20, 13), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 20, 4, 59)}, 'Carton_brun': {'main_port_id': 21023275, 'sub_port_id': 21023306, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13638890, 'last_updated_at': datetime.datetime(2025, 3, 4, 20, 13), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 20, 13), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 20, 4, 59)}, 'papier': {'main_port_id': 21023275, 'sub_port_id': 21023307, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13638891, 'last_updated_at': datetime.datetime(2025, 3, 4, 20, 13), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 20, 13), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 20, 4, 59)}, 'Carton_gris': {'main_port_id': 21023275, 'sub_port_id': 21023308, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13638892, 'last_updated_at': datetime.datetime(2025, 3, 4, 20, 13), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 20, 13), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 20, 4, 59)}, 'autre_refus': {'main_port_id': 21023275, 'sub_port_id': 21023309, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13638893, 'last_updated_at': datetime.datetime(2025, 3, 4, 20, 13), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 20, 13), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 20, 4, 59)}, 'mal_croppe': {'main_port_id': 21023275, 'sub_port_id': 21023310, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13638894, 'last_updated_at': datetime.datetime(2025, 3, 4, 20, 13), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 20, 13), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 20, 4, 59)}, 'metal': {'main_port_id': 21023275, 'sub_port_id': 21023311, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13638895, 'last_updated_at': datetime.datetime(2025, 3, 4, 20, 13), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 20, 13), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 20, 4, 59)}, 'plastique': {'main_port_id': 21023275, 'sub_port_id': 21023312, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13638896, 'last_updated_at': datetime.datetime(2025, 3, 4, 20, 13), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 20, 13), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 20, 4, 59)}, 'environnement': {'main_port_id': 21023275, 'sub_port_id': 21023313, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13638897, 'last_updated_at': datetime.datetime(2025, 3, 4, 20, 13), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 20, 13), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 20, 4, 59)}, 'cartonnette': {'main_port_id': 21023275, 'sub_port_id': 21023314, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13638898, 'last_updated_at': datetime.datetime(2025, 3, 4, 20, 13), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 20, 13), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 20, 4, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21023303 , 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=21023275 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 (21023303) result : ((1340859974,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21023275) result : ((1340859563,), (1340859566,), (1340859569,), (1340859575,), (1340859601,), (1340859794,), (1340859797,), (1340859799,), (1340859806,), (1340859841,), (1340859846,), (1340859920,), (1340859925,), (1340859978,), (1340859987,), (1340859991,), (1340860707,), (1340860755,), (1340860764,), (1340860783,), (1340861074,), (1340861078,), (1340861512,), (1340861667,), (1340861670,), (1340861672,), (1340861807,), (1340861812,), (1340861814,), (1340861819,), (1340861823,), (1340862051,), (1340862055,), (1340862058,), (1340862063,), (1340862087,), (1340862092,), (1340862144,), (1340862163,), (1340862168,)) 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 21023304 , 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=21023275 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 (21023304) result : ((1340859948,), (1340859949,), (1340860799,), (1340860800,), (1340861055,), (1340861056,), (1340861057,), (1340861058,), (1340861059,), (1340861443,), (1340862260,), (1340862322,), (1340862323,), (1340862324,), (1340862325,), (1340862326,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21023275) result : ((1340859563,), (1340859566,), (1340859569,), (1340859575,), (1340859601,), (1340859794,), (1340859797,), (1340859799,), (1340859806,), (1340859841,), (1340859846,), (1340859920,), (1340859925,), (1340859978,), (1340859987,), (1340859991,), (1340860707,), (1340860755,), (1340860764,), (1340860783,), (1340861074,), (1340861078,), (1340861512,), (1340861667,), (1340861670,), (1340861672,), (1340861807,), (1340861812,), (1340861814,), (1340861819,), (1340861823,), (1340862051,), (1340862055,), (1340862058,), (1340862063,), (1340862087,), (1340862092,), (1340862144,), (1340862163,), (1340862168,)) 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 21023305 , 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=21023275 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 (21023305) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21023275) result : ((1340859563,), (1340859566,), (1340859569,), (1340859575,), (1340859601,), (1340859794,), (1340859797,), (1340859799,), (1340859806,), (1340859841,), (1340859846,), (1340859920,), (1340859925,), (1340859978,), (1340859987,), (1340859991,), (1340860707,), (1340860755,), (1340860764,), (1340860783,), (1340861074,), (1340861078,), (1340861512,), (1340861667,), (1340861670,), (1340861672,), (1340861807,), (1340861812,), (1340861814,), (1340861819,), (1340861823,), (1340862051,), (1340862055,), (1340862058,), (1340862063,), (1340862087,), (1340862092,), (1340862144,), (1340862163,), (1340862168,)) 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 21023306 , 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=21023275 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 (21023306) result : ((1340859965,), (1340859966,), (1340859967,), (1340859968,), (1340861472,), (1340862270,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21023275) result : ((1340859563,), (1340859566,), (1340859569,), (1340859575,), (1340859601,), (1340859794,), (1340859797,), (1340859799,), (1340859806,), (1340859841,), (1340859846,), (1340859920,), (1340859925,), (1340859978,), (1340859987,), (1340859991,), (1340860707,), (1340860755,), (1340860764,), (1340860783,), (1340861074,), (1340861078,), (1340861512,), (1340861667,), (1340861670,), (1340861672,), (1340861807,), (1340861812,), (1340861814,), (1340861819,), (1340861823,), (1340862051,), (1340862055,), (1340862058,), (1340862063,), (1340862087,), (1340862092,), (1340862144,), (1340862163,), (1340862168,)) 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 21023307 , 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=21023275 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 (21023307) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21023275) result : ((1340859563,), (1340859566,), (1340859569,), (1340859575,), (1340859601,), (1340859794,), (1340859797,), (1340859799,), (1340859806,), (1340859841,), (1340859846,), (1340859920,), (1340859925,), (1340859978,), (1340859987,), (1340859991,), (1340860707,), (1340860755,), (1340860764,), (1340860783,), (1340861074,), (1340861078,), (1340861512,), (1340861667,), (1340861670,), (1340861672,), (1340861807,), (1340861812,), (1340861814,), (1340861819,), (1340861823,), (1340862051,), (1340862055,), (1340862058,), (1340862063,), (1340862087,), (1340862092,), (1340862144,), (1340862163,), (1340862168,)) 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 21023308 , 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=21023275 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 (21023308) result : ((1340859958,), (1340859959,), (1340859960,), (1340860837,), (1340861448,), (1340861632,), (1340861633,), (1340861634,), (1340861635,), (1340862269,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21023275) result : ((1340859563,), (1340859566,), (1340859569,), (1340859575,), (1340859601,), (1340859794,), (1340859797,), (1340859799,), (1340859806,), (1340859841,), (1340859846,), (1340859920,), (1340859925,), (1340859978,), (1340859987,), (1340859991,), (1340860707,), (1340860755,), (1340860764,), (1340860783,), (1340861074,), (1340861078,), (1340861512,), (1340861667,), (1340861670,), (1340861672,), (1340861807,), (1340861812,), (1340861814,), (1340861819,), (1340861823,), (1340862051,), (1340862055,), (1340862058,), (1340862063,), (1340862087,), (1340862092,), (1340862144,), (1340862163,), (1340862168,)) 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 21023309 , 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=21023275 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 (21023309) result : ((1340859952,), (1340859953,), (1340859954,), (1340859955,), (1340859956,), (1340860802,), (1340860803,), (1340860804,), (1340860806,), (1340861060,), (1340861061,), (1340861062,), (1340861445,), (1340861446,), (1340861468,), (1340861469,), (1340861470,), (1340862265,), (1340862266,), (1340862267,), (1340862268,), (1340862328,), (1340862329,), (1340862330,), (1340862331,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21023275) result : ((1340859563,), (1340859566,), (1340859569,), (1340859575,), (1340859601,), (1340859794,), (1340859797,), (1340859799,), (1340859806,), (1340859841,), (1340859846,), (1340859920,), (1340859925,), (1340859978,), (1340859987,), (1340859991,), (1340860707,), (1340860755,), (1340860764,), (1340860783,), (1340861074,), (1340861078,), (1340861512,), (1340861667,), (1340861670,), (1340861672,), (1340861807,), (1340861812,), (1340861814,), (1340861819,), (1340861823,), (1340862051,), (1340862055,), (1340862058,), (1340862063,), (1340862087,), (1340862092,), (1340862144,), (1340862163,), (1340862168,)) 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 21023310 , 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=21023275 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 (21023310) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21023275) result : ((1340859563,), (1340859566,), (1340859569,), (1340859575,), (1340859601,), (1340859794,), (1340859797,), (1340859799,), (1340859806,), (1340859841,), (1340859846,), (1340859920,), (1340859925,), (1340859978,), (1340859987,), (1340859991,), (1340860707,), (1340860755,), (1340860764,), (1340860783,), (1340861074,), (1340861078,), (1340861512,), (1340861667,), (1340861670,), (1340861672,), (1340861807,), (1340861812,), (1340861814,), (1340861819,), (1340861823,), (1340862051,), (1340862055,), (1340862058,), (1340862063,), (1340862087,), (1340862092,), (1340862144,), (1340862163,), (1340862168,)) 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 21023311 , 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=21023275 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 (21023311) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21023275) result : ((1340859563,), (1340859566,), (1340859569,), (1340859575,), (1340859601,), (1340859794,), (1340859797,), (1340859799,), (1340859806,), (1340859841,), (1340859846,), (1340859920,), (1340859925,), (1340859978,), (1340859987,), (1340859991,), (1340860707,), (1340860755,), (1340860764,), (1340860783,), (1340861074,), (1340861078,), (1340861512,), (1340861667,), (1340861670,), (1340861672,), (1340861807,), (1340861812,), (1340861814,), (1340861819,), (1340861823,), (1340862051,), (1340862055,), (1340862058,), (1340862063,), (1340862087,), (1340862092,), (1340862144,), (1340862163,), (1340862168,)) 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 21023312 , 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=21023275 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 (21023312) result : ((1340859971,), (1340859972,), (1340859973,), (1340861072,), (1340861450,), (1340861474,), (1340861637,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21023275) result : ((1340859563,), (1340859566,), (1340859569,), (1340859575,), (1340859601,), (1340859794,), (1340859797,), (1340859799,), (1340859806,), (1340859841,), (1340859846,), (1340859920,), (1340859925,), (1340859978,), (1340859987,), (1340859991,), (1340860707,), (1340860755,), (1340860764,), (1340860783,), (1340861074,), (1340861078,), (1340861512,), (1340861667,), (1340861670,), (1340861672,), (1340861807,), (1340861812,), (1340861814,), (1340861819,), (1340861823,), (1340862051,), (1340862055,), (1340862058,), (1340862063,), (1340862087,), (1340862092,), (1340862144,), (1340862163,), (1340862168,)) 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 21023313 , 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=21023275 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 (21023313) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21023275) result : ((1340859563,), (1340859566,), (1340859569,), (1340859575,), (1340859601,), (1340859794,), (1340859797,), (1340859799,), (1340859806,), (1340859841,), (1340859846,), (1340859920,), (1340859925,), (1340859978,), (1340859987,), (1340859991,), (1340860707,), (1340860755,), (1340860764,), (1340860783,), (1340861074,), (1340861078,), (1340861512,), (1340861667,), (1340861670,), (1340861672,), (1340861807,), (1340861812,), (1340861814,), (1340861819,), (1340861823,), (1340862051,), (1340862055,), (1340862058,), (1340862063,), (1340862087,), (1340862092,), (1340862144,), (1340862163,), (1340862168,)) 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 21023314 , 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=21023275 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 (21023314) result : ((1340859961,), (1340859962,), (1340859963,), (1340861471,), (1340862332,), (1340862333,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21023275) result : ((1340859563,), (1340859566,), (1340859569,), (1340859575,), (1340859601,), (1340859794,), (1340859797,), (1340859799,), (1340859806,), (1340859841,), (1340859846,), (1340859920,), (1340859925,), (1340859978,), (1340859987,), (1340859991,), (1340860707,), (1340860755,), (1340860764,), (1340860783,), (1340861074,), (1340861078,), (1340861512,), (1340861667,), (1340861670,), (1340861672,), (1340861807,), (1340861812,), (1340861814,), (1340861819,), (1340861823,), (1340862051,), (1340862055,), (1340862058,), (1340862063,), (1340862087,), (1340862092,), (1340862144,), (1340862163,), (1340862168,)) 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`=21023275 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Carton_brun','papier','flou','metal','kraft','Teint_Dans_La_Masse','Carton_gris','cartonnette','mal_croppe','plastique','autre_refus')) 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`=21023275 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Carton_brun','papier','flou','metal','kraft','Teint_Dans_La_Masse','Carton_gris','cartonnette','mal_croppe','plastique','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 21023275, 'sub_port_id': 21023315, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13638899, 'last_updated_at': datetime.datetime(2025, 3, 4, 20, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 20, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 20, 5, 1)}, 'Teint_Dans_La_Masse': {'main_port_id': 21023275, 'sub_port_id': 21023316, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13638900, 'last_updated_at': datetime.datetime(2025, 3, 4, 20, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 20, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 20, 5, 1)}, 'flou': {'main_port_id': 21023275, 'sub_port_id': 21023317, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13638901, 'last_updated_at': datetime.datetime(2025, 3, 4, 20, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 20, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 20, 5, 1)}, 'Carton_brun': {'main_port_id': 21023275, 'sub_port_id': 21023318, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13638902, 'last_updated_at': datetime.datetime(2025, 3, 4, 20, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 20, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 20, 5, 1)}, 'papier': {'main_port_id': 21023275, 'sub_port_id': 21023319, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13638903, 'last_updated_at': datetime.datetime(2025, 3, 4, 20, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 20, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 20, 5, 1)}, 'Carton_gris': {'main_port_id': 21023275, 'sub_port_id': 21023320, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13638904, 'last_updated_at': datetime.datetime(2025, 3, 4, 20, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 20, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 20, 5, 1)}, 'autre_refus': {'main_port_id': 21023275, 'sub_port_id': 21023321, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13638905, 'last_updated_at': datetime.datetime(2025, 3, 4, 20, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 20, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 20, 5, 1)}, 'mal_croppe': {'main_port_id': 21023275, 'sub_port_id': 21023322, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13638906, 'last_updated_at': datetime.datetime(2025, 3, 4, 20, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 20, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 20, 5, 1)}, 'metal': {'main_port_id': 21023275, 'sub_port_id': 21023323, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13638907, 'last_updated_at': datetime.datetime(2025, 3, 4, 20, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 20, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 20, 5, 1)}, 'plastique': {'main_port_id': 21023275, 'sub_port_id': 21023324, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13638908, 'last_updated_at': datetime.datetime(2025, 3, 4, 20, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 20, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 20, 5, 1)}, 'environnement': {'main_port_id': 21023275, 'sub_port_id': 21023325, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13638909, 'last_updated_at': datetime.datetime(2025, 3, 4, 20, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 20, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 20, 5, 1)}, 'cartonnette': {'main_port_id': 21023275, 'sub_port_id': 21023326, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13638910, 'last_updated_at': datetime.datetime(2025, 3, 4, 20, 13), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 20, 13), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 20, 5, 1)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21023315,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21023303 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21023316,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21023304 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21023317,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21023305 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21023318,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21023306 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21023319,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21023307 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21023320,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21023308 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21023321,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21023309 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21023322,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21023310 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21023323,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21023311 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21023324,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21023312 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21023325,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21023313 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21023326,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21023314 lien utilise dans velours : https://www.fotonower.com/velours/21023315,21023316,21023317,21023318,21023319,21023320,21023321,21023322,21023323,21023324,21023325,21023326?tags=kraft,Teint_Dans_La_Masse,flou,Carton_brun,papier,Carton_gris,autre_refus,mal_croppe,metal,plastique,environnement,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21023275]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1340862168, 1340862163, 1340862144, 1340862092, 1340862087, 1340862063, 1340862058, 1340862055, 1340862051] map_info['map_portfolio_photo'] : {21023275: [1340862168, 1340862163, 1340862144, 1340862092, 1340862087, 1340862063, 1340862058, 1340862055, 1340862051, 1340861823, 1340861819, 1340861814, 1340861812, 1340861807, 1340861672, 1340861670, 1340861667, 1340861512, 1340861078, 1340861074, 1340860783, 1340860764, 1340860755, 1340860707, 1340859991, 1340859987, 1340859978, 1340859925, 1340859920, 1340859846, 1340859841, 1340859806, 1340859799, 1340859797, 1340859794, 1340859601, 1340859575, 1340859569, 1340859566, 1340859563]} final : False mtd_id 4302 list_pids : [1340862168, 1340862163, 1340862144, 1340862092, 1340862087, 1340862063, 1340862058, 1340862055, 1340862051] Looping around the photos to save general results len do output : 1 /21023275. 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, '2633894') ('4302', '21023275', '1340862168', None, None, None, None, None, '2633894') ('4302', None, None, None, None, None, None, None, '2633894') ('4302', '21023275', '1340862163', None, None, None, None, None, '2633894') ('4302', None, None, None, None, None, None, None, '2633894') ('4302', '21023275', '1340862144', None, None, None, None, None, '2633894') ('4302', None, None, None, None, None, None, None, '2633894') ('4302', '21023275', '1340862092', None, None, None, None, None, '2633894') ('4302', None, None, None, None, None, None, None, '2633894') ('4302', '21023275', '1340862087', None, None, None, None, None, '2633894') ('4302', None, None, None, None, None, None, None, '2633894') ('4302', '21023275', '1340862063', None, None, None, None, None, '2633894') ('4302', None, None, None, None, None, None, None, '2633894') ('4302', '21023275', '1340862058', None, None, None, None, None, '2633894') ('4302', None, None, None, None, None, None, None, '2633894') ('4302', '21023275', '1340862055', None, None, None, None, None, '2633894') ('4302', None, None, None, None, None, None, None, '2633894') ('4302', '21023275', '1340862051', None, None, None, None, None, '2633894') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21023275', "{'kraft': 21023303, 'Teint_Dans_La_Masse': 21023304, 'flou': 21023305, 'Carton_brun': 21023306, 'papier': 21023307, 'Carton_gris': 21023308, 'autre_refus': 21023309, 'mal_croppe': 21023310, 'metal': 21023311, 'plastique': 21023312, 'environnement': 21023313, 'cartonnette': 21023314}", None, None, None, None, '2633894'), ('4302', '21023275', '1340862168', None, None, None, None, None, '2633894'), ('4302', '21023275', '1340862163', None, None, None, None, None, '2633894'), ('4302', '21023275', '1340862144', None, None, None, None, None, '2633894'), ('4302', '21023275', '1340862092', None, None, None, None, None, '2633894'), ('4302', '21023275', '1340862087', None, None, None, None, None, '2633894'), ('4302', '21023275', '1340862063', None, None, None, None, None, '2633894'), ('4302', '21023275', '1340862058', None, None, None, None, None, '2633894'), ('4302', '21023275', '1340862055', None, None, None, None, None, '2633894'), ('4302', '21023275', '1340862051', None, None, None, None, None, '2633894')] time used for this insertion : 0.013875961303710938 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4483017921447754 time spend to save output : 0.014177560806274414 total time spend for step 1 : 1.4624793529510498 step2:final Tue Mar 4 20:14:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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 (21023275) 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 21023275 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1340859601,1340859575,1340859569,1340859566,1340859563,1340859806,1340859799,1340859797,1340859794,1340859925,1340859920,1340859846,1340859841,1340859991,1340859987,1340859978,1340860783,1340860764,1340860755,1340860707,1340861078,1340861074,1340861512,1340861672,1340861670,1340861667,1340861823,1340861819,1340861814,1340861812,1340861807,1340862063,1340862058,1340862055,1340862051,1340862168,1340862163,1340862144,1340862092,1340862087); 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([21023275]) Inside saveOutput : final : False verbose : True original output for save of step final : {1340862168: ('0.06308507456616473',), 1340862163: ('0.06308507456616473',), 1340862144: ('0.06308507456616473',), 1340862092: ('0.06308507456616473',), 1340862087: ('0.06308507456616473',), 1340862063: ('0.06308507456616473',), 1340862058: ('0.06308507456616473',), 1340862055: ('0.06308507456616473',), 1340862051: ('0.06308507456616473',)} new output for save of step final : {1340862168: ('0.06308507456616473',), 1340862163: ('0.06308507456616473',), 1340862144: ('0.06308507456616473',), 1340862092: ('0.06308507456616473',), 1340862087: ('0.06308507456616473',), 1340862063: ('0.06308507456616473',), 1340862058: ('0.06308507456616473',), 1340862055: ('0.06308507456616473',), 1340862051: ('0.06308507456616473',)} [1340862168, 1340862163, 1340862144, 1340862092, 1340862087, 1340862063, 1340862058, 1340862055, 1340862051] map_info['map_portfolio_photo'] : {21023275: [1340862168, 1340862163, 1340862144, 1340862092, 1340862087, 1340862063, 1340862058, 1340862055, 1340862051, 1340861823, 1340861819, 1340861814, 1340861812, 1340861807, 1340861672, 1340861670, 1340861667, 1340861512, 1340861078, 1340861074, 1340860783, 1340860764, 1340860755, 1340860707, 1340859991, 1340859987, 1340859978, 1340859925, 1340859920, 1340859846, 1340859841, 1340859806, 1340859799, 1340859797, 1340859794, 1340859601, 1340859575, 1340859569, 1340859566, 1340859563]} final : False mtd_id 4302 list_pids : [1340862168, 1340862163, 1340862144, 1340862092, 1340862087, 1340862063, 1340862058, 1340862055, 1340862051] Looping around the photos to save general results len do output : 9 /1340862168.Didn't retrieve data . /1340862163.Didn't retrieve data . /1340862144.Didn't retrieve data . /1340862092.Didn't retrieve data . /1340862087.Didn't retrieve data . /1340862063.Didn't retrieve data . /1340862058.Didn't retrieve data . /1340862055.Didn't retrieve data . /1340862051.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, '2633894') ('4302', '21023275', '1340862168', None, None, None, None, None, '2633894') ('4302', None, None, None, None, None, None, None, '2633894') ('4302', '21023275', '1340862163', None, None, None, None, None, '2633894') ('4302', None, None, None, None, None, None, None, '2633894') ('4302', '21023275', '1340862144', None, None, None, None, None, '2633894') ('4302', None, None, None, None, None, None, None, '2633894') ('4302', '21023275', '1340862092', None, None, None, None, None, '2633894') ('4302', None, None, None, None, None, None, None, '2633894') ('4302', '21023275', '1340862087', None, None, None, None, None, '2633894') ('4302', None, None, None, None, None, None, None, '2633894') ('4302', '21023275', '1340862063', None, None, None, None, None, '2633894') ('4302', None, None, None, None, None, None, None, '2633894') ('4302', '21023275', '1340862058', None, None, None, None, None, '2633894') ('4302', None, None, None, None, None, None, None, '2633894') ('4302', '21023275', '1340862055', None, None, None, None, None, '2633894') ('4302', None, None, None, None, None, None, None, '2633894') ('4302', '21023275', '1340862051', None, None, None, None, None, '2633894') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 27 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21023275', '1340862168', '0.06308507456616473', None, None, None, None, '2633894'), ('4302', '21023275', '1340862163', '0.06308507456616473', None, None, None, None, '2633894'), ('4302', '21023275', '1340862144', '0.06308507456616473', None, None, None, None, '2633894'), ('4302', '21023275', '1340862092', '0.06308507456616473', None, None, None, None, '2633894'), ('4302', '21023275', '1340862087', '0.06308507456616473', None, None, None, None, '2633894'), ('4302', '21023275', '1340862063', '0.06308507456616473', None, None, None, None, '2633894'), ('4302', '21023275', '1340862058', '0.06308507456616473', None, None, None, None, '2633894'), ('4302', '21023275', '1340862055', '0.06308507456616473', None, None, None, None, '2633894'), ('4302', '21023275', '1340862051', '0.06308507456616473', None, None, None, None, '2633894')] time used for this insertion : 0.013526678085327148 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06487751007080078 time spend to save output : 0.014001846313476562 total time spend for step 2 : 0.07887935638427734 step3:velours_tree Tue Mar 4 20:15: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 : {21023275: [{'kraft': 21023303, 'Teint_Dans_La_Masse': 21023304, 'flou': 21023305, 'Carton_brun': 21023306, 'papier': 21023307, 'Carton_gris': 21023308, 'autre_refus': 21023309, 'mal_croppe': 21023310, 'metal': 21023311, 'plastique': 21023312, 'environnement': 21023313, 'cartonnette': 21023314}]} input_args_next_step : {21023275: ()} output_args : {21023275: [{'kraft': 21023303, 'Teint_Dans_La_Masse': 21023304, 'flou': 21023305, 'Carton_brun': 21023306, 'papier': 21023307, 'Carton_gris': 21023308, 'autre_refus': 21023309, 'mal_croppe': 21023310, 'metal': 21023311, 'plastique': 21023312, 'environnement': 21023313, 'cartonnette': 21023314}]} args : 21023275 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 : ({'kraft': 21023303, 'Teint_Dans_La_Masse': 21023304, 'flou': 21023305, 'Carton_brun': 21023306, 'papier': 21023307, 'Carton_gris': 21023308, 'autre_refus': 21023309, 'mal_croppe': 21023310, 'metal': 21023311, 'plastique': 21023312, 'environnement': 21023313, 'cartonnette': 21023314},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21023275) 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([21023275]) 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.3054187297821045 time spend to save output : 5.412101745605469e-05 total time spend for step 3 : 0.30547285079956055 step4:send_mail_cod Tue Mar 4 20:15: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 : {1340862168: ('0.06308507456616473',), 1340862163: ('0.06308507456616473',), 1340862144: ('0.06308507456616473',), 1340862092: ('0.06308507456616473',), 1340862087: ('0.06308507456616473',), 1340862063: ('0.06308507456616473',), 1340862058: ('0.06308507456616473',), 1340862055: ('0.06308507456616473',), 1340862051: ('0.06308507456616473',)} input_args_next_step : {1340862168: ()} output_args : {1340862168: ('0.06308507456616473',), 1340862163: ('0.06308507456616473',), 1340862144: ('0.06308507456616473',), 1340862092: ('0.06308507456616473',), 1340862087: ('0.06308507456616473',), 1340862063: ('0.06308507456616473',), 1340862058: ('0.06308507456616473',), 1340862055: ('0.06308507456616473',), 1340862051: ('0.06308507456616473',)} args : 1340862168 depend.output_id : 0 input_args_next_step : {1340862168: ('0.06308507456616473',), 1340862163: ()} output_args : {1340862168: ('0.06308507456616473',), 1340862163: ('0.06308507456616473',), 1340862144: ('0.06308507456616473',), 1340862092: ('0.06308507456616473',), 1340862087: ('0.06308507456616473',), 1340862063: ('0.06308507456616473',), 1340862058: ('0.06308507456616473',), 1340862055: ('0.06308507456616473',), 1340862051: ('0.06308507456616473',)} args : 1340862163 depend.output_id : 0 input_args_next_step : {1340862168: ('0.06308507456616473',), 1340862163: ('0.06308507456616473',), 1340862144: ()} output_args : {1340862168: ('0.06308507456616473',), 1340862163: ('0.06308507456616473',), 1340862144: ('0.06308507456616473',), 1340862092: ('0.06308507456616473',), 1340862087: ('0.06308507456616473',), 1340862063: ('0.06308507456616473',), 1340862058: ('0.06308507456616473',), 1340862055: ('0.06308507456616473',), 1340862051: ('0.06308507456616473',)} args : 1340862144 depend.output_id : 0 input_args_next_step : {1340862168: ('0.06308507456616473',), 1340862163: ('0.06308507456616473',), 1340862144: ('0.06308507456616473',), 1340862092: ()} output_args : {1340862168: ('0.06308507456616473',), 1340862163: ('0.06308507456616473',), 1340862144: ('0.06308507456616473',), 1340862092: ('0.06308507456616473',), 1340862087: ('0.06308507456616473',), 1340862063: ('0.06308507456616473',), 1340862058: ('0.06308507456616473',), 1340862055: ('0.06308507456616473',), 1340862051: ('0.06308507456616473',)} args : 1340862092 depend.output_id : 0 input_args_next_step : {1340862168: ('0.06308507456616473',), 1340862163: ('0.06308507456616473',), 1340862144: ('0.06308507456616473',), 1340862092: ('0.06308507456616473',), 1340862087: ()} output_args : {1340862168: ('0.06308507456616473',), 1340862163: ('0.06308507456616473',), 1340862144: ('0.06308507456616473',), 1340862092: ('0.06308507456616473',), 1340862087: ('0.06308507456616473',), 1340862063: ('0.06308507456616473',), 1340862058: ('0.06308507456616473',), 1340862055: ('0.06308507456616473',), 1340862051: ('0.06308507456616473',)} args : 1340862087 depend.output_id : 0 input_args_next_step : {1340862168: ('0.06308507456616473',), 1340862163: ('0.06308507456616473',), 1340862144: ('0.06308507456616473',), 1340862092: ('0.06308507456616473',), 1340862087: ('0.06308507456616473',), 1340862063: ()} output_args : {1340862168: ('0.06308507456616473',), 1340862163: ('0.06308507456616473',), 1340862144: ('0.06308507456616473',), 1340862092: ('0.06308507456616473',), 1340862087: ('0.06308507456616473',), 1340862063: ('0.06308507456616473',), 1340862058: ('0.06308507456616473',), 1340862055: ('0.06308507456616473',), 1340862051: ('0.06308507456616473',)} args : 1340862063 depend.output_id : 0 input_args_next_step : {1340862168: ('0.06308507456616473',), 1340862163: ('0.06308507456616473',), 1340862144: ('0.06308507456616473',), 1340862092: ('0.06308507456616473',), 1340862087: ('0.06308507456616473',), 1340862063: ('0.06308507456616473',), 1340862058: ()} output_args : {1340862168: ('0.06308507456616473',), 1340862163: ('0.06308507456616473',), 1340862144: ('0.06308507456616473',), 1340862092: ('0.06308507456616473',), 1340862087: ('0.06308507456616473',), 1340862063: ('0.06308507456616473',), 1340862058: ('0.06308507456616473',), 1340862055: ('0.06308507456616473',), 1340862051: ('0.06308507456616473',)} args : 1340862058 depend.output_id : 0 input_args_next_step : {1340862168: ('0.06308507456616473',), 1340862163: ('0.06308507456616473',), 1340862144: ('0.06308507456616473',), 1340862092: ('0.06308507456616473',), 1340862087: ('0.06308507456616473',), 1340862063: ('0.06308507456616473',), 1340862058: ('0.06308507456616473',), 1340862055: ()} output_args : {1340862168: ('0.06308507456616473',), 1340862163: ('0.06308507456616473',), 1340862144: ('0.06308507456616473',), 1340862092: ('0.06308507456616473',), 1340862087: ('0.06308507456616473',), 1340862063: ('0.06308507456616473',), 1340862058: ('0.06308507456616473',), 1340862055: ('0.06308507456616473',), 1340862051: ('0.06308507456616473',)} args : 1340862055 depend.output_id : 0 input_args_next_step : {1340862168: ('0.06308507456616473',), 1340862163: ('0.06308507456616473',), 1340862144: ('0.06308507456616473',), 1340862092: ('0.06308507456616473',), 1340862087: ('0.06308507456616473',), 1340862063: ('0.06308507456616473',), 1340862058: ('0.06308507456616473',), 1340862055: ('0.06308507456616473',), 1340862051: ()} output_args : {1340862168: ('0.06308507456616473',), 1340862163: ('0.06308507456616473',), 1340862144: ('0.06308507456616473',), 1340862092: ('0.06308507456616473',), 1340862087: ('0.06308507456616473',), 1340862063: ('0.06308507456616473',), 1340862058: ('0.06308507456616473',), 1340862055: ('0.06308507456616473',), 1340862051: ('0.06308507456616473',)} args : 1340862051 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 : {21023275: [{'kraft': 21023303, 'Teint_Dans_La_Masse': 21023304, 'flou': 21023305, 'Carton_brun': 21023306, 'papier': 21023307, 'Carton_gris': 21023308, 'autre_refus': 21023309, 'mal_croppe': 21023310, 'metal': 21023311, 'plastique': 21023312, 'environnement': 21023313, 'cartonnette': 21023314}]} input_args_next_step : {1340862168: ('0.06308507456616473',), 1340862163: ('0.06308507456616473',), 1340862144: ('0.06308507456616473',), 1340862092: ('0.06308507456616473',), 1340862087: ('0.06308507456616473',), 1340862063: ('0.06308507456616473',), 1340862058: ('0.06308507456616473',), 1340862055: ('0.06308507456616473',), 1340862051: ('0.06308507456616473',), 21023275: ()} output_args : {21023275: [{'kraft': 21023303, 'Teint_Dans_La_Masse': 21023304, 'flou': 21023305, 'Carton_brun': 21023306, 'papier': 21023307, 'Carton_gris': 21023308, 'autre_refus': 21023309, 'mal_croppe': 21023310, 'metal': 21023311, 'plastique': 21023312, 'environnement': 21023313, 'cartonnette': 21023314}]} args : 21023275 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :10, first value : ('0.06308507456616473',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21023275) 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 (1340862168,1340862163,1340862144,1340862092,1340862087,1340862063,1340862058,1340862055,1340862051) Found this number of photos: 9 ##### Call download_photos : nb_thread : 5 begin to download photo : 1340862051 begin to download photo : 1340862058 begin to download photo : 1340862087 begin to download photo : 1340862144 begin to download photo : 1340862168 download finish for photo 1340862058 begin to download photo : 1340862063 download finish for photo 1340862051 begin to download photo : 1340862055 download finish for photo 1340862144 begin to download photo : 1340862163 download finish for photo 1340862087 begin to download photo : 1340862092 download finish for photo 1340862168 download finish for photo 1340862092 download finish for photo 1340862055 download finish for photo 1340862163 download finish for photo 1340862063 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 9 ; length of list_pids : 9 ; length of list_args : 9 results_Auto_P21023275_04-03-2025_20_15_01.pdf 21023303 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=21023303 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340859974: '1741114992_483427_1340859575_b4da42c2d566c3ce38a27936630d36a3_rle_crop_3693568250_0.png'} change filename to text .imagette210233031741115701/ imagette210233031741115701/1741114992_483427_1340859575_b4da42c2d566c3ce38a27936630d36a3_rle_crop_3693568250_0.png.png imagette210233051741115701/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/d1dc51aabd6d41e7c553a36369cc4917_74085587.png imagette210233031741115701 21023305 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=21023305 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette210233051741115701 21023309 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=21023309 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340861445: '1741115213_489451_1340860783_3daf63679337dd27479e5fb3d8a8a9ad_rle_crop_3693571021_0.png', 1340862331: '1741115592_497435_1340861807_29b39c69271c4e644db08cc14fdf2a83_rle_crop_3693575426_0.png', 1340862330: '1741115592_497435_1340861812_2ba55d628c4788f7a8bbca3f81786012_rle_crop_3693575407_0.png', 1340862329: '1741115592_497435_1340861814_d9428e5f0da802ca11b8011e7c1a8c43_rle_crop_3693575392_0.png', 1340862328: '1741115592_497435_1340861819_61940dd50d56890e23f07544a7452bcd_rle_crop_3693575376_0.png', 1340862268: '1741115571_497048_1340861667_1175795873614a3787ce49ba18cf926c_rle_crop_3693575135_0.png', 1340862267: '1741115571_497048_1340861670_4da0d772d101912e79512d91a645977e_rle_crop_3693574985_0.png', 1340862266: '1741115571_497048_1340861670_4da0d772d101912e79512d91a645977e_rle_crop_3693574978_0.png', 1340862265: '1741115571_497048_1340861823_d21508487ed299c357eb2ba5a4d8fbc4_rle_crop_3693574965_0.png', 1340861470: '1741115233_489863_1340860707_6aed2d18393911d387a1d55a998df35d_rle_crop_3693571226_0.png', 1340861469: '1741115233_489863_1340860755_a56b29c9d5bcefffd488a2b9c1faa9c6_rle_crop_3693571202_0.png', 1340861468: '1741115233_489863_1340860764_671138b2c3e14f6738105e7c32c77333_rle_crop_3693571169_0.png', 1340861446: '1741115213_489451_1340859978_0018cf1aab729ca51feee655be4b1313_rle_crop_3693571033_0.png', 1340859952: '1741114992_483427_1340859601_3f807623f3ad7900f803ef3ef942d4bc_rle_crop_3693568242_0.png', 1340861062: '1741115114_485957_1340859794_d8a55d8ae658596988eaa778f672ef94_rle_crop_3693570441_0.png', 1340861061: '1741115114_485957_1340859797_61d37e673c7bfdc591d3f888e1ae688c_rle_crop_3693570331_0.png', 1340861060: '1741115114_485957_1340859925_a5dfbf58b6b65b0e1dc44c79923c6be8_rle_crop_3693570213_0.png', 1340860806: '1741115093_485451_1340859841_640106a4d7e2c897f68451f21890bd32_rle_crop_3693569384_0.png', 1340860804: '1741115093_485451_1340859841_640106a4d7e2c897f68451f21890bd32_rle_crop_3693569380_0.png', 1340860803: '1741115093_485451_1340859846_b202669cac2067fb13ce1459800d2f28_rle_crop_3693569308_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/dbfc2b75530547293bb63bfa66ecdb4f_47956232.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/55ed7d38479e140dc7f99de57cded5a3_56910672.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/1197032b2f2ada15fb7b4665152d502c_7476392.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/ca59d40723a80a9e5e741c7839573ec6_79049198.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/2e1c7fb199177d21ef1956cafec606bb_82291566.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/f74eec32adc3fc755280b4d7ce8322b4_38340654.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/b682c7603251af78d194daf180eace6a_82212614.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/bee6451aa6376281622a38c3d6b510fc_33390185.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/9d96afb4276da685c6cda5d919ac7bfd_30467249.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/074b7d173ff12a8b54ae4710b7e2e5ed_56410066.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/a787dfe2d08a52bad5ec44d0f79afd60_89269844.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/5b922e0efec15e7803916f747c2b117e_27179411.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/7760c44a4c83fb6e5b8c6a4b81085940_84551363.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/e51b3f211b5d02105fae552213cc325d_63325775.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/363ea214a803016f36371b128bdf1077_99003326.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/0fdfca08125fecb9427749f6aeba3c87_71309178.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/207bc2a1cc0bf9395f90f39cf3aa5342_52425564.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/fa3e0164e7772dc4b70fa4b6c321e82e_35195221.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/267a15317ec1c522eab57de55ae747d1_76960011.png change filename to text .imagette210233091741115701/ imagette210233091741115701/1741115571_497048_1340861670_4da0d772d101912e79512d91a645977e_rle_crop_3693574985_0.png.png imagette210233091741115701/1741115592_497435_1340861819_61940dd50d56890e23f07544a7452bcd_rle_crop_3693575376_0.png.png imagette210233091741115701/1741115114_485957_1340859925_a5dfbf58b6b65b0e1dc44c79923c6be8_rle_crop_3693570213_0.png.png imagette210233091741115701/1741115093_485451_1340859841_640106a4d7e2c897f68451f21890bd32_rle_crop_3693569380_0.png.png imagette210233091741115701/1741115093_485451_1340859841_640106a4d7e2c897f68451f21890bd32_rle_crop_3693569384_0.png.png imagette210233091741115701/1741115592_497435_1340861812_2ba55d628c4788f7a8bbca3f81786012_rle_crop_3693575407_0.png.png imagette210233091741115701/1741115093_485451_1340859846_b202669cac2067fb13ce1459800d2f28_rle_crop_3693569308_0.png.png imagette210233091741115701/1741115571_497048_1340861670_4da0d772d101912e79512d91a645977e_rle_crop_3693574978_0.png.png imagette210233091741115701/1741115114_485957_1340859797_61d37e673c7bfdc591d3f888e1ae688c_rle_crop_3693570331_0.png.png imagette210233091741115701/1741115213_489451_1340859978_0018cf1aab729ca51feee655be4b1313_rle_crop_3693571033_0.png.png imagette210233091741115701/1741115592_497435_1340861807_29b39c69271c4e644db08cc14fdf2a83_rle_crop_3693575426_0.png.png imagette210233091741115701/1741114992_483427_1340859601_3f807623f3ad7900f803ef3ef942d4bc_rle_crop_3693568242_0.png.png imagette210233091741115701/1741115571_497048_1340861667_1175795873614a3787ce49ba18cf926c_rle_crop_3693575135_0.png.png imagette210233091741115701/1741115571_497048_1340861823_d21508487ed299c357eb2ba5a4d8fbc4_rle_crop_3693574965_0.png.png imagette210233091741115701/1741115233_489863_1340860755_a56b29c9d5bcefffd488a2b9c1faa9c6_rle_crop_3693571202_0.png.png imagette210233091741115701/1741115233_489863_1340860764_671138b2c3e14f6738105e7c32c77333_rle_crop_3693571169_0.png.png imagette210233091741115701/1741115213_489451_1340860783_3daf63679337dd27479e5fb3d8a8a9ad_rle_crop_3693571021_0.png.png imagette210233091741115701/1741115592_497435_1340861814_d9428e5f0da802ca11b8011e7c1a8c43_rle_crop_3693575392_0.png.png imagette210233091741115701/1741115233_489863_1340860707_6aed2d18393911d387a1d55a998df35d_rle_crop_3693571226_0.png.png imagette210233091741115701/1741115114_485957_1340859794_d8a55d8ae658596988eaa778f672ef94_rle_crop_3693570441_0.png.png imagette210233101741115702/ imagette210233111741115702/ wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/8c70852c361de657c61ae53c48018ad1_38007392.png imagette210233091741115701 21023310 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=21023310 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette210233101741115702 21023311 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=21023311 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette210233111741115702 21023312 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=21023312 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340859971: '1741114992_483427_1340859601_3f807623f3ad7900f803ef3ef942d4bc_rle_crop_3693568235_0.png', 1340859972: '1741114992_483427_1340859575_b4da42c2d566c3ce38a27936630d36a3_rle_crop_3693568249_0.png', 1340859973: '1741114992_483427_1340859569_f1584773b45ce19242f2cfdde473e4f3_rle_crop_3693568267_0.png', 1340861072: '1741115114_485957_1340859797_61d37e673c7bfdc591d3f888e1ae688c_rle_crop_3693570333_0.png', 1340861450: '1741115213_489451_1340860783_3daf63679337dd27479e5fb3d8a8a9ad_rle_crop_3693571007_0.png', 1340861474: '1741115233_489863_1340860755_a56b29c9d5bcefffd488a2b9c1faa9c6_rle_crop_3693571194_0.png', 1340861637: '1741115331_491822_1340861512_defae962d742ca8229220e3513667722_rle_crop_3693571487_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/fcfe8fcfc154980c5b1ca7904c9d9f98_55325089.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/b5a0bd02908b158f62e64377edf34ba6_43340075.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/b65fdae9b5818bb6195044cbcbbddd21_20946802.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/693b862cfe736e904c91155f949397e5_74963961.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/2232a1929358b38e987cdffa776e8149_17864314.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/40d2bd576097439993aebd9ffd44bfd5_9901314.png change filename to text .imagette210233121741115702/ imagette210233121741115702/1741115213_489451_1340860783_3daf63679337dd27479e5fb3d8a8a9ad_rle_crop_3693571007_0.png.png imagette210233121741115702/1741115114_485957_1340859797_61d37e673c7bfdc591d3f888e1ae688c_rle_crop_3693570333_0.png.png imagette210233121741115702/1741114992_483427_1340859569_f1584773b45ce19242f2cfdde473e4f3_rle_crop_3693568267_0.png.png imagette210233121741115702/1741115233_489863_1340860755_a56b29c9d5bcefffd488a2b9c1faa9c6_rle_crop_3693571194_0.png.png imagette210233121741115702/1741115331_491822_1340861512_defae962d742ca8229220e3513667722_rle_crop_3693571487_0.png.png imagette210233121741115702/1741114992_483427_1340859601_3f807623f3ad7900f803ef3ef942d4bc_rle_crop_3693568235_0.png.png imagette210233121741115702/1741114992_483427_1340859575_b4da42c2d566c3ce38a27936630d36a3_rle_crop_3693568249_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/54d14e853e60a12bafcb5c7d0cf7810c_14360120.png imagette210233121741115702 21023314 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=21023314 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340859961: '1741114992_483427_1340859601_3f807623f3ad7900f803ef3ef942d4bc_rle_crop_3693568233_0.png', 1340859962: '1741114992_483427_1340859575_b4da42c2d566c3ce38a27936630d36a3_rle_crop_3693568253_0.png', 1340859963: '1741114992_483427_1340859569_f1584773b45ce19242f2cfdde473e4f3_rle_crop_3693568271_0.png', 1340861471: '1741115233_489863_1340860755_a56b29c9d5bcefffd488a2b9c1faa9c6_rle_crop_3693571193_0.png', 1340862332: '1741115592_497435_1340861814_d9428e5f0da802ca11b8011e7c1a8c43_rle_crop_3693575387_0.png', 1340862333: '1741115592_497435_1340861812_2ba55d628c4788f7a8bbca3f81786012_rle_crop_3693575403_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/c698ee569ef81aa193f0600c9927ab67_43467675.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/b1000de232d364119e92b11d662fc34b_32388733.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/7f22e17c97c7536a3f535aa5ceebb1f3_514270.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/70aacc3983b3ea25ad19d10bbde9e21e_46013979.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/80d39c7d79bf683e6a52d6c9a4bc5ef1_81592340.png change filename to text .imagette210233141741115702/ imagette210233141741115702/1741114992_483427_1340859601_3f807623f3ad7900f803ef3ef942d4bc_rle_crop_3693568233_0.png.png imagette210233141741115702/1741115233_489863_1340860755_a56b29c9d5bcefffd488a2b9c1faa9c6_rle_crop_3693571193_0.png.png imagette210233141741115702/1741115592_497435_1340861812_2ba55d628c4788f7a8bbca3f81786012_rle_crop_3693575403_0.png.png imagette210233141741115702/1741114992_483427_1340859575_b4da42c2d566c3ce38a27936630d36a3_rle_crop_3693568253_0.png.png imagette210233141741115702/1741114992_483427_1340859569_f1584773b45ce19242f2cfdde473e4f3_rle_crop_3693568271_0.png.png imagette210233141741115702/1741115592_497435_1340861814_d9428e5f0da802ca11b8011e7c1a8c43_rle_crop_3693575387_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/82f712c6456c3a4f0e7aec2b930fe655_65548055.png imagette210233141741115702 21023304 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=21023304 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340859948: '1741114992_483427_1340859575_b4da42c2d566c3ce38a27936630d36a3_rle_crop_3693568257_0.png', 1340859949: '1741114992_483427_1340859569_f1584773b45ce19242f2cfdde473e4f3_rle_crop_3693568270_0.png', 1340860799: '1741115093_485451_1340859920_2e6883cbd44102db863478c1b7b98c32_rle_crop_3693569284_0.png', 1340860800: '1741115093_485451_1340859846_b202669cac2067fb13ce1459800d2f28_rle_crop_3693569303_0.png', 1340861055: '1741115114_485957_1340859925_a5dfbf58b6b65b0e1dc44c79923c6be8_rle_crop_3693570215_0.png', 1340861056: '1741115114_485957_1340859797_61d37e673c7bfdc591d3f888e1ae688c_rle_crop_3693570325_0.png', 1340861057: '1741115114_485957_1340859794_d8a55d8ae658596988eaa778f672ef94_rle_crop_3693570437_0.png', 1340861058: '1741115114_485957_1340859794_d8a55d8ae658596988eaa778f672ef94_rle_crop_3693570433_0.png', 1340861059: '1741115114_485957_1340859794_d8a55d8ae658596988eaa778f672ef94_rle_crop_3693570438_0.png', 1340861443: '1741115213_489451_1340860783_3daf63679337dd27479e5fb3d8a8a9ad_rle_crop_3693571012_0.png', 1340862260: '1741115571_497048_1340861823_d21508487ed299c357eb2ba5a4d8fbc4_rle_crop_3693574963_0.png', 1340862322: '1741115592_497435_1340861819_61940dd50d56890e23f07544a7452bcd_rle_crop_3693575378_0.png', 1340862323: '1741115592_497435_1340861814_d9428e5f0da802ca11b8011e7c1a8c43_rle_crop_3693575395_0.png', 1340862324: '1741115592_497435_1340861814_d9428e5f0da802ca11b8011e7c1a8c43_rle_crop_3693575390_0.png', 1340862325: '1741115592_497435_1340861812_2ba55d628c4788f7a8bbca3f81786012_rle_crop_3693575401_0.png', 1340862326: '1741115592_497435_1340861812_2ba55d628c4788f7a8bbca3f81786012_rle_crop_3693575404_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/dd6b3383f83efd975f6a81c180c692a7_62561489.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/fd191cf9ac0328fd58b410e501baca18_48724115.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/73c608e1bf157ed19794c5dd99ee0c39_31777413.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/a66d08fdd2a6d1708c96dbb8933d18e3_36907932.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/cc50a86ff844bb59da94fd55da7fb94b_48926453.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/b3f5316ca3bfdf44877eb936279e0ef2_36337192.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/0bd8e427340e81c3f74b608b57855b81_52456652.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/9143c66e93033fa46dcfccd512e6a5cc_91339927.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/09281bc35a9fe67cb9e2a468e1e27563_19988373.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/8eeb099555b71a3c60c92ba5dfeb5866_34110044.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/4ec8ec3f8623ae2a3b8bf4509d86faa9_30381302.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/be0b15a0399ccd2765c34244c510564a_96804788.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/e0f3d3588747ed5fa19099b2a218ccd1_77033448.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/83916d44f867ef1eee80b575ebab9cde_57003671.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/1c92920f8db9b5a7d20dee6352e5dc08_38232624.png change filename to text .imagette210233041741115703/ imagette210233041741115703/1741115093_485451_1340859846_b202669cac2067fb13ce1459800d2f28_rle_crop_3693569303_0.png.png imagette210233041741115703/1741115592_497435_1340861814_d9428e5f0da802ca11b8011e7c1a8c43_rle_crop_3693575395_0.png.png imagette210233041741115703/1741115114_485957_1340859794_d8a55d8ae658596988eaa778f672ef94_rle_crop_3693570437_0.png.png imagette210233041741115703/1741115114_485957_1340859797_61d37e673c7bfdc591d3f888e1ae688c_rle_crop_3693570325_0.png.png imagette210233041741115703/1741115571_497048_1340861823_d21508487ed299c357eb2ba5a4d8fbc4_rle_crop_3693574963_0.png.png imagette210233041741115703/1741115114_485957_1340859794_d8a55d8ae658596988eaa778f672ef94_rle_crop_3693570438_0.png.png imagette210233041741115703/1741115592_497435_1340861814_d9428e5f0da802ca11b8011e7c1a8c43_rle_crop_3693575390_0.png.png imagette210233041741115703/1741114992_483427_1340859575_b4da42c2d566c3ce38a27936630d36a3_rle_crop_3693568257_0.png.png imagette210233041741115703/1741115213_489451_1340860783_3daf63679337dd27479e5fb3d8a8a9ad_rle_crop_3693571012_0.png.png imagette210233041741115703/1741115592_497435_1340861812_2ba55d628c4788f7a8bbca3f81786012_rle_crop_3693575404_0.png.png imagette210233041741115703/1741115114_485957_1340859925_a5dfbf58b6b65b0e1dc44c79923c6be8_rle_crop_3693570215_0.png.png imagette210233041741115703/1741114992_483427_1340859569_f1584773b45ce19242f2cfdde473e4f3_rle_crop_3693568270_0.png.png imagette210233041741115703/1741115592_497435_1340861812_2ba55d628c4788f7a8bbca3f81786012_rle_crop_3693575401_0.png.png imagette210233041741115703/1741115592_497435_1340861819_61940dd50d56890e23f07544a7452bcd_rle_crop_3693575378_0.png.png imagette210233041741115703/1741115114_485957_1340859794_d8a55d8ae658596988eaa778f672ef94_rle_crop_3693570433_0.png.png imagette210233041741115703/1741115093_485451_1340859920_2e6883cbd44102db863478c1b7b98c32_rle_crop_3693569284_0.png.png wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/594a9032f2193632416522fd3b5457f1_43015119.png imagette210233041741115703 21023306 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=21023306 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340859965: '1741114992_483427_1340859601_3f807623f3ad7900f803ef3ef942d4bc_rle_crop_3693568237_0.png', 1340859966: '1741114992_483427_1340859575_b4da42c2d566c3ce38a27936630d36a3_rle_crop_3693568255_0.png', 1340859967: '1741114992_483427_1340859569_f1584773b45ce19242f2cfdde473e4f3_rle_crop_3693568273_0.png', 1340859968: '1741114992_483427_1340859566_a68ce1c203e7cf886499c30e4ea11cff_rle_crop_3693568283_0.png', 1340861472: '1741115233_489863_1340860707_6aed2d18393911d387a1d55a998df35d_rle_crop_3693571224_0.png', 1340862270: '1741115571_497048_1340861667_1175795873614a3787ce49ba18cf926c_rle_crop_3693575131_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/03e04c8af5b4708e5662569198b38220_33340602.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/92c4ef0575903c6c529206e9fe6c0ea2_65610939.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/0c203874133d700c5504c276969251a6_6623737.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/bc0fe85d3f5d3fa659b76d86e7687299_55127480.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/656216bd95b3f0971be6d0f0d5eae96b_20056186.png change filename to text .imagette210233061741115704/ imagette210233061741115704/1741114992_483427_1340859601_3f807623f3ad7900f803ef3ef942d4bc_rle_crop_3693568237_0.png.png imagette210233061741115704/1741115571_497048_1340861667_1175795873614a3787ce49ba18cf926c_rle_crop_3693575131_0.png.png imagette210233061741115704/1741114992_483427_1340859566_a68ce1c203e7cf886499c30e4ea11cff_rle_crop_3693568283_0.png.png imagette210233061741115704/1741115233_489863_1340860707_6aed2d18393911d387a1d55a998df35d_rle_crop_3693571224_0.png.png imagette210233061741115704/1741114992_483427_1340859569_f1584773b45ce19242f2cfdde473e4f3_rle_crop_3693568273_0.png.png imagette210233061741115704/1741114992_483427_1340859575_b4da42c2d566c3ce38a27936630d36a3_rle_crop_3693568255_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/01b4b73d08056f2a447396e755510445_90748783.png imagette210233061741115704 21023308 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=21023308 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340859958: '1741114992_483427_1340859563_72942ee8db5c574d40c6372957396a95_rle_crop_3693568298_0.png', 1340859959: '1741114992_483427_1340859563_72942ee8db5c574d40c6372957396a95_rle_crop_3693568296_0.png', 1340859960: '1741114992_483427_1340859563_72942ee8db5c574d40c6372957396a95_rle_crop_3693568299_0.png', 1340860837: '1741115093_485451_1340859841_640106a4d7e2c897f68451f21890bd32_rle_crop_3693569382_0.png', 1340861448: '1741115213_489451_1340860783_3daf63679337dd27479e5fb3d8a8a9ad_rle_crop_3693571013_0.png', 1340861632: '1741115331_491822_1340861512_defae962d742ca8229220e3513667722_rle_crop_3693571485_0.png', 1340861633: '1741115331_491822_1340861512_defae962d742ca8229220e3513667722_rle_crop_3693571486_0.png', 1340861634: '1741115331_491822_1340861074_0daaceadd5c7c0f1e36b0489393f0433_rle_crop_3693571508_0.png', 1340861635: '1741115331_491822_1340861074_0daaceadd5c7c0f1e36b0489393f0433_rle_crop_3693571505_0.png', 1340862269: '1741115571_497048_1340861670_4da0d772d101912e79512d91a645977e_rle_crop_3693574979_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/9120e8221e60aa4ec84e9bf2662e2588_94432340.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/46d79d70824b26376b213942cc948dd5_18527453.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/b7792b5fa05ba8f3fde72f9210b4d38f_66100230.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/9a53ca643f44a2a1a14f4c3286436c28_7783561.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/ed72bef8ab5b9050e99982dc6ca50539_96842058.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/37f11e5715ad2b65e4fd53f8f18b7b62_64959360.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/61820d1d10890a4b1b27a9816459ce17_72649057.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/6810004f9002dc2354459e6307a10d17_29990356.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/d1d787c038831f97db449ee123271ac0_16373126.png change filename to text .imagette210233081741115704/ imagette210233081741115704/1741115331_491822_1340861074_0daaceadd5c7c0f1e36b0489393f0433_rle_crop_3693571505_0.png.png imagette210233081741115704/1741115331_491822_1340861512_defae962d742ca8229220e3513667722_rle_crop_3693571486_0.png.png imagette210233081741115704/1741115571_497048_1340861670_4da0d772d101912e79512d91a645977e_rle_crop_3693574979_0.png.png imagette210233081741115704/1741114992_483427_1340859563_72942ee8db5c574d40c6372957396a95_rle_crop_3693568298_0.png.png imagette210233081741115704/1741114992_483427_1340859563_72942ee8db5c574d40c6372957396a95_rle_crop_3693568299_0.png.png imagette210233081741115704/1741115213_489451_1340860783_3daf63679337dd27479e5fb3d8a8a9ad_rle_crop_3693571013_0.png.png imagette210233081741115704/1741115331_491822_1340861512_defae962d742ca8229220e3513667722_rle_crop_3693571485_0.png.png imagette210233081741115704/1741115331_491822_1340861074_0daaceadd5c7c0f1e36b0489393f0433_rle_crop_3693571508_0.png.png imagette210233081741115704/1741115093_485451_1340859841_640106a4d7e2c897f68451f21890bd32_rle_crop_3693569382_0.png.png imagette210233081741115704/1741114992_483427_1340859563_72942ee8db5c574d40c6372957396a95_rle_crop_3693568296_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/2728e2d8f22008c5480cf97b9d39fe96_11486827.png imagette210233081741115704 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21023275 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21023315,21023316,21023317,21023318,21023319,21023320,21023321,21023322,21023323,21023324,21023325,21023326?tags=kraft,Teint_Dans_La_Masse,flou,Carton_brun,papier,Carton_gris,autre_refus,mal_croppe,metal,plastique,environnement,cartonnette your option no_mail is active, we will not send the real mail to your client args[1340862168] : ('0.06308507456616473',) no score found for photo 1340862168 We are sending mail with results at report@fotonower.com args[1340862163] : ('0.06308507456616473',) no score found for photo 1340862163 We are sending mail with results at report@fotonower.com args[1340862144] : ('0.06308507456616473',) no score found for photo 1340862144 We are sending mail with results at report@fotonower.com args[1340862092] : ('0.06308507456616473',) no score found for photo 1340862092 We are sending mail with results at report@fotonower.com args[1340862087] : ('0.06308507456616473',) no score found for photo 1340862087 We are sending mail with results at report@fotonower.com args[1340862063] : ('0.06308507456616473',) no score found for photo 1340862063 We are sending mail with results at report@fotonower.com args[1340862058] : ('0.06308507456616473',) no score found for photo 1340862058 We are sending mail with results at report@fotonower.com args[1340862055] : ('0.06308507456616473',) no score found for photo 1340862055 We are sending mail with results at report@fotonower.com args[1340862051] : ('0.06308507456616473',) no score found for photo 1340862051 We are sending mail with results at report@fotonower.com refus_total : 0.06308507456616473 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=21023275 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_P21023275_04-03-2025_20_15_01.pdf results_Auto_P21023275_04-03-2025_20_15_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21023275_04-03-2025_20_15_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','21023275','results_Auto_P21023275_04-03-2025_20_15_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21023275_04-03-2025_20_15_01.pdf','pdf','','0.27','0.06308507456616473') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21023275]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1340862168, 1340862163, 1340862144, 1340862092, 1340862087, 1340862063, 1340862058, 1340862055, 1340862051] map_info['map_portfolio_photo'] : {21023275: [1340862168, 1340862163, 1340862144, 1340862092, 1340862087, 1340862063, 1340862058, 1340862055, 1340862051, 1340861823, 1340861819, 1340861814, 1340861812, 1340861807, 1340861672, 1340861670, 1340861667, 1340861512, 1340861078, 1340861074, 1340860783, 1340860764, 1340860755, 1340860707, 1340859991, 1340859987, 1340859978, 1340859925, 1340859920, 1340859846, 1340859841, 1340859806, 1340859799, 1340859797, 1340859794, 1340859601, 1340859575, 1340859569, 1340859566, 1340859563]} final : False mtd_id 4302 list_pids : [1340862168, 1340862163, 1340862144, 1340862092, 1340862087, 1340862063, 1340862058, 1340862055, 1340862051] 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, '2633894') ('4302', '21023275', '1340862168', None, None, None, None, None, '2633894') ('4302', None, None, None, None, None, None, None, '2633894') ('4302', '21023275', '1340862163', None, None, None, None, None, '2633894') ('4302', None, None, None, None, None, None, None, '2633894') ('4302', '21023275', '1340862144', None, None, None, None, None, '2633894') ('4302', None, None, None, None, None, None, None, '2633894') ('4302', '21023275', '1340862092', None, None, None, None, None, '2633894') ('4302', None, None, None, None, None, None, None, '2633894') ('4302', '21023275', '1340862087', None, None, None, None, None, '2633894') ('4302', None, None, None, None, None, None, None, '2633894') ('4302', '21023275', '1340862063', None, None, None, None, None, '2633894') ('4302', None, None, None, None, None, None, None, '2633894') ('4302', '21023275', '1340862058', None, None, None, None, None, '2633894') ('4302', None, None, None, None, None, None, None, '2633894') ('4302', '21023275', '1340862055', None, None, None, None, None, '2633894') ('4302', None, None, None, None, None, None, None, '2633894') ('4302', '21023275', '1340862051', None, None, None, None, None, '2633894') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21023275', '1340862168', None, None, None, None, None, '2633894'), ('4302', '21023275', '1340862163', None, None, None, None, None, '2633894'), ('4302', '21023275', '1340862144', None, None, None, None, None, '2633894'), ('4302', '21023275', '1340862092', None, None, None, None, None, '2633894'), ('4302', '21023275', '1340862087', None, None, None, None, None, '2633894'), ('4302', '21023275', '1340862063', None, None, None, None, None, '2633894'), ('4302', '21023275', '1340862058', None, None, None, None, None, '2633894'), ('4302', '21023275', '1340862055', None, None, None, None, None, '2633894'), ('4302', '21023275', '1340862051', None, None, None, None, None, '2633894')] time used for this insertion : 0.25544142723083496 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.764063358306885 time spend to save output : 0.25582289695739746 total time spend for step 4 : 6.019886255264282 step5:split_time_score Tue Mar 4 20:15:06 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['21023275'] 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 : [('21023275',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21023275) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1340862168: {'path': 'temp/1741115700_1389858_1340862168_b2c90db2b893954750c36bc7a9e541f6.jpg', 'extension': 'jpg'}, 1340862087: {'path': 'temp/1741115700_1389858_1340862087_e217aba4dbc474deffce6887a426bfe2.jpg', 'extension': 'jpg'}, 1340862092: {'path': 'temp/1741115700_1389858_1340862092_96f2dc2fa4b116dffb1840a9397b93f4.jpg', 'extension': 'jpg'}, 1340862051: {'path': 'temp/1741115700_1389858_1340862051_3591178ff85c4ff7dd109478f5b17ce1.jpg', 'extension': 'jpg'}, 1340862055: {'path': 'temp/1741115700_1389858_1340862055_1a5a604f3be2437cb67c4d0c808ad0c0.jpg', 'extension': 'jpg'}, 1340862144: {'path': 'temp/1741115700_1389858_1340862144_7d0181ed336ca0244bbe2a76c74afc3b.jpg', 'extension': 'jpg'}, 1340862163: {'path': 'temp/1741115700_1389858_1340862163_53890e6e988618fff0694e045f286445.jpg', 'extension': 'jpg'}, 1340862058: {'path': 'temp/1741115700_1389858_1340862058_47670cd846c8d4a3b86a54e610e81a6c.jpg', 'extension': 'jpg'}, 1340862063: {'path': 'temp/1741115700_1389858_1340862063_0df347a34b2de7d8e400368a19aea1ae.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 = 21023275; (('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 = 21023275 group by h (('20', 40),) 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=21023275 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 (21023275) 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 (21023275) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 04032025 21023275 Nombre de photos uploadées : 40 / 23040 (0%) 04032025 21023275 Nombre de photos taguées (types de déchets): 0 / 40 (0%) 04032025 21023275 Nombre de photos taguées (volume) : 0 / 40 (0%) [{'photo_id': 1340859601, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/3f807623f3ad7900f803ef3ef942d4bc.jpg', 'username': None, 'uploaded_at': 1741114882, 'text': 'image_04032025_20_00_04_10136.jpg'}, {'photo_id': 1340859575, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/b4da42c2d566c3ce38a27936630d36a3.jpg', 'username': None, 'uploaded_at': 1741114882, 'text': 'image_04032025_20_00_14_10135.jpg'}, {'photo_id': 1340859569, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/f1584773b45ce19242f2cfdde473e4f3.jpg', 'username': None, 'uploaded_at': 1741114882, 'text': 'image_04032025_20_00_24_10136.jpg'}, {'photo_id': 1340859566, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/a68ce1c203e7cf886499c30e4ea11cff.jpg', 'username': None, 'uploaded_at': 1741114882, 'text': 'image_04032025_20_00_33_9128.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 5.245208740234375e-06 ???????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0018990039825439453 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21023275, '2025-03-04' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1636376,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.024086475372314453 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= 1636376 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1636376, 'dashboard_run_id': 1646351, 'mtr_portfolio_id': 21021913, 'dashboard_result_id': 9204347, '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_P21021913_04-03-2025_19_32_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21021915, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21021916, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21021917, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21021918, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21021919, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21021920, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21021921, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21021922, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21021923, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21021924, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21021925, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21021926, 'pht': 3726}}"}, {'dashboat_entry_day': 1636376, 'dashboard_run_id': 1646351, 'mtr_portfolio_id': 21022471, 'dashboard_result_id': 9204348, '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_P21022471_04-03-2025_19_51_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21022473, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21022474, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21022475, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21022476, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21022477, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21022478, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21022479, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21022480, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21022481, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21022482, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21022483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21022484, 'pht': 3726}}"}, {'dashboat_entry_day': 1636376, 'dashboard_run_id': 1646351, 'mtr_portfolio_id': 21022697, 'dashboard_result_id': 9204349, '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_P21022697_04-03-2025_20_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21022713, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21022714, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21022715, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21022716, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21022717, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21022718, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21022719, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21022720, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21022721, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21022722, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21022723, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21022724, 'pht': 3726}}"}, {'dashboat_entry_day': 1636376, 'dashboard_run_id': 1646351, 'mtr_portfolio_id': 21023275, 'dashboard_result_id': 9204350, '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_P21023275_04-03-2025_20_13_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21023303, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21023304, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21023305, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21023306, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21023307, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21023308, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21023309, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21023310, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21023311, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21023312, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21023313, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21023314, '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 = 21021913 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': 2633789, 'mtr_portfolio_id': 21021913, 'created_at': datetime.datetime(2025, 3, 4, 19, 32, 31), 'result': '0.0904682664363301', 'result_long': None, 'result_double': None}] Qualite : 0.0904682664363301 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21021913 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21021913_04-03-2025_19_32_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21021913 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_P21021913_04-03-2025_19_32_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21021915, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21021916, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21021917, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21021918, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21021919, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21021920, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21021921, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21021922, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21021923, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21021924, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21021925, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21021926, 'pht': 3726}}" where mtr_portfolio_id = 21021913 and dashboard_run_id = 1646351 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`=21021913 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9204347, 0.0904682664363301, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21021913_04-03-2025_19_32_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21021915, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21021916, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21021917, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21021918, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21021919, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21021920, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21021921, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21021922, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21021923, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21021924, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21021925, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21021926, '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 = 21022471 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': 2633826, 'mtr_portfolio_id': 21022471, 'created_at': datetime.datetime(2025, 3, 4, 19, 51), 'result': '0.06306359321489688', 'result_long': None, 'result_double': None}] Qualite : 0.06306359321489688 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21022471 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21022471_04-03-2025_19_51_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21022471 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_P21022471_04-03-2025_19_51_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21022473, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21022474, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21022475, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21022476, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21022477, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21022478, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21022479, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21022480, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21022481, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21022482, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21022483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21022484, 'pht': 3726}}" where mtr_portfolio_id = 21022471 and dashboard_run_id = 1646351 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`=21022471 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9204348, 0.06306359321489688, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21022471_04-03-2025_19_51_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21022473, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21022474, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21022475, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21022476, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21022477, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21022478, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21022479, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21022480, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21022481, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21022482, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21022483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21022484, '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 = 21022697 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': 2633844, 'mtr_portfolio_id': 21022697, 'created_at': datetime.datetime(2025, 3, 4, 20, 3), 'result': '0.06812974621925094', 'result_long': None, 'result_double': None}] Qualite : 0.06812974621925094 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21022697 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21022697_04-03-2025_20_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21022697 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_P21022697_04-03-2025_20_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21022713, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21022714, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21022715, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21022716, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21022717, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21022718, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21022719, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21022720, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21022721, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21022722, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21022723, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21022724, 'pht': 3726}}" where mtr_portfolio_id = 21022697 and dashboard_run_id = 1646351 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`=21022697 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9204349, 0.06812974621925094, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21022697_04-03-2025_20_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21022713, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21022714, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21022715, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21022716, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21022717, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21022718, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21022719, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21022720, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21022721, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21022722, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21022723, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21022724, '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 = 21023275 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': 2633894, 'mtr_portfolio_id': 21023275, 'created_at': datetime.datetime(2025, 3, 4, 20, 15), 'result': '0.06308507456616473', 'result_long': None, 'result_double': None}] Qualite : 0.06308507456616473 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21023275 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21023275_04-03-2025_20_15_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21023275 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_P21023275_04-03-2025_20_15_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21023303, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21023304, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21023305, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21023306, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21023307, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21023308, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21023309, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21023310, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21023311, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21023312, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21023313, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21023314, 'pht': 3726}}" where mtr_portfolio_id = 21023275 and dashboard_run_id = 1646351 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`=21023275 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9204350, 0.06308507456616473, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21023275_04-03-2025_20_15_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21023303, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21023304, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21023305, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21023306, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21023307, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21023308, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21023309, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21023310, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21023311, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21023312, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21023313, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21023314, '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 (21021913,21022471,21022697,21023275) result : ((1340852049,), (1340852056,), (1340852114,), (1340852121,), (1340852158,), (1340852165,), (1340852170,), (1340852174,), (1340852178,), (1340852183,), (1340852243,), (1340852641,), (1340853034,), (1340853517,), (1340853562,), (1340853567,), (1340853574,), (1340853580,), (1340853583,), (1340853671,), (1340853656,), (1340853668,), (1340853856,), (1340853908,), (1340853967,), (1340854570,), (1340854579,), (1340854582,), (1340854911,), (1340854935,), (1340854938,), (1340854942,), (1340854947,), (1340855193,), (1340855198,), (1340855230,), (1340857349,), (1340856841,), (1340857079,), (1340857890,), (1340857893,), (1340857896,), (1340857902,), (1340857908,), (1340858242,), (1340858254,), (1340858260,), (1340858265,), (1340858268,), (1340858290,), (1340858293,), (1340858301,), (1340858308,), (1340858541,), (1340858545,), (1340858548,), (1340858603,), (1340858611,), (1340858734,), (1340858742,), (1340858774,), (1340858788,), (1340858794,), (1340858798,), (1340858819,), (1340858824,), (1340858827,), (1340858832,), (1340858874,), (1340858892,), (1340858896,), (1340858903,), (1340859153,), (1340859157,), (1340859160,), (1340859165,), (1340859233,), (1340859245,), (1340859251,), (1340859281,), (1340859283,), (1340859286,), (1340859292,), (1340859298,), (1340859303,), (1340859503,), (1340859509,), (1340859517,), (1340859523,), (1340859527,), (1340859535,), (1340859540,), (1340859544,), (1340859547,), (1340859678,), (1340859563,), (1340859566,), (1340859569,), (1340859575,), (1340859601,), (1340859794,), (1340859797,), (1340859799,), (1340859806,), (1340859841,), (1340859846,), (1340859920,), (1340859925,), (1340859978,), (1340859987,), (1340859991,), (1340860707,), (1340860755,), (1340860764,), (1340860783,), (1340861074,), (1340861078,), (1340861512,), (1340861667,), (1340861670,), (1340861672,), (1340861807,), (1340861812,), (1340861814,), (1340861819,), (1340861823,), (1340862051,), (1340862055,), (1340862058,), (1340862063,), (1340862087,), (1340862092,), (1340862144,), (1340862163,), (1340862168,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'04032025': {'nb_upload': 40, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21023275]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1340862168, 1340862163, 1340862144, 1340862092, 1340862087, 1340862063, 1340862058, 1340862055, 1340862051] map_info['map_portfolio_photo'] : {21023275: [1340862168, 1340862163, 1340862144, 1340862092, 1340862087, 1340862063, 1340862058, 1340862055, 1340862051, 1340861823, 1340861819, 1340861814, 1340861812, 1340861807, 1340861672, 1340861670, 1340861667, 1340861512, 1340861078, 1340861074, 1340860783, 1340860764, 1340860755, 1340860707, 1340859991, 1340859987, 1340859978, 1340859925, 1340859920, 1340859846, 1340859841, 1340859806, 1340859799, 1340859797, 1340859794, 1340859601, 1340859575, 1340859569, 1340859566, 1340859563]} final : True mtd_id 4302 list_pids : [1340862168, 1340862163, 1340862144, 1340862092, 1340862087, 1340862063, 1340862058, 1340862055, 1340862051] Looping around the photos to save general results len do output : 1 /21023275Didn'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, '2633894') ('4302', '21023275', '1340862168', None, None, None, None, None, '2633894') ('4302', None, None, None, None, None, None, None, '2633894') ('4302', '21023275', '1340862163', None, None, None, None, None, '2633894') ('4302', None, None, None, None, None, None, None, '2633894') ('4302', '21023275', '1340862144', None, None, None, None, None, '2633894') ('4302', None, None, None, None, None, None, None, '2633894') ('4302', '21023275', '1340862092', None, None, None, None, None, '2633894') ('4302', None, None, None, None, None, None, None, '2633894') ('4302', '21023275', '1340862087', None, None, None, None, None, '2633894') ('4302', None, None, None, None, None, None, None, '2633894') ('4302', '21023275', '1340862063', None, None, None, None, None, '2633894') ('4302', None, None, None, None, None, None, None, '2633894') ('4302', '21023275', '1340862058', None, None, None, None, None, '2633894') ('4302', None, None, None, None, None, None, None, '2633894') ('4302', '21023275', '1340862055', None, None, None, None, None, '2633894') ('4302', None, None, None, None, None, None, None, '2633894') ('4302', '21023275', '1340862051', None, None, None, None, None, '2633894') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21023275', 'None', None, None, None, None, '2633894'), ('4302', '21023275', '1340862168', None, None, None, None, None, '2633894'), ('4302', '21023275', '1340862163', None, None, None, None, None, '2633894'), ('4302', '21023275', '1340862144', None, None, None, None, None, '2633894'), ('4302', '21023275', '1340862092', None, None, None, None, None, '2633894'), ('4302', '21023275', '1340862087', None, None, None, None, None, '2633894'), ('4302', '21023275', '1340862063', None, None, None, None, None, '2633894'), ('4302', '21023275', '1340862058', None, None, None, None, None, '2633894'), ('4302', '21023275', '1340862055', None, None, None, None, None, '2633894'), ('4302', '21023275', '1340862051', None, None, None, None, None, '2633894')] time used for this insertion : 0.013194561004638672 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.33751344680786133 time spend to save output : 0.013411760330200195 total time spend for step 5 : 0.3509252071380615 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 (2633894) 2.20user 2.35system 0:11.64elapsed 39%CPU (0avgtext+0avgdata 160844maxresident)k 0inputs+13904outputs (4major+88136minor)pagefaults 0swaps