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 : 2419515 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 (2592515) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2592515) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20599330 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2592515'] with mtr_portfolio_ids : ['20599330'] and first list_photo_ids : [] new path : /proc/2419515/ Name: python3 Umask: 0002 State: R (running) Tgid: 2419515 Ngid: 0 Pid: 2419515 PPid: 2419510 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2419515 NSpid: 2419515 NSpgid: 2413927 NSsid: 2413927 VmPeak: 1106932 kB VmSize: 1106932 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99152 kB VmRSS: 99152 kB RssAnon: 59760 kB RssFile: 39392 kB RssShmem: 0 kB VmData: 865684 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 588 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 53 nonvoluntary_ctxt_switches: 111 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2419515', 'Ngid': '0', 'Pid': '2419515', 'PPid': '2419510', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2419515', 'NSpid': '2419515', 'NSpgid': '2413927', 'NSsid': '2413927', 'VmPeak': '1106932 kB', 'VmSize': '1106932 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99152 kB', 'VmRSS': '99152 kB', 'RssAnon': '59760 kB', 'RssFile': '39392 kB', 'RssShmem': '0 kB', 'VmData': '865684 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '588 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '53', 'nonvoluntary_ctxt_switches': '111'} ('datou_batch_current', '2419515', '1106932', '0', '1106932', '865684', '99152', b'', 'marlene', '2592515') 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 (20599330) 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 (2592515 ) ) 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 (20599330) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1338123530, 'portfolio_id': 20599330}, {'photo_id': 1338123524, 'portfolio_id': 20599330}, {'photo_id': 1338123517, 'portfolio_id': 20599330}, {'photo_id': 1338123510, 'portfolio_id': 20599330}, {'photo_id': 1338123505, 'portfolio_id': 20599330}, {'photo_id': 1338123500, 'portfolio_id': 20599330}, {'photo_id': 1338123464, 'portfolio_id': 20599330}, {'photo_id': 1338123462, 'portfolio_id': 20599330}, {'photo_id': 1338123459, 'portfolio_id': 20599330}, {'photo_id': 1338123456, 'portfolio_id': 20599330}, {'photo_id': 1338123423, 'portfolio_id': 20599330}, {'photo_id': 1338123422, 'portfolio_id': 20599330}, {'photo_id': 1338123419, 'portfolio_id': 20599330}, {'photo_id': 1338123416, 'portfolio_id': 20599330}, {'photo_id': 1338123414, 'portfolio_id': 20599330}, {'photo_id': 1338123361, 'portfolio_id': 20599330}, {'photo_id': 1338123358, 'portfolio_id': 20599330}, {'photo_id': 1338123352, 'portfolio_id': 20599330}, {'photo_id': 1338123265, 'portfolio_id': 20599330}, {'photo_id': 1338123243, 'portfolio_id': 20599330}, {'photo_id': 1338123240, 'portfolio_id': 20599330}, {'photo_id': 1338123239, 'portfolio_id': 20599330}, {'photo_id': 1338123183, 'portfolio_id': 20599330}, {'photo_id': 1338123182, 'portfolio_id': 20599330}, {'photo_id': 1338123148, 'portfolio_id': 20599330}, {'photo_id': 1338123146, 'portfolio_id': 20599330}, {'photo_id': 1338123052, 'portfolio_id': 20599330}, {'photo_id': 1338123050, 'portfolio_id': 20599330}, {'photo_id': 1338123048, 'portfolio_id': 20599330}, {'photo_id': 1338122986, 'portfolio_id': 20599330}, {'photo_id': 1338122983, 'portfolio_id': 20599330}, {'photo_id': 1338122981, 'portfolio_id': 20599330}, {'photo_id': 1338122935, 'portfolio_id': 20599330}, {'photo_id': 1338122930, 'portfolio_id': 20599330}, {'photo_id': 1338122894, 'portfolio_id': 20599330}, {'photo_id': 1338122891, 'portfolio_id': 20599330}, {'photo_id': 1338122888, 'portfolio_id': 20599330}, {'photo_id': 1338122884, 'portfolio_id': 20599330}, {'photo_id': 1338122853, 'portfolio_id': 20599330}, {'photo_id': 1338122848, 'portfolio_id': 20599330}, {'photo_id': 1338122842, 'portfolio_id': 20599330}, {'photo_id': 1338122839, 'portfolio_id': 20599330}, {'photo_id': 1338122742, 'portfolio_id': 20599330}, {'photo_id': 1338122739, 'portfolio_id': 20599330}, {'photo_id': 1338122736, 'portfolio_id': 20599330}, {'photo_id': 1338122733, 'portfolio_id': 20599330}] map_portfolio_id_photo_id: {20599330: [1338123530, 1338123524, 1338123517, 1338123510, 1338123505, 1338123500, 1338123464, 1338123462, 1338123459, 1338123456, 1338123423, 1338123422, 1338123419, 1338123416, 1338123414, 1338123361, 1338123358, 1338123352, 1338123265, 1338123243, 1338123240, 1338123239, 1338123183, 1338123182, 1338123148, 1338123146, 1338123052, 1338123050, 1338123048, 1338122986, 1338122983, 1338122981, 1338122935, 1338122930, 1338122894, 1338122891, 1338122888, 1338122884, 1338122853, 1338122848, 1338122842, 1338122839, 1338122742, 1338122739, 1338122736, 1338122733]} ##### 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 : 2.686685562133789 #### 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 Mon Feb 17 09:01:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20599330) 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 : 20599330 get user id for portfolio 20599330 get sub ptf for main ptf 20599330, type 3726 and hashtags ['flou', 'autre_refus', 'kraft', 'mal_croppe', 'plastique', 'cartonnette', 'Carton_gris', 'papier', 'Teint_Dans_La_Masse', 'Carton_brun', 'environnement', 'metal'] 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`=20599330 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','autre_refus','kraft','mal_croppe','plastique','cartonnette','Carton_gris','papier','Teint_Dans_La_Masse','Carton_brun','environnement','metal')) 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`=20599330 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','autre_refus','kraft','mal_croppe','plastique','cartonnette','Carton_gris','papier','Teint_Dans_La_Masse','Carton_brun','environnement','metal')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 20599330, 'sub_port_id': 20599334, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13257393, 'last_updated_at': datetime.datetime(2025, 2, 17, 8, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 8, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 8, 48, 56)}, 'Carton_brun': {'main_port_id': 20599330, 'sub_port_id': 20599335, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13257394, 'last_updated_at': datetime.datetime(2025, 2, 17, 8, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 8, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 8, 48, 56)}, 'Carton_gris': {'main_port_id': 20599330, 'sub_port_id': 20599336, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13257395, 'last_updated_at': datetime.datetime(2025, 2, 17, 8, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 8, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 8, 48, 56)}, 'cartonnette': {'main_port_id': 20599330, 'sub_port_id': 20599337, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13257396, 'last_updated_at': datetime.datetime(2025, 2, 17, 8, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 8, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 8, 48, 56)}, 'autre_refus': {'main_port_id': 20599330, 'sub_port_id': 20599338, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13257397, 'last_updated_at': datetime.datetime(2025, 2, 17, 8, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 8, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 8, 48, 56)}, 'kraft': {'main_port_id': 20599330, 'sub_port_id': 20599339, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13257398, 'last_updated_at': datetime.datetime(2025, 2, 17, 8, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 8, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 8, 48, 56)}, 'flou': {'main_port_id': 20599330, 'sub_port_id': 20599340, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13257399, 'last_updated_at': datetime.datetime(2025, 2, 17, 8, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 8, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 8, 48, 56)}, 'mal_croppe': {'main_port_id': 20599330, 'sub_port_id': 20599341, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13257400, 'last_updated_at': datetime.datetime(2025, 2, 17, 8, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 8, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 8, 48, 56)}, 'papier': {'main_port_id': 20599330, 'sub_port_id': 20599342, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13257401, 'last_updated_at': datetime.datetime(2025, 2, 17, 8, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 8, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 8, 48, 56)}, 'metal': {'main_port_id': 20599330, 'sub_port_id': 20599343, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13257402, 'last_updated_at': datetime.datetime(2025, 2, 17, 8, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 8, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 8, 48, 56)}, 'environnement': {'main_port_id': 20599330, 'sub_port_id': 20599344, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13257403, 'last_updated_at': datetime.datetime(2025, 2, 17, 8, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 8, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 8, 48, 56)}, 'Teint_Dans_La_Masse': {'main_port_id': 20599330, 'sub_port_id': 20599345, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13257404, 'last_updated_at': datetime.datetime(2025, 2, 17, 8, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 8, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 8, 48, 56)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20599334 , 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=20599330 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 (20599334) result : ((1338122885,), (1338122886,), (1338122887,), (1338122998,), (1338122999,), (1338123000,), (1338123001,), (1338123232,), (1338123498,), (1338123560,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20599330) result : ((1338122733,), (1338122736,), (1338122739,), (1338122742,), (1338122839,), (1338122842,), (1338122848,), (1338122853,), (1338122884,), (1338122888,), (1338122891,), (1338122894,), (1338122930,), (1338122935,), (1338122981,), (1338122983,), (1338122986,), (1338123048,), (1338123050,), (1338123052,), (1338123146,), (1338123148,), (1338123182,), (1338123183,), (1338123239,), (1338123240,), (1338123243,), (1338123265,), (1338123352,), (1338123358,), (1338123361,), (1338123414,), (1338123416,), (1338123419,), (1338123422,), (1338123423,), (1338123456,), (1338123459,), (1338123462,), (1338123464,), (1338123500,), (1338123505,), (1338123510,), (1338123517,), (1338123524,), (1338123530,)) 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 (1338123500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20599335 , 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=20599330 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 (20599335) result : ((1338122978,), (1338122979,), (1338122980,), (1338122996,), (1338122997,), (1338123390,), (1338123497,), (1338123558,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20599330) result : ((1338122733,), (1338122736,), (1338122739,), (1338122742,), (1338122839,), (1338122842,), (1338122848,), (1338122853,), (1338122884,), (1338122888,), (1338122891,), (1338122894,), (1338122930,), (1338122935,), (1338122981,), (1338122983,), (1338122986,), (1338123048,), (1338123050,), (1338123052,), (1338123146,), (1338123148,), (1338123182,), (1338123183,), (1338123239,), (1338123240,), (1338123243,), (1338123265,), (1338123352,), (1338123358,), (1338123361,), (1338123414,), (1338123416,), (1338123419,), (1338123422,), (1338123423,), (1338123456,), (1338123459,), (1338123462,), (1338123464,), (1338123500,), (1338123505,), (1338123510,), (1338123517,), (1338123524,), (1338123530,)) 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 (1338123500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20599336 , 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=20599330 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 (20599336) result : ((1338122883,), (1338122991,), (1338123289,), (1338123353,), (1338123354,), (1338123432,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20599330) result : ((1338122733,), (1338122736,), (1338122739,), (1338122742,), (1338122839,), (1338122842,), (1338122848,), (1338122853,), (1338122884,), (1338122888,), (1338122891,), (1338122894,), (1338122930,), (1338122935,), (1338122981,), (1338122983,), (1338122986,), (1338123048,), (1338123050,), (1338123052,), (1338123146,), (1338123148,), (1338123182,), (1338123183,), (1338123239,), (1338123240,), (1338123243,), (1338123265,), (1338123352,), (1338123358,), (1338123361,), (1338123414,), (1338123416,), (1338123419,), (1338123422,), (1338123423,), (1338123456,), (1338123459,), (1338123462,), (1338123464,), (1338123500,), (1338123505,), (1338123510,), (1338123517,), (1338123524,), (1338123530,)) 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 (1338123500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20599337 , 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=20599330 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 (20599337) result : ((1338122992,), (1338123290,), (1338123355,), (1338123435,), (1338123436,), (1338123449,), (1338123451,), (1338123452,), (1338123556,), (1338123557,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20599330) result : ((1338122733,), (1338122736,), (1338122739,), (1338122742,), (1338122839,), (1338122842,), (1338122848,), (1338122853,), (1338122884,), (1338122888,), (1338122891,), (1338122894,), (1338122930,), (1338122935,), (1338122981,), (1338122983,), (1338122986,), (1338123048,), (1338123050,), (1338123052,), (1338123146,), (1338123148,), (1338123182,), (1338123183,), (1338123239,), (1338123240,), (1338123243,), (1338123265,), (1338123352,), (1338123358,), (1338123361,), (1338123414,), (1338123416,), (1338123419,), (1338123422,), (1338123423,), (1338123456,), (1338123459,), (1338123462,), (1338123464,), (1338123500,), (1338123505,), (1338123510,), (1338123517,), (1338123524,), (1338123530,)) 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 (1338123500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20599338 , 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=20599330 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 (20599338) result : ((1338122881,), (1338122882,), (1338122977,), (1338122990,), (1338123229,), (1338123230,), (1338123351,), (1338123448,), (1338123554,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20599330) result : ((1338122733,), (1338122736,), (1338122739,), (1338122742,), (1338122839,), (1338122842,), (1338122848,), (1338122853,), (1338122884,), (1338122888,), (1338122891,), (1338122894,), (1338122930,), (1338122935,), (1338122981,), (1338122983,), (1338122986,), (1338123048,), (1338123050,), (1338123052,), (1338123146,), (1338123148,), (1338123182,), (1338123183,), (1338123239,), (1338123240,), (1338123243,), (1338123265,), (1338123352,), (1338123358,), (1338123361,), (1338123414,), (1338123416,), (1338123419,), (1338123422,), (1338123423,), (1338123456,), (1338123459,), (1338123462,), (1338123464,), (1338123500,), (1338123505,), (1338123510,), (1338123517,), (1338123524,), (1338123530,)) 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 (1338123500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20599339 , 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=20599330 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 (20599339) result : ((1338123561,), (1338123562,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20599330) result : ((1338122733,), (1338122736,), (1338122739,), (1338122742,), (1338122839,), (1338122842,), (1338122848,), (1338122853,), (1338122884,), (1338122888,), (1338122891,), (1338122894,), (1338122930,), (1338122935,), (1338122981,), (1338122983,), (1338122986,), (1338123048,), (1338123050,), (1338123052,), (1338123146,), (1338123148,), (1338123182,), (1338123183,), (1338123239,), (1338123240,), (1338123243,), (1338123265,), (1338123352,), (1338123358,), (1338123361,), (1338123414,), (1338123416,), (1338123419,), (1338123422,), (1338123423,), (1338123456,), (1338123459,), (1338123462,), (1338123464,), (1338123500,), (1338123505,), (1338123510,), (1338123517,), (1338123524,), (1338123530,)) 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 (1338123500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20599340 , 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=20599330 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 (20599340) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20599330) result : ((1338122733,), (1338122736,), (1338122739,), (1338122742,), (1338122839,), (1338122842,), (1338122848,), (1338122853,), (1338122884,), (1338122888,), (1338122891,), (1338122894,), (1338122930,), (1338122935,), (1338122981,), (1338122983,), (1338122986,), (1338123048,), (1338123050,), (1338123052,), (1338123146,), (1338123148,), (1338123182,), (1338123183,), (1338123239,), (1338123240,), (1338123243,), (1338123265,), (1338123352,), (1338123358,), (1338123361,), (1338123414,), (1338123416,), (1338123419,), (1338123422,), (1338123423,), (1338123456,), (1338123459,), (1338123462,), (1338123464,), (1338123500,), (1338123505,), (1338123510,), (1338123517,), (1338123524,), (1338123530,)) 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 (1338123500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20599341 , 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=20599330 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 (20599341) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20599330) result : ((1338122733,), (1338122736,), (1338122739,), (1338122742,), (1338122839,), (1338122842,), (1338122848,), (1338122853,), (1338122884,), (1338122888,), (1338122891,), (1338122894,), (1338122930,), (1338122935,), (1338122981,), (1338122983,), (1338122986,), (1338123048,), (1338123050,), (1338123052,), (1338123146,), (1338123148,), (1338123182,), (1338123183,), (1338123239,), (1338123240,), (1338123243,), (1338123265,), (1338123352,), (1338123358,), (1338123361,), (1338123414,), (1338123416,), (1338123419,), (1338123422,), (1338123423,), (1338123456,), (1338123459,), (1338123462,), (1338123464,), (1338123500,), (1338123505,), (1338123510,), (1338123517,), (1338123524,), (1338123530,)) 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 (1338123500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20599342 , 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=20599330 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 (20599342) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20599330) result : ((1338122733,), (1338122736,), (1338122739,), (1338122742,), (1338122839,), (1338122842,), (1338122848,), (1338122853,), (1338122884,), (1338122888,), (1338122891,), (1338122894,), (1338122930,), (1338122935,), (1338122981,), (1338122983,), (1338122986,), (1338123048,), (1338123050,), (1338123052,), (1338123146,), (1338123148,), (1338123182,), (1338123183,), (1338123239,), (1338123240,), (1338123243,), (1338123265,), (1338123352,), (1338123358,), (1338123361,), (1338123414,), (1338123416,), (1338123419,), (1338123422,), (1338123423,), (1338123456,), (1338123459,), (1338123462,), (1338123464,), (1338123500,), (1338123505,), (1338123510,), (1338123517,), (1338123524,), (1338123530,)) 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 (1338123500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20599343 , 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=20599330 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 (20599343) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20599330) result : ((1338122733,), (1338122736,), (1338122739,), (1338122742,), (1338122839,), (1338122842,), (1338122848,), (1338122853,), (1338122884,), (1338122888,), (1338122891,), (1338122894,), (1338122930,), (1338122935,), (1338122981,), (1338122983,), (1338122986,), (1338123048,), (1338123050,), (1338123052,), (1338123146,), (1338123148,), (1338123182,), (1338123183,), (1338123239,), (1338123240,), (1338123243,), (1338123265,), (1338123352,), (1338123358,), (1338123361,), (1338123414,), (1338123416,), (1338123419,), (1338123422,), (1338123423,), (1338123456,), (1338123459,), (1338123462,), (1338123464,), (1338123500,), (1338123505,), (1338123510,), (1338123517,), (1338123524,), (1338123530,)) 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 (1338123500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20599344 , 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=20599330 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 (20599344) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20599330) result : ((1338122733,), (1338122736,), (1338122739,), (1338122742,), (1338122839,), (1338122842,), (1338122848,), (1338122853,), (1338122884,), (1338122888,), (1338122891,), (1338122894,), (1338122930,), (1338122935,), (1338122981,), (1338122983,), (1338122986,), (1338123048,), (1338123050,), (1338123052,), (1338123146,), (1338123148,), (1338123182,), (1338123183,), (1338123239,), (1338123240,), (1338123243,), (1338123265,), (1338123352,), (1338123358,), (1338123361,), (1338123414,), (1338123416,), (1338123419,), (1338123422,), (1338123423,), (1338123456,), (1338123459,), (1338123462,), (1338123464,), (1338123500,), (1338123505,), (1338123510,), (1338123517,), (1338123524,), (1338123530,)) 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 (1338123500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20599345 , 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=20599330 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 (20599345) result : ((1338122975,), (1338122976,), (1338122987,), (1338122988,), (1338122989,), (1338123287,), (1338123346,), (1338123428,), (1338123549,), (1338123550,), (1338123551,), (1338123552,), (1338123553,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20599330) result : ((1338122733,), (1338122736,), (1338122739,), (1338122742,), (1338122839,), (1338122842,), (1338122848,), (1338122853,), (1338122884,), (1338122888,), (1338122891,), (1338122894,), (1338122930,), (1338122935,), (1338122981,), (1338122983,), (1338122986,), (1338123048,), (1338123050,), (1338123052,), (1338123146,), (1338123148,), (1338123182,), (1338123183,), (1338123239,), (1338123240,), (1338123243,), (1338123265,), (1338123352,), (1338123358,), (1338123361,), (1338123414,), (1338123416,), (1338123419,), (1338123422,), (1338123423,), (1338123456,), (1338123459,), (1338123462,), (1338123464,), (1338123500,), (1338123505,), (1338123510,), (1338123517,), (1338123524,), (1338123530,)) 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 (1338123500) and cspi.crop_hashtag_id = chi.id; 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`=20599330 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','autre_refus','kraft','mal_croppe','plastique','cartonnette','Carton_gris','papier','Teint_Dans_La_Masse','Carton_brun','environnement','metal')) 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`=20599330 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','autre_refus','kraft','mal_croppe','plastique','cartonnette','Carton_gris','papier','Teint_Dans_La_Masse','Carton_brun','environnement','metal')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 20599330, 'sub_port_id': 20599346, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13257405, 'last_updated_at': datetime.datetime(2025, 2, 17, 8, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 8, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 8, 48, 58)}, 'Carton_brun': {'main_port_id': 20599330, 'sub_port_id': 20599347, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13257406, 'last_updated_at': datetime.datetime(2025, 2, 17, 8, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 8, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 8, 48, 58)}, 'Carton_gris': {'main_port_id': 20599330, 'sub_port_id': 20599348, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13257407, 'last_updated_at': datetime.datetime(2025, 2, 17, 8, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 8, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 8, 48, 58)}, 'cartonnette': {'main_port_id': 20599330, 'sub_port_id': 20599349, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13257408, 'last_updated_at': datetime.datetime(2025, 2, 17, 8, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 8, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 8, 48, 58)}, 'autre_refus': {'main_port_id': 20599330, 'sub_port_id': 20599350, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13257409, 'last_updated_at': datetime.datetime(2025, 2, 17, 8, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 8, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 8, 48, 58)}, 'kraft': {'main_port_id': 20599330, 'sub_port_id': 20599351, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13257410, 'last_updated_at': datetime.datetime(2025, 2, 17, 8, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 8, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 8, 48, 58)}, 'flou': {'main_port_id': 20599330, 'sub_port_id': 20599352, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13257411, 'last_updated_at': datetime.datetime(2025, 2, 17, 8, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 8, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 8, 48, 58)}, 'mal_croppe': {'main_port_id': 20599330, 'sub_port_id': 20599353, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13257412, 'last_updated_at': datetime.datetime(2025, 2, 17, 8, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 8, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 8, 48, 58)}, 'papier': {'main_port_id': 20599330, 'sub_port_id': 20599354, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13257413, 'last_updated_at': datetime.datetime(2025, 2, 17, 8, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 8, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 8, 48, 58)}, 'metal': {'main_port_id': 20599330, 'sub_port_id': 20599355, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13257414, 'last_updated_at': datetime.datetime(2025, 2, 17, 8, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 8, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 8, 48, 58)}, 'environnement': {'main_port_id': 20599330, 'sub_port_id': 20599356, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13257415, 'last_updated_at': datetime.datetime(2025, 2, 17, 8, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 8, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 8, 48, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 20599330, 'sub_port_id': 20599357, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13257416, 'last_updated_at': datetime.datetime(2025, 2, 17, 8, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 8, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 8, 48, 58)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20599346,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20599334 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20599347,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20599335 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20599348,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20599336 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20599349,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20599337 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20599350,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20599338 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20599351,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20599339 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20599352,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20599340 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20599353,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20599341 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20599354,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20599342 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20599355,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20599343 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20599356,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20599344 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20599357,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20599345 lien utilise dans velours : https://www.fotonower.com/velours/20599346,20599347,20599348,20599349,20599350,20599351,20599352,20599353,20599354,20599355,20599356,20599357?tags=plastique,Carton_brun,Carton_gris,cartonnette,autre_refus,kraft,flou,mal_croppe,papier,metal,environnement,Teint_Dans_La_Masse After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20599330]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1338123530, 1338123524, 1338123517, 1338123510, 1338123505, 1338123500] map_info['map_portfolio_photo'] : {20599330: [1338123530, 1338123524, 1338123517, 1338123510, 1338123505, 1338123500, 1338123464, 1338123462, 1338123459, 1338123456, 1338123423, 1338123422, 1338123419, 1338123416, 1338123414, 1338123361, 1338123358, 1338123352, 1338123265, 1338123243, 1338123240, 1338123239, 1338123183, 1338123182, 1338123148, 1338123146, 1338123052, 1338123050, 1338123048, 1338122986, 1338122983, 1338122981, 1338122935, 1338122930, 1338122894, 1338122891, 1338122888, 1338122884, 1338122853, 1338122848, 1338122842, 1338122839, 1338122742, 1338122739, 1338122736, 1338122733]} final : False mtd_id 4302 list_pids : [1338123530, 1338123524, 1338123517, 1338123510, 1338123505, 1338123500] Looping around the photos to save general results len do output : 1 /20599330. 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, '2592515') ('4302', '20599330', '1338123530', None, None, None, None, None, '2592515') ('4302', None, None, None, None, None, None, None, '2592515') ('4302', '20599330', '1338123524', None, None, None, None, None, '2592515') ('4302', None, None, None, None, None, None, None, '2592515') ('4302', '20599330', '1338123517', None, None, None, None, None, '2592515') ('4302', None, None, None, None, None, None, None, '2592515') ('4302', '20599330', '1338123510', None, None, None, None, None, '2592515') ('4302', None, None, None, None, None, None, None, '2592515') ('4302', '20599330', '1338123505', None, None, None, None, None, '2592515') ('4302', None, None, None, None, None, None, None, '2592515') ('4302', '20599330', '1338123500', None, None, None, None, None, '2592515') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 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, '20599330', "{'plastique': 20599334, 'Carton_brun': 20599335, 'Carton_gris': 20599336, 'cartonnette': 20599337, 'autre_refus': 20599338, 'kraft': 20599339, 'flou': 20599340, 'mal_croppe': 20599341, 'papier': 20599342, 'metal': 20599343, 'environnement': 20599344, 'Teint_Dans_La_Masse': 20599345}", None, None, None, None, '2592515'), ('4302', '20599330', '1338123530', None, None, None, None, None, '2592515'), ('4302', '20599330', '1338123524', None, None, None, None, None, '2592515'), ('4302', '20599330', '1338123517', None, None, None, None, None, '2592515'), ('4302', '20599330', '1338123510', None, None, None, None, None, '2592515'), ('4302', '20599330', '1338123505', None, None, None, None, None, '2592515'), ('4302', '20599330', '1338123500', None, None, None, None, None, '2592515')] time used for this insertion : 0.012659311294555664 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4610278606414795 time spend to save output : 0.013020992279052734 total time spend for step 1 : 0.4740488529205322 step2:final Mon Feb 17 09:01:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed 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 (20599330) 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 20599330 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1338122742,1338122739,1338122736,1338122733,1338122853,1338122848,1338122842,1338122839,1338122894,1338122891,1338122888,1338122884,1338122935,1338122930,1338122986,1338122983,1338122981,1338123052,1338123050,1338123048,1338123148,1338123146,1338123183,1338123182,1338123243,1338123240,1338123265,1338123239,1338123361,1338123358,1338123352,1338123423,1338123422,1338123419,1338123416,1338123414,1338123464,1338123462,1338123459,1338123456,1338123530,1338123524,1338123517,1338123510,1338123505,1338123500); 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([20599330]) Inside saveOutput : final : False verbose : True original output for save of step final : {1338123530: ('0.0420223821856019',), 1338123524: ('0.0420223821856019',), 1338123517: ('0.0420223821856019',), 1338123510: ('0.0420223821856019',), 1338123505: ('0.0420223821856019',), 1338123500: ('0.0420223821856019',)} new output for save of step final : {1338123530: ('0.0420223821856019',), 1338123524: ('0.0420223821856019',), 1338123517: ('0.0420223821856019',), 1338123510: ('0.0420223821856019',), 1338123505: ('0.0420223821856019',), 1338123500: ('0.0420223821856019',)} [1338123530, 1338123524, 1338123517, 1338123510, 1338123505, 1338123500] map_info['map_portfolio_photo'] : {20599330: [1338123530, 1338123524, 1338123517, 1338123510, 1338123505, 1338123500, 1338123464, 1338123462, 1338123459, 1338123456, 1338123423, 1338123422, 1338123419, 1338123416, 1338123414, 1338123361, 1338123358, 1338123352, 1338123265, 1338123243, 1338123240, 1338123239, 1338123183, 1338123182, 1338123148, 1338123146, 1338123052, 1338123050, 1338123048, 1338122986, 1338122983, 1338122981, 1338122935, 1338122930, 1338122894, 1338122891, 1338122888, 1338122884, 1338122853, 1338122848, 1338122842, 1338122839, 1338122742, 1338122739, 1338122736, 1338122733]} final : False mtd_id 4302 list_pids : [1338123530, 1338123524, 1338123517, 1338123510, 1338123505, 1338123500] Looping around the photos to save general results len do output : 6 /1338123530.Didn't retrieve data . /1338123524.Didn't retrieve data . /1338123517.Didn't retrieve data . /1338123510.Didn't retrieve data . /1338123505.Didn't retrieve data . /1338123500.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, '2592515') ('4302', '20599330', '1338123530', None, None, None, None, None, '2592515') ('4302', None, None, None, None, None, None, None, '2592515') ('4302', '20599330', '1338123524', None, None, None, None, None, '2592515') ('4302', None, None, None, None, None, None, None, '2592515') ('4302', '20599330', '1338123517', None, None, None, None, None, '2592515') ('4302', None, None, None, None, None, None, None, '2592515') ('4302', '20599330', '1338123510', None, None, None, None, None, '2592515') ('4302', None, None, None, None, None, None, None, '2592515') ('4302', '20599330', '1338123505', None, None, None, None, None, '2592515') ('4302', None, None, None, None, None, None, None, '2592515') ('4302', '20599330', '1338123500', None, None, None, None, None, '2592515') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 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', '20599330', '1338123530', '0.0420223821856019', None, None, None, None, '2592515'), ('4302', '20599330', '1338123524', '0.0420223821856019', None, None, None, None, '2592515'), ('4302', '20599330', '1338123517', '0.0420223821856019', None, None, None, None, '2592515'), ('4302', '20599330', '1338123510', '0.0420223821856019', None, None, None, None, '2592515'), ('4302', '20599330', '1338123505', '0.0420223821856019', None, None, None, None, '2592515'), ('4302', '20599330', '1338123500', '0.0420223821856019', None, None, None, None, '2592515')] time used for this insertion : 0.0125732421875 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0660560131072998 time spend to save output : 0.012909889221191406 total time spend for step 2 : 0.07896590232849121 step3:velours_tree Mon Feb 17 09:01:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {20599330: [{'plastique': 20599334, 'Carton_brun': 20599335, 'Carton_gris': 20599336, 'cartonnette': 20599337, 'autre_refus': 20599338, 'kraft': 20599339, 'flou': 20599340, 'mal_croppe': 20599341, 'papier': 20599342, 'metal': 20599343, 'environnement': 20599344, 'Teint_Dans_La_Masse': 20599345}]} input_args_next_step : {20599330: ()} output_args : {20599330: [{'plastique': 20599334, 'Carton_brun': 20599335, 'Carton_gris': 20599336, 'cartonnette': 20599337, 'autre_refus': 20599338, 'kraft': 20599339, 'flou': 20599340, 'mal_croppe': 20599341, 'papier': 20599342, 'metal': 20599343, 'environnement': 20599344, 'Teint_Dans_La_Masse': 20599345}]} args : 20599330 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'plastique': 20599334, 'Carton_brun': 20599335, 'Carton_gris': 20599336, 'cartonnette': 20599337, 'autre_refus': 20599338, 'kraft': 20599339, 'flou': 20599340, 'mal_croppe': 20599341, 'papier': 20599342, 'metal': 20599343, 'environnement': 20599344, 'Teint_Dans_La_Masse': 20599345},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20599330) 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([20599330]) 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.3676607608795166 time spend to save output : 6.580352783203125e-05 total time spend for step 3 : 0.36772656440734863 step4:send_mail_cod Mon Feb 17 09:01:02 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1338123530: ('0.0420223821856019',), 1338123524: ('0.0420223821856019',), 1338123517: ('0.0420223821856019',), 1338123510: ('0.0420223821856019',), 1338123505: ('0.0420223821856019',), 1338123500: ('0.0420223821856019',)} input_args_next_step : {1338123530: ()} output_args : {1338123530: ('0.0420223821856019',), 1338123524: ('0.0420223821856019',), 1338123517: ('0.0420223821856019',), 1338123510: ('0.0420223821856019',), 1338123505: ('0.0420223821856019',), 1338123500: ('0.0420223821856019',)} args : 1338123530 depend.output_id : 0 input_args_next_step : {1338123530: ('0.0420223821856019',), 1338123524: ()} output_args : {1338123530: ('0.0420223821856019',), 1338123524: ('0.0420223821856019',), 1338123517: ('0.0420223821856019',), 1338123510: ('0.0420223821856019',), 1338123505: ('0.0420223821856019',), 1338123500: ('0.0420223821856019',)} args : 1338123524 depend.output_id : 0 input_args_next_step : {1338123530: ('0.0420223821856019',), 1338123524: ('0.0420223821856019',), 1338123517: ()} output_args : {1338123530: ('0.0420223821856019',), 1338123524: ('0.0420223821856019',), 1338123517: ('0.0420223821856019',), 1338123510: ('0.0420223821856019',), 1338123505: ('0.0420223821856019',), 1338123500: ('0.0420223821856019',)} args : 1338123517 depend.output_id : 0 input_args_next_step : {1338123530: ('0.0420223821856019',), 1338123524: ('0.0420223821856019',), 1338123517: ('0.0420223821856019',), 1338123510: ()} output_args : {1338123530: ('0.0420223821856019',), 1338123524: ('0.0420223821856019',), 1338123517: ('0.0420223821856019',), 1338123510: ('0.0420223821856019',), 1338123505: ('0.0420223821856019',), 1338123500: ('0.0420223821856019',)} args : 1338123510 depend.output_id : 0 input_args_next_step : {1338123530: ('0.0420223821856019',), 1338123524: ('0.0420223821856019',), 1338123517: ('0.0420223821856019',), 1338123510: ('0.0420223821856019',), 1338123505: ()} output_args : {1338123530: ('0.0420223821856019',), 1338123524: ('0.0420223821856019',), 1338123517: ('0.0420223821856019',), 1338123510: ('0.0420223821856019',), 1338123505: ('0.0420223821856019',), 1338123500: ('0.0420223821856019',)} args : 1338123505 depend.output_id : 0 input_args_next_step : {1338123530: ('0.0420223821856019',), 1338123524: ('0.0420223821856019',), 1338123517: ('0.0420223821856019',), 1338123510: ('0.0420223821856019',), 1338123505: ('0.0420223821856019',), 1338123500: ()} output_args : {1338123530: ('0.0420223821856019',), 1338123524: ('0.0420223821856019',), 1338123517: ('0.0420223821856019',), 1338123510: ('0.0420223821856019',), 1338123505: ('0.0420223821856019',), 1338123500: ('0.0420223821856019',)} args : 1338123500 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 : {20599330: [{'plastique': 20599334, 'Carton_brun': 20599335, 'Carton_gris': 20599336, 'cartonnette': 20599337, 'autre_refus': 20599338, 'kraft': 20599339, 'flou': 20599340, 'mal_croppe': 20599341, 'papier': 20599342, 'metal': 20599343, 'environnement': 20599344, 'Teint_Dans_La_Masse': 20599345}]} input_args_next_step : {1338123530: ('0.0420223821856019',), 1338123524: ('0.0420223821856019',), 1338123517: ('0.0420223821856019',), 1338123510: ('0.0420223821856019',), 1338123505: ('0.0420223821856019',), 1338123500: ('0.0420223821856019',), 20599330: ()} output_args : {20599330: [{'plastique': 20599334, 'Carton_brun': 20599335, 'Carton_gris': 20599336, 'cartonnette': 20599337, 'autre_refus': 20599338, 'kraft': 20599339, 'flou': 20599340, 'mal_croppe': 20599341, 'papier': 20599342, 'metal': 20599343, 'environnement': 20599344, 'Teint_Dans_La_Masse': 20599345}]} args : 20599330 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 :7, first value : ('0.0420223821856019',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20599330) 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 (1338123530,1338123524,1338123517,1338123510,1338123505,1338123500) Found this number of photos: 6 ##### Call download_photos : nb_thread : 5 begin to download photo : 1338123500 begin to download photo : 1338123510 begin to download photo : 1338123524 download finish for photo 1338123524 begin to download photo : 1338123530 download finish for photo 1338123510 begin to download photo : 1338123517 download finish for photo 1338123500 begin to download photo : 1338123505 download finish for photo 1338123530 download finish for photo 1338123517 download finish for photo 1338123505 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 : 6 ; length of list_pids : 6 ; length of list_args : 6 results_Auto_P20599330_17-02-2025_09_01_02.pdf 20599334 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=20599334 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338122885: '1739778433_2313548_1338122736_13bac51e1e9ec5a86c67db945b205da5_rle_crop_3677748106_0.png', 1338122886: '1739778433_2313548_1338122736_13bac51e1e9ec5a86c67db945b205da5_rle_crop_3677748105_0.png', 1338122887: '1739778433_2313548_1338122733_83d416156186419a36a00d81cd2913e8_rle_crop_3677748127_0.png', 1338122998: '1739778554_2315735_1338122894_ebc27453814d9f61f210f0e7171630ea_rle_crop_3677749241_0.png', 1338122999: '1739778554_2315735_1338122848_4d13413ca0a154d7a70d30378d8f9a76_rle_crop_3677749254_0.png', 1338123000: '1739778554_2315735_1338122842_b99df615b34648ed8e7d423b1799708e_rle_crop_3677749278_0.png', 1338123001: '1739778554_2315735_1338122842_b99df615b34648ed8e7d423b1799708e_rle_crop_3677749279_0.png', 1338123232: '1739778791_2318598_1338123048_25c2060ed01a7486ace66f574ac529c8_rle_crop_3677749952_0.png', 1338123498: '1739779153_2322632_1338123462_0d58120c59f1a02f5673e423e0682f6f_rle_crop_3677750915_0.png', 1338123560: '1739779191_2323116_1338123464_1c1b9d9d37a380a0eb3bb6f73aab1681_rle_crop_3677751161_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/5f0f1f806f69b422f13df7831c4571f0_96117393.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/5a16d592f11420aa0bcbf1b2415731f3_21516796.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/bea49e5d468d8a3c46a9da9ff487a866_87530677.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/a3f56aa704ccfdad25a2ad437649be7b_85532051.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/a48fa82afbbda5f24706b3cbfbccfae5_77103231.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/c7015be9646a67452d418b82323f3863_73599979.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/5ea7158e818b530ac3f27de1ac4bfd3f_97762601.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/f73cd3c2eb540ec52db77e43ffba4e23_42829720.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/1f86d7ebd4c6c5331aad0f1f971b5260_1291259.png change filename to text .imagette205993341739779262/ imagette205993341739779262/1739778554_2315735_1338122894_ebc27453814d9f61f210f0e7171630ea_rle_crop_3677749241_0.png.png imagette205993341739779262/1739778791_2318598_1338123048_25c2060ed01a7486ace66f574ac529c8_rle_crop_3677749952_0.png.png imagette205993341739779262/1739779191_2323116_1338123464_1c1b9d9d37a380a0eb3bb6f73aab1681_rle_crop_3677751161_0.png.png imagette205993341739779262/1739779153_2322632_1338123462_0d58120c59f1a02f5673e423e0682f6f_rle_crop_3677750915_0.png.png imagette205993341739779262/1739778554_2315735_1338122842_b99df615b34648ed8e7d423b1799708e_rle_crop_3677749279_0.png.png imagette205993341739779262/1739778554_2315735_1338122848_4d13413ca0a154d7a70d30378d8f9a76_rle_crop_3677749254_0.png.png imagette205993341739779262/1739778433_2313548_1338122736_13bac51e1e9ec5a86c67db945b205da5_rle_crop_3677748106_0.png.png imagette205993341739779262/1739778433_2313548_1338122733_83d416156186419a36a00d81cd2913e8_rle_crop_3677748127_0.png.png imagette205993341739779262/1739778554_2315735_1338122842_b99df615b34648ed8e7d423b1799708e_rle_crop_3677749278_0.png.png imagette205993341739779262/1739778433_2313548_1338122736_13bac51e1e9ec5a86c67db945b205da5_rle_crop_3677748105_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/e0f29ff39079ef8742a5136c35a7b2a9_69332394.png imagette205993341739779262 20599337 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=20599337 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338122992: '1739778554_2315735_1338122842_b99df615b34648ed8e7d423b1799708e_rle_crop_3677749273_0.png', 1338123290: '1739778912_2319866_1338123239_a3d9ea6672a6f05768a9306aaa25a1b9_rle_crop_3677750225_0.png', 1338123355: '1739778932_2320083_1338123182_82276b4af49a468efa510f722e3425c5_rle_crop_3677750344_0.png', 1338123435: '1739779022_2321284_1338123265_7325adfbc4f155d2bd69e9bf66494d50_rle_crop_3677750637_0.png', 1338123436: '1739779022_2321284_1338123265_7325adfbc4f155d2bd69e9bf66494d50_rle_crop_3677750634_0.png', 1338123449: '1739779032_2321453_1338123358_0a73ba328cb1ffefea456f18158ee35d_rle_crop_3677750717_0.png', 1338123451: '1739779032_2321453_1338123358_0a73ba328cb1ffefea456f18158ee35d_rle_crop_3677750724_0.png', 1338123452: '1739779032_2321453_1338123352_07735075acc78cb1042931585010fd7a_rle_crop_3677750736_0.png', 1338123556: '1739779191_2323116_1338123464_1c1b9d9d37a380a0eb3bb6f73aab1681_rle_crop_3677751153_0.png', 1338123557: '1739779191_2323116_1338123464_1c1b9d9d37a380a0eb3bb6f73aab1681_rle_crop_3677751155_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/7efe96a457dbc726d96f8bf1780647d1_75143607.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/cd68620cb4ee4f772d7404fb23c9bdb8_38116589.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/4067ffaad0746cbddeb0b59bd4e6fa6b_54716168.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/8d53489a0539fd91fb1ecab747a5099a_87824299.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/fab1ed26be42943179b3c083cb7f3dec_89404740.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/d1ec86d4a85476ae107cd1cfa6dcedb1_53910157.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/98524f585d39b8f5789429b388c14d62_60908827.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/05c2c89b59d4852981aa659d56bf985e_7050888.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/ad24965a751deac9d9792e33ebdda05b_39554752.png change filename to text .imagette205993371739779262/ imagette205993371739779262/1739779022_2321284_1338123265_7325adfbc4f155d2bd69e9bf66494d50_rle_crop_3677750634_0.png.png imagette205993371739779262/1739779022_2321284_1338123265_7325adfbc4f155d2bd69e9bf66494d50_rle_crop_3677750637_0.png.png imagette205993371739779262/1739779032_2321453_1338123352_07735075acc78cb1042931585010fd7a_rle_crop_3677750736_0.png.png imagette205993371739779262/1739778554_2315735_1338122842_b99df615b34648ed8e7d423b1799708e_rle_crop_3677749273_0.png.png imagette205993371739779262/1739779032_2321453_1338123358_0a73ba328cb1ffefea456f18158ee35d_rle_crop_3677750717_0.png.png imagette205993371739779262/1739779191_2323116_1338123464_1c1b9d9d37a380a0eb3bb6f73aab1681_rle_crop_3677751155_0.png.png imagette205993371739779262/1739779191_2323116_1338123464_1c1b9d9d37a380a0eb3bb6f73aab1681_rle_crop_3677751153_0.png.png imagette205993371739779262/1739778912_2319866_1338123239_a3d9ea6672a6f05768a9306aaa25a1b9_rle_crop_3677750225_0.png.png imagette205993371739779262/1739778932_2320083_1338123182_82276b4af49a468efa510f722e3425c5_rle_crop_3677750344_0.png.png imagette205993371739779262/1739779032_2321453_1338123358_0a73ba328cb1ffefea456f18158ee35d_rle_crop_3677750724_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/eb01870ab455a94350203211e9213fba_56327607.png imagette205993371739779262 20599338 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=20599338 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338122881: '1739778433_2313548_1338122736_13bac51e1e9ec5a86c67db945b205da5_rle_crop_3677748109_0.png', 1338122882: '1739778433_2313548_1338122733_83d416156186419a36a00d81cd2913e8_rle_crop_3677748122_0.png', 1338122977: '1739778542_2315554_1338122888_809f80cdc89991b8a75bd881d9520dcf_rle_crop_3677749014_0.png', 1338122990: '1739778554_2315735_1338122894_ebc27453814d9f61f210f0e7171630ea_rle_crop_3677749247_0.png', 1338123229: '1739778791_2318598_1338123148_736d5aa1780923cc25118e2671cdc25c_rle_crop_3677749932_0.png', 1338123230: '1739778791_2318598_1338123050_09a37beeeded2b0153fc47a04d0f0393_rle_crop_3677749947_0.png', 1338123351: '1739778932_2320083_1338123182_82276b4af49a468efa510f722e3425c5_rle_crop_3677750342_0.png', 1338123448: '1739779032_2321453_1338123352_07735075acc78cb1042931585010fd7a_rle_crop_3677750739_0.png', 1338123554: '1739779191_2323116_1338123416_c5ec654cde225ce94503f65507f0b6f2_rle_crop_3677751249_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/55a822301f0b1fdffd5e658c6a875197_409629.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/45bd0091ab41b4dcb348ee5cf5ea8c0a_22677211.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/01a51d0d2ed1a2b139059b78f2a9ef0d_74315549.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/519bbe71284e4edcad1335d8f7cef77b_94706377.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/785854c7ba972bbc17ba14914c796567_64370727.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/3d7edea83ffcc188787d510eb49709b0_90393246.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/d9783fe1853cad6f5dde41102b8e73d7_1048639.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/b62bc0055ab3a904f547bab87a99dbfa_89992012.png change filename to text .imagette205993381739779263/ imagette205993381739779263/1739778433_2313548_1338122736_13bac51e1e9ec5a86c67db945b205da5_rle_crop_3677748109_0.png.png imagette205993381739779263/1739778433_2313548_1338122733_83d416156186419a36a00d81cd2913e8_rle_crop_3677748122_0.png.png imagette205993381739779263/1739778932_2320083_1338123182_82276b4af49a468efa510f722e3425c5_rle_crop_3677750342_0.png.png imagette205993381739779263/1739778791_2318598_1338123050_09a37beeeded2b0153fc47a04d0f0393_rle_crop_3677749947_0.png.png imagette205993381739779263/1739778554_2315735_1338122894_ebc27453814d9f61f210f0e7171630ea_rle_crop_3677749247_0.png.png imagette205993381739779263/1739778791_2318598_1338123148_736d5aa1780923cc25118e2671cdc25c_rle_crop_3677749932_0.png.png imagette205993381739779263/1739778542_2315554_1338122888_809f80cdc89991b8a75bd881d9520dcf_rle_crop_3677749014_0.png.png imagette205993381739779263/1739779191_2323116_1338123416_c5ec654cde225ce94503f65507f0b6f2_rle_crop_3677751249_0.png.png imagette205993381739779263/1739779032_2321453_1338123352_07735075acc78cb1042931585010fd7a_rle_crop_3677750739_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/246f41a1c924c5e328bca68ea609ca47_99559202.png imagette205993381739779263 20599339 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=20599339 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338123561: '1739779191_2323116_1338123464_1c1b9d9d37a380a0eb3bb6f73aab1681_rle_crop_3677751151_0.png', 1338123562: '1739779191_2323116_1338123414_aaa5723d63422a290e21ed12e228825b_rle_crop_3677751262_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/124790253fe349356bddf5fae41a4f4c_99145515.png change filename to text .imagette205993391739779263/ imagette205993391739779263/1739779191_2323116_1338123464_1c1b9d9d37a380a0eb3bb6f73aab1681_rle_crop_3677751151_0.png.png imagette205993391739779263/1739779191_2323116_1338123414_aaa5723d63422a290e21ed12e228825b_rle_crop_3677751262_0.png.png imagette205993401739779264/ imagette205993411739779264/ imagette205993431739779264/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/75a9c6ba4332bc169ca419b68ac47a79_55189500.png imagette205993391739779263 20599340 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=20599340 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette205993401739779264 20599341 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=20599341 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette205993411739779264 20599343 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=20599343 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette205993431739779264 20599335 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=20599335 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338122978: '1739778542_2315554_1338122891_d69995c28d1504f28ca1338b63886273_rle_crop_3677748998_0.png', 1338122979: '1739778542_2315554_1338122891_d69995c28d1504f28ca1338b63886273_rle_crop_3677748999_0.png', 1338122980: '1739778542_2315554_1338122888_809f80cdc89991b8a75bd881d9520dcf_rle_crop_3677749012_0.png', 1338122996: '1739778554_2315735_1338122894_ebc27453814d9f61f210f0e7171630ea_rle_crop_3677749242_0.png', 1338122997: '1739778554_2315735_1338122848_4d13413ca0a154d7a70d30378d8f9a76_rle_crop_3677749261_0.png', 1338123390: '1739778953_2320326_1338123183_5f722df23a4fe674cd145ddc9fde125a_rle_crop_3677750461_0.png', 1338123497: '1739779153_2322632_1338123462_0d58120c59f1a02f5673e423e0682f6f_rle_crop_3677750918_0.png', 1338123558: '1739779191_2323116_1338123419_498ab3ebc8c31df1af541f9849b9f19d_rle_crop_3677751185_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/ee89a38cd4125d738a70463583ce0805_51428257.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/0badc08bfafd5c296b103102c4d2e2bc_30928137.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/b48723e5f649f42c28958ff92dca6332_35398427.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/ca3b642e500271556b53ccfad8b99b56_77430045.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/b2116eeb5d256de267a9dae322111c74_66030919.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/a43d4c8f521ec87dec4f5ace3632a1ad_4697497.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/591dd07315d4c330e19a99ddf5d0fa97_8146668.png change filename to text .imagette205993351739779264/ imagette205993351739779264/1739778554_2315735_1338122894_ebc27453814d9f61f210f0e7171630ea_rle_crop_3677749242_0.png.png imagette205993351739779264/1739778542_2315554_1338122891_d69995c28d1504f28ca1338b63886273_rle_crop_3677748999_0.png.png imagette205993351739779264/1739779153_2322632_1338123462_0d58120c59f1a02f5673e423e0682f6f_rle_crop_3677750918_0.png.png imagette205993351739779264/1739779191_2323116_1338123419_498ab3ebc8c31df1af541f9849b9f19d_rle_crop_3677751185_0.png.png imagette205993351739779264/1739778542_2315554_1338122888_809f80cdc89991b8a75bd881d9520dcf_rle_crop_3677749012_0.png.png imagette205993351739779264/1739778554_2315735_1338122848_4d13413ca0a154d7a70d30378d8f9a76_rle_crop_3677749261_0.png.png imagette205993351739779264/1739778953_2320326_1338123183_5f722df23a4fe674cd145ddc9fde125a_rle_crop_3677750461_0.png.png imagette205993351739779264/1739778542_2315554_1338122891_d69995c28d1504f28ca1338b63886273_rle_crop_3677748998_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/8828a06dbfb40c7b1e1ee051da0b7463_36396217.png imagette205993351739779264 20599336 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=20599336 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338122883: '1739778433_2313548_1338122736_13bac51e1e9ec5a86c67db945b205da5_rle_crop_3677748111_0.png', 1338122991: '1739778554_2315735_1338122848_4d13413ca0a154d7a70d30378d8f9a76_rle_crop_3677749257_0.png', 1338123289: '1739778912_2319866_1338123239_a3d9ea6672a6f05768a9306aaa25a1b9_rle_crop_3677750230_0.png', 1338123353: '1739778932_2320083_1338123243_c678bd946696ccf955790533297f6d49_rle_crop_3677750323_0.png', 1338123354: '1739778932_2320083_1338123243_c678bd946696ccf955790533297f6d49_rle_crop_3677750320_0.png', 1338123432: '1739779022_2321284_1338123265_7325adfbc4f155d2bd69e9bf66494d50_rle_crop_3677750639_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/40e72dfcb005ddd5b06602a22d9b5c05_96875216.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/17ad9c5985de636bb910119e4e03165c_52169772.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/c5431dcd6e6cd14a1ae4e776bccb7e47_20957393.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/415ee44d1d01b4d59839b1348766aa9d_63554308.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/cb61befad326c9c3ff13441883ca06bc_61586699.png change filename to text .imagette205993361739779264/ imagette205993361739779264/1739778912_2319866_1338123239_a3d9ea6672a6f05768a9306aaa25a1b9_rle_crop_3677750230_0.png.png imagette205993361739779264/1739778932_2320083_1338123243_c678bd946696ccf955790533297f6d49_rle_crop_3677750320_0.png.png imagette205993361739779264/1739778433_2313548_1338122736_13bac51e1e9ec5a86c67db945b205da5_rle_crop_3677748111_0.png.png imagette205993361739779264/1739779022_2321284_1338123265_7325adfbc4f155d2bd69e9bf66494d50_rle_crop_3677750639_0.png.png imagette205993361739779264/1739778932_2320083_1338123243_c678bd946696ccf955790533297f6d49_rle_crop_3677750323_0.png.png imagette205993361739779264/1739778554_2315735_1338122848_4d13413ca0a154d7a70d30378d8f9a76_rle_crop_3677749257_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/92b832c10a260a4d626978a01bd6a5ed_44725854.png imagette205993361739779264 20599345 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=20599345 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338122975: '1739778542_2315554_1338122884_16716e5fd19b0a319bf8e56e08cf42bc_rle_crop_3677749032_0.png', 1338122976: '1739778542_2315554_1338122884_16716e5fd19b0a319bf8e56e08cf42bc_rle_crop_3677749035_0.png', 1338122987: '1739778554_2315735_1338122894_ebc27453814d9f61f210f0e7171630ea_rle_crop_3677749246_0.png', 1338122988: '1739778554_2315735_1338122842_b99df615b34648ed8e7d423b1799708e_rle_crop_3677749282_0.png', 1338122989: '1739778554_2315735_1338122839_339b154ef978b659990ef98818cf294f_rle_crop_3677749297_0.png', 1338123287: '1739778912_2319866_1338123239_a3d9ea6672a6f05768a9306aaa25a1b9_rle_crop_3677750231_0.png', 1338123346: '1739778932_2320083_1338123243_c678bd946696ccf955790533297f6d49_rle_crop_3677750332_0.png', 1338123428: '1739779022_2321284_1338123265_7325adfbc4f155d2bd69e9bf66494d50_rle_crop_3677750640_0.png', 1338123549: '1739779191_2323116_1338123419_498ab3ebc8c31df1af541f9849b9f19d_rle_crop_3677751183_0.png', 1338123550: '1739779191_2323116_1338123419_498ab3ebc8c31df1af541f9849b9f19d_rle_crop_3677751184_0.png', 1338123551: '1739779191_2323116_1338123416_c5ec654cde225ce94503f65507f0b6f2_rle_crop_3677751254_0.png', 1338123552: '1739779191_2323116_1338123414_aaa5723d63422a290e21ed12e228825b_rle_crop_3677751265_0.png', 1338123553: '1739779191_2323116_1338123414_aaa5723d63422a290e21ed12e228825b_rle_crop_3677751264_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/7d319774890556b05a2ec4a38445d61d_35845036.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/756eb5a780431e3ea2ae1c3336c51bfb_73878172.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/9a282f0c8b9c93b7ac64ddb87c457f13_25150750.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/9b8763280750dccbcdbe5650353efcf8_44215763.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/aed4b1da8ec5fedcb22f35ea7e238f6a_32826994.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/b452c52cc05a9719c1a7dba577ee9ad9_7522280.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/370e1d387da9a2a93e88787653f2e154_86488935.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/7fd27783dd8185996127f8ed1040b4dd_33414718.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/0eb987c1657638bc70dd469ea203ae82_25574700.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/8631ede7fe33e7f5237f17991081ff6c_30159348.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/fa42a6c225004b7622f4f34a87e78ee8_48287929.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/14bd56e9916dd08e5554de050b6cd584_1750268.png change filename to text .imagette205993451739779264/ imagette205993451739779264/1739779191_2323116_1338123416_c5ec654cde225ce94503f65507f0b6f2_rle_crop_3677751254_0.png.png imagette205993451739779264/1739778542_2315554_1338122884_16716e5fd19b0a319bf8e56e08cf42bc_rle_crop_3677749032_0.png.png imagette205993451739779264/1739779191_2323116_1338123419_498ab3ebc8c31df1af541f9849b9f19d_rle_crop_3677751184_0.png.png imagette205993451739779264/1739779191_2323116_1338123419_498ab3ebc8c31df1af541f9849b9f19d_rle_crop_3677751183_0.png.png imagette205993451739779264/1739778554_2315735_1338122842_b99df615b34648ed8e7d423b1799708e_rle_crop_3677749282_0.png.png imagette205993451739779264/1739778912_2319866_1338123239_a3d9ea6672a6f05768a9306aaa25a1b9_rle_crop_3677750231_0.png.png imagette205993451739779264/1739778554_2315735_1338122839_339b154ef978b659990ef98818cf294f_rle_crop_3677749297_0.png.png imagette205993451739779264/1739779191_2323116_1338123414_aaa5723d63422a290e21ed12e228825b_rle_crop_3677751264_0.png.png imagette205993451739779264/1739778932_2320083_1338123243_c678bd946696ccf955790533297f6d49_rle_crop_3677750332_0.png.png imagette205993451739779264/1739779191_2323116_1338123414_aaa5723d63422a290e21ed12e228825b_rle_crop_3677751265_0.png.png imagette205993451739779264/1739779022_2321284_1338123265_7325adfbc4f155d2bd69e9bf66494d50_rle_crop_3677750640_0.png.png imagette205993451739779264/1739778542_2315554_1338122884_16716e5fd19b0a319bf8e56e08cf42bc_rle_crop_3677749035_0.png.png imagette205993451739779264/1739778554_2315735_1338122894_ebc27453814d9f61f210f0e7171630ea_rle_crop_3677749246_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/c18e4be09ef49f0a54094c4b037d89d8_41506553.png imagette205993451739779264 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20599330 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20599346,20599347,20599348,20599349,20599350,20599351,20599352,20599353,20599354,20599355,20599356,20599357?tags=plastique,Carton_brun,Carton_gris,cartonnette,autre_refus,kraft,flou,mal_croppe,papier,metal,environnement,Teint_Dans_La_Masse your option no_mail is active, we will not send the real mail to your client args[1338123530] : ('0.0420223821856019',) no score found for photo 1338123530 apple ('0.0420223821856019',) We are sending mail with results at report@fotonower.com args[1338123524] : ('0.0420223821856019',) no score found for photo 1338123524 apple ('0.0420223821856019',) We are sending mail with results at report@fotonower.com args[1338123517] : ('0.0420223821856019',) no score found for photo 1338123517 apple ('0.0420223821856019',) We are sending mail with results at report@fotonower.com args[1338123510] : ('0.0420223821856019',) no score found for photo 1338123510 apple ('0.0420223821856019',) We are sending mail with results at report@fotonower.com args[1338123505] : ('0.0420223821856019',) no score found for photo 1338123505 apple ('0.0420223821856019',) We are sending mail with results at report@fotonower.com args[1338123500] : ('0.0420223821856019',) no score found for photo 1338123500 apple ('0.0420223821856019',) We are sending mail with results at report@fotonower.com refus_total : 0.0420223821856019 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=20599330 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_P20599330_17-02-2025_09_01_02.pdf results_Auto_P20599330_17-02-2025_09_01_02.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20599330_17-02-2025_09_01_02.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','20599330','results_Auto_P20599330_17-02-2025_09_01_02.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20599330_17-02-2025_09_01_02.pdf','pdf','','0.25','0.0420223821856019') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20599330]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1338123530, 1338123524, 1338123517, 1338123510, 1338123505, 1338123500] map_info['map_portfolio_photo'] : {20599330: [1338123530, 1338123524, 1338123517, 1338123510, 1338123505, 1338123500, 1338123464, 1338123462, 1338123459, 1338123456, 1338123423, 1338123422, 1338123419, 1338123416, 1338123414, 1338123361, 1338123358, 1338123352, 1338123265, 1338123243, 1338123240, 1338123239, 1338123183, 1338123182, 1338123148, 1338123146, 1338123052, 1338123050, 1338123048, 1338122986, 1338122983, 1338122981, 1338122935, 1338122930, 1338122894, 1338122891, 1338122888, 1338122884, 1338122853, 1338122848, 1338122842, 1338122839, 1338122742, 1338122739, 1338122736, 1338122733]} final : False mtd_id 4302 list_pids : [1338123530, 1338123524, 1338123517, 1338123510, 1338123505, 1338123500] 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, '2592515') ('4302', '20599330', '1338123530', None, None, None, None, None, '2592515') ('4302', None, None, None, None, None, None, None, '2592515') ('4302', '20599330', '1338123524', None, None, None, None, None, '2592515') ('4302', None, None, None, None, None, None, None, '2592515') ('4302', '20599330', '1338123517', None, None, None, None, None, '2592515') ('4302', None, None, None, None, None, None, None, '2592515') ('4302', '20599330', '1338123510', None, None, None, None, None, '2592515') ('4302', None, None, None, None, None, None, None, '2592515') ('4302', '20599330', '1338123505', None, None, None, None, None, '2592515') ('4302', None, None, None, None, None, None, None, '2592515') ('4302', '20599330', '1338123500', None, None, None, None, None, '2592515') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 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', '20599330', '1338123530', None, None, None, None, None, '2592515'), ('4302', '20599330', '1338123524', None, None, None, None, None, '2592515'), ('4302', '20599330', '1338123517', None, None, None, None, None, '2592515'), ('4302', '20599330', '1338123510', None, None, None, None, None, '2592515'), ('4302', '20599330', '1338123505', None, None, None, None, None, '2592515'), ('4302', '20599330', '1338123500', None, None, None, None, None, '2592515')] time used for this insertion : 0.01252889633178711 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.609316110610962 time spend to save output : 0.012784242630004883 total time spend for step 4 : 4.622100353240967 step5:split_time_score Mon Feb 17 09:01: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 : ['20599330'] 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 : [('20599330',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20599330) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1338123524: {'path': 'temp/1739779262_2419515_1338123524_63a7aeaa1fdfb2a1d3e67cc3c72d46e1.jpg', 'extension': 'jpg'}, 1338123530: {'path': 'temp/1739779262_2419515_1338123530_ffb39951b3c5ff800a045b5eabca5111.jpg', 'extension': 'jpg'}, 1338123510: {'path': 'temp/1739779262_2419515_1338123510_0a23cc896dbcfb7eeb4b83786c4028fe.jpg', 'extension': 'jpg'}, 1338123517: {'path': 'temp/1739779262_2419515_1338123517_4a1ddb5bf88d60895b695f42b2fce77f.jpg', 'extension': 'jpg'}, 1338123500: {'path': 'temp/1739779262_2419515_1338123500_ae263742e9e2e0cf4b4801bbf3be6905.jpg', 'extension': 'jpg'}, 1338123505: {'path': 'temp/1739779262_2419515_1338123505_23449b618b3dbd0a4f3030d12d6a521c.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 = 20599330; (('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 = 20599330 group by h (('08', 46),) 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=20599330 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 (20599330) 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 (20599330) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 17022025 20599330 Nombre de photos uploadées : 46 / 23040 (0%) 17022025 20599330 Nombre de photos taguées (types de déchets): 0 / 46 (0%) 17022025 20599330 Nombre de photos taguées (volume) : 0 / 46 (0%) [{'photo_id': 1338122742, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/4ac5faabf353fff720d4f3a7b8d1f5d1.jpg', 'username': None, 'uploaded_at': 1739778367, 'text': 'image_17022025_08_45_04_10137.jpg'}, {'photo_id': 1338122739, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/f0724f300ad008d44b4ddf3b070c6e17.jpg', 'username': None, 'uploaded_at': 1739778367, 'text': 'image_17022025_08_45_24_10139.jpg'}, {'photo_id': 1338122736, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/13bac51e1e9ec5a86c67db945b205da5.jpg', 'username': None, 'uploaded_at': 1739778367, 'text': 'image_17022025_08_45_34_10138.jpg'}, {'photo_id': 1338122733, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/83d416156186419a36a00d81cd2913e8.jpg', 'username': None, 'uploaded_at': 1739778367, 'text': 'image_17022025_08_45_44_10137.jpg'}] 0 [] elapsed_time : load_data_split_time_score 4.0531158447265625e-06 elapsed_time : order_list_meta_photo_and_scores 8.344650268554688e-06 ?????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002426624298095703 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20599330, '2025-02-17' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1607134,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.024617433547973633 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= 1607134 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1607134, 'dashboard_run_id': 1614975, 'mtr_portfolio_id': 20598303, 'dashboard_result_id': 8923012, '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_P20598303_17-02-2025_08_33_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20598306, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20598307, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20598308, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20598309, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20598310, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20598311, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20598312, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20598313, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20598314, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20598315, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20598316, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20598317, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1614975, 'mtr_portfolio_id': 20598844, 'dashboard_result_id': 8923013, '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_P20598844_17-02-2025_08_46_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20598883, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20598884, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20598885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20598886, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20598887, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20598888, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20598889, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20598890, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20598891, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20598892, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20598893, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20598894, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1614975, 'mtr_portfolio_id': 20599330, 'dashboard_result_id': 8923014, '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_P20599330_17-02-2025_08_58_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20599334, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20599335, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20599336, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20599337, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20599338, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20599339, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20599340, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20599341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20599342, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20599343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20599344, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20599345, '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 = 20598303 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': 2592432, 'mtr_portfolio_id': 20598303, 'created_at': datetime.datetime(2025, 2, 17, 8, 32, 59), 'result': '0.03789552328934699', 'result_long': None, 'result_double': None}] Qualite : 0.03789552328934699 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20598303 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20598303_17-02-2025_08_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20598303 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_P20598303_17-02-2025_08_33_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20598306, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20598307, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20598308, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20598309, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20598310, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20598311, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20598312, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20598313, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20598314, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20598315, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20598316, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20598317, 'pht': 3726}}" where mtr_portfolio_id = 20598303 and dashboard_run_id = 1614975 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`=20598303 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8923012, 0.03789552328934699, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20598303_17-02-2025_08_33_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20598306, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20598307, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20598308, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20598309, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20598310, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20598311, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20598312, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20598313, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20598314, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20598315, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20598316, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20598317, '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 = 20598844 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': 2592479, 'mtr_portfolio_id': 20598844, 'created_at': datetime.datetime(2025, 2, 17, 8, 46, 58), 'result': '0.03990395777776678', 'result_long': None, 'result_double': None}] Qualite : 0.03990395777776678 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20598844 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20598844_17-02-2025_08_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20598844 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_P20598844_17-02-2025_08_46_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20598883, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20598884, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20598885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20598886, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20598887, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20598888, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20598889, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20598890, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20598891, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20598892, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20598893, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20598894, 'pht': 3726}}" where mtr_portfolio_id = 20598844 and dashboard_run_id = 1614975 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`=20598844 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8923013, 0.03990395777776678, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20598844_17-02-2025_08_46_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20598883, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20598884, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20598885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20598886, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20598887, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20598888, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20598889, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20598890, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20598891, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20598892, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20598893, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20598894, '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 = 20599330 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': 2592515, 'mtr_portfolio_id': 20599330, 'created_at': datetime.datetime(2025, 2, 17, 9, 1, 1), 'result': '0.0420223821856019', 'result_long': None, 'result_double': None}] Qualite : 0.0420223821856019 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20599330 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20599330_17-02-2025_09_01_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20599330 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_P20599330_17-02-2025_09_01_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20599334, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20599335, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20599336, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20599337, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20599338, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20599339, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20599340, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20599341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20599342, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20599343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20599344, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20599345, 'pht': 3726}}" where mtr_portfolio_id = 20599330 and dashboard_run_id = 1614975 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`=20599330 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8923014, 0.0420223821856019, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20599330_17-02-2025_09_01_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20599334, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20599335, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20599336, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20599337, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20599338, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20599339, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20599340, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20599341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20599342, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20599343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20599344, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20599345, '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 (20598303,20598844,20599330) result : ((1338121427,), (1338121435,), (1338121438,), (1338121441,), (1338121543,), (1338121545,), (1338121547,), (1338121549,), (1338121576,), (1338121577,), (1338121579,), (1338121621,), (1338121666,), (1338121670,), (1338121673,), (1338121719,), (1338121722,), (1338121724,), (1338121725,), (1338121726,), (1338121729,), (1338121752,), (1338121754,), (1338121791,), (1338121793,), (1338121796,), (1338121799,), (1338121823,), (1338121824,), (1338121828,), (1338121832,), (1338121836,), (1338121866,), (1338121868,), (1338121871,), (1338121911,), (1338121913,), (1338121943,), (1338121944,), (1338121970,), (1338121971,), (1338121972,), (1338122004,), (1338122006,), (1338122008,), (1338122010,), (1338122013,), (1338122016,), (1338122047,), (1338122041,), (1338122042,), (1338122103,), (1338122105,), (1338122107,), (1338122108,), (1338122109,), (1338122158,), (1338122162,), (1338122165,), (1338122168,), (1338122171,), (1338122176,), (1338122195,), (1338122196,), (1338122198,), (1338122247,), (1338122248,), (1338122250,), (1338122252,), (1338122255,), (1338122290,), (1338122299,), (1338122302,), (1338122305,), (1338122308,), (1338122311,), (1338122329,), (1338122331,), (1338122334,), (1338122366,), (1338122369,), (1338122373,), (1338122375,), (1338122377,), (1338122380,), (1338122405,), (1338122406,), (1338122409,), (1338122412,), (1338122415,), (1338122418,), (1338122444,), (1338122446,), (1338122447,), (1338122482,), (1338122487,), (1338122496,), (1338122499,), (1338122532,), (1338122533,), (1338122536,), (1338122539,), (1338122542,), (1338122551,), (1338122587,), (1338122595,), (1338122599,), (1338122636,), (1338122637,), (1338122640,), (1338122643,), (1338122646,), (1338122649,), (1338122669,), (1338122672,), (1338122674,), (1338122676,), (1338122744,), (1338122733,), (1338122736,), (1338122739,), (1338122742,), (1338122839,), (1338122842,), (1338122848,), (1338122853,), (1338122884,), (1338122888,), (1338122891,), (1338122894,), (1338122930,), (1338122935,), (1338122981,), (1338122983,), (1338122986,), (1338123048,), (1338123050,), (1338123052,), (1338123146,), (1338123148,), (1338123182,), (1338123183,), (1338123239,), (1338123240,), (1338123243,), (1338123265,), (1338123352,), (1338123358,), (1338123361,), (1338123414,), (1338123416,), (1338123419,), (1338123422,), (1338123423,), (1338123456,), (1338123459,), (1338123462,), (1338123464,), (1338123500,), (1338123505,), (1338123510,), (1338123517,), (1338123524,), (1338123530,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'17022025': {'nb_upload': 46, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20599330]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1338123530, 1338123524, 1338123517, 1338123510, 1338123505, 1338123500] map_info['map_portfolio_photo'] : {20599330: [1338123530, 1338123524, 1338123517, 1338123510, 1338123505, 1338123500, 1338123464, 1338123462, 1338123459, 1338123456, 1338123423, 1338123422, 1338123419, 1338123416, 1338123414, 1338123361, 1338123358, 1338123352, 1338123265, 1338123243, 1338123240, 1338123239, 1338123183, 1338123182, 1338123148, 1338123146, 1338123052, 1338123050, 1338123048, 1338122986, 1338122983, 1338122981, 1338122935, 1338122930, 1338122894, 1338122891, 1338122888, 1338122884, 1338122853, 1338122848, 1338122842, 1338122839, 1338122742, 1338122739, 1338122736, 1338122733]} final : True mtd_id 4302 list_pids : [1338123530, 1338123524, 1338123517, 1338123510, 1338123505, 1338123500] Looping around the photos to save general results len do output : 1 /20599330Didn'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, '2592515') ('4302', '20599330', '1338123530', None, None, None, None, None, '2592515') ('4302', None, None, None, None, None, None, None, '2592515') ('4302', '20599330', '1338123524', None, None, None, None, None, '2592515') ('4302', None, None, None, None, None, None, None, '2592515') ('4302', '20599330', '1338123517', None, None, None, None, None, '2592515') ('4302', None, None, None, None, None, None, None, '2592515') ('4302', '20599330', '1338123510', None, None, None, None, None, '2592515') ('4302', None, None, None, None, None, None, None, '2592515') ('4302', '20599330', '1338123505', None, None, None, None, None, '2592515') ('4302', None, None, None, None, None, None, None, '2592515') ('4302', '20599330', '1338123500', None, None, None, None, None, '2592515') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 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, '20599330', 'None', None, None, None, None, '2592515'), ('4302', '20599330', '1338123530', None, None, None, None, None, '2592515'), ('4302', '20599330', '1338123524', None, None, None, None, None, '2592515'), ('4302', '20599330', '1338123517', None, None, None, None, None, '2592515'), ('4302', '20599330', '1338123510', None, None, None, None, None, '2592515'), ('4302', '20599330', '1338123505', None, None, None, None, None, '2592515'), ('4302', '20599330', '1338123500', None, None, None, None, None, '2592515')] time used for this insertion : 0.01235198974609375 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.2926194667816162 time spend to save output : 0.012625455856323242 total time spend for step 5 : 0.30524492263793945 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 (2592515) 2.16user 2.31system 0:10.31elapsed 43%CPU (0avgtext+0avgdata 159968maxresident)k 13176inputs+12944outputs (137major+74866minor)pagefaults 0swaps