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 : 167212 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 (2641098) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2641098) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21096666 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2641098'] with mtr_portfolio_ids : ['21096666'] and first list_photo_ids : [] new path : /proc/167212/ Name: python3 Umask: 0002 State: R (running) Tgid: 167212 Ngid: 0 Pid: 167212 PPid: 167211 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 167212 NSpid: 167212 NSpgid: 165178 NSsid: 165178 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98184 kB VmRSS: 98184 kB RssAnon: 59756 kB RssFile: 38428 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 584 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 3/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 46 nonvoluntary_ctxt_switches: 88 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '167212', 'Ngid': '0', 'Pid': '167212', 'PPid': '167211', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '167212', 'NSpid': '167212', 'NSpgid': '165178', 'NSsid': '165178', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98184 kB', 'VmRSS': '98184 kB', 'RssAnon': '59756 kB', 'RssFile': '38428 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '584 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '3/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '46', 'nonvoluntary_ctxt_switches': '88'} ('datou_batch_current', '167212', '1106844', '0', '1106844', '865592', '98184', b'', 'marlene', '2641098') 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 (21096666) 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 (2641098 ) ) 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 (21096666) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1341156150, 'portfolio_id': 21096666}, {'photo_id': 1341156149, 'portfolio_id': 21096666}, {'photo_id': 1341156145, 'portfolio_id': 21096666}, {'photo_id': 1341156118, 'portfolio_id': 21096666}, {'photo_id': 1341156113, 'portfolio_id': 21096666}, {'photo_id': 1341156108, 'portfolio_id': 21096666}, {'photo_id': 1341156062, 'portfolio_id': 21096666}, {'photo_id': 1341156061, 'portfolio_id': 21096666}, {'photo_id': 1341156056, 'portfolio_id': 21096666}, {'photo_id': 1341156036, 'portfolio_id': 21096666}, {'photo_id': 1341156029, 'portfolio_id': 21096666}, {'photo_id': 1341156024, 'portfolio_id': 21096666}, {'photo_id': 1341155632, 'portfolio_id': 21096666}, {'photo_id': 1341155615, 'portfolio_id': 21096666}, {'photo_id': 1341155612, 'portfolio_id': 21096666}, {'photo_id': 1341155610, 'portfolio_id': 21096666}, {'photo_id': 1341155575, 'portfolio_id': 21096666}, {'photo_id': 1341155574, 'portfolio_id': 21096666}, {'photo_id': 1341155498, 'portfolio_id': 21096666}, {'photo_id': 1341155496, 'portfolio_id': 21096666}, {'photo_id': 1341155493, 'portfolio_id': 21096666}, {'photo_id': 1341155490, 'portfolio_id': 21096666}, {'photo_id': 1341155433, 'portfolio_id': 21096666}, {'photo_id': 1341155427, 'portfolio_id': 21096666}, {'photo_id': 1341155423, 'portfolio_id': 21096666}, {'photo_id': 1341155417, 'portfolio_id': 21096666}, {'photo_id': 1341155409, 'portfolio_id': 21096666}, {'photo_id': 1341155377, 'portfolio_id': 21096666}, {'photo_id': 1341155375, 'portfolio_id': 21096666}, {'photo_id': 1341155372, 'portfolio_id': 21096666}, {'photo_id': 1341155358, 'portfolio_id': 21096666}, {'photo_id': 1341155290, 'portfolio_id': 21096666}, {'photo_id': 1341155285, 'portfolio_id': 21096666}, {'photo_id': 1341155283, 'portfolio_id': 21096666}, {'photo_id': 1341155279, 'portfolio_id': 21096666}, {'photo_id': 1341155275, 'portfolio_id': 21096666}, {'photo_id': 1341155273, 'portfolio_id': 21096666}, {'photo_id': 1341155200, 'portfolio_id': 21096666}, {'photo_id': 1341155164, 'portfolio_id': 21096666}, {'photo_id': 1341155082, 'portfolio_id': 21096666}] map_portfolio_id_photo_id: {21096666: [1341156150, 1341156149, 1341156145, 1341156118, 1341156113, 1341156108, 1341156062, 1341156061, 1341156056, 1341156036, 1341156029, 1341156024, 1341155632, 1341155615, 1341155612, 1341155610, 1341155575, 1341155574, 1341155498, 1341155496, 1341155493, 1341155490, 1341155433, 1341155427, 1341155423, 1341155417, 1341155409, 1341155377, 1341155375, 1341155372, 1341155358, 1341155290, 1341155285, 1341155283, 1341155279, 1341155275, 1341155273, 1341155200, 1341155164, 1341155082]} ##### Call download_photos : nb_thread : 1 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos ##### After load_data_input time to download the photos : 0.014255523681640625 #### 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 Thu Mar 6 03:54:56 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21096666) 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 : 21096666 get user id for portfolio 21096666 get sub ptf for main ptf 21096666, type 3726 and hashtags ['plastique', 'Teint_Dans_La_Masse', 'environnement', 'Carton_gris', 'kraft', 'papier', 'cartonnette', 'metal', 'Carton_brun', 'autre_refus', 'mal_croppe', 'flou'] 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`=21096666 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','Teint_Dans_La_Masse','environnement','Carton_gris','kraft','papier','cartonnette','metal','Carton_brun','autre_refus','mal_croppe','flou')) 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`=21096666 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','Teint_Dans_La_Masse','environnement','Carton_gris','kraft','papier','cartonnette','metal','Carton_brun','autre_refus','mal_croppe','flou')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 21096666, 'sub_port_id': 21096719, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13704164, 'last_updated_at': datetime.datetime(2025, 3, 6, 3, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 6, 3, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 6, 3, 49, 30)}, 'plastique': {'main_port_id': 21096666, 'sub_port_id': 21096720, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13704165, 'last_updated_at': datetime.datetime(2025, 3, 6, 3, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 6, 3, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 6, 3, 49, 30)}, 'flou': {'main_port_id': 21096666, 'sub_port_id': 21096721, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13704166, 'last_updated_at': datetime.datetime(2025, 3, 6, 3, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 6, 3, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 6, 3, 49, 30)}, 'kraft': {'main_port_id': 21096666, 'sub_port_id': 21096722, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13704167, 'last_updated_at': datetime.datetime(2025, 3, 6, 3, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 6, 3, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 6, 3, 49, 30)}, 'cartonnette': {'main_port_id': 21096666, 'sub_port_id': 21096723, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13704168, 'last_updated_at': datetime.datetime(2025, 3, 6, 3, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 6, 3, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 6, 3, 49, 30)}, 'Carton_gris': {'main_port_id': 21096666, 'sub_port_id': 21096724, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13704169, 'last_updated_at': datetime.datetime(2025, 3, 6, 3, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 6, 3, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 6, 3, 49, 30)}, 'Carton_brun': {'main_port_id': 21096666, 'sub_port_id': 21096725, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13704170, 'last_updated_at': datetime.datetime(2025, 3, 6, 3, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 6, 3, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 6, 3, 49, 30)}, 'autre_refus': {'main_port_id': 21096666, 'sub_port_id': 21096726, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13704171, 'last_updated_at': datetime.datetime(2025, 3, 6, 3, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 6, 3, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 6, 3, 49, 30)}, 'metal': {'main_port_id': 21096666, 'sub_port_id': 21096727, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13704172, 'last_updated_at': datetime.datetime(2025, 3, 6, 3, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 6, 3, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 6, 3, 49, 30)}, 'papier': {'main_port_id': 21096666, 'sub_port_id': 21096728, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13704173, 'last_updated_at': datetime.datetime(2025, 3, 6, 3, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 6, 3, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 6, 3, 49, 30)}, 'mal_croppe': {'main_port_id': 21096666, 'sub_port_id': 21096729, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13704174, 'last_updated_at': datetime.datetime(2025, 3, 6, 3, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 6, 3, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 6, 3, 49, 30)}, 'environnement': {'main_port_id': 21096666, 'sub_port_id': 21096730, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13704175, 'last_updated_at': datetime.datetime(2025, 3, 6, 3, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 6, 3, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 6, 3, 49, 30)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21096719 , 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=21096666 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 (21096719) result : ((1341155617,), (1341155618,), (1341155619,), (1341155620,), (1341155621,), (1341155622,), (1341155623,), (1341156026,), (1341156027,), (1341156028,), (1341156121,), (1341156122,), (1341156123,), (1341156124,), (1341156125,), (1341156126,), (1341156127,), (1341156188,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21096666) result : ((1341155082,), (1341155164,), (1341155200,), (1341155273,), (1341155275,), (1341155279,), (1341155283,), (1341155285,), (1341155290,), (1341155358,), (1341155372,), (1341155375,), (1341155377,), (1341155409,), (1341155417,), (1341155423,), (1341155427,), (1341155433,), (1341155490,), (1341155493,), (1341155496,), (1341155498,), (1341155574,), (1341155575,), (1341155610,), (1341155612,), (1341155615,), (1341155632,), (1341156024,), (1341156029,), (1341156036,), (1341156056,), (1341156061,), (1341156062,), (1341156108,), (1341156113,), (1341156118,), (1341156145,), (1341156149,), (1341156150,)) 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 (1341155200) 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 21096720 , 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=21096666 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 (21096720) result : ((1341155636,), (1341156017,), (1341156146,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21096666) result : ((1341155082,), (1341155164,), (1341155200,), (1341155273,), (1341155275,), (1341155279,), (1341155283,), (1341155285,), (1341155290,), (1341155358,), (1341155372,), (1341155375,), (1341155377,), (1341155409,), (1341155417,), (1341155423,), (1341155427,), (1341155433,), (1341155490,), (1341155493,), (1341155496,), (1341155498,), (1341155574,), (1341155575,), (1341155610,), (1341155612,), (1341155615,), (1341155632,), (1341156024,), (1341156029,), (1341156036,), (1341156056,), (1341156061,), (1341156062,), (1341156108,), (1341156113,), (1341156118,), (1341156145,), (1341156149,), (1341156150,)) 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 (1341155200) 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 21096721 , 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=21096666 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 (21096721) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21096666) result : ((1341155082,), (1341155164,), (1341155200,), (1341155273,), (1341155275,), (1341155279,), (1341155283,), (1341155285,), (1341155290,), (1341155358,), (1341155372,), (1341155375,), (1341155377,), (1341155409,), (1341155417,), (1341155423,), (1341155427,), (1341155433,), (1341155490,), (1341155493,), (1341155496,), (1341155498,), (1341155574,), (1341155575,), (1341155610,), (1341155612,), (1341155615,), (1341155632,), (1341156024,), (1341156029,), (1341156036,), (1341156056,), (1341156061,), (1341156062,), (1341156108,), (1341156113,), (1341156118,), (1341156145,), (1341156149,), (1341156150,)) 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 (1341155200) 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 21096722 , 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=21096666 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 (21096722) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21096666) result : ((1341155082,), (1341155164,), (1341155200,), (1341155273,), (1341155275,), (1341155279,), (1341155283,), (1341155285,), (1341155290,), (1341155358,), (1341155372,), (1341155375,), (1341155377,), (1341155409,), (1341155417,), (1341155423,), (1341155427,), (1341155433,), (1341155490,), (1341155493,), (1341155496,), (1341155498,), (1341155574,), (1341155575,), (1341155610,), (1341155612,), (1341155615,), (1341155632,), (1341156024,), (1341156029,), (1341156036,), (1341156056,), (1341156061,), (1341156062,), (1341156108,), (1341156113,), (1341156118,), (1341156145,), (1341156149,), (1341156150,)) 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 (1341155200) 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 21096723 , 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=21096666 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 (21096723) result : ((1341155633,), (1341156140,), (1341156190,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21096666) result : ((1341155082,), (1341155164,), (1341155200,), (1341155273,), (1341155275,), (1341155279,), (1341155283,), (1341155285,), (1341155290,), (1341155358,), (1341155372,), (1341155375,), (1341155377,), (1341155409,), (1341155417,), (1341155423,), (1341155427,), (1341155433,), (1341155490,), (1341155493,), (1341155496,), (1341155498,), (1341155574,), (1341155575,), (1341155610,), (1341155612,), (1341155615,), (1341155632,), (1341156024,), (1341156029,), (1341156036,), (1341156056,), (1341156061,), (1341156062,), (1341156108,), (1341156113,), (1341156118,), (1341156145,), (1341156149,), (1341156150,)) 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 (1341155200) 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 21096724 , 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=21096666 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 (21096724) result : ((1341155631,), (1341156010,), (1341156037,), (1341156038,), (1341156138,), (1341156156,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21096666) result : ((1341155082,), (1341155164,), (1341155200,), (1341155273,), (1341155275,), (1341155279,), (1341155283,), (1341155285,), (1341155290,), (1341155358,), (1341155372,), (1341155375,), (1341155377,), (1341155409,), (1341155417,), (1341155423,), (1341155427,), (1341155433,), (1341155490,), (1341155493,), (1341155496,), (1341155498,), (1341155574,), (1341155575,), (1341155610,), (1341155612,), (1341155615,), (1341155632,), (1341156024,), (1341156029,), (1341156036,), (1341156056,), (1341156061,), (1341156062,), (1341156108,), (1341156113,), (1341156118,), (1341156145,), (1341156149,), (1341156150,)) 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 (1341155200) 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 21096725 , 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=21096666 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 (21096725) result : ((1341155634,), (1341155635,), (1341156013,), (1341156014,), (1341156039,), (1341156040,), (1341156142,), (1341156143,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21096666) result : ((1341155082,), (1341155164,), (1341155200,), (1341155273,), (1341155275,), (1341155279,), (1341155283,), (1341155285,), (1341155290,), (1341155358,), (1341155372,), (1341155375,), (1341155377,), (1341155409,), (1341155417,), (1341155423,), (1341155427,), (1341155433,), (1341155490,), (1341155493,), (1341155496,), (1341155498,), (1341155574,), (1341155575,), (1341155610,), (1341155612,), (1341155615,), (1341155632,), (1341156024,), (1341156029,), (1341156036,), (1341156056,), (1341156061,), (1341156062,), (1341156108,), (1341156113,), (1341156118,), (1341156145,), (1341156149,), (1341156150,)) 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 (1341155200) 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 21096726 , 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=21096666 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 (21096726) result : ((1341155599,), (1341155600,), (1341155624,), (1341155625,), (1341155626,), (1341155627,), (1341155628,), (1341156005,), (1341156006,), (1341156007,), (1341156030,), (1341156031,), (1341156032,), (1341156033,), (1341156132,), (1341156133,), (1341156134,), (1341156135,), (1341156136,), (1341156137,), (1341156153,), (1341156154,), (1341156155,), (1341156189,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21096666) result : ((1341155082,), (1341155164,), (1341155200,), (1341155273,), (1341155275,), (1341155279,), (1341155283,), (1341155285,), (1341155290,), (1341155358,), (1341155372,), (1341155375,), (1341155377,), (1341155409,), (1341155417,), (1341155423,), (1341155427,), (1341155433,), (1341155490,), (1341155493,), (1341155496,), (1341155498,), (1341155574,), (1341155575,), (1341155610,), (1341155612,), (1341155615,), (1341155632,), (1341156024,), (1341156029,), (1341156036,), (1341156056,), (1341156061,), (1341156062,), (1341156108,), (1341156113,), (1341156118,), (1341156145,), (1341156149,), (1341156150,)) 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 (1341155200) 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 21096727 , 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=21096666 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 (21096727) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21096666) result : ((1341155082,), (1341155164,), (1341155200,), (1341155273,), (1341155275,), (1341155279,), (1341155283,), (1341155285,), (1341155290,), (1341155358,), (1341155372,), (1341155375,), (1341155377,), (1341155409,), (1341155417,), (1341155423,), (1341155427,), (1341155433,), (1341155490,), (1341155493,), (1341155496,), (1341155498,), (1341155574,), (1341155575,), (1341155610,), (1341155612,), (1341155615,), (1341155632,), (1341156024,), (1341156029,), (1341156036,), (1341156056,), (1341156061,), (1341156062,), (1341156108,), (1341156113,), (1341156118,), (1341156145,), (1341156149,), (1341156150,)) 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 (1341155200) 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 21096728 , 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=21096666 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 (21096728) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21096666) result : ((1341155082,), (1341155164,), (1341155200,), (1341155273,), (1341155275,), (1341155279,), (1341155283,), (1341155285,), (1341155290,), (1341155358,), (1341155372,), (1341155375,), (1341155377,), (1341155409,), (1341155417,), (1341155423,), (1341155427,), (1341155433,), (1341155490,), (1341155493,), (1341155496,), (1341155498,), (1341155574,), (1341155575,), (1341155610,), (1341155612,), (1341155615,), (1341155632,), (1341156024,), (1341156029,), (1341156036,), (1341156056,), (1341156061,), (1341156062,), (1341156108,), (1341156113,), (1341156118,), (1341156145,), (1341156149,), (1341156150,)) 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 (1341155200) 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 21096729 , 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=21096666 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 (21096729) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21096666) result : ((1341155082,), (1341155164,), (1341155200,), (1341155273,), (1341155275,), (1341155279,), (1341155283,), (1341155285,), (1341155290,), (1341155358,), (1341155372,), (1341155375,), (1341155377,), (1341155409,), (1341155417,), (1341155423,), (1341155427,), (1341155433,), (1341155490,), (1341155493,), (1341155496,), (1341155498,), (1341155574,), (1341155575,), (1341155610,), (1341155612,), (1341155615,), (1341155632,), (1341156024,), (1341156029,), (1341156036,), (1341156056,), (1341156061,), (1341156062,), (1341156108,), (1341156113,), (1341156118,), (1341156145,), (1341156149,), (1341156150,)) 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 (1341155200) 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 21096730 , 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=21096666 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 (21096730) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21096666) result : ((1341155082,), (1341155164,), (1341155200,), (1341155273,), (1341155275,), (1341155279,), (1341155283,), (1341155285,), (1341155290,), (1341155358,), (1341155372,), (1341155375,), (1341155377,), (1341155409,), (1341155417,), (1341155423,), (1341155427,), (1341155433,), (1341155490,), (1341155493,), (1341155496,), (1341155498,), (1341155574,), (1341155575,), (1341155610,), (1341155612,), (1341155615,), (1341155632,), (1341156024,), (1341156029,), (1341156036,), (1341156056,), (1341156061,), (1341156062,), (1341156108,), (1341156113,), (1341156118,), (1341156145,), (1341156149,), (1341156150,)) 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 (1341155200) 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`=21096666 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','Teint_Dans_La_Masse','environnement','Carton_gris','kraft','papier','cartonnette','metal','Carton_brun','autre_refus','mal_croppe','flou')) 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`=21096666 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','Teint_Dans_La_Masse','environnement','Carton_gris','kraft','papier','cartonnette','metal','Carton_brun','autre_refus','mal_croppe','flou')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 21096666, 'sub_port_id': 21096731, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13704176, 'last_updated_at': datetime.datetime(2025, 3, 6, 3, 49, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 6, 3, 49, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 6, 3, 49, 31)}, 'plastique': {'main_port_id': 21096666, 'sub_port_id': 21096732, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13704177, 'last_updated_at': datetime.datetime(2025, 3, 6, 3, 49, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 6, 3, 49, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 6, 3, 49, 31)}, 'flou': {'main_port_id': 21096666, 'sub_port_id': 21096733, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13704178, 'last_updated_at': datetime.datetime(2025, 3, 6, 3, 49, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 6, 3, 49, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 6, 3, 49, 31)}, 'kraft': {'main_port_id': 21096666, 'sub_port_id': 21096734, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13704179, 'last_updated_at': datetime.datetime(2025, 3, 6, 3, 49, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 6, 3, 49, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 6, 3, 49, 31)}, 'cartonnette': {'main_port_id': 21096666, 'sub_port_id': 21096735, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13704180, 'last_updated_at': datetime.datetime(2025, 3, 6, 3, 49, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 6, 3, 49, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 6, 3, 49, 31)}, 'Carton_gris': {'main_port_id': 21096666, 'sub_port_id': 21096736, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13704181, 'last_updated_at': datetime.datetime(2025, 3, 6, 3, 49, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 6, 3, 49, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 6, 3, 49, 31)}, 'Carton_brun': {'main_port_id': 21096666, 'sub_port_id': 21096737, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13704182, 'last_updated_at': datetime.datetime(2025, 3, 6, 3, 49, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 6, 3, 49, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 6, 3, 49, 31)}, 'autre_refus': {'main_port_id': 21096666, 'sub_port_id': 21096738, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13704183, 'last_updated_at': datetime.datetime(2025, 3, 6, 3, 49, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 6, 3, 49, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 6, 3, 49, 31)}, 'metal': {'main_port_id': 21096666, 'sub_port_id': 21096739, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13704184, 'last_updated_at': datetime.datetime(2025, 3, 6, 3, 49, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 6, 3, 49, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 6, 3, 49, 31)}, 'papier': {'main_port_id': 21096666, 'sub_port_id': 21096740, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13704185, 'last_updated_at': datetime.datetime(2025, 3, 6, 3, 49, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 6, 3, 49, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 6, 3, 49, 31)}, 'mal_croppe': {'main_port_id': 21096666, 'sub_port_id': 21096741, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13704186, 'last_updated_at': datetime.datetime(2025, 3, 6, 3, 49, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 6, 3, 49, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 6, 3, 49, 31)}, 'environnement': {'main_port_id': 21096666, 'sub_port_id': 21096742, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13704187, 'last_updated_at': datetime.datetime(2025, 3, 6, 3, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 6, 3, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 6, 3, 49, 31)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21096731,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21096719 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21096732,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21096720 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21096733,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21096721 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21096734,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21096722 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21096735,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21096723 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21096736,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21096724 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21096737,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21096725 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21096738,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21096726 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21096739,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21096727 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21096740,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21096728 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21096741,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21096729 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21096742,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21096730 lien utilise dans velours : https://www.fotonower.com/velours/21096731,21096732,21096733,21096734,21096735,21096736,21096737,21096738,21096739,21096740,21096741,21096742?tags=Teint_Dans_La_Masse,plastique,flou,kraft,cartonnette,Carton_gris,Carton_brun,autre_refus,metal,papier,mal_croppe,environnement After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21096666]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1341156150, 1341156149, 1341156145, 1341156118, 1341156113, 1341156108, 1341156062, 1341156061, 1341156056, 1341156036, 1341156029, 1341156024] map_info['map_portfolio_photo'] : {21096666: [1341156150, 1341156149, 1341156145, 1341156118, 1341156113, 1341156108, 1341156062, 1341156061, 1341156056, 1341156036, 1341156029, 1341156024, 1341155632, 1341155615, 1341155612, 1341155610, 1341155575, 1341155574, 1341155498, 1341155496, 1341155493, 1341155490, 1341155433, 1341155427, 1341155423, 1341155417, 1341155409, 1341155377, 1341155375, 1341155372, 1341155358, 1341155290, 1341155285, 1341155283, 1341155279, 1341155275, 1341155273, 1341155200, 1341155164, 1341155082]} final : False mtd_id 4302 list_pids : [1341156150, 1341156149, 1341156145, 1341156118, 1341156113, 1341156108, 1341156062, 1341156061, 1341156056, 1341156036, 1341156029, 1341156024] Looping around the photos to save general results len do output : 1 /21096666. 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, '2641098') ('4302', '21096666', '1341156150', None, None, None, None, None, '2641098') ('4302', None, None, None, None, None, None, None, '2641098') ('4302', '21096666', '1341156149', None, None, None, None, None, '2641098') ('4302', None, None, None, None, None, None, None, '2641098') ('4302', '21096666', '1341156145', None, None, None, None, None, '2641098') ('4302', None, None, None, None, None, None, None, '2641098') ('4302', '21096666', '1341156118', None, None, None, None, None, '2641098') ('4302', None, None, None, None, None, None, None, '2641098') ('4302', '21096666', '1341156113', None, None, None, None, None, '2641098') ('4302', None, None, None, None, None, None, None, '2641098') ('4302', '21096666', '1341156108', None, None, None, None, None, '2641098') ('4302', None, None, None, None, None, None, None, '2641098') ('4302', '21096666', '1341156062', None, None, None, None, None, '2641098') ('4302', None, None, None, None, None, None, None, '2641098') ('4302', '21096666', '1341156061', None, None, None, None, None, '2641098') ('4302', None, None, None, None, None, None, None, '2641098') ('4302', '21096666', '1341156056', None, None, None, None, None, '2641098') ('4302', None, None, None, None, None, None, None, '2641098') ('4302', '21096666', '1341156036', None, None, None, None, None, '2641098') ('4302', None, None, None, None, None, None, None, '2641098') ('4302', '21096666', '1341156029', None, None, None, None, None, '2641098') ('4302', None, None, None, None, None, None, None, '2641098') ('4302', '21096666', '1341156024', None, None, None, None, None, '2641098') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21096666', "{'Teint_Dans_La_Masse': 21096719, 'plastique': 21096720, 'flou': 21096721, 'kraft': 21096722, 'cartonnette': 21096723, 'Carton_gris': 21096724, 'Carton_brun': 21096725, 'autre_refus': 21096726, 'metal': 21096727, 'papier': 21096728, 'mal_croppe': 21096729, 'environnement': 21096730}", None, None, None, None, '2641098'), ('4302', '21096666', '1341156150', None, None, None, None, None, '2641098'), ('4302', '21096666', '1341156149', None, None, None, None, None, '2641098'), ('4302', '21096666', '1341156145', None, None, None, None, None, '2641098'), ('4302', '21096666', '1341156118', None, None, None, None, None, '2641098'), ('4302', '21096666', '1341156113', None, None, None, None, None, '2641098'), ('4302', '21096666', '1341156108', None, None, None, None, None, '2641098'), ('4302', '21096666', '1341156062', None, None, None, None, None, '2641098'), ('4302', '21096666', '1341156061', None, None, None, None, None, '2641098'), ('4302', '21096666', '1341156056', None, None, None, None, None, '2641098'), ('4302', '21096666', '1341156036', None, None, None, None, None, '2641098'), ('4302', '21096666', '1341156029', None, None, None, None, None, '2641098'), ('4302', '21096666', '1341156024', None, None, None, None, None, '2641098')] time used for this insertion : 0.14015817642211914 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.2446062564849854 time spend to save output : 0.14051079750061035 total time spend for step 1 : 1.3851170539855957 step2:final Thu Mar 6 03:54:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21096666) 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 21096666 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1341155200,1341155164,1341155082,1341155290,1341155285,1341155283,1341155279,1341155275,1341155273,1341155377,1341155375,1341155372,1341155358,1341155433,1341155427,1341155423,1341155417,1341155409,1341155575,1341155574,1341155498,1341155496,1341155493,1341155490,1341155632,1341155615,1341155612,1341155610,1341156062,1341156061,1341156056,1341156036,1341156029,1341156024,1341156150,1341156149,1341156145,1341156118,1341156113,1341156108); 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([21096666]) Inside saveOutput : final : False verbose : True original output for save of step final : {1341156150: ('0.08971250422306251',), 1341156149: ('0.08971250422306251',), 1341156145: ('0.08971250422306251',), 1341156118: ('0.08971250422306251',), 1341156113: ('0.08971250422306251',), 1341156108: ('0.08971250422306251',), 1341156062: ('0.08971250422306251',), 1341156061: ('0.08971250422306251',), 1341156056: ('0.08971250422306251',), 1341156036: ('0.08971250422306251',), 1341156029: ('0.08971250422306251',), 1341156024: ('0.08971250422306251',)} new output for save of step final : {1341156150: ('0.08971250422306251',), 1341156149: ('0.08971250422306251',), 1341156145: ('0.08971250422306251',), 1341156118: ('0.08971250422306251',), 1341156113: ('0.08971250422306251',), 1341156108: ('0.08971250422306251',), 1341156062: ('0.08971250422306251',), 1341156061: ('0.08971250422306251',), 1341156056: ('0.08971250422306251',), 1341156036: ('0.08971250422306251',), 1341156029: ('0.08971250422306251',), 1341156024: ('0.08971250422306251',)} [1341156150, 1341156149, 1341156145, 1341156118, 1341156113, 1341156108, 1341156062, 1341156061, 1341156056, 1341156036, 1341156029, 1341156024] map_info['map_portfolio_photo'] : {21096666: [1341156150, 1341156149, 1341156145, 1341156118, 1341156113, 1341156108, 1341156062, 1341156061, 1341156056, 1341156036, 1341156029, 1341156024, 1341155632, 1341155615, 1341155612, 1341155610, 1341155575, 1341155574, 1341155498, 1341155496, 1341155493, 1341155490, 1341155433, 1341155427, 1341155423, 1341155417, 1341155409, 1341155377, 1341155375, 1341155372, 1341155358, 1341155290, 1341155285, 1341155283, 1341155279, 1341155275, 1341155273, 1341155200, 1341155164, 1341155082]} final : False mtd_id 4302 list_pids : [1341156150, 1341156149, 1341156145, 1341156118, 1341156113, 1341156108, 1341156062, 1341156061, 1341156056, 1341156036, 1341156029, 1341156024] Looping around the photos to save general results len do output : 12 /1341156150.Didn't retrieve data . /1341156149.Didn't retrieve data . /1341156145.Didn't retrieve data . /1341156118.Didn't retrieve data . /1341156113.Didn't retrieve data . /1341156108.Didn't retrieve data . /1341156062.Didn't retrieve data . /1341156061.Didn't retrieve data . /1341156056.Didn't retrieve data . /1341156036.Didn't retrieve data . /1341156029.Didn't retrieve data . /1341156024.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, '2641098') ('4302', '21096666', '1341156150', None, None, None, None, None, '2641098') ('4302', None, None, None, None, None, None, None, '2641098') ('4302', '21096666', '1341156149', None, None, None, None, None, '2641098') ('4302', None, None, None, None, None, None, None, '2641098') ('4302', '21096666', '1341156145', None, None, None, None, None, '2641098') ('4302', None, None, None, None, None, None, None, '2641098') ('4302', '21096666', '1341156118', None, None, None, None, None, '2641098') ('4302', None, None, None, None, None, None, None, '2641098') ('4302', '21096666', '1341156113', None, None, None, None, None, '2641098') ('4302', None, None, None, None, None, None, None, '2641098') ('4302', '21096666', '1341156108', None, None, None, None, None, '2641098') ('4302', None, None, None, None, None, None, None, '2641098') ('4302', '21096666', '1341156062', None, None, None, None, None, '2641098') ('4302', None, None, None, None, None, None, None, '2641098') ('4302', '21096666', '1341156061', None, None, None, None, None, '2641098') ('4302', None, None, None, None, None, None, None, '2641098') ('4302', '21096666', '1341156056', None, None, None, None, None, '2641098') ('4302', None, None, None, None, None, None, None, '2641098') ('4302', '21096666', '1341156036', None, None, None, None, None, '2641098') ('4302', None, None, None, None, None, None, None, '2641098') ('4302', '21096666', '1341156029', None, None, None, None, None, '2641098') ('4302', None, None, None, None, None, None, None, '2641098') ('4302', '21096666', '1341156024', None, None, None, None, None, '2641098') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 36 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21096666', '1341156150', '0.08971250422306251', None, None, None, None, '2641098'), ('4302', '21096666', '1341156149', '0.08971250422306251', None, None, None, None, '2641098'), ('4302', '21096666', '1341156145', '0.08971250422306251', None, None, None, None, '2641098'), ('4302', '21096666', '1341156118', '0.08971250422306251', None, None, None, None, '2641098'), ('4302', '21096666', '1341156113', '0.08971250422306251', None, None, None, None, '2641098'), ('4302', '21096666', '1341156108', '0.08971250422306251', None, None, None, None, '2641098'), ('4302', '21096666', '1341156062', '0.08971250422306251', None, None, None, None, '2641098'), ('4302', '21096666', '1341156061', '0.08971250422306251', None, None, None, None, '2641098'), ('4302', '21096666', '1341156056', '0.08971250422306251', None, None, None, None, '2641098'), ('4302', '21096666', '1341156036', '0.08971250422306251', None, None, None, None, '2641098'), ('4302', '21096666', '1341156029', '0.08971250422306251', None, None, None, None, '2641098'), ('4302', '21096666', '1341156024', '0.08971250422306251', None, None, None, None, '2641098')] time used for this insertion : 0.18718624114990234 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.33652639389038086 time spend to save output : 0.18782281875610352 total time spend for step 2 : 0.5243492126464844 step3:velours_tree Thu Mar 6 03:54:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {21096666: [{'Teint_Dans_La_Masse': 21096719, 'plastique': 21096720, 'flou': 21096721, 'kraft': 21096722, 'cartonnette': 21096723, 'Carton_gris': 21096724, 'Carton_brun': 21096725, 'autre_refus': 21096726, 'metal': 21096727, 'papier': 21096728, 'mal_croppe': 21096729, 'environnement': 21096730}]} input_args_next_step : {21096666: ()} output_args : {21096666: [{'Teint_Dans_La_Masse': 21096719, 'plastique': 21096720, 'flou': 21096721, 'kraft': 21096722, 'cartonnette': 21096723, 'Carton_gris': 21096724, 'Carton_brun': 21096725, 'autre_refus': 21096726, 'metal': 21096727, 'papier': 21096728, 'mal_croppe': 21096729, 'environnement': 21096730}]} args : 21096666 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 : ({'Teint_Dans_La_Masse': 21096719, 'plastique': 21096720, 'flou': 21096721, 'kraft': 21096722, 'cartonnette': 21096723, 'Carton_gris': 21096724, 'Carton_brun': 21096725, 'autre_refus': 21096726, 'metal': 21096727, 'papier': 21096728, 'mal_croppe': 21096729, 'environnement': 21096730},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21096666) 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([21096666]) 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.26404762268066406 time spend to save output : 4.9114227294921875e-05 total time spend for step 3 : 0.264096736907959 step4:send_mail_cod Thu Mar 6 03:54:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1341156150: ('0.08971250422306251',), 1341156149: ('0.08971250422306251',), 1341156145: ('0.08971250422306251',), 1341156118: ('0.08971250422306251',), 1341156113: ('0.08971250422306251',), 1341156108: ('0.08971250422306251',), 1341156062: ('0.08971250422306251',), 1341156061: ('0.08971250422306251',), 1341156056: ('0.08971250422306251',), 1341156036: ('0.08971250422306251',), 1341156029: ('0.08971250422306251',), 1341156024: ('0.08971250422306251',)} input_args_next_step : {1341156150: ()} output_args : {1341156150: ('0.08971250422306251',), 1341156149: ('0.08971250422306251',), 1341156145: ('0.08971250422306251',), 1341156118: ('0.08971250422306251',), 1341156113: ('0.08971250422306251',), 1341156108: ('0.08971250422306251',), 1341156062: ('0.08971250422306251',), 1341156061: ('0.08971250422306251',), 1341156056: ('0.08971250422306251',), 1341156036: ('0.08971250422306251',), 1341156029: ('0.08971250422306251',), 1341156024: ('0.08971250422306251',)} args : 1341156150 depend.output_id : 0 input_args_next_step : {1341156150: ('0.08971250422306251',), 1341156149: ()} output_args : {1341156150: ('0.08971250422306251',), 1341156149: ('0.08971250422306251',), 1341156145: ('0.08971250422306251',), 1341156118: ('0.08971250422306251',), 1341156113: ('0.08971250422306251',), 1341156108: ('0.08971250422306251',), 1341156062: ('0.08971250422306251',), 1341156061: ('0.08971250422306251',), 1341156056: ('0.08971250422306251',), 1341156036: ('0.08971250422306251',), 1341156029: ('0.08971250422306251',), 1341156024: ('0.08971250422306251',)} args : 1341156149 depend.output_id : 0 input_args_next_step : {1341156150: ('0.08971250422306251',), 1341156149: ('0.08971250422306251',), 1341156145: ()} output_args : {1341156150: ('0.08971250422306251',), 1341156149: ('0.08971250422306251',), 1341156145: ('0.08971250422306251',), 1341156118: ('0.08971250422306251',), 1341156113: ('0.08971250422306251',), 1341156108: ('0.08971250422306251',), 1341156062: ('0.08971250422306251',), 1341156061: ('0.08971250422306251',), 1341156056: ('0.08971250422306251',), 1341156036: ('0.08971250422306251',), 1341156029: ('0.08971250422306251',), 1341156024: ('0.08971250422306251',)} args : 1341156145 depend.output_id : 0 input_args_next_step : {1341156150: ('0.08971250422306251',), 1341156149: ('0.08971250422306251',), 1341156145: ('0.08971250422306251',), 1341156118: ()} output_args : {1341156150: ('0.08971250422306251',), 1341156149: ('0.08971250422306251',), 1341156145: ('0.08971250422306251',), 1341156118: ('0.08971250422306251',), 1341156113: ('0.08971250422306251',), 1341156108: ('0.08971250422306251',), 1341156062: ('0.08971250422306251',), 1341156061: ('0.08971250422306251',), 1341156056: ('0.08971250422306251',), 1341156036: ('0.08971250422306251',), 1341156029: ('0.08971250422306251',), 1341156024: ('0.08971250422306251',)} args : 1341156118 depend.output_id : 0 input_args_next_step : {1341156150: ('0.08971250422306251',), 1341156149: ('0.08971250422306251',), 1341156145: ('0.08971250422306251',), 1341156118: ('0.08971250422306251',), 1341156113: ()} output_args : {1341156150: ('0.08971250422306251',), 1341156149: ('0.08971250422306251',), 1341156145: ('0.08971250422306251',), 1341156118: ('0.08971250422306251',), 1341156113: ('0.08971250422306251',), 1341156108: ('0.08971250422306251',), 1341156062: ('0.08971250422306251',), 1341156061: ('0.08971250422306251',), 1341156056: ('0.08971250422306251',), 1341156036: ('0.08971250422306251',), 1341156029: ('0.08971250422306251',), 1341156024: ('0.08971250422306251',)} args : 1341156113 depend.output_id : 0 input_args_next_step : {1341156150: ('0.08971250422306251',), 1341156149: ('0.08971250422306251',), 1341156145: ('0.08971250422306251',), 1341156118: ('0.08971250422306251',), 1341156113: ('0.08971250422306251',), 1341156108: ()} output_args : {1341156150: ('0.08971250422306251',), 1341156149: ('0.08971250422306251',), 1341156145: ('0.08971250422306251',), 1341156118: ('0.08971250422306251',), 1341156113: ('0.08971250422306251',), 1341156108: ('0.08971250422306251',), 1341156062: ('0.08971250422306251',), 1341156061: ('0.08971250422306251',), 1341156056: ('0.08971250422306251',), 1341156036: ('0.08971250422306251',), 1341156029: ('0.08971250422306251',), 1341156024: ('0.08971250422306251',)} args : 1341156108 depend.output_id : 0 input_args_next_step : {1341156150: ('0.08971250422306251',), 1341156149: ('0.08971250422306251',), 1341156145: ('0.08971250422306251',), 1341156118: ('0.08971250422306251',), 1341156113: ('0.08971250422306251',), 1341156108: ('0.08971250422306251',), 1341156062: ()} output_args : {1341156150: ('0.08971250422306251',), 1341156149: ('0.08971250422306251',), 1341156145: ('0.08971250422306251',), 1341156118: ('0.08971250422306251',), 1341156113: ('0.08971250422306251',), 1341156108: ('0.08971250422306251',), 1341156062: ('0.08971250422306251',), 1341156061: ('0.08971250422306251',), 1341156056: ('0.08971250422306251',), 1341156036: ('0.08971250422306251',), 1341156029: ('0.08971250422306251',), 1341156024: ('0.08971250422306251',)} args : 1341156062 depend.output_id : 0 input_args_next_step : {1341156150: ('0.08971250422306251',), 1341156149: ('0.08971250422306251',), 1341156145: ('0.08971250422306251',), 1341156118: ('0.08971250422306251',), 1341156113: ('0.08971250422306251',), 1341156108: ('0.08971250422306251',), 1341156062: ('0.08971250422306251',), 1341156061: ()} output_args : {1341156150: ('0.08971250422306251',), 1341156149: ('0.08971250422306251',), 1341156145: ('0.08971250422306251',), 1341156118: ('0.08971250422306251',), 1341156113: ('0.08971250422306251',), 1341156108: ('0.08971250422306251',), 1341156062: ('0.08971250422306251',), 1341156061: ('0.08971250422306251',), 1341156056: ('0.08971250422306251',), 1341156036: ('0.08971250422306251',), 1341156029: ('0.08971250422306251',), 1341156024: ('0.08971250422306251',)} args : 1341156061 depend.output_id : 0 input_args_next_step : {1341156150: ('0.08971250422306251',), 1341156149: ('0.08971250422306251',), 1341156145: ('0.08971250422306251',), 1341156118: ('0.08971250422306251',), 1341156113: ('0.08971250422306251',), 1341156108: ('0.08971250422306251',), 1341156062: ('0.08971250422306251',), 1341156061: ('0.08971250422306251',), 1341156056: ()} output_args : {1341156150: ('0.08971250422306251',), 1341156149: ('0.08971250422306251',), 1341156145: ('0.08971250422306251',), 1341156118: ('0.08971250422306251',), 1341156113: ('0.08971250422306251',), 1341156108: ('0.08971250422306251',), 1341156062: ('0.08971250422306251',), 1341156061: ('0.08971250422306251',), 1341156056: ('0.08971250422306251',), 1341156036: ('0.08971250422306251',), 1341156029: ('0.08971250422306251',), 1341156024: ('0.08971250422306251',)} args : 1341156056 depend.output_id : 0 input_args_next_step : {1341156150: ('0.08971250422306251',), 1341156149: ('0.08971250422306251',), 1341156145: ('0.08971250422306251',), 1341156118: ('0.08971250422306251',), 1341156113: ('0.08971250422306251',), 1341156108: ('0.08971250422306251',), 1341156062: ('0.08971250422306251',), 1341156061: ('0.08971250422306251',), 1341156056: ('0.08971250422306251',), 1341156036: ()} output_args : {1341156150: ('0.08971250422306251',), 1341156149: ('0.08971250422306251',), 1341156145: ('0.08971250422306251',), 1341156118: ('0.08971250422306251',), 1341156113: ('0.08971250422306251',), 1341156108: ('0.08971250422306251',), 1341156062: ('0.08971250422306251',), 1341156061: ('0.08971250422306251',), 1341156056: ('0.08971250422306251',), 1341156036: ('0.08971250422306251',), 1341156029: ('0.08971250422306251',), 1341156024: ('0.08971250422306251',)} args : 1341156036 depend.output_id : 0 input_args_next_step : {1341156150: ('0.08971250422306251',), 1341156149: ('0.08971250422306251',), 1341156145: ('0.08971250422306251',), 1341156118: ('0.08971250422306251',), 1341156113: ('0.08971250422306251',), 1341156108: ('0.08971250422306251',), 1341156062: ('0.08971250422306251',), 1341156061: ('0.08971250422306251',), 1341156056: ('0.08971250422306251',), 1341156036: ('0.08971250422306251',), 1341156029: ()} output_args : {1341156150: ('0.08971250422306251',), 1341156149: ('0.08971250422306251',), 1341156145: ('0.08971250422306251',), 1341156118: ('0.08971250422306251',), 1341156113: ('0.08971250422306251',), 1341156108: ('0.08971250422306251',), 1341156062: ('0.08971250422306251',), 1341156061: ('0.08971250422306251',), 1341156056: ('0.08971250422306251',), 1341156036: ('0.08971250422306251',), 1341156029: ('0.08971250422306251',), 1341156024: ('0.08971250422306251',)} args : 1341156029 depend.output_id : 0 input_args_next_step : {1341156150: ('0.08971250422306251',), 1341156149: ('0.08971250422306251',), 1341156145: ('0.08971250422306251',), 1341156118: ('0.08971250422306251',), 1341156113: ('0.08971250422306251',), 1341156108: ('0.08971250422306251',), 1341156062: ('0.08971250422306251',), 1341156061: ('0.08971250422306251',), 1341156056: ('0.08971250422306251',), 1341156036: ('0.08971250422306251',), 1341156029: ('0.08971250422306251',), 1341156024: ()} output_args : {1341156150: ('0.08971250422306251',), 1341156149: ('0.08971250422306251',), 1341156145: ('0.08971250422306251',), 1341156118: ('0.08971250422306251',), 1341156113: ('0.08971250422306251',), 1341156108: ('0.08971250422306251',), 1341156062: ('0.08971250422306251',), 1341156061: ('0.08971250422306251',), 1341156056: ('0.08971250422306251',), 1341156036: ('0.08971250422306251',), 1341156029: ('0.08971250422306251',), 1341156024: ('0.08971250422306251',)} args : 1341156024 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 : {21096666: [{'Teint_Dans_La_Masse': 21096719, 'plastique': 21096720, 'flou': 21096721, 'kraft': 21096722, 'cartonnette': 21096723, 'Carton_gris': 21096724, 'Carton_brun': 21096725, 'autre_refus': 21096726, 'metal': 21096727, 'papier': 21096728, 'mal_croppe': 21096729, 'environnement': 21096730}]} input_args_next_step : {1341156150: ('0.08971250422306251',), 1341156149: ('0.08971250422306251',), 1341156145: ('0.08971250422306251',), 1341156118: ('0.08971250422306251',), 1341156113: ('0.08971250422306251',), 1341156108: ('0.08971250422306251',), 1341156062: ('0.08971250422306251',), 1341156061: ('0.08971250422306251',), 1341156056: ('0.08971250422306251',), 1341156036: ('0.08971250422306251',), 1341156029: ('0.08971250422306251',), 1341156024: ('0.08971250422306251',), 21096666: ()} output_args : {21096666: [{'Teint_Dans_La_Masse': 21096719, 'plastique': 21096720, 'flou': 21096721, 'kraft': 21096722, 'cartonnette': 21096723, 'Carton_gris': 21096724, 'Carton_brun': 21096725, 'autre_refus': 21096726, 'metal': 21096727, 'papier': 21096728, 'mal_croppe': 21096729, 'environnement': 21096730}]} args : 21096666 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :13, first value : ('0.08971250422306251',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21096666) 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 (1341156150,1341156149,1341156145,1341156118,1341156113,1341156108,1341156062,1341156061,1341156056,1341156036,1341156029,1341156024) Found this number of photos: 12 ##### Call download_photos : nb_thread : 5 begin to download photo : 1341156024 begin to download photo : 1341156056 begin to download photo : 1341156108 begin to download photo : 1341156145 download finish for photo 1341156108 begin to download photo : 1341156113 download finish for photo 1341156024 begin to download photo : 1341156029 download finish for photo 1341156056 begin to download photo : 1341156061 download finish for photo 1341156145 begin to download photo : 1341156149 download finish for photo 1341156113 begin to download photo : 1341156118 download finish for photo 1341156061 begin to download photo : 1341156062 download finish for photo 1341156029 begin to download photo : 1341156036 download finish for photo 1341156149 begin to download photo : 1341156150 download finish for photo 1341156118 download finish for photo 1341156062 download finish for photo 1341156036 download finish for photo 1341156150 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 12 ; length of list_pids : 12 ; length of list_args : 12 results_Auto_P21096666_06-03-2025_03_54_58.pdf 21096720 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=21096720 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1341155636: '1741229434_4007929_1341155279_0e2b7658c6a972973b7d64dd275c2f25_rle_crop_3695285667_0.png', 1341156017: '1741229474_4008569_1341155409_997f6cc4007c8566c34d5ca1f591c314_rle_crop_3695288212_0.png', 1341156146: '1741229513_4009186_1341155279_0e2b7658c6a972973b7d64dd275c2f25_rle_crop_3695285667_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/ad59aca3077d928e95e21b04b5db5979_73673096.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/809a3d419f7a9bb9ed8c62c795a9c8fc_77360119.png change filename to text .imagette210967201741229698/ imagette210967201741229698/1741229513_4009186_1341155279_0e2b7658c6a972973b7d64dd275c2f25_rle_crop_3695285667_0.png.png imagette210967201741229698/1741229474_4008569_1341155409_997f6cc4007c8566c34d5ca1f591c314_rle_crop_3695288212_0.png.png imagette210967201741229698/1741229434_4007929_1341155279_0e2b7658c6a972973b7d64dd275c2f25_rle_crop_3695285667_0.png.png imagette210967211741229699/ imagette210967221741229699/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/ad59aca3077d928e95e21b04b5db5979_63256079.png imagette210967201741229698 21096721 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=21096721 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette210967211741229699 21096722 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=21096722 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette210967221741229699 21096723 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=21096723 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1341155633: '1741229434_4007929_1341155279_0e2b7658c6a972973b7d64dd275c2f25_rle_crop_3695285668_0.png', 1341156140: '1741229513_4009186_1341155279_0e2b7658c6a972973b7d64dd275c2f25_rle_crop_3695285668_0.png', 1341156190: '1741229634_4011062_1341155377_cddd44475ada28e5eda44bda2457aed9_rle_crop_3695288617_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/b5ddc97441923d8961537bb54a6b9299_63772395.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/b5ddc97441923d8961537bb54a6b9299_52644052.png change filename to text .imagette210967231741229699/ imagette210967231741229699/1741229634_4011062_1341155377_cddd44475ada28e5eda44bda2457aed9_rle_crop_3695288617_0.png.png imagette210967231741229699/1741229434_4007929_1341155279_0e2b7658c6a972973b7d64dd275c2f25_rle_crop_3695285668_0.png.png imagette210967231741229699/1741229513_4009186_1341155279_0e2b7658c6a972973b7d64dd275c2f25_rle_crop_3695285668_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/be8b91b185728913daec4d5992823c4f_6681326.png imagette210967231741229699 21096726 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=21096726 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1341156032: '1741229493_4008921_1341155372_19f25b5c44f307f11920480ec3f6be3c_rle_crop_3695288243_0.png', 1341156189: '1741229634_4011062_1341155377_cddd44475ada28e5eda44bda2457aed9_rle_crop_3695288622_0.png', 1341156155: '1741229592_4010522_1341155610_ff5b0535970a536f37eea3ef40175c87_rle_crop_3695289056_0.png', 1341156154: '1741229592_4010522_1341155612_93ffb4ebe6696e6c04955f1dbd8c9ad3_rle_crop_3695289050_0.png', 1341156153: '1741229592_4010522_1341155615_4fb2c39f1ad5942e3e0ad7e0ed99e028_rle_crop_3695288983_0.png', 1341156137: '1741229513_4009186_1341155273_fe79ddfebc29d7ef235b10b47d1f30b7_rle_crop_3695288841_0.png', 1341156136: '1741229513_4009186_1341155273_fe79ddfebc29d7ef235b10b47d1f30b7_bib_crop_3695285718_0.jpg', 1341156135: '1741229513_4009186_1341155275_7f23932b5dfb5aad17408a5c010777cc_rle_crop_3695285696_0.png', 1341156134: '1741229513_4009186_1341155275_7f23932b5dfb5aad17408a5c010777cc_rle_crop_3695285684_0.png', 1341156133: '1741229513_4009186_1341155279_0e2b7658c6a972973b7d64dd275c2f25_rle_crop_3695285675_0.png', 1341156132: '1741229513_4009186_1341155285_2f199d6e272fdc5e13af182899b7aec7_rle_crop_3695285650_0.png', 1341156033: '1741229493_4008921_1341155358_7dec26932a708e24fa0c8b5838f3ba5a_rle_crop_3695288262_0.png', 1341155599: '1741229414_4007176_1341155290_896de2c3a2c236b9adacd7316c953983_rle_crop_3695285406_0.png', 1341156031: '1741229493_4008921_1341155375_8ca70ef9fc2f09792104e91427e6884b_rle_crop_3695288230_0.png', 1341156030: '1741229493_4008921_1341155433_c4b88cdfa2bab5ff52180e99b4d4d0b6_rle_crop_3695288220_0.png', 1341156007: '1741229474_4008569_1341155417_eb351514b9d04e911d5e9d29ec1377cc_rle_crop_3695288199_0.png', 1341156006: '1741229474_4008569_1341155423_c590d6109f0518cb9181cb86a730a33a_rle_crop_3695288191_0.png', 1341156005: '1741229474_4008569_1341155427_0fc72a14f5c1c724b4a5cff0a154bdbd_rle_crop_3695288059_0.png', 1341155628: '1741229434_4007929_1341155273_fe79ddfebc29d7ef235b10b47d1f30b7_rle_crop_3695285718_0.png', 1341155627: '1741229434_4007929_1341155275_7f23932b5dfb5aad17408a5c010777cc_rle_crop_3695285696_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/1f62f8e3761e319996c15add69639cb6_36919752.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/cca7a2a1921b5ff3a3dca442382fb7bf_25002096.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/e078cb0e3b02fe7c35276edc5c415f7a_31963007.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/bc43c20453a11edd6298dc1a440ec4ca_50439817.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/ed15c0379b5fc675ea2a342fac39a0c6_14806996.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/a3dc7e912a79f2eb8fe4f673967dfa8c_1609368.png change filename to text .wget -O 7.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/60a7afbcc5f163b12cdc4ae9a4a4ff4d_43747464.jpg change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/66b071419ec422c29e9733c176869668_75911570.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/22d5d0eee04930671ab25bceb73f840c_67142588.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/14663b579bcee3adfdf4e694819fbf88_52387337.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/2ce8b31193c6bd32cf7fd71181b88c40_25484509.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/842b5d37c18c55a793b9a5d0c5ae65bd_5582877.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/3125e07a7341eb09cb3d543d313c3ecc_18726097.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/25c9679de33e86462ec7591d44f869b4_46949855.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/2322fd6f90b8adde603e79c18990968a_13652054.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/6ca1a2b2a858255d945c6c54c05987b5_61132986.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/b62362822a2ca738907e1a54d72fbc13_25179765.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/da42e916f0dc0a0f97d31bc1ca88ca65_85286324.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/d22fef6a732f5c4333bea95edcf592b4_50672685.png change filename to text .imagette210967261741229699/ imagette210967261741229699/1741229513_4009186_1341155279_0e2b7658c6a972973b7d64dd275c2f25_rle_crop_3695285675_0.png.png imagette210967261741229699/1741229474_4008569_1341155423_c590d6109f0518cb9181cb86a730a33a_rle_crop_3695288191_0.png.png imagette210967261741229699/1741229592_4010522_1341155610_ff5b0535970a536f37eea3ef40175c87_rle_crop_3695289056_0.png.png imagette210967261741229699/1741229513_4009186_1341155275_7f23932b5dfb5aad17408a5c010777cc_rle_crop_3695285696_0.png.png imagette210967261741229699/1741229592_4010522_1341155615_4fb2c39f1ad5942e3e0ad7e0ed99e028_rle_crop_3695288983_0.png.png imagette210967261741229699/1741229474_4008569_1341155417_eb351514b9d04e911d5e9d29ec1377cc_rle_crop_3695288199_0.png.png imagette210967261741229699/1741229493_4008921_1341155433_c4b88cdfa2bab5ff52180e99b4d4d0b6_rle_crop_3695288220_0.png.png imagette210967261741229699/1741229634_4011062_1341155377_cddd44475ada28e5eda44bda2457aed9_rle_crop_3695288622_0.png.png imagette210967261741229699/1741229513_4009186_1341155275_7f23932b5dfb5aad17408a5c010777cc_rle_crop_3695285684_0.png.png imagette210967261741229699/1741229474_4008569_1341155427_0fc72a14f5c1c724b4a5cff0a154bdbd_rle_crop_3695288059_0.png.png imagette210967261741229699/1741229493_4008921_1341155358_7dec26932a708e24fa0c8b5838f3ba5a_rle_crop_3695288262_0.png.png imagette210967261741229699/1741229434_4007929_1341155275_7f23932b5dfb5aad17408a5c010777cc_rle_crop_3695285696_0.png.png imagette210967261741229699/1741229513_4009186_1341155273_fe79ddfebc29d7ef235b10b47d1f30b7_bib_crop_3695285718_0.jpg.jpg imagette210967261741229699/1741229592_4010522_1341155612_93ffb4ebe6696e6c04955f1dbd8c9ad3_rle_crop_3695289050_0.png.png imagette210967261741229699/1741229513_4009186_1341155273_fe79ddfebc29d7ef235b10b47d1f30b7_rle_crop_3695288841_0.png.png imagette210967261741229699/1741229434_4007929_1341155273_fe79ddfebc29d7ef235b10b47d1f30b7_rle_crop_3695285718_0.png.png imagette210967261741229699/1741229414_4007176_1341155290_896de2c3a2c236b9adacd7316c953983_rle_crop_3695285406_0.png.png imagette210967261741229699/1741229493_4008921_1341155375_8ca70ef9fc2f09792104e91427e6884b_rle_crop_3695288230_0.png.png imagette210967261741229699/1741229493_4008921_1341155372_19f25b5c44f307f11920480ec3f6be3c_rle_crop_3695288243_0.png.png imagette210967261741229699/1741229513_4009186_1341155285_2f199d6e272fdc5e13af182899b7aec7_rle_crop_3695285650_0.png.png imagette210967271741229701/ imagette210967291741229701/ wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/66b071419ec422c29e9733c176869668_91003572.png imagette210967261741229699 21096727 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=21096727 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette210967271741229701 21096729 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=21096729 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette210967291741229701 21096719 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=21096719 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1341156028: '1741229493_4008921_1341155358_7dec26932a708e24fa0c8b5838f3ba5a_rle_crop_3695288254_0.png', 1341156188: '1741229634_4011062_1341155377_cddd44475ada28e5eda44bda2457aed9_rle_crop_3695288627_0.png', 1341156127: '1741229513_4009186_1341155273_fe79ddfebc29d7ef235b10b47d1f30b7_rle_crop_3695285725_0.png', 1341156126: '1741229513_4009186_1341155273_fe79ddfebc29d7ef235b10b47d1f30b7_rle_crop_3695285719_0.png', 1341156125: '1741229513_4009186_1341155275_7f23932b5dfb5aad17408a5c010777cc_rle_crop_3695285700_0.png', 1341156124: '1741229513_4009186_1341155275_7f23932b5dfb5aad17408a5c010777cc_rle_crop_3695285694_0.png', 1341156123: '1741229513_4009186_1341155279_0e2b7658c6a972973b7d64dd275c2f25_rle_crop_3695285672_0.png', 1341156122: '1741229513_4009186_1341155283_b29a49e55be875190b1a7765fd43429a_rle_crop_3695285658_0.png', 1341156121: '1741229513_4009186_1341155285_2f199d6e272fdc5e13af182899b7aec7_rle_crop_3695285648_0.png', 1341155617: '1741229434_4007929_1341155285_2f199d6e272fdc5e13af182899b7aec7_rle_crop_3695285648_0.png', 1341156027: '1741229493_4008921_1341155358_7dec26932a708e24fa0c8b5838f3ba5a_rle_crop_3695288260_0.png', 1341156026: '1741229493_4008921_1341155375_8ca70ef9fc2f09792104e91427e6884b_rle_crop_3695288229_0.png', 1341155623: '1741229434_4007929_1341155273_fe79ddfebc29d7ef235b10b47d1f30b7_rle_crop_3695285725_0.png', 1341155622: '1741229434_4007929_1341155273_fe79ddfebc29d7ef235b10b47d1f30b7_rle_crop_3695285719_0.png', 1341155621: '1741229434_4007929_1341155275_7f23932b5dfb5aad17408a5c010777cc_rle_crop_3695285700_0.png', 1341155620: '1741229434_4007929_1341155275_7f23932b5dfb5aad17408a5c010777cc_rle_crop_3695285694_0.png', 1341155619: '1741229434_4007929_1341155279_0e2b7658c6a972973b7d64dd275c2f25_rle_crop_3695285672_0.png', 1341155618: '1741229434_4007929_1341155283_b29a49e55be875190b1a7765fd43429a_rle_crop_3695285658_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/2f7050a8a6351efec417c4876e6a0b53_18926035.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/96a07e5d6991186203867f0e20fd3e56_73326699.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/ce945ebc75cb517154bf2aeee5b7d4cb_76440493.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/78b9efaf4cc355707da32cda56ad328b_15345136.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/e950dfe9c28795b20a7e4d86db5c0fd6_56228934.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/b9ed7d392d0e843e1c2cc3cc06e7a61a_44824866.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/06adcdf4bbe3a050f98572ed790bcb2c_67178713.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/6448b309ebcd9ec5e5c788d24857d1a0_38768065.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/daaf07e810d0b6c6821add6883580b35_91255487.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/daaf07e810d0b6c6821add6883580b35_91740108.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/813854d5b48dff904bd232f7e092bf55_58666931.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/caaa0512090b384a34c59f9cacb45222_58448060.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/ce945ebc75cb517154bf2aeee5b7d4cb_44927304.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/78b9efaf4cc355707da32cda56ad328b_38228841.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/e950dfe9c28795b20a7e4d86db5c0fd6_15854612.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/b9ed7d392d0e843e1c2cc3cc06e7a61a_68579394.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/06adcdf4bbe3a050f98572ed790bcb2c_16182590.png change filename to text .imagette210967191741229701/ imagette210967191741229701/1741229634_4011062_1341155377_cddd44475ada28e5eda44bda2457aed9_rle_crop_3695288627_0.png.png imagette210967191741229701/1741229513_4009186_1341155273_fe79ddfebc29d7ef235b10b47d1f30b7_rle_crop_3695285719_0.png.png imagette210967191741229701/1741229513_4009186_1341155283_b29a49e55be875190b1a7765fd43429a_rle_crop_3695285658_0.png.png imagette210967191741229701/1741229513_4009186_1341155275_7f23932b5dfb5aad17408a5c010777cc_rle_crop_3695285700_0.png.png imagette210967191741229701/1741229434_4007929_1341155285_2f199d6e272fdc5e13af182899b7aec7_rle_crop_3695285648_0.png.png imagette210967191741229701/1741229434_4007929_1341155275_7f23932b5dfb5aad17408a5c010777cc_rle_crop_3695285694_0.png.png imagette210967191741229701/1741229434_4007929_1341155283_b29a49e55be875190b1a7765fd43429a_rle_crop_3695285658_0.png.png imagette210967191741229701/1741229513_4009186_1341155273_fe79ddfebc29d7ef235b10b47d1f30b7_rle_crop_3695285725_0.png.png imagette210967191741229701/1741229513_4009186_1341155275_7f23932b5dfb5aad17408a5c010777cc_rle_crop_3695285694_0.png.png imagette210967191741229701/1741229493_4008921_1341155358_7dec26932a708e24fa0c8b5838f3ba5a_rle_crop_3695288254_0.png.png imagette210967191741229701/1741229434_4007929_1341155279_0e2b7658c6a972973b7d64dd275c2f25_rle_crop_3695285672_0.png.png imagette210967191741229701/1741229434_4007929_1341155273_fe79ddfebc29d7ef235b10b47d1f30b7_rle_crop_3695285719_0.png.png imagette210967191741229701/1741229513_4009186_1341155279_0e2b7658c6a972973b7d64dd275c2f25_rle_crop_3695285672_0.png.png imagette210967191741229701/1741229493_4008921_1341155375_8ca70ef9fc2f09792104e91427e6884b_rle_crop_3695288229_0.png.png imagette210967191741229701/1741229493_4008921_1341155358_7dec26932a708e24fa0c8b5838f3ba5a_rle_crop_3695288260_0.png.png imagette210967191741229701/1741229513_4009186_1341155285_2f199d6e272fdc5e13af182899b7aec7_rle_crop_3695285648_0.png.png imagette210967191741229701/1741229434_4007929_1341155273_fe79ddfebc29d7ef235b10b47d1f30b7_rle_crop_3695285725_0.png.png imagette210967191741229701/1741229434_4007929_1341155275_7f23932b5dfb5aad17408a5c010777cc_rle_crop_3695285700_0.png.png wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/6448b309ebcd9ec5e5c788d24857d1a0_47885285.png imagette210967191741229701 21096724 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=21096724 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1341155631: '1741229434_4007929_1341155285_2f199d6e272fdc5e13af182899b7aec7_rle_crop_3695285641_0.png', 1341156010: '1741229474_4008569_1341155409_997f6cc4007c8566c34d5ca1f591c314_rle_crop_3695288211_0.png', 1341156037: '1741229493_4008921_1341155375_8ca70ef9fc2f09792104e91427e6884b_rle_crop_3695288226_0.png', 1341156038: '1741229493_4008921_1341155358_7dec26932a708e24fa0c8b5838f3ba5a_rle_crop_3695288264_0.png', 1341156138: '1741229513_4009186_1341155285_2f199d6e272fdc5e13af182899b7aec7_rle_crop_3695285641_0.png', 1341156156: '1741229592_4010522_1341155615_4fb2c39f1ad5942e3e0ad7e0ed99e028_rle_crop_3695288981_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/38779a3a63b99f6e41514a2d846fd492_49682885.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/f0e419570e0eae68e4e06e649f3c6682_50886689.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/eace49d4ba00cd6f528b4232c762c5df_34231313.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/e0a7ec9e9b567bd6abe1fd08d0fdece6_65626729.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/38779a3a63b99f6e41514a2d846fd492_27306960.png change filename to text .imagette210967241741229702/ imagette210967241741229702/1741229474_4008569_1341155409_997f6cc4007c8566c34d5ca1f591c314_rle_crop_3695288211_0.png.png imagette210967241741229702/1741229434_4007929_1341155285_2f199d6e272fdc5e13af182899b7aec7_rle_crop_3695285641_0.png.png imagette210967241741229702/1741229493_4008921_1341155358_7dec26932a708e24fa0c8b5838f3ba5a_rle_crop_3695288264_0.png.png imagette210967241741229702/1741229592_4010522_1341155615_4fb2c39f1ad5942e3e0ad7e0ed99e028_rle_crop_3695288981_0.png.png imagette210967241741229702/1741229513_4009186_1341155285_2f199d6e272fdc5e13af182899b7aec7_rle_crop_3695285641_0.png.png imagette210967241741229702/1741229493_4008921_1341155375_8ca70ef9fc2f09792104e91427e6884b_rle_crop_3695288226_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/cde170d8e50cdeddb971ae73e5660c8f_76823634.png imagette210967241741229702 21096725 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=21096725 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1341155634: '1741229434_4007929_1341155275_7f23932b5dfb5aad17408a5c010777cc_rle_crop_3695285692_0.png', 1341155635: '1741229434_4007929_1341155273_fe79ddfebc29d7ef235b10b47d1f30b7_rle_crop_3695285713_0.png', 1341156013: '1741229474_4008569_1341155423_c590d6109f0518cb9181cb86a730a33a_rle_crop_3695288187_0.png', 1341156014: '1741229474_4008569_1341155409_997f6cc4007c8566c34d5ca1f591c314_rle_crop_3695288214_0.png', 1341156039: '1741229493_4008921_1341155358_7dec26932a708e24fa0c8b5838f3ba5a_rle_crop_3695288263_0.png', 1341156040: '1741229493_4008921_1341155358_7dec26932a708e24fa0c8b5838f3ba5a_rle_crop_3695288261_0.png', 1341156142: '1741229513_4009186_1341155275_7f23932b5dfb5aad17408a5c010777cc_rle_crop_3695285692_0.png', 1341156143: '1741229513_4009186_1341155273_fe79ddfebc29d7ef235b10b47d1f30b7_rle_crop_3695285713_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/bb507e08db6493773c092fb67eb774e6_33153931.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/ed828278a576746267fd4354b353c525_76191046.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/4886143f256cb921244665f70837ec2d_26553871.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/7db1f7684c610a6bad6454fd3e524b75_34760311.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/ad4b91b607cfd70f1bf4f385bd2ce039_88153900.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/e4c9425451c92f61989a2bfbb2b03237_30515231.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/bb507e08db6493773c092fb67eb774e6_69575388.png change filename to text .imagette210967251741229702/ imagette210967251741229702/1741229474_4008569_1341155423_c590d6109f0518cb9181cb86a730a33a_rle_crop_3695288187_0.png.png imagette210967251741229702/1741229493_4008921_1341155358_7dec26932a708e24fa0c8b5838f3ba5a_rle_crop_3695288261_0.png.png imagette210967251741229702/1741229493_4008921_1341155358_7dec26932a708e24fa0c8b5838f3ba5a_rle_crop_3695288263_0.png.png imagette210967251741229702/1741229513_4009186_1341155275_7f23932b5dfb5aad17408a5c010777cc_rle_crop_3695285692_0.png.png imagette210967251741229702/1741229474_4008569_1341155409_997f6cc4007c8566c34d5ca1f591c314_rle_crop_3695288214_0.png.png imagette210967251741229702/1741229434_4007929_1341155275_7f23932b5dfb5aad17408a5c010777cc_rle_crop_3695285692_0.png.png imagette210967251741229702/1741229513_4009186_1341155273_fe79ddfebc29d7ef235b10b47d1f30b7_rle_crop_3695285713_0.png.png imagette210967251741229702/1741229434_4007929_1341155273_fe79ddfebc29d7ef235b10b47d1f30b7_rle_crop_3695285713_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/ed828278a576746267fd4354b353c525_10087562.png imagette210967251741229702 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21096666 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21096731,21096732,21096733,21096734,21096735,21096736,21096737,21096738,21096739,21096740,21096741,21096742?tags=Teint_Dans_La_Masse,plastique,flou,kraft,cartonnette,Carton_gris,Carton_brun,autre_refus,metal,papier,mal_croppe,environnement your option no_mail is active, we will not send the real mail to your client args[1341156150] : ('0.08971250422306251',) no score found for photo 1341156150 We are sending mail with results at report@fotonower.com args[1341156149] : ('0.08971250422306251',) no score found for photo 1341156149 We are sending mail with results at report@fotonower.com args[1341156145] : ('0.08971250422306251',) no score found for photo 1341156145 We are sending mail with results at report@fotonower.com args[1341156118] : ('0.08971250422306251',) no score found for photo 1341156118 We are sending mail with results at report@fotonower.com args[1341156113] : ('0.08971250422306251',) no score found for photo 1341156113 We are sending mail with results at report@fotonower.com args[1341156108] : ('0.08971250422306251',) no score found for photo 1341156108 We are sending mail with results at report@fotonower.com args[1341156062] : ('0.08971250422306251',) no score found for photo 1341156062 We are sending mail with results at report@fotonower.com args[1341156061] : ('0.08971250422306251',) no score found for photo 1341156061 We are sending mail with results at report@fotonower.com args[1341156056] : ('0.08971250422306251',) no score found for photo 1341156056 We are sending mail with results at report@fotonower.com args[1341156036] : ('0.08971250422306251',) no score found for photo 1341156036 We are sending mail with results at report@fotonower.com args[1341156029] : ('0.08971250422306251',) no score found for photo 1341156029 We are sending mail with results at report@fotonower.com args[1341156024] : ('0.08971250422306251',) no score found for photo 1341156024 We are sending mail with results at report@fotonower.com refus_total : 0.08971250422306251 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=21096666 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_P21096666_06-03-2025_03_54_58.pdf results_Auto_P21096666_06-03-2025_03_54_58.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21096666_06-03-2025_03_54_58.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','21096666','results_Auto_P21096666_06-03-2025_03_54_58.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21096666_06-03-2025_03_54_58.pdf','pdf','','0.28','0.08971250422306251') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21096666]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1341156150, 1341156149, 1341156145, 1341156118, 1341156113, 1341156108, 1341156062, 1341156061, 1341156056, 1341156036, 1341156029, 1341156024] map_info['map_portfolio_photo'] : {21096666: [1341156150, 1341156149, 1341156145, 1341156118, 1341156113, 1341156108, 1341156062, 1341156061, 1341156056, 1341156036, 1341156029, 1341156024, 1341155632, 1341155615, 1341155612, 1341155610, 1341155575, 1341155574, 1341155498, 1341155496, 1341155493, 1341155490, 1341155433, 1341155427, 1341155423, 1341155417, 1341155409, 1341155377, 1341155375, 1341155372, 1341155358, 1341155290, 1341155285, 1341155283, 1341155279, 1341155275, 1341155273, 1341155200, 1341155164, 1341155082]} final : False mtd_id 4302 list_pids : [1341156150, 1341156149, 1341156145, 1341156118, 1341156113, 1341156108, 1341156062, 1341156061, 1341156056, 1341156036, 1341156029, 1341156024] 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, '2641098') ('4302', '21096666', '1341156150', None, None, None, None, None, '2641098') ('4302', None, None, None, None, None, None, None, '2641098') ('4302', '21096666', '1341156149', None, None, None, None, None, '2641098') ('4302', None, None, None, None, None, None, None, '2641098') ('4302', '21096666', '1341156145', None, None, None, None, None, '2641098') ('4302', None, None, None, None, None, None, None, '2641098') ('4302', '21096666', '1341156118', None, None, None, None, None, '2641098') ('4302', None, None, None, None, None, None, None, '2641098') ('4302', '21096666', '1341156113', None, None, None, None, None, '2641098') ('4302', None, None, None, None, None, None, None, '2641098') ('4302', '21096666', '1341156108', None, None, None, None, None, '2641098') ('4302', None, None, None, None, None, None, None, '2641098') ('4302', '21096666', '1341156062', None, None, None, None, None, '2641098') ('4302', None, None, None, None, None, None, None, '2641098') ('4302', '21096666', '1341156061', None, None, None, None, None, '2641098') ('4302', None, None, None, None, None, None, None, '2641098') ('4302', '21096666', '1341156056', None, None, None, None, None, '2641098') ('4302', None, None, None, None, None, None, None, '2641098') ('4302', '21096666', '1341156036', None, None, None, None, None, '2641098') ('4302', None, None, None, None, None, None, None, '2641098') ('4302', '21096666', '1341156029', None, None, None, None, None, '2641098') ('4302', None, None, None, None, None, None, None, '2641098') ('4302', '21096666', '1341156024', None, None, None, None, None, '2641098') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21096666', '1341156150', None, None, None, None, None, '2641098'), ('4302', '21096666', '1341156149', None, None, None, None, None, '2641098'), ('4302', '21096666', '1341156145', None, None, None, None, None, '2641098'), ('4302', '21096666', '1341156118', None, None, None, None, None, '2641098'), ('4302', '21096666', '1341156113', None, None, None, None, None, '2641098'), ('4302', '21096666', '1341156108', None, None, None, None, None, '2641098'), ('4302', '21096666', '1341156062', None, None, None, None, None, '2641098'), ('4302', '21096666', '1341156061', None, None, None, None, None, '2641098'), ('4302', '21096666', '1341156056', None, None, None, None, None, '2641098'), ('4302', '21096666', '1341156036', None, None, None, None, None, '2641098'), ('4302', '21096666', '1341156029', None, None, None, None, None, '2641098'), ('4302', '21096666', '1341156024', None, None, None, None, None, '2641098')] time used for this insertion : 0.017714500427246094 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.618461608886719 time spend to save output : 0.01796555519104004 total time spend for step 4 : 6.636427164077759 step5:split_time_score Thu Mar 6 03:55:05 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 : ['21096666'] 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 : [('21096666',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21096666) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1341156108: {'path': 'temp/1741229698_167212_1341156108_1bba4d13ffff5cff28a5f313f2fe1f7b.jpg', 'extension': 'jpg'}, 1341156113: {'path': 'temp/1741229698_167212_1341156113_10877948c484c5f4c305b5f609a9fb2c.jpg', 'extension': 'jpg'}, 1341156118: {'path': 'temp/1741229698_167212_1341156118_1d39695236207126567071810e4702d0.jpg', 'extension': 'jpg'}, 1341156056: {'path': 'temp/1741229698_167212_1341156056_f73c19c0f614812ac08763ffc9ab4769.jpg', 'extension': 'jpg'}, 1341156061: {'path': 'temp/1741229698_167212_1341156061_7749333024ea537dc4a498d6667e931b.jpg', 'extension': 'jpg'}, 1341156062: {'path': 'temp/1741229698_167212_1341156062_0bacab8eb490c9e25ab5970b823c1a99.jpg', 'extension': 'jpg'}, 1341156024: {'path': 'temp/1741229698_167212_1341156024_8c35ba24ce444df4c6326193670bc925.jpg', 'extension': 'jpg'}, 1341156029: {'path': 'temp/1741229698_167212_1341156029_81ac12b43dc5f32caef08e728e4f82e5.jpg', 'extension': 'jpg'}, 1341156036: {'path': 'temp/1741229698_167212_1341156036_9ddd01e8209f085b5ab8463ee7be6936.jpg', 'extension': 'jpg'}, 1341156145: {'path': 'temp/1741229698_167212_1341156145_231cf84a2a6b9ef6e3e94929338a38d5.jpg', 'extension': 'jpg'}, 1341156149: {'path': 'temp/1741229698_167212_1341156149_578a9d808b182c8cfaacd302c5cfab48.jpg', 'extension': 'jpg'}, 1341156150: {'path': 'temp/1741229698_167212_1341156150_55f19993bc7f31958639c4465ecfce6d.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 = 21096666; (('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 = 21096666 group by h (('03', 40),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21096666 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 (21096666) 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 (21096666) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 06032025 21096666 Nombre de photos uploadées : 40 / 23040 (0%) 06032025 21096666 Nombre de photos taguées (types de déchets): 0 / 40 (0%) 06032025 21096666 Nombre de photos taguées (volume) : 0 / 40 (0%) [{'photo_id': 1341155200, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/dc2e9c468c235f6486b0b153c5f5807d.jpg', 'username': None, 'uploaded_at': 1741229185, 'text': 'image_06032025_03_45_04_10151.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1341155164, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/7bf996ee55fc0106b76c4294f339dc0f.jpg', 'username': None, 'uploaded_at': 1741229185, 'text': 'image_06032025_03_45_14_9125.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1341155082, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/c6491a425041c4682233c990f68d091e.jpg', 'username': None, 'uploaded_at': 1741229185, 'text': 'image_06032025_03_45_24_10134.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1341155290, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/896de2c3a2c236b9adacd7316c953983.jpg', 'username': None, 'uploaded_at': 1741229245, 'text': 'image_06032025_03_45_54_10136.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 6.198883056640625e-06 ???????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0017726421356201172 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21096666, '2025-03-06' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1643118,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.028130292892456055 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= 1643118 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1643118, 'dashboard_run_id': 1651081, 'mtr_portfolio_id': 21095280, 'dashboard_result_id': 9256430, '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_P21095280_06-03-2025_03_18_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21095283, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21095284, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21095285, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21095286, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21095287, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21095288, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21095289, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21095290, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21095291, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21095292, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21095293, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21095294, 'pht': 3726}}"}, {'dashboat_entry_day': 1643118, 'dashboard_run_id': 1651081, 'mtr_portfolio_id': 21095667, 'dashboard_result_id': 9256431, '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_P21095667_06-03-2025_03_32_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21095722, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21095723, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21095724, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21095725, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21095726, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21095727, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21095728, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21095729, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21095730, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21095731, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21095732, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21095733, 'pht': 3726}}"}, {'dashboat_entry_day': 1643118, 'dashboard_run_id': 1651081, 'mtr_portfolio_id': 21096248, 'dashboard_result_id': 9256432, '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_P21096248_06-03-2025_03_48_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21096251, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21096252, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21096253, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21096254, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21096255, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21096256, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21096257, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21096258, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21096259, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21096260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21096261, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21096262, 'pht': 3726}}"}, {'dashboat_entry_day': 1643118, 'dashboard_run_id': 1651081, 'mtr_portfolio_id': 21096666, 'dashboard_result_id': 9256433, '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_P21096666_06-03-2025_03_53_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21096719, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21096720, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21096721, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21096722, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21096723, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21096724, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21096725, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21096726, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21096727, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21096728, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21096729, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21096730, '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 = 21095280 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': 2640995, 'mtr_portfolio_id': 21095280, 'created_at': datetime.datetime(2025, 3, 6, 3, 18, 56), 'result': '0.07121593442959993', 'result_long': None, 'result_double': None}] Qualite : 0.07121593442959993 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21095280 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21095280_06-03-2025_03_18_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21095280 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_P21095280_06-03-2025_03_18_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21095283, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21095284, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21095285, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21095286, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21095287, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21095288, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21095289, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21095290, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21095291, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21095292, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21095293, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21095294, 'pht': 3726}}" where mtr_portfolio_id = 21095280 and dashboard_run_id = 1651081 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`=21095280 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9256430, 0.07121593442959993, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21095280_06-03-2025_03_18_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21095283, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21095284, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21095285, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21095286, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21095287, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21095288, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21095289, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21095290, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21095291, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21095292, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21095293, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21095294, '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 = 21095667 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': 2641027, 'mtr_portfolio_id': 21095667, 'created_at': datetime.datetime(2025, 3, 6, 3, 32, 30), 'result': '0.07765793840663125', 'result_long': None, 'result_double': None}] Qualite : 0.07765793840663125 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21095667 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21095667_06-03-2025_03_32_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21095667 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_P21095667_06-03-2025_03_32_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21095722, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21095723, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21095724, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21095725, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21095726, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21095727, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21095728, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21095729, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21095730, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21095731, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21095732, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21095733, 'pht': 3726}}" where mtr_portfolio_id = 21095667 and dashboard_run_id = 1651081 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`=21095667 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9256431, 0.07765793840663125, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21095667_06-03-2025_03_32_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21095722, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21095723, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21095724, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21095725, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21095726, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21095727, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21095728, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21095729, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21095730, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21095731, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21095732, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21095733, '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 = 21096248 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': 2641065, 'mtr_portfolio_id': 21096248, 'created_at': datetime.datetime(2025, 3, 6, 3, 48, 58), 'result': '0.08483617167472522', 'result_long': None, 'result_double': None}] Qualite : 0.08483617167472522 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21096248 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21096248_06-03-2025_03_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21096248 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_P21096248_06-03-2025_03_48_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21096251, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21096252, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21096253, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21096254, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21096255, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21096256, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21096257, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21096258, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21096259, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21096260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21096261, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21096262, 'pht': 3726}}" where mtr_portfolio_id = 21096248 and dashboard_run_id = 1651081 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`=21096248 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9256432, 0.08483617167472522, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21096248_06-03-2025_03_48_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21096251, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21096252, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21096253, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21096254, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21096255, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21096256, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21096257, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21096258, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21096259, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21096260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21096261, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21096262, '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 = 21096666 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': 2641098, 'mtr_portfolio_id': 21096666, 'created_at': datetime.datetime(2025, 3, 6, 3, 54, 58), 'result': '0.08971250422306251', 'result_long': None, 'result_double': None}] Qualite : 0.08971250422306251 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21096666 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21096666_06-03-2025_03_54_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21096666 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_P21096666_06-03-2025_03_54_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21096719, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21096720, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21096721, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21096722, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21096723, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21096724, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21096725, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21096726, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21096727, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21096728, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21096729, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21096730, 'pht': 3726}}" where mtr_portfolio_id = 21096666 and dashboard_run_id = 1651081 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`=21096666 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9256433, 0.08971250422306251, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21096666_06-03-2025_03_54_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21096719, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21096720, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21096721, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21096722, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21096723, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21096724, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21096725, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21096726, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21096727, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21096728, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21096729, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21096730, '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 (21095280,21095667,21096248,21096666) result : ((1341149281,), (1341149285,), (1341149288,), (1341149291,), (1341149349,), (1341149356,), (1341149361,), (1341149365,), (1341149372,), (1341150143,), (1341150153,), (1341150157,), (1341150294,), (1341150439,), (1341150442,), (1341150464,), (1341150498,), (1341150499,), (1341150500,), (1341150501,), (1341150522,), (1341150527,), (1341150537,), (1341150538,), (1341150549,), (1341150565,), (1341150570,), (1341150572,), (1341150574,), (1341150575,), (1341150576,), (1341150619,), (1341150624,), (1341150633,), (1341150640,), (1341150641,), (1341150642,), (1341150667,), (1341150676,), (1341150680,), (1341150689,), (1341150690,), (1341150726,), (1341150733,), (1341150746,), (1341150756,), (1341150759,), (1341150762,), (1341150786,), (1341150789,), (1341150803,), (1341150809,), (1341150829,), (1341150835,), (1341150848,), (1341151231,), (1341151204,), (1341151207,), (1341151210,), (1341151289,), (1341151293,), (1341151296,), (1341151300,), (1341151303,), (1341151571,), (1341151576,), (1341151591,), (1341151617,), (1341151704,), (1341151705,), (1341151710,), (1341151714,), (1341151727,), (1341151751,), (1341151753,), (1341151757,), (1341151765,), (1341151773,), (1341151798,), (1341151801,), (1341151805,), (1341151808,), (1341151810,), (1341151869,), (1341151880,), (1341151884,), (1341151893,), (1341151897,), (1341152023,), (1341152076,), (1341152090,), (1341152106,), (1341152121,), (1341152128,), (1341152245,), (1341152252,), (1341152255,), (1341152258,), (1341152302,), (1341152322,), (1341152364,), (1341152368,), (1341152372,), (1341152376,), (1341152773,), (1341152852,), (1341152919,), (1341152995,), (1341153072,), (1341153120,), (1341153124,), (1341153127,), (1341153132,), (1341153475,), (1341153458,), (1341153463,), (1341153468,), (1341153472,), (1341153488,), (1341153490,), (1341153494,), (1341153497,), (1341153517,), (1341153520,), (1341153523,), (1341153528,), (1341153556,), (1341153558,), (1341154192,), (1341154205,), (1341154213,), (1341154222,), (1341154228,), (1341154361,), (1341154500,), (1341154502,), (1341154506,), (1341154510,), (1341154530,), (1341154538,), (1341154555,), (1341154559,), (1341154624,), (1341154626,), (1341154629,), (1341154632,), (1341154635,), (1341154659,), (1341154686,), (1341154691,), (1341154694,), (1341154698,), (1341154730,), (1341154732,), (1341154735,), (1341154738,), (1341154780,), (1341154783,), (1341154787,), (1341154791,), (1341154801,), (1341154812,), (1341154861,), (1341154863,), (1341154866,), (1341154869,), (1341154872,), (1341154952,), (1341154955,), (1341154959,), (1341154988,), (1341154992,), (1341155030,), (1341155032,), (1341155045,), (1341155046,), (1341155049,), (1341155051,), (1341155054,), (1341155060,), (1341155206,), (1341155082,), (1341155164,), (1341155200,), (1341155273,), (1341155275,), (1341155279,), (1341155283,), (1341155285,), (1341155290,), (1341155358,), (1341155372,), (1341155375,), (1341155377,), (1341155409,), (1341155417,), (1341155423,), (1341155427,), (1341155433,), (1341155490,), (1341155493,), (1341155496,), (1341155498,), (1341155574,), (1341155575,), (1341155610,), (1341155612,), (1341155615,), (1341155632,), (1341156024,), (1341156029,), (1341156036,), (1341156056,), (1341156061,), (1341156062,), (1341156108,), (1341156113,), (1341156118,), (1341156145,), (1341156149,), (1341156150,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'06032025': {'nb_upload': 40, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21096666]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1341156150, 1341156149, 1341156145, 1341156118, 1341156113, 1341156108, 1341156062, 1341156061, 1341156056, 1341156036, 1341156029, 1341156024] map_info['map_portfolio_photo'] : {21096666: [1341156150, 1341156149, 1341156145, 1341156118, 1341156113, 1341156108, 1341156062, 1341156061, 1341156056, 1341156036, 1341156029, 1341156024, 1341155632, 1341155615, 1341155612, 1341155610, 1341155575, 1341155574, 1341155498, 1341155496, 1341155493, 1341155490, 1341155433, 1341155427, 1341155423, 1341155417, 1341155409, 1341155377, 1341155375, 1341155372, 1341155358, 1341155290, 1341155285, 1341155283, 1341155279, 1341155275, 1341155273, 1341155200, 1341155164, 1341155082]} final : True mtd_id 4302 list_pids : [1341156150, 1341156149, 1341156145, 1341156118, 1341156113, 1341156108, 1341156062, 1341156061, 1341156056, 1341156036, 1341156029, 1341156024] Looping around the photos to save general results len do output : 1 /21096666Didn'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, '2641098') ('4302', '21096666', '1341156150', None, None, None, None, None, '2641098') ('4302', None, None, None, None, None, None, None, '2641098') ('4302', '21096666', '1341156149', None, None, None, None, None, '2641098') ('4302', None, None, None, None, None, None, None, '2641098') ('4302', '21096666', '1341156145', None, None, None, None, None, '2641098') ('4302', None, None, None, None, None, None, None, '2641098') ('4302', '21096666', '1341156118', None, None, None, None, None, '2641098') ('4302', None, None, None, None, None, None, None, '2641098') ('4302', '21096666', '1341156113', None, None, None, None, None, '2641098') ('4302', None, None, None, None, None, None, None, '2641098') ('4302', '21096666', '1341156108', None, None, None, None, None, '2641098') ('4302', None, None, None, None, None, None, None, '2641098') ('4302', '21096666', '1341156062', None, None, None, None, None, '2641098') ('4302', None, None, None, None, None, None, None, '2641098') ('4302', '21096666', '1341156061', None, None, None, None, None, '2641098') ('4302', None, None, None, None, None, None, None, '2641098') ('4302', '21096666', '1341156056', None, None, None, None, None, '2641098') ('4302', None, None, None, None, None, None, None, '2641098') ('4302', '21096666', '1341156036', None, None, None, None, None, '2641098') ('4302', None, None, None, None, None, None, None, '2641098') ('4302', '21096666', '1341156029', None, None, None, None, None, '2641098') ('4302', None, None, None, None, None, None, None, '2641098') ('4302', '21096666', '1341156024', None, None, None, None, None, '2641098') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21096666', 'None', None, None, None, None, '2641098'), ('4302', '21096666', '1341156150', None, None, None, None, None, '2641098'), ('4302', '21096666', '1341156149', None, None, None, None, None, '2641098'), ('4302', '21096666', '1341156145', None, None, None, None, None, '2641098'), ('4302', '21096666', '1341156118', None, None, None, None, None, '2641098'), ('4302', '21096666', '1341156113', None, None, None, None, None, '2641098'), ('4302', '21096666', '1341156108', None, None, None, None, None, '2641098'), ('4302', '21096666', '1341156062', None, None, None, None, None, '2641098'), ('4302', '21096666', '1341156061', None, None, None, None, None, '2641098'), ('4302', '21096666', '1341156056', None, None, None, None, None, '2641098'), ('4302', '21096666', '1341156036', None, None, None, None, None, '2641098'), ('4302', '21096666', '1341156029', None, None, None, None, None, '2641098'), ('4302', '21096666', '1341156024', None, None, None, None, None, '2641098')] time used for this insertion : 0.13018465042114258 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.371685266494751 time spend to save output : 0.13042759895324707 total time spend for step 5 : 0.502112865447998 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 (2641098) 2.24user 2.68system 0:11.36elapsed 43%CPU (0avgtext+0avgdata 160508maxresident)k 120inputs+17616outputs (2major+73329minor)pagefaults 0swaps