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 : 3248695 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 (2635440) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2635440) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21042685 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2635440'] with mtr_portfolio_ids : ['21042685'] and first list_photo_ids : [] new path : /proc/3248695/ Name: python3 Umask: 0002 State: R (running) Tgid: 3248695 Ngid: 0 Pid: 3248695 PPid: 3248694 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3248695 NSpid: 3248695 NSpgid: 3245306 NSsid: 3245306 VmPeak: 1106848 kB VmSize: 1106848 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97928 kB VmRSS: 97928 kB RssAnon: 59764 kB RssFile: 38164 kB RssShmem: 0 kB VmData: 865596 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 608 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: 47 nonvoluntary_ctxt_switches: 91 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3248695', 'Ngid': '0', 'Pid': '3248695', 'PPid': '3248694', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3248695', 'NSpid': '3248695', 'NSpgid': '3245306', 'NSsid': '3245306', 'VmPeak': '1106848 kB', 'VmSize': '1106848 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97928 kB', 'VmRSS': '97928 kB', 'RssAnon': '59764 kB', 'RssFile': '38164 kB', 'RssShmem': '0 kB', 'VmData': '865596 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '608 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': '47', 'nonvoluntary_ctxt_switches': '91'} ('datou_batch_current', '3248695', '1106848', '0', '1106848', '865596', '97928', b'', 'marlene', '2635440') 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 (21042685) 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 (2635440 ) ) 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 (21042685) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1340930970, 'portfolio_id': 21042685}, {'photo_id': 1340930964, 'portfolio_id': 21042685}, {'photo_id': 1340930961, 'portfolio_id': 21042685}, {'photo_id': 1340930919, 'portfolio_id': 21042685}, {'photo_id': 1340930916, 'portfolio_id': 21042685}, {'photo_id': 1340930911, 'portfolio_id': 21042685}, {'photo_id': 1340930900, 'portfolio_id': 21042685}, {'photo_id': 1340930896, 'portfolio_id': 21042685}, {'photo_id': 1340930892, 'portfolio_id': 21042685}, {'photo_id': 1340930868, 'portfolio_id': 21042685}, {'photo_id': 1340930863, 'portfolio_id': 21042685}, {'photo_id': 1340930858, 'portfolio_id': 21042685}, {'photo_id': 1340930856, 'portfolio_id': 21042685}, {'photo_id': 1340930853, 'portfolio_id': 21042685}, {'photo_id': 1340930770, 'portfolio_id': 21042685}, {'photo_id': 1340930763, 'portfolio_id': 21042685}, {'photo_id': 1340930743, 'portfolio_id': 21042685}, {'photo_id': 1340930741, 'portfolio_id': 21042685}, {'photo_id': 1340930592, 'portfolio_id': 21042685}, {'photo_id': 1340930590, 'portfolio_id': 21042685}, {'photo_id': 1340930589, 'portfolio_id': 21042685}, {'photo_id': 1340930563, 'portfolio_id': 21042685}, {'photo_id': 1340930552, 'portfolio_id': 21042685}, {'photo_id': 1340930542, 'portfolio_id': 21042685}, {'photo_id': 1340930535, 'portfolio_id': 21042685}, {'photo_id': 1340930505, 'portfolio_id': 21042685}, {'photo_id': 1340930502, 'portfolio_id': 21042685}, {'photo_id': 1340930494, 'portfolio_id': 21042685}, {'photo_id': 1340930481, 'portfolio_id': 21042685}, {'photo_id': 1340930441, 'portfolio_id': 21042685}, {'photo_id': 1340930358, 'portfolio_id': 21042685}, {'photo_id': 1340930354, 'portfolio_id': 21042685}, {'photo_id': 1340930350, 'portfolio_id': 21042685}, {'photo_id': 1340930344, 'portfolio_id': 21042685}, {'photo_id': 1340930331, 'portfolio_id': 21042685}, {'photo_id': 1340930149, 'portfolio_id': 21042685}, {'photo_id': 1340930145, 'portfolio_id': 21042685}, {'photo_id': 1340930141, 'portfolio_id': 21042685}] map_portfolio_id_photo_id: {21042685: [1340930970, 1340930964, 1340930961, 1340930919, 1340930916, 1340930911, 1340930900, 1340930896, 1340930892, 1340930868, 1340930863, 1340930858, 1340930856, 1340930853, 1340930770, 1340930763, 1340930743, 1340930741, 1340930592, 1340930590, 1340930589, 1340930563, 1340930552, 1340930542, 1340930535, 1340930505, 1340930502, 1340930494, 1340930481, 1340930441, 1340930358, 1340930354, 1340930350, 1340930344, 1340930331, 1340930149, 1340930145, 1340930141]} ##### 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.016048669815063477 #### 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 Wed Mar 5 04:30:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21042685) 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 : 21042685 get user id for portfolio 21042685 get sub ptf for main ptf 21042685, type 3726 and hashtags ['mal_croppe', 'papier', 'Carton_brun', 'environnement', 'cartonnette', 'kraft', 'flou', 'autre_refus', 'Teint_Dans_La_Masse', 'plastique', 'metal', 'Carton_gris'] 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`=21042685 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','papier','Carton_brun','environnement','cartonnette','kraft','flou','autre_refus','Teint_Dans_La_Masse','plastique','metal','Carton_gris')) 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`=21042685 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','papier','Carton_brun','environnement','cartonnette','kraft','flou','autre_refus','Teint_Dans_La_Masse','plastique','metal','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 21042685, 'sub_port_id': 21042738, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13656590, 'last_updated_at': datetime.datetime(2025, 3, 5, 4, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 4, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 4, 24, 58)}, 'papier': {'main_port_id': 21042685, 'sub_port_id': 21042739, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13656591, 'last_updated_at': datetime.datetime(2025, 3, 5, 4, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 4, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 4, 24, 58)}, 'mal_croppe': {'main_port_id': 21042685, 'sub_port_id': 21042740, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13656592, 'last_updated_at': datetime.datetime(2025, 3, 5, 4, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 4, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 4, 24, 58)}, 'environnement': {'main_port_id': 21042685, 'sub_port_id': 21042741, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13656593, 'last_updated_at': datetime.datetime(2025, 3, 5, 4, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 4, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 4, 24, 58)}, 'kraft': {'main_port_id': 21042685, 'sub_port_id': 21042742, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13656594, 'last_updated_at': datetime.datetime(2025, 3, 5, 4, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 4, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 4, 24, 58)}, 'autre_refus': {'main_port_id': 21042685, 'sub_port_id': 21042743, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13656595, 'last_updated_at': datetime.datetime(2025, 3, 5, 4, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 4, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 4, 24, 58)}, 'flou': {'main_port_id': 21042685, 'sub_port_id': 21042744, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13656596, 'last_updated_at': datetime.datetime(2025, 3, 5, 4, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 4, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 4, 24, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 21042685, 'sub_port_id': 21042745, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13656597, 'last_updated_at': datetime.datetime(2025, 3, 5, 4, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 4, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 4, 24, 58)}, 'plastique': {'main_port_id': 21042685, 'sub_port_id': 21042746, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13656598, 'last_updated_at': datetime.datetime(2025, 3, 5, 4, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 4, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 4, 24, 58)}, 'cartonnette': {'main_port_id': 21042685, 'sub_port_id': 21042747, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13656599, 'last_updated_at': datetime.datetime(2025, 3, 5, 4, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 4, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 4, 24, 58)}, 'metal': {'main_port_id': 21042685, 'sub_port_id': 21042748, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13656600, 'last_updated_at': datetime.datetime(2025, 3, 5, 4, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 4, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 4, 24, 58)}, 'Carton_gris': {'main_port_id': 21042685, 'sub_port_id': 21042749, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13656601, 'last_updated_at': datetime.datetime(2025, 3, 5, 4, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 4, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 4, 24, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21042738 , 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=21042685 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 (21042738) result : ((1340930556,), (1340930844,), (1340930958,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21042685) result : ((1340930141,), (1340930145,), (1340930149,), (1340930331,), (1340930344,), (1340930350,), (1340930354,), (1340930358,), (1340930441,), (1340930481,), (1340930494,), (1340930502,), (1340930505,), (1340930535,), (1340930542,), (1340930552,), (1340930563,), (1340930589,), (1340930590,), (1340930592,), (1340930741,), (1340930743,), (1340930763,), (1340930770,), (1340930853,), (1340930856,), (1340930858,), (1340930863,), (1340930868,), (1340930892,), (1340930896,), (1340930900,), (1340930911,), (1340930916,), (1340930919,), (1340930961,), (1340930964,), (1340930970,)) 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 (1340930900) 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 21042739 , 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=21042685 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 (21042739) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21042685) result : ((1340930141,), (1340930145,), (1340930149,), (1340930331,), (1340930344,), (1340930350,), (1340930354,), (1340930358,), (1340930441,), (1340930481,), (1340930494,), (1340930502,), (1340930505,), (1340930535,), (1340930542,), (1340930552,), (1340930563,), (1340930589,), (1340930590,), (1340930592,), (1340930741,), (1340930743,), (1340930763,), (1340930770,), (1340930853,), (1340930856,), (1340930858,), (1340930863,), (1340930868,), (1340930892,), (1340930896,), (1340930900,), (1340930911,), (1340930916,), (1340930919,), (1340930961,), (1340930964,), (1340930970,)) 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 (1340930900) 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 21042740 , 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=21042685 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 (21042740) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21042685) result : ((1340930141,), (1340930145,), (1340930149,), (1340930331,), (1340930344,), (1340930350,), (1340930354,), (1340930358,), (1340930441,), (1340930481,), (1340930494,), (1340930502,), (1340930505,), (1340930535,), (1340930542,), (1340930552,), (1340930563,), (1340930589,), (1340930590,), (1340930592,), (1340930741,), (1340930743,), (1340930763,), (1340930770,), (1340930853,), (1340930856,), (1340930858,), (1340930863,), (1340930868,), (1340930892,), (1340930896,), (1340930900,), (1340930911,), (1340930916,), (1340930919,), (1340930961,), (1340930964,), (1340930970,)) 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 (1340930900) 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 21042741 , 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=21042685 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 (21042741) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21042685) result : ((1340930141,), (1340930145,), (1340930149,), (1340930331,), (1340930344,), (1340930350,), (1340930354,), (1340930358,), (1340930441,), (1340930481,), (1340930494,), (1340930502,), (1340930505,), (1340930535,), (1340930542,), (1340930552,), (1340930563,), (1340930589,), (1340930590,), (1340930592,), (1340930741,), (1340930743,), (1340930763,), (1340930770,), (1340930853,), (1340930856,), (1340930858,), (1340930863,), (1340930868,), (1340930892,), (1340930896,), (1340930900,), (1340930911,), (1340930916,), (1340930919,), (1340930961,), (1340930964,), (1340930970,)) 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 (1340930900) 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 21042742 , 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=21042685 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 (21042742) result : ((1340930560,), (1340930561,), (1340930846,), (1340930847,), (1340930848,), (1340930960,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21042685) result : ((1340930141,), (1340930145,), (1340930149,), (1340930331,), (1340930344,), (1340930350,), (1340930354,), (1340930358,), (1340930441,), (1340930481,), (1340930494,), (1340930502,), (1340930505,), (1340930535,), (1340930542,), (1340930552,), (1340930563,), (1340930589,), (1340930590,), (1340930592,), (1340930741,), (1340930743,), (1340930763,), (1340930770,), (1340930853,), (1340930856,), (1340930858,), (1340930863,), (1340930868,), (1340930892,), (1340930896,), (1340930900,), (1340930911,), (1340930916,), (1340930919,), (1340930961,), (1340930964,), (1340930970,)) 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 (1340930900) 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 21042743 , 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=21042685 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 (21042743) result : ((1340930550,), (1340930551,), (1340930837,), (1340930838,), (1340930839,), (1340930840,), (1340930841,), (1340930842,), (1340930877,), (1340930903,), (1340930904,), (1340930943,), (1340930944,), (1340930945,), (1340930946,), (1340930947,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21042685) result : ((1340930141,), (1340930145,), (1340930149,), (1340930331,), (1340930344,), (1340930350,), (1340930354,), (1340930358,), (1340930441,), (1340930481,), (1340930494,), (1340930502,), (1340930505,), (1340930535,), (1340930542,), (1340930552,), (1340930563,), (1340930589,), (1340930590,), (1340930592,), (1340930741,), (1340930743,), (1340930763,), (1340930770,), (1340930853,), (1340930856,), (1340930858,), (1340930863,), (1340930868,), (1340930892,), (1340930896,), (1340930900,), (1340930911,), (1340930916,), (1340930919,), (1340930961,), (1340930964,), (1340930970,)) 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 (1340930900) 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 21042744 , 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=21042685 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 (21042744) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21042685) result : ((1340930141,), (1340930145,), (1340930149,), (1340930331,), (1340930344,), (1340930350,), (1340930354,), (1340930358,), (1340930441,), (1340930481,), (1340930494,), (1340930502,), (1340930505,), (1340930535,), (1340930542,), (1340930552,), (1340930563,), (1340930589,), (1340930590,), (1340930592,), (1340930741,), (1340930743,), (1340930763,), (1340930770,), (1340930853,), (1340930856,), (1340930858,), (1340930863,), (1340930868,), (1340930892,), (1340930896,), (1340930900,), (1340930911,), (1340930916,), (1340930919,), (1340930961,), (1340930964,), (1340930970,)) 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 (1340930900) 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 21042745 , 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=21042685 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 (21042745) result : ((1340930547,), (1340930548,), (1340930814,), (1340930816,), (1340930819,), (1340930820,), (1340930822,), (1340930823,), (1340930825,), (1340930826,), (1340930829,), (1340930831,), (1340930832,), (1340930834,), (1340930940,), (1340930941,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21042685) result : ((1340930141,), (1340930145,), (1340930149,), (1340930331,), (1340930344,), (1340930350,), (1340930354,), (1340930358,), (1340930441,), (1340930481,), (1340930494,), (1340930502,), (1340930505,), (1340930535,), (1340930542,), (1340930552,), (1340930563,), (1340930589,), (1340930590,), (1340930592,), (1340930741,), (1340930743,), (1340930763,), (1340930770,), (1340930853,), (1340930856,), (1340930858,), (1340930863,), (1340930868,), (1340930892,), (1340930896,), (1340930900,), (1340930911,), (1340930916,), (1340930919,), (1340930961,), (1340930964,), (1340930970,)) 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 (1340930900) 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 21042746 , 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=21042685 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 (21042746) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21042685) result : ((1340930141,), (1340930145,), (1340930149,), (1340930331,), (1340930344,), (1340930350,), (1340930354,), (1340930358,), (1340930441,), (1340930481,), (1340930494,), (1340930502,), (1340930505,), (1340930535,), (1340930542,), (1340930552,), (1340930563,), (1340930589,), (1340930590,), (1340930592,), (1340930741,), (1340930743,), (1340930763,), (1340930770,), (1340930853,), (1340930856,), (1340930858,), (1340930863,), (1340930868,), (1340930892,), (1340930896,), (1340930900,), (1340930911,), (1340930916,), (1340930919,), (1340930961,), (1340930964,), (1340930970,)) 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 (1340930900) 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 21042747 , 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=21042685 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 (21042747) result : ((1340930555,), (1340930843,), (1340930908,), (1340930909,), (1340930957,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21042685) result : ((1340930141,), (1340930145,), (1340930149,), (1340930331,), (1340930344,), (1340930350,), (1340930354,), (1340930358,), (1340930441,), (1340930481,), (1340930494,), (1340930502,), (1340930505,), (1340930535,), (1340930542,), (1340930552,), (1340930563,), (1340930589,), (1340930590,), (1340930592,), (1340930741,), (1340930743,), (1340930763,), (1340930770,), (1340930853,), (1340930856,), (1340930858,), (1340930863,), (1340930868,), (1340930892,), (1340930896,), (1340930900,), (1340930911,), (1340930916,), (1340930919,), (1340930961,), (1340930964,), (1340930970,)) 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 (1340930900) 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 21042748 , 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=21042685 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 (21042748) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21042685) result : ((1340930141,), (1340930145,), (1340930149,), (1340930331,), (1340930344,), (1340930350,), (1340930354,), (1340930358,), (1340930441,), (1340930481,), (1340930494,), (1340930502,), (1340930505,), (1340930535,), (1340930542,), (1340930552,), (1340930563,), (1340930589,), (1340930590,), (1340930592,), (1340930741,), (1340930743,), (1340930763,), (1340930770,), (1340930853,), (1340930856,), (1340930858,), (1340930863,), (1340930868,), (1340930892,), (1340930896,), (1340930900,), (1340930911,), (1340930916,), (1340930919,), (1340930961,), (1340930964,), (1340930970,)) 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 (1340930900) 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 21042749 , 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=21042685 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 (21042749) result : ((1340930949,), (1340930950,), (1340930951,), (1340930952,), (1340930953,), (1340930954,), (1340930955,), (1340930956,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21042685) result : ((1340930141,), (1340930145,), (1340930149,), (1340930331,), (1340930344,), (1340930350,), (1340930354,), (1340930358,), (1340930441,), (1340930481,), (1340930494,), (1340930502,), (1340930505,), (1340930535,), (1340930542,), (1340930552,), (1340930563,), (1340930589,), (1340930590,), (1340930592,), (1340930741,), (1340930743,), (1340930763,), (1340930770,), (1340930853,), (1340930856,), (1340930858,), (1340930863,), (1340930868,), (1340930892,), (1340930896,), (1340930900,), (1340930911,), (1340930916,), (1340930919,), (1340930961,), (1340930964,), (1340930970,)) 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 (1340930900) 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`=21042685 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','papier','Carton_brun','environnement','cartonnette','kraft','flou','autre_refus','Teint_Dans_La_Masse','plastique','metal','Carton_gris')) 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`=21042685 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','papier','Carton_brun','environnement','cartonnette','kraft','flou','autre_refus','Teint_Dans_La_Masse','plastique','metal','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 21042685, 'sub_port_id': 21042750, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13656602, 'last_updated_at': datetime.datetime(2025, 3, 5, 4, 25), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 4, 25), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 4, 25)}, 'papier': {'main_port_id': 21042685, 'sub_port_id': 21042751, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13656603, 'last_updated_at': datetime.datetime(2025, 3, 5, 4, 25), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 4, 25), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 4, 25)}, 'mal_croppe': {'main_port_id': 21042685, 'sub_port_id': 21042752, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13656604, 'last_updated_at': datetime.datetime(2025, 3, 5, 4, 25), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 4, 25), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 4, 25)}, 'environnement': {'main_port_id': 21042685, 'sub_port_id': 21042753, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13656605, 'last_updated_at': datetime.datetime(2025, 3, 5, 4, 25), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 4, 25), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 4, 25)}, 'kraft': {'main_port_id': 21042685, 'sub_port_id': 21042754, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13656606, 'last_updated_at': datetime.datetime(2025, 3, 5, 4, 25), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 4, 25), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 4, 25)}, 'autre_refus': {'main_port_id': 21042685, 'sub_port_id': 21042755, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13656607, 'last_updated_at': datetime.datetime(2025, 3, 5, 4, 25), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 4, 25), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 4, 25)}, 'flou': {'main_port_id': 21042685, 'sub_port_id': 21042756, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13656608, 'last_updated_at': datetime.datetime(2025, 3, 5, 4, 25), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 4, 25), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 4, 25)}, 'Teint_Dans_La_Masse': {'main_port_id': 21042685, 'sub_port_id': 21042757, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13656609, 'last_updated_at': datetime.datetime(2025, 3, 5, 4, 25), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 4, 25), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 4, 25)}, 'plastique': {'main_port_id': 21042685, 'sub_port_id': 21042758, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13656610, 'last_updated_at': datetime.datetime(2025, 3, 5, 4, 25), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 4, 25), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 4, 25)}, 'cartonnette': {'main_port_id': 21042685, 'sub_port_id': 21042759, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13656611, 'last_updated_at': datetime.datetime(2025, 3, 5, 4, 25), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 4, 25), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 4, 25)}, 'metal': {'main_port_id': 21042685, 'sub_port_id': 21042760, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13656612, 'last_updated_at': datetime.datetime(2025, 3, 5, 4, 25), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 4, 25), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 4, 25)}, 'Carton_gris': {'main_port_id': 21042685, 'sub_port_id': 21042761, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13656613, 'last_updated_at': datetime.datetime(2025, 3, 5, 4, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 4, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 4, 25)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21042750,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21042738 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21042751,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21042739 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21042752,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21042740 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21042753,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21042741 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21042754,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21042742 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21042755,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21042743 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21042756,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21042744 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21042757,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21042745 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21042758,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21042746 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21042759,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21042747 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21042760,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21042748 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21042761,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21042749 lien utilise dans velours : https://www.fotonower.com/velours/21042750,21042751,21042752,21042753,21042754,21042755,21042756,21042757,21042758,21042759,21042760,21042761?tags=Carton_brun,papier,mal_croppe,environnement,kraft,autre_refus,flou,Teint_Dans_La_Masse,plastique,cartonnette,metal,Carton_gris After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21042685]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1340930970, 1340930964, 1340930961, 1340930919, 1340930916, 1340930911, 1340930900, 1340930896, 1340930892] map_info['map_portfolio_photo'] : {21042685: [1340930970, 1340930964, 1340930961, 1340930919, 1340930916, 1340930911, 1340930900, 1340930896, 1340930892, 1340930868, 1340930863, 1340930858, 1340930856, 1340930853, 1340930770, 1340930763, 1340930743, 1340930741, 1340930592, 1340930590, 1340930589, 1340930563, 1340930552, 1340930542, 1340930535, 1340930505, 1340930502, 1340930494, 1340930481, 1340930441, 1340930358, 1340930354, 1340930350, 1340930344, 1340930331, 1340930149, 1340930145, 1340930141]} final : False mtd_id 4302 list_pids : [1340930970, 1340930964, 1340930961, 1340930919, 1340930916, 1340930911, 1340930900, 1340930896, 1340930892] Looping around the photos to save general results len do output : 1 /21042685. 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, '2635440') ('4302', '21042685', '1340930970', None, None, None, None, None, '2635440') ('4302', None, None, None, None, None, None, None, '2635440') ('4302', '21042685', '1340930964', None, None, None, None, None, '2635440') ('4302', None, None, None, None, None, None, None, '2635440') ('4302', '21042685', '1340930961', None, None, None, None, None, '2635440') ('4302', None, None, None, None, None, None, None, '2635440') ('4302', '21042685', '1340930919', None, None, None, None, None, '2635440') ('4302', None, None, None, None, None, None, None, '2635440') ('4302', '21042685', '1340930916', None, None, None, None, None, '2635440') ('4302', None, None, None, None, None, None, None, '2635440') ('4302', '21042685', '1340930911', None, None, None, None, None, '2635440') ('4302', None, None, None, None, None, None, None, '2635440') ('4302', '21042685', '1340930900', None, None, None, None, None, '2635440') ('4302', None, None, None, None, None, None, None, '2635440') ('4302', '21042685', '1340930896', None, None, None, None, None, '2635440') ('4302', None, None, None, None, None, None, None, '2635440') ('4302', '21042685', '1340930892', None, None, None, None, None, '2635440') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21042685', "{'Carton_brun': 21042738, 'papier': 21042739, 'mal_croppe': 21042740, 'environnement': 21042741, 'kraft': 21042742, 'autre_refus': 21042743, 'flou': 21042744, 'Teint_Dans_La_Masse': 21042745, 'plastique': 21042746, 'cartonnette': 21042747, 'metal': 21042748, 'Carton_gris': 21042749}", None, None, None, None, '2635440'), ('4302', '21042685', '1340930970', None, None, None, None, None, '2635440'), ('4302', '21042685', '1340930964', None, None, None, None, None, '2635440'), ('4302', '21042685', '1340930961', None, None, None, None, None, '2635440'), ('4302', '21042685', '1340930919', None, None, None, None, None, '2635440'), ('4302', '21042685', '1340930916', None, None, None, None, None, '2635440'), ('4302', '21042685', '1340930911', None, None, None, None, None, '2635440'), ('4302', '21042685', '1340930900', None, None, None, None, None, '2635440'), ('4302', '21042685', '1340930896', None, None, None, None, None, '2635440'), ('4302', '21042685', '1340930892', None, None, None, None, None, '2635440')] time used for this insertion : 0.016406536102294922 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.662358283996582 time spend to save output : 0.016759872436523438 total time spend for step 1 : 0.6791181564331055 step2:final Wed Mar 5 04:30:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21042685) 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 21042685 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1340930149,1340930145,1340930141,1340930358,1340930354,1340930350,1340930344,1340930331,1340930505,1340930502,1340930494,1340930481,1340930441,1340930563,1340930552,1340930542,1340930535,1340930592,1340930590,1340930589,1340930770,1340930763,1340930743,1340930741,1340930868,1340930863,1340930858,1340930856,1340930853,1340930919,1340930916,1340930911,1340930900,1340930896,1340930892,1340930970,1340930964,1340930961); 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([21042685]) Inside saveOutput : final : False verbose : True original output for save of step final : {1340930970: ('0.08255017396938345',), 1340930964: ('0.08255017396938345',), 1340930961: ('0.08255017396938345',), 1340930919: ('0.08255017396938345',), 1340930916: ('0.08255017396938345',), 1340930911: ('0.08255017396938345',), 1340930900: ('0.08255017396938345',), 1340930896: ('0.08255017396938345',), 1340930892: ('0.08255017396938345',)} new output for save of step final : {1340930970: ('0.08255017396938345',), 1340930964: ('0.08255017396938345',), 1340930961: ('0.08255017396938345',), 1340930919: ('0.08255017396938345',), 1340930916: ('0.08255017396938345',), 1340930911: ('0.08255017396938345',), 1340930900: ('0.08255017396938345',), 1340930896: ('0.08255017396938345',), 1340930892: ('0.08255017396938345',)} [1340930970, 1340930964, 1340930961, 1340930919, 1340930916, 1340930911, 1340930900, 1340930896, 1340930892] map_info['map_portfolio_photo'] : {21042685: [1340930970, 1340930964, 1340930961, 1340930919, 1340930916, 1340930911, 1340930900, 1340930896, 1340930892, 1340930868, 1340930863, 1340930858, 1340930856, 1340930853, 1340930770, 1340930763, 1340930743, 1340930741, 1340930592, 1340930590, 1340930589, 1340930563, 1340930552, 1340930542, 1340930535, 1340930505, 1340930502, 1340930494, 1340930481, 1340930441, 1340930358, 1340930354, 1340930350, 1340930344, 1340930331, 1340930149, 1340930145, 1340930141]} final : False mtd_id 4302 list_pids : [1340930970, 1340930964, 1340930961, 1340930919, 1340930916, 1340930911, 1340930900, 1340930896, 1340930892] Looping around the photos to save general results len do output : 9 /1340930970.Didn't retrieve data . /1340930964.Didn't retrieve data . /1340930961.Didn't retrieve data . /1340930919.Didn't retrieve data . /1340930916.Didn't retrieve data . /1340930911.Didn't retrieve data . /1340930900.Didn't retrieve data . /1340930896.Didn't retrieve data . /1340930892.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, '2635440') ('4302', '21042685', '1340930970', None, None, None, None, None, '2635440') ('4302', None, None, None, None, None, None, None, '2635440') ('4302', '21042685', '1340930964', None, None, None, None, None, '2635440') ('4302', None, None, None, None, None, None, None, '2635440') ('4302', '21042685', '1340930961', None, None, None, None, None, '2635440') ('4302', None, None, None, None, None, None, None, '2635440') ('4302', '21042685', '1340930919', None, None, None, None, None, '2635440') ('4302', None, None, None, None, None, None, None, '2635440') ('4302', '21042685', '1340930916', None, None, None, None, None, '2635440') ('4302', None, None, None, None, None, None, None, '2635440') ('4302', '21042685', '1340930911', None, None, None, None, None, '2635440') ('4302', None, None, None, None, None, None, None, '2635440') ('4302', '21042685', '1340930900', None, None, None, None, None, '2635440') ('4302', None, None, None, None, None, None, None, '2635440') ('4302', '21042685', '1340930896', None, None, None, None, None, '2635440') ('4302', None, None, None, None, None, None, None, '2635440') ('4302', '21042685', '1340930892', None, None, None, None, None, '2635440') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 27 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21042685', '1340930970', '0.08255017396938345', None, None, None, None, '2635440'), ('4302', '21042685', '1340930964', '0.08255017396938345', None, None, None, None, '2635440'), ('4302', '21042685', '1340930961', '0.08255017396938345', None, None, None, None, '2635440'), ('4302', '21042685', '1340930919', '0.08255017396938345', None, None, None, None, '2635440'), ('4302', '21042685', '1340930916', '0.08255017396938345', None, None, None, None, '2635440'), ('4302', '21042685', '1340930911', '0.08255017396938345', None, None, None, None, '2635440'), ('4302', '21042685', '1340930900', '0.08255017396938345', None, None, None, None, '2635440'), ('4302', '21042685', '1340930896', '0.08255017396938345', None, None, None, None, '2635440'), ('4302', '21042685', '1340930892', '0.08255017396938345', None, None, None, None, '2635440')] time used for this insertion : 0.0146331787109375 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06989097595214844 time spend to save output : 0.015184640884399414 total time spend for step 2 : 0.08507561683654785 step3:velours_tree Wed Mar 5 04:31:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {21042685: [{'Carton_brun': 21042738, 'papier': 21042739, 'mal_croppe': 21042740, 'environnement': 21042741, 'kraft': 21042742, 'autre_refus': 21042743, 'flou': 21042744, 'Teint_Dans_La_Masse': 21042745, 'plastique': 21042746, 'cartonnette': 21042747, 'metal': 21042748, 'Carton_gris': 21042749}]} input_args_next_step : {21042685: ()} output_args : {21042685: [{'Carton_brun': 21042738, 'papier': 21042739, 'mal_croppe': 21042740, 'environnement': 21042741, 'kraft': 21042742, 'autre_refus': 21042743, 'flou': 21042744, 'Teint_Dans_La_Masse': 21042745, 'plastique': 21042746, 'cartonnette': 21042747, 'metal': 21042748, 'Carton_gris': 21042749}]} args : 21042685 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_brun': 21042738, 'papier': 21042739, 'mal_croppe': 21042740, 'environnement': 21042741, 'kraft': 21042742, 'autre_refus': 21042743, 'flou': 21042744, 'Teint_Dans_La_Masse': 21042745, 'plastique': 21042746, 'cartonnette': 21042747, 'metal': 21042748, 'Carton_gris': 21042749},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21042685) 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([21042685]) 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.40444111824035645 time spend to save output : 0.0001049041748046875 total time spend for step 3 : 0.40454602241516113 step4:send_mail_cod Wed Mar 5 04:31:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1340930970: ('0.08255017396938345',), 1340930964: ('0.08255017396938345',), 1340930961: ('0.08255017396938345',), 1340930919: ('0.08255017396938345',), 1340930916: ('0.08255017396938345',), 1340930911: ('0.08255017396938345',), 1340930900: ('0.08255017396938345',), 1340930896: ('0.08255017396938345',), 1340930892: ('0.08255017396938345',)} input_args_next_step : {1340930970: ()} output_args : {1340930970: ('0.08255017396938345',), 1340930964: ('0.08255017396938345',), 1340930961: ('0.08255017396938345',), 1340930919: ('0.08255017396938345',), 1340930916: ('0.08255017396938345',), 1340930911: ('0.08255017396938345',), 1340930900: ('0.08255017396938345',), 1340930896: ('0.08255017396938345',), 1340930892: ('0.08255017396938345',)} args : 1340930970 depend.output_id : 0 input_args_next_step : {1340930970: ('0.08255017396938345',), 1340930964: ()} output_args : {1340930970: ('0.08255017396938345',), 1340930964: ('0.08255017396938345',), 1340930961: ('0.08255017396938345',), 1340930919: ('0.08255017396938345',), 1340930916: ('0.08255017396938345',), 1340930911: ('0.08255017396938345',), 1340930900: ('0.08255017396938345',), 1340930896: ('0.08255017396938345',), 1340930892: ('0.08255017396938345',)} args : 1340930964 depend.output_id : 0 input_args_next_step : {1340930970: ('0.08255017396938345',), 1340930964: ('0.08255017396938345',), 1340930961: ()} output_args : {1340930970: ('0.08255017396938345',), 1340930964: ('0.08255017396938345',), 1340930961: ('0.08255017396938345',), 1340930919: ('0.08255017396938345',), 1340930916: ('0.08255017396938345',), 1340930911: ('0.08255017396938345',), 1340930900: ('0.08255017396938345',), 1340930896: ('0.08255017396938345',), 1340930892: ('0.08255017396938345',)} args : 1340930961 depend.output_id : 0 input_args_next_step : {1340930970: ('0.08255017396938345',), 1340930964: ('0.08255017396938345',), 1340930961: ('0.08255017396938345',), 1340930919: ()} output_args : {1340930970: ('0.08255017396938345',), 1340930964: ('0.08255017396938345',), 1340930961: ('0.08255017396938345',), 1340930919: ('0.08255017396938345',), 1340930916: ('0.08255017396938345',), 1340930911: ('0.08255017396938345',), 1340930900: ('0.08255017396938345',), 1340930896: ('0.08255017396938345',), 1340930892: ('0.08255017396938345',)} args : 1340930919 depend.output_id : 0 input_args_next_step : {1340930970: ('0.08255017396938345',), 1340930964: ('0.08255017396938345',), 1340930961: ('0.08255017396938345',), 1340930919: ('0.08255017396938345',), 1340930916: ()} output_args : {1340930970: ('0.08255017396938345',), 1340930964: ('0.08255017396938345',), 1340930961: ('0.08255017396938345',), 1340930919: ('0.08255017396938345',), 1340930916: ('0.08255017396938345',), 1340930911: ('0.08255017396938345',), 1340930900: ('0.08255017396938345',), 1340930896: ('0.08255017396938345',), 1340930892: ('0.08255017396938345',)} args : 1340930916 depend.output_id : 0 input_args_next_step : {1340930970: ('0.08255017396938345',), 1340930964: ('0.08255017396938345',), 1340930961: ('0.08255017396938345',), 1340930919: ('0.08255017396938345',), 1340930916: ('0.08255017396938345',), 1340930911: ()} output_args : {1340930970: ('0.08255017396938345',), 1340930964: ('0.08255017396938345',), 1340930961: ('0.08255017396938345',), 1340930919: ('0.08255017396938345',), 1340930916: ('0.08255017396938345',), 1340930911: ('0.08255017396938345',), 1340930900: ('0.08255017396938345',), 1340930896: ('0.08255017396938345',), 1340930892: ('0.08255017396938345',)} args : 1340930911 depend.output_id : 0 input_args_next_step : {1340930970: ('0.08255017396938345',), 1340930964: ('0.08255017396938345',), 1340930961: ('0.08255017396938345',), 1340930919: ('0.08255017396938345',), 1340930916: ('0.08255017396938345',), 1340930911: ('0.08255017396938345',), 1340930900: ()} output_args : {1340930970: ('0.08255017396938345',), 1340930964: ('0.08255017396938345',), 1340930961: ('0.08255017396938345',), 1340930919: ('0.08255017396938345',), 1340930916: ('0.08255017396938345',), 1340930911: ('0.08255017396938345',), 1340930900: ('0.08255017396938345',), 1340930896: ('0.08255017396938345',), 1340930892: ('0.08255017396938345',)} args : 1340930900 depend.output_id : 0 input_args_next_step : {1340930970: ('0.08255017396938345',), 1340930964: ('0.08255017396938345',), 1340930961: ('0.08255017396938345',), 1340930919: ('0.08255017396938345',), 1340930916: ('0.08255017396938345',), 1340930911: ('0.08255017396938345',), 1340930900: ('0.08255017396938345',), 1340930896: ()} output_args : {1340930970: ('0.08255017396938345',), 1340930964: ('0.08255017396938345',), 1340930961: ('0.08255017396938345',), 1340930919: ('0.08255017396938345',), 1340930916: ('0.08255017396938345',), 1340930911: ('0.08255017396938345',), 1340930900: ('0.08255017396938345',), 1340930896: ('0.08255017396938345',), 1340930892: ('0.08255017396938345',)} args : 1340930896 depend.output_id : 0 input_args_next_step : {1340930970: ('0.08255017396938345',), 1340930964: ('0.08255017396938345',), 1340930961: ('0.08255017396938345',), 1340930919: ('0.08255017396938345',), 1340930916: ('0.08255017396938345',), 1340930911: ('0.08255017396938345',), 1340930900: ('0.08255017396938345',), 1340930896: ('0.08255017396938345',), 1340930892: ()} output_args : {1340930970: ('0.08255017396938345',), 1340930964: ('0.08255017396938345',), 1340930961: ('0.08255017396938345',), 1340930919: ('0.08255017396938345',), 1340930916: ('0.08255017396938345',), 1340930911: ('0.08255017396938345',), 1340930900: ('0.08255017396938345',), 1340930896: ('0.08255017396938345',), 1340930892: ('0.08255017396938345',)} args : 1340930892 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 : {21042685: [{'Carton_brun': 21042738, 'papier': 21042739, 'mal_croppe': 21042740, 'environnement': 21042741, 'kraft': 21042742, 'autre_refus': 21042743, 'flou': 21042744, 'Teint_Dans_La_Masse': 21042745, 'plastique': 21042746, 'cartonnette': 21042747, 'metal': 21042748, 'Carton_gris': 21042749}]} input_args_next_step : {1340930970: ('0.08255017396938345',), 1340930964: ('0.08255017396938345',), 1340930961: ('0.08255017396938345',), 1340930919: ('0.08255017396938345',), 1340930916: ('0.08255017396938345',), 1340930911: ('0.08255017396938345',), 1340930900: ('0.08255017396938345',), 1340930896: ('0.08255017396938345',), 1340930892: ('0.08255017396938345',), 21042685: ()} output_args : {21042685: [{'Carton_brun': 21042738, 'papier': 21042739, 'mal_croppe': 21042740, 'environnement': 21042741, 'kraft': 21042742, 'autre_refus': 21042743, 'flou': 21042744, 'Teint_Dans_La_Masse': 21042745, 'plastique': 21042746, 'cartonnette': 21042747, 'metal': 21042748, 'Carton_gris': 21042749}]} args : 21042685 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :10, first value : ('0.08255017396938345',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21042685) 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 (1340930970,1340930964,1340930961,1340930919,1340930916,1340930911,1340930900,1340930896,1340930892) Found this number of photos: 9 ##### Call download_photos : nb_thread : 5 begin to download photo : 1340930892 begin to download photo : 1340930900 begin to download photo : 1340930916 begin to download photo : 1340930961 begin to download photo : 1340930970 download finish for photo 1340930900 begin to download photo : 1340930911 download finish for photo 1340930916 begin to download photo : 1340930919 download finish for photo 1340930892 begin to download photo : 1340930896 download finish for photo 1340930961 begin to download photo : 1340930964 download finish for photo 1340930970 download finish for photo 1340930964 download finish for photo 1340930896 download finish for photo 1340930919 download finish for photo 1340930911 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette210427401741145460/ length of list_filenames : 9 ; length of list_pids : 9 ; length of list_args : 9 results_Auto_P21042685_05-03-2025_04_31_00.pdf 21042740 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=21042740 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette210427401741145460 21042742 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=21042742 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340930560: '1741144993_1360005_1340930141_80f2fd88cc2cb1716057600cfa83cc21_rle_crop_3693988983_0.png', 1340930561: '1741144993_1360005_1340930141_80f2fd88cc2cb1716057600cfa83cc21_rle_crop_3693988985_0.png', 1340930846: '1741145104_1366243_1340930505_c0cbb1a7338775e6749d9eddd4e50264_rle_crop_3693990183_0.png', 1340930847: '1741145104_1366243_1340930354_2c7fc03921f50e9a419e6338d411b439_rle_crop_3693990647_0.png', 1340930848: '1741145104_1366243_1340930350_f94a6bea71ba00cecb428e89d85000cf_rle_crop_3693990659_0.png', 1340930960: '1741145271_1374035_1340930563_2f4af51dfa1cbcbcd9517d0ac8360883_rle_crop_3693993633_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/298a60e16ea1929294154a3f87516335_90930594.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/23fee54a33f8333570d58bacd0938da4_23328180.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/907febb58a14ffbaa91666f384e8081b_11045069.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/cc88feb335c4d9570d8805fd0be0aee1_89153338.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/fef46329b51a360a70373473600f27d9_65051424.png change filename to text .imagette210427421741145460/ imagette210427421741145460/1741144993_1360005_1340930141_80f2fd88cc2cb1716057600cfa83cc21_rle_crop_3693988983_0.png.png imagette210427421741145460/1741145104_1366243_1340930505_c0cbb1a7338775e6749d9eddd4e50264_rle_crop_3693990183_0.png.png imagette210427421741145460/1741145271_1374035_1340930563_2f4af51dfa1cbcbcd9517d0ac8360883_rle_crop_3693993633_0.png.png imagette210427421741145460/1741144993_1360005_1340930141_80f2fd88cc2cb1716057600cfa83cc21_rle_crop_3693988985_0.png.png imagette210427421741145460/1741145104_1366243_1340930354_2c7fc03921f50e9a419e6338d411b439_rle_crop_3693990647_0.png.png imagette210427421741145460/1741145104_1366243_1340930350_f94a6bea71ba00cecb428e89d85000cf_rle_crop_3693990659_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/2e4d47e82b579e728bf1e9820d93c2c2_42582862.png imagette210427421741145460 21042743 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=21042743 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340930550: '1741144993_1360005_1340930149_ccf599086bd5c5189385cd80550fbed5_rle_crop_3693988732_0.png', 1340930551: '1741144993_1360005_1340930141_80f2fd88cc2cb1716057600cfa83cc21_rle_crop_3693988984_0.png', 1340930837: '1741145104_1366243_1340930505_c0cbb1a7338775e6749d9eddd4e50264_rle_crop_3693990193_0.png', 1340930838: '1741145104_1366243_1340930354_2c7fc03921f50e9a419e6338d411b439_rle_crop_3693990649_0.png', 1340930839: '1741145104_1366243_1340930350_f94a6bea71ba00cecb428e89d85000cf_rle_crop_3693990665_0.png', 1340930840: '1741145104_1366243_1340930344_6af27ee3c6b68006b483aa79b18fb50e_rle_crop_3693990723_0.png', 1340930841: '1741145104_1366243_1340930344_6af27ee3c6b68006b483aa79b18fb50e_rle_crop_3693990735_0.png', 1340930842: '1741145104_1366243_1340930331_7119050987a940a7f622f1f02e8d0c62_rle_crop_3693990754_0.png', 1340930877: '1741145233_1371321_1340930589_fbd85a862aafa37aa1fff56298c056be_rle_crop_3693991904_0.png', 1340930903: '1741145250_1371720_1340930552_349fae7af6c4379ee050dca142c2b863_rle_crop_3693993301_0.png', 1340930904: '1741145250_1371720_1340930542_bd99d202d38a1da364a5714fbfdda1dc_rle_crop_3693993342_0.png', 1340930943: '1741145271_1374035_1340930563_2f4af51dfa1cbcbcd9517d0ac8360883_rle_crop_3693993644_0.png', 1340930944: '1741145271_1374035_1340930502_6cf62d5ea38cf64e79ab2dfeeb2c6b3a_rle_crop_3693993663_0.png', 1340930945: '1741145271_1374035_1340930494_231e5275179b89ff469272bd733cbac1_rle_crop_3693993681_0.png', 1340930946: '1741145271_1374035_1340930481_729b73bb9bd94c8794426dbfe1e3804f_rle_crop_3693993697_0.png', 1340930947: '1741145271_1374035_1340930441_ab0cccbf1550a4984be182781febd94a_rle_crop_3693993709_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/1a679116d973d967963eaa1e87a7f5e5_62359549.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/b8d4df9d40f9c72ff5b4549b9fb9f18a_64397809.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/88a72ed093dd764cad1f880a1d7afc81_33539042.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/0a6f34dfec23f8eb4478b53005138985_8449246.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/9b4844ed714a26c4bdb04ad655719286_18672913.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/e9352ceb253c4100ef8325425d1108be_69373538.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/f54031d580b3afe2d11695aa532c37e0_94921524.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/2fd717bb277c9a9188ff3346e82659f6_5277505.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/5506b589e9e18a2c7eca617034db08a1_23384103.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/3f07ca39b2e642a4a3a458745ec4acbf_87220074.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/e31e85d7179ece8575acb75a97bd6b78_8558611.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/4db39b9cabceaed22f8edc280791d7cf_98538098.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/e6088292dfeea3771e732ea26d632f99_75049755.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/ebce0413c28a353388921b1d4aefc54f_96115509.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/69472dbd62c1e9cb03933cc8887867e9_52719911.png change filename to text .imagette210427431741145461/ imagette210427431741145461/1741145104_1366243_1340930331_7119050987a940a7f622f1f02e8d0c62_rle_crop_3693990754_0.png.png imagette210427431741145461/1741145250_1371720_1340930552_349fae7af6c4379ee050dca142c2b863_rle_crop_3693993301_0.png.png imagette210427431741145461/1741145271_1374035_1340930502_6cf62d5ea38cf64e79ab2dfeeb2c6b3a_rle_crop_3693993663_0.png.png imagette210427431741145461/1741145271_1374035_1340930481_729b73bb9bd94c8794426dbfe1e3804f_rle_crop_3693993697_0.png.png imagette210427431741145461/1741144993_1360005_1340930149_ccf599086bd5c5189385cd80550fbed5_rle_crop_3693988732_0.png.png imagette210427431741145461/1741145271_1374035_1340930441_ab0cccbf1550a4984be182781febd94a_rle_crop_3693993709_0.png.png imagette210427431741145461/1741145271_1374035_1340930494_231e5275179b89ff469272bd733cbac1_rle_crop_3693993681_0.png.png imagette210427431741145461/1741145271_1374035_1340930563_2f4af51dfa1cbcbcd9517d0ac8360883_rle_crop_3693993644_0.png.png imagette210427431741145461/1741144993_1360005_1340930141_80f2fd88cc2cb1716057600cfa83cc21_rle_crop_3693988984_0.png.png imagette210427431741145461/1741145250_1371720_1340930542_bd99d202d38a1da364a5714fbfdda1dc_rle_crop_3693993342_0.png.png imagette210427431741145461/1741145104_1366243_1340930505_c0cbb1a7338775e6749d9eddd4e50264_rle_crop_3693990193_0.png.png imagette210427431741145461/1741145104_1366243_1340930350_f94a6bea71ba00cecb428e89d85000cf_rle_crop_3693990665_0.png.png imagette210427431741145461/1741145104_1366243_1340930344_6af27ee3c6b68006b483aa79b18fb50e_rle_crop_3693990723_0.png.png imagette210427431741145461/1741145104_1366243_1340930354_2c7fc03921f50e9a419e6338d411b439_rle_crop_3693990649_0.png.png imagette210427431741145461/1741145104_1366243_1340930344_6af27ee3c6b68006b483aa79b18fb50e_rle_crop_3693990735_0.png.png imagette210427431741145461/1741145233_1371321_1340930589_fbd85a862aafa37aa1fff56298c056be_rle_crop_3693991904_0.png.png imagette210427441741145462/ imagette210427461741145462/ wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/756883b96bca5c471562fcb012eef528_76727325.png imagette210427431741145461 21042744 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=21042744 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette210427441741145462 21042746 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=21042746 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette210427461741145462 21042747 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=21042747 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340930555: '1741144993_1360005_1340930145_c3328d0bb49ed09231a9e16d2ac84842_rle_crop_3693988737_0.png', 1340930843: '1741145104_1366243_1340930331_7119050987a940a7f622f1f02e8d0c62_rle_crop_3693990743_0.png', 1340930908: '1741145250_1371720_1340930552_349fae7af6c4379ee050dca142c2b863_rle_crop_3693993306_0.png', 1340930909: '1741145250_1371720_1340930552_349fae7af6c4379ee050dca142c2b863_rle_crop_3693993298_0.png', 1340930957: '1741145271_1374035_1340930502_6cf62d5ea38cf64e79ab2dfeeb2c6b3a_rle_crop_3693993659_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/0ce7471f294402be076ce89d0965ea3f_11542112.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/2882b76ba85332e71c4d14dca9c2ea02_35510858.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/741958d47f6dc30948c419937ffcb2fc_45125537.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/4c57b50e7a655dad67e57ff0729dd9e7_18205475.png change filename to text .imagette210427471741145462/ imagette210427471741145462/1741145250_1371720_1340930552_349fae7af6c4379ee050dca142c2b863_rle_crop_3693993298_0.png.png imagette210427471741145462/1741145104_1366243_1340930331_7119050987a940a7f622f1f02e8d0c62_rle_crop_3693990743_0.png.png imagette210427471741145462/1741145250_1371720_1340930552_349fae7af6c4379ee050dca142c2b863_rle_crop_3693993306_0.png.png imagette210427471741145462/1741144993_1360005_1340930145_c3328d0bb49ed09231a9e16d2ac84842_rle_crop_3693988737_0.png.png imagette210427471741145462/1741145271_1374035_1340930502_6cf62d5ea38cf64e79ab2dfeeb2c6b3a_rle_crop_3693993659_0.png.png imagette210427481741145462/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/19c38522c7c68ae736b4c5917e0ddde8_6277776.png imagette210427471741145462 21042748 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=21042748 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette210427481741145462 21042738 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=21042738 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340930556: '1741144993_1360005_1340930145_c3328d0bb49ed09231a9e16d2ac84842_rle_crop_3693988739_0.png', 1340930844: '1741145104_1366243_1340930505_c0cbb1a7338775e6749d9eddd4e50264_rle_crop_3693990191_0.png', 1340930958: '1741145271_1374035_1340930481_729b73bb9bd94c8794426dbfe1e3804f_rle_crop_3693993690_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/c009c75dde151dcc8a33d6f212070196_47356904.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/f9eb76399a799160b6c07be2408e787e_3610271.png change filename to text .imagette210427381741145462/ imagette210427381741145462/1741144993_1360005_1340930145_c3328d0bb49ed09231a9e16d2ac84842_rle_crop_3693988739_0.png.png imagette210427381741145462/1741145271_1374035_1340930481_729b73bb9bd94c8794426dbfe1e3804f_rle_crop_3693993690_0.png.png imagette210427381741145462/1741145104_1366243_1340930505_c0cbb1a7338775e6749d9eddd4e50264_rle_crop_3693990191_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/e0f91fa26c1f4dae38f64a7b806d8463_30478257.png imagette210427381741145462 21042745 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=21042745 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340930547: '1741144993_1360005_1340930145_c3328d0bb49ed09231a9e16d2ac84842_rle_crop_3693988741_0.png', 1340930548: '1741144993_1360005_1340930141_80f2fd88cc2cb1716057600cfa83cc21_rle_crop_3693988987_0.png', 1340930814: '1741145104_1366243_1340930505_c0cbb1a7338775e6749d9eddd4e50264_rle_crop_3693990188_0.png', 1340930816: '1741145104_1366243_1340930354_2c7fc03921f50e9a419e6338d411b439_rle_crop_3693990652_0.png', 1340930819: '1741145104_1366243_1340930350_f94a6bea71ba00cecb428e89d85000cf_rle_crop_3693990667_0.png', 1340930820: '1741145104_1366243_1340930350_f94a6bea71ba00cecb428e89d85000cf_rle_crop_3693990664_0.png', 1340930822: '1741145104_1366243_1340930344_6af27ee3c6b68006b483aa79b18fb50e_rle_crop_3693990734_0.png', 1340930823: '1741145104_1366243_1340930344_6af27ee3c6b68006b483aa79b18fb50e_rle_crop_3693990733_0.png', 1340930825: '1741145104_1366243_1340930344_6af27ee3c6b68006b483aa79b18fb50e_rle_crop_3693990730_0.png', 1340930826: '1741145104_1366243_1340930344_6af27ee3c6b68006b483aa79b18fb50e_rle_crop_3693990724_0.png', 1340930829: '1741145104_1366243_1340930331_7119050987a940a7f622f1f02e8d0c62_rle_crop_3693990755_0.png', 1340930831: '1741145104_1366243_1340930331_7119050987a940a7f622f1f02e8d0c62_rle_crop_3693990746_0.png', 1340930832: '1741145104_1366243_1340930331_7119050987a940a7f622f1f02e8d0c62_rle_crop_3693990745_0.png', 1340930834: '1741145104_1366243_1340930331_7119050987a940a7f622f1f02e8d0c62_rle_crop_3693990752_0.png', 1340930940: '1741145271_1374035_1340930481_729b73bb9bd94c8794426dbfe1e3804f_rle_crop_3693993698_0.png', 1340930941: '1741145271_1374035_1340930441_ab0cccbf1550a4984be182781febd94a_rle_crop_3693993712_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/cc88a70f8b94610548e492cc5c13bb65_45226532.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/1cffc463898afec66026f4e1a4069243_999755.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/87e9b0307428ae1a55d24ffd5ebe9368_6271524.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/fb841bb4f58df09f36063a11b78f57e8_7952148.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/ad56a19aeb1152f2466a42793eeedcbf_8812045.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/97cae53126b40f100f27482797a3571a_97923333.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/33849d8a7183d4e289e04699bc275035_31840281.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/ccc56bea802999ee85d8202ad3095ed9_45515646.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/c83d4fe7201fe179cfe1be393bee7b9b_72958606.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/abfc6a2331c1c2d110c9bda52faf3c21_62808844.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/595cf18f27a76b2639a563b873fbd7bb_7620558.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/e14c4d4dfcac6d8f0ff85740eff3cebb_46383203.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/9273af6fade430fa77d17713126f2c1c_83445662.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/a0336310cb978ad5b9c543c07851bd83_52270006.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/3fd26a7d791b1308058ffc83c8588488_82517162.png change filename to text .imagette210427451741145462/ imagette210427451741145462/1741145104_1366243_1340930354_2c7fc03921f50e9a419e6338d411b439_rle_crop_3693990652_0.png.png imagette210427451741145462/1741145104_1366243_1340930344_6af27ee3c6b68006b483aa79b18fb50e_rle_crop_3693990730_0.png.png imagette210427451741145462/1741145104_1366243_1340930344_6af27ee3c6b68006b483aa79b18fb50e_rle_crop_3693990734_0.png.png imagette210427451741145462/1741145104_1366243_1340930344_6af27ee3c6b68006b483aa79b18fb50e_rle_crop_3693990724_0.png.png imagette210427451741145462/1741145104_1366243_1340930350_f94a6bea71ba00cecb428e89d85000cf_rle_crop_3693990664_0.png.png imagette210427451741145462/1741144993_1360005_1340930141_80f2fd88cc2cb1716057600cfa83cc21_rle_crop_3693988987_0.png.png imagette210427451741145462/1741145104_1366243_1340930331_7119050987a940a7f622f1f02e8d0c62_rle_crop_3693990755_0.png.png imagette210427451741145462/1741145271_1374035_1340930441_ab0cccbf1550a4984be182781febd94a_rle_crop_3693993712_0.png.png imagette210427451741145462/1741144993_1360005_1340930145_c3328d0bb49ed09231a9e16d2ac84842_rle_crop_3693988741_0.png.png imagette210427451741145462/1741145104_1366243_1340930344_6af27ee3c6b68006b483aa79b18fb50e_rle_crop_3693990733_0.png.png imagette210427451741145462/1741145104_1366243_1340930331_7119050987a940a7f622f1f02e8d0c62_rle_crop_3693990746_0.png.png imagette210427451741145462/1741145271_1374035_1340930481_729b73bb9bd94c8794426dbfe1e3804f_rle_crop_3693993698_0.png.png imagette210427451741145462/1741145104_1366243_1340930505_c0cbb1a7338775e6749d9eddd4e50264_rle_crop_3693990188_0.png.png imagette210427451741145462/1741145104_1366243_1340930331_7119050987a940a7f622f1f02e8d0c62_rle_crop_3693990745_0.png.png imagette210427451741145462/1741145104_1366243_1340930331_7119050987a940a7f622f1f02e8d0c62_rle_crop_3693990752_0.png.png imagette210427451741145462/1741145104_1366243_1340930350_f94a6bea71ba00cecb428e89d85000cf_rle_crop_3693990667_0.png.png wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/5af55906de1493d945dd100c4118ea60_45517857.png imagette210427451741145462 21042749 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=21042749 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340930949: '1741145271_1374035_1340930563_2f4af51dfa1cbcbcd9517d0ac8360883_rle_crop_3693993641_0.png', 1340930950: '1741145271_1374035_1340930563_2f4af51dfa1cbcbcd9517d0ac8360883_rle_crop_3693993636_0.png', 1340930951: '1741145271_1374035_1340930563_2f4af51dfa1cbcbcd9517d0ac8360883_rle_crop_3693993634_0.png', 1340930952: '1741145271_1374035_1340930494_231e5275179b89ff469272bd733cbac1_rle_crop_3693993675_0.png', 1340930953: '1741145271_1374035_1340930494_231e5275179b89ff469272bd733cbac1_rle_crop_3693993676_0.png', 1340930954: '1741145271_1374035_1340930441_ab0cccbf1550a4984be182781febd94a_rle_crop_3693993702_0.png', 1340930955: '1741145271_1374035_1340930441_ab0cccbf1550a4984be182781febd94a_rle_crop_3693993704_0.png', 1340930956: '1741145271_1374035_1340930441_ab0cccbf1550a4984be182781febd94a_rle_crop_3693993706_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/ae10e301f92e7e6a24f22ec86ef13e96_30010333.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/a3bc5a7a7a85127cebe59ed5b2b1653b_35954723.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/e5951dbaca861a0ecdece74bff58c9b0_16162041.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/05c307e85537c78b9c0b3837698355f6_42808926.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/3292a8a7974511b2890c82b04a2820e1_30863357.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/f3fe8b9251c7a8ecfa6b9dc4656b9528_25378847.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/92cec7da629a6df31e7d67efc120d54b_4402234.png change filename to text .imagette210427491741145463/ imagette210427491741145463/1741145271_1374035_1340930563_2f4af51dfa1cbcbcd9517d0ac8360883_rle_crop_3693993641_0.png.png imagette210427491741145463/1741145271_1374035_1340930441_ab0cccbf1550a4984be182781febd94a_rle_crop_3693993704_0.png.png imagette210427491741145463/1741145271_1374035_1340930563_2f4af51dfa1cbcbcd9517d0ac8360883_rle_crop_3693993636_0.png.png imagette210427491741145463/1741145271_1374035_1340930494_231e5275179b89ff469272bd733cbac1_rle_crop_3693993675_0.png.png imagette210427491741145463/1741145271_1374035_1340930563_2f4af51dfa1cbcbcd9517d0ac8360883_rle_crop_3693993634_0.png.png imagette210427491741145463/1741145271_1374035_1340930441_ab0cccbf1550a4984be182781febd94a_rle_crop_3693993706_0.png.png imagette210427491741145463/1741145271_1374035_1340930441_ab0cccbf1550a4984be182781febd94a_rle_crop_3693993702_0.png.png imagette210427491741145463/1741145271_1374035_1340930494_231e5275179b89ff469272bd733cbac1_rle_crop_3693993676_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/532a21cb544b681d5805f7be96d7e7d0_60523880.png imagette210427491741145463 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21042685 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21042750,21042751,21042752,21042753,21042754,21042755,21042756,21042757,21042758,21042759,21042760,21042761?tags=Carton_brun,papier,mal_croppe,environnement,kraft,autre_refus,flou,Teint_Dans_La_Masse,plastique,cartonnette,metal,Carton_gris your option no_mail is active, we will not send the real mail to your client args[1340930970] : ('0.08255017396938345',) no score found for photo 1340930970 We are sending mail with results at report@fotonower.com args[1340930964] : ('0.08255017396938345',) no score found for photo 1340930964 We are sending mail with results at report@fotonower.com args[1340930961] : ('0.08255017396938345',) no score found for photo 1340930961 We are sending mail with results at report@fotonower.com args[1340930919] : ('0.08255017396938345',) no score found for photo 1340930919 We are sending mail with results at report@fotonower.com args[1340930916] : ('0.08255017396938345',) no score found for photo 1340930916 We are sending mail with results at report@fotonower.com args[1340930911] : ('0.08255017396938345',) no score found for photo 1340930911 We are sending mail with results at report@fotonower.com args[1340930900] : ('0.08255017396938345',) no score found for photo 1340930900 We are sending mail with results at report@fotonower.com args[1340930896] : ('0.08255017396938345',) no score found for photo 1340930896 We are sending mail with results at report@fotonower.com args[1340930892] : ('0.08255017396938345',) no score found for photo 1340930892 We are sending mail with results at report@fotonower.com refus_total : 0.08255017396938345 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=21042685 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_P21042685_05-03-2025_04_31_00.pdf results_Auto_P21042685_05-03-2025_04_31_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21042685_05-03-2025_04_31_00.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','21042685','results_Auto_P21042685_05-03-2025_04_31_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21042685_05-03-2025_04_31_00.pdf','pdf','','0.26','0.08255017396938345') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21042685]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1340930970, 1340930964, 1340930961, 1340930919, 1340930916, 1340930911, 1340930900, 1340930896, 1340930892] map_info['map_portfolio_photo'] : {21042685: [1340930970, 1340930964, 1340930961, 1340930919, 1340930916, 1340930911, 1340930900, 1340930896, 1340930892, 1340930868, 1340930863, 1340930858, 1340930856, 1340930853, 1340930770, 1340930763, 1340930743, 1340930741, 1340930592, 1340930590, 1340930589, 1340930563, 1340930552, 1340930542, 1340930535, 1340930505, 1340930502, 1340930494, 1340930481, 1340930441, 1340930358, 1340930354, 1340930350, 1340930344, 1340930331, 1340930149, 1340930145, 1340930141]} final : False mtd_id 4302 list_pids : [1340930970, 1340930964, 1340930961, 1340930919, 1340930916, 1340930911, 1340930900, 1340930896, 1340930892] 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, '2635440') ('4302', '21042685', '1340930970', None, None, None, None, None, '2635440') ('4302', None, None, None, None, None, None, None, '2635440') ('4302', '21042685', '1340930964', None, None, None, None, None, '2635440') ('4302', None, None, None, None, None, None, None, '2635440') ('4302', '21042685', '1340930961', None, None, None, None, None, '2635440') ('4302', None, None, None, None, None, None, None, '2635440') ('4302', '21042685', '1340930919', None, None, None, None, None, '2635440') ('4302', None, None, None, None, None, None, None, '2635440') ('4302', '21042685', '1340930916', None, None, None, None, None, '2635440') ('4302', None, None, None, None, None, None, None, '2635440') ('4302', '21042685', '1340930911', None, None, None, None, None, '2635440') ('4302', None, None, None, None, None, None, None, '2635440') ('4302', '21042685', '1340930900', None, None, None, None, None, '2635440') ('4302', None, None, None, None, None, None, None, '2635440') ('4302', '21042685', '1340930896', None, None, None, None, None, '2635440') ('4302', None, None, None, None, None, None, None, '2635440') ('4302', '21042685', '1340930892', None, None, None, None, None, '2635440') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21042685', '1340930970', None, None, None, None, None, '2635440'), ('4302', '21042685', '1340930964', None, None, None, None, None, '2635440'), ('4302', '21042685', '1340930961', None, None, None, None, None, '2635440'), ('4302', '21042685', '1340930919', None, None, None, None, None, '2635440'), ('4302', '21042685', '1340930916', None, None, None, None, None, '2635440'), ('4302', '21042685', '1340930911', None, None, None, None, None, '2635440'), ('4302', '21042685', '1340930900', None, None, None, None, None, '2635440'), ('4302', '21042685', '1340930896', None, None, None, None, None, '2635440'), ('4302', '21042685', '1340930892', None, None, None, None, None, '2635440')] time used for this insertion : 0.012192726135253906 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.157534837722778 time spend to save output : 0.012471914291381836 total time spend for step 4 : 5.17000675201416 step5:split_time_score Wed Mar 5 04:31: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 : ['21042685'] 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 : [('21042685',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21042685) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1340930970: {'path': 'temp/1741145460_3248695_1340930970_a431bb03093547fe3aa74a3fc108f016.jpg', 'extension': 'jpg'}, 1340930961: {'path': 'temp/1741145460_3248695_1340930961_e17e1db6ae8d2713b2bc051463cf5785.jpg', 'extension': 'jpg'}, 1340930964: {'path': 'temp/1741145460_3248695_1340930964_70bce95849dfeafe6c936f076d4e3de3.jpg', 'extension': 'jpg'}, 1340930892: {'path': 'temp/1741145460_3248695_1340930892_30a78fe073b25e18e1345abf2b0bc265.jpg', 'extension': 'jpg'}, 1340930896: {'path': 'temp/1741145460_3248695_1340930896_b2ba54cc926b1d9903a0202d059a1413.jpg', 'extension': 'jpg'}, 1340930916: {'path': 'temp/1741145460_3248695_1340930916_25c97dda23100b079ab2358c0bece3a8.jpg', 'extension': 'jpg'}, 1340930919: {'path': 'temp/1741145460_3248695_1340930919_9ee9400ab90aebb5507af79142b7de20.jpg', 'extension': 'jpg'}, 1340930900: {'path': 'temp/1741145460_3248695_1340930900_5b159674a2a15de2766235627b39c320.jpg', 'extension': 'jpg'}, 1340930911: {'path': 'temp/1741145460_3248695_1340930911_a9421aa6f0e9613ea57d1c9156eb5105.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 = 21042685; (('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 = 21042685 group by h (('04', 38),) 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=21042685 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 (21042685) 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 (21042685) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 05032025 21042685 Nombre de photos uploadées : 38 / 23040 (0%) 05032025 21042685 Nombre de photos taguées (types de déchets): 0 / 38 (0%) 05032025 21042685 Nombre de photos taguées (volume) : 0 / 38 (0%) [{'photo_id': 1340930149, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/ccf599086bd5c5189385cd80550fbed5.jpg', 'username': None, 'uploaded_at': 1741144883, 'text': 'image_05032025_04_20_03_10135.jpg'}, {'photo_id': 1340930145, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/c3328d0bb49ed09231a9e16d2ac84842.jpg', 'username': None, 'uploaded_at': 1741144883, 'text': 'image_05032025_04_20_24_10142.jpg'}, {'photo_id': 1340930141, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/80f2fd88cc2cb1716057600cfa83cc21.jpg', 'username': None, 'uploaded_at': 1741144883, 'text': 'image_05032025_04_20_43_9129.jpg'}, {'photo_id': 1340930358, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/88542b95a59617796104b5177ecc6ac5.jpg', 'username': None, 'uploaded_at': 1741144943, 'text': 'image_05032025_04_20_53_10136.jpg'}] 0 [] elapsed_time : load_data_split_time_score 5.4836273193359375e-06 elapsed_time : order_list_meta_photo_and_scores 1.7642974853515625e-05 ?????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0013651847839355469 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21042685, '2025-03-05' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1639483,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.032594919204711914 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= 1639483 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1639483, 'dashboard_run_id': 1647559, 'mtr_portfolio_id': 21042325, 'dashboard_result_id': 9218164, '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_P21042325_05-03-2025_04_22_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21042327, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21042328, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21042329, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21042330, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21042331, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21042332, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21042333, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21042334, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21042335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21042336, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21042337, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21042338, 'pht': 3726}}"}, {'dashboat_entry_day': 1639483, 'dashboard_run_id': 1647559, 'mtr_portfolio_id': 21042685, 'dashboard_result_id': 9218165, '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_P21042685_05-03-2025_04_29_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21042738, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21042739, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21042740, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21042741, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21042742, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21042743, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21042744, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21042745, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21042746, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21042747, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21042748, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21042749, '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 = 21042325 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': 2635395, 'mtr_portfolio_id': 21042325, 'created_at': datetime.datetime(2025, 3, 5, 4, 22, 57), 'result': '0.09684376472688021', 'result_long': None, 'result_double': None}] Qualite : 0.09684376472688021 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21042325 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21042325_05-03-2025_04_22_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21042325 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_P21042325_05-03-2025_04_22_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21042327, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21042328, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21042329, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21042330, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21042331, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21042332, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21042333, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21042334, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21042335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21042336, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21042337, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21042338, 'pht': 3726}}" where mtr_portfolio_id = 21042325 and dashboard_run_id = 1647559 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`=21042325 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9218164, 0.09684376472688021, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21042325_05-03-2025_04_22_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21042327, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21042328, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21042329, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21042330, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21042331, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21042332, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21042333, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21042334, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21042335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21042336, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21042337, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21042338, '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 = 21042685 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': 2635440, 'mtr_portfolio_id': 21042685, 'created_at': datetime.datetime(2025, 3, 5, 4, 31), 'result': '0.08255017396938345', 'result_long': None, 'result_double': None}] Qualite : 0.08255017396938345 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21042685 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21042685_05-03-2025_04_31_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21042685 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_P21042685_05-03-2025_04_31_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21042738, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21042739, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21042740, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21042741, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21042742, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21042743, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21042744, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21042745, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21042746, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21042747, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21042748, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21042749, 'pht': 3726}}" where mtr_portfolio_id = 21042685 and dashboard_run_id = 1647559 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`=21042685 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9218165, 0.08255017396938345, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21042685_05-03-2025_04_31_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21042738, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21042739, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21042740, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21042741, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21042742, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21042743, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21042744, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21042745, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21042746, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21042747, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21042748, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21042749, '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 (21042325,21042685) result : ((1340927750,), (1340927888,), (1340927891,), (1340928061,), (1340928069,), (1340928080,), (1340928084,), (1340928088,), (1340928233,), (1340928262,), (1340928342,), (1340928345,), (1340928349,), (1340928402,), (1340928406,), (1340928438,), (1340928457,), (1340928479,), (1340928528,), (1340928532,), (1340928537,), (1340928543,), (1340928577,), (1340928659,), (1340928668,), (1340928671,), (1340928676,), (1340928685,), (1340928699,), (1340928743,), (1340928747,), (1340928749,), (1340928754,), (1340930153,), (1340930141,), (1340930145,), (1340930149,), (1340930331,), (1340930344,), (1340930350,), (1340930354,), (1340930358,), (1340930441,), (1340930481,), (1340930494,), (1340930502,), (1340930505,), (1340930535,), (1340930542,), (1340930552,), (1340930563,), (1340930589,), (1340930590,), (1340930592,), (1340930741,), (1340930743,), (1340930763,), (1340930770,), (1340930853,), (1340930856,), (1340930858,), (1340930863,), (1340930868,), (1340930892,), (1340930896,), (1340930900,), (1340930911,), (1340930916,), (1340930919,), (1340930961,), (1340930964,), (1340930970,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'05032025': {'nb_upload': 38, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21042685]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1340930970, 1340930964, 1340930961, 1340930919, 1340930916, 1340930911, 1340930900, 1340930896, 1340930892] map_info['map_portfolio_photo'] : {21042685: [1340930970, 1340930964, 1340930961, 1340930919, 1340930916, 1340930911, 1340930900, 1340930896, 1340930892, 1340930868, 1340930863, 1340930858, 1340930856, 1340930853, 1340930770, 1340930763, 1340930743, 1340930741, 1340930592, 1340930590, 1340930589, 1340930563, 1340930552, 1340930542, 1340930535, 1340930505, 1340930502, 1340930494, 1340930481, 1340930441, 1340930358, 1340930354, 1340930350, 1340930344, 1340930331, 1340930149, 1340930145, 1340930141]} final : True mtd_id 4302 list_pids : [1340930970, 1340930964, 1340930961, 1340930919, 1340930916, 1340930911, 1340930900, 1340930896, 1340930892] Looping around the photos to save general results len do output : 1 /21042685Didn'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, '2635440') ('4302', '21042685', '1340930970', None, None, None, None, None, '2635440') ('4302', None, None, None, None, None, None, None, '2635440') ('4302', '21042685', '1340930964', None, None, None, None, None, '2635440') ('4302', None, None, None, None, None, None, None, '2635440') ('4302', '21042685', '1340930961', None, None, None, None, None, '2635440') ('4302', None, None, None, None, None, None, None, '2635440') ('4302', '21042685', '1340930919', None, None, None, None, None, '2635440') ('4302', None, None, None, None, None, None, None, '2635440') ('4302', '21042685', '1340930916', None, None, None, None, None, '2635440') ('4302', None, None, None, None, None, None, None, '2635440') ('4302', '21042685', '1340930911', None, None, None, None, None, '2635440') ('4302', None, None, None, None, None, None, None, '2635440') ('4302', '21042685', '1340930900', None, None, None, None, None, '2635440') ('4302', None, None, None, None, None, None, None, '2635440') ('4302', '21042685', '1340930896', None, None, None, None, None, '2635440') ('4302', None, None, None, None, None, None, None, '2635440') ('4302', '21042685', '1340930892', None, None, None, None, None, '2635440') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21042685', 'None', None, None, None, None, '2635440'), ('4302', '21042685', '1340930970', None, None, None, None, None, '2635440'), ('4302', '21042685', '1340930964', None, None, None, None, None, '2635440'), ('4302', '21042685', '1340930961', None, None, None, None, None, '2635440'), ('4302', '21042685', '1340930919', None, None, None, None, None, '2635440'), ('4302', '21042685', '1340930916', None, None, None, None, None, '2635440'), ('4302', '21042685', '1340930911', None, None, None, None, None, '2635440'), ('4302', '21042685', '1340930900', None, None, None, None, None, '2635440'), ('4302', '21042685', '1340930896', None, None, None, None, None, '2635440'), ('4302', '21042685', '1340930892', None, None, None, None, None, '2635440')] time used for this insertion : 0.016257762908935547 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5529530048370361 time spend to save output : 0.01657891273498535 total time spend for step 5 : 0.5695319175720215 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 (2635440) 2.51user 2.44system 0:11.22elapsed 44%CPU (0avgtext+0avgdata 159304maxresident)k 128inputs+14128outputs (4major+74144minor)pagefaults 0swaps