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 : 2415592 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 (2561726) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2561726) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20324009 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2561726'] with mtr_portfolio_ids : ['20324009'] and first list_photo_ids : [] new path : /proc/2415592/ Name: python3 Umask: 0002 State: R (running) Tgid: 2415592 Ngid: 0 Pid: 2415592 PPid: 2415590 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2415592 NSpid: 2415592 NSpgid: 2413923 NSsid: 2413923 VmPeak: 1106596 kB VmSize: 1106576 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98620 kB VmRSS: 98620 kB RssAnon: 59736 kB RssFile: 38884 kB RssShmem: 0 kB VmData: 865328 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 608 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 41 nonvoluntary_ctxt_switches: 88 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2415592', 'Ngid': '0', 'Pid': '2415592', 'PPid': '2415590', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2415592', 'NSpid': '2415592', 'NSpgid': '2413923', 'NSsid': '2413923', 'VmPeak': '1106596 kB', 'VmSize': '1106576 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98620 kB', 'VmRSS': '98620 kB', 'RssAnon': '59736 kB', 'RssFile': '38884 kB', 'RssShmem': '0 kB', 'VmData': '865328 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '608 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '41', 'nonvoluntary_ctxt_switches': '88'} ('datou_batch_current', '2415592', '1106596', '0', '1106576', '865328', '98620', b'', 'marlene', '2561726') 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 (20324009) 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 (2561726 ) ) 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 (20324009) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1335428442, 'portfolio_id': 20324009}, {'photo_id': 1335428390, 'portfolio_id': 20324009}, {'photo_id': 1335428347, 'portfolio_id': 20324009}, {'photo_id': 1335428317, 'portfolio_id': 20324009}, {'photo_id': 1335428109, 'portfolio_id': 20324009}, {'photo_id': 1335428067, 'portfolio_id': 20324009}, {'photo_id': 1335428026, 'portfolio_id': 20324009}, {'photo_id': 1335427495, 'portfolio_id': 20324009}, {'photo_id': 1335427492, 'portfolio_id': 20324009}, {'photo_id': 1335427489, 'portfolio_id': 20324009}, {'photo_id': 1335427485, 'portfolio_id': 20324009}, {'photo_id': 1335427482, 'portfolio_id': 20324009}, {'photo_id': 1335427375, 'portfolio_id': 20324009}, {'photo_id': 1335427362, 'portfolio_id': 20324009}, {'photo_id': 1335427360, 'portfolio_id': 20324009}, {'photo_id': 1335427326, 'portfolio_id': 20324009}, {'photo_id': 1335427270, 'portfolio_id': 20324009}, {'photo_id': 1335427194, 'portfolio_id': 20324009}, {'photo_id': 1335427038, 'portfolio_id': 20324009}, {'photo_id': 1335427035, 'portfolio_id': 20324009}, {'photo_id': 1335427032, 'portfolio_id': 20324009}, {'photo_id': 1335427030, 'portfolio_id': 20324009}, {'photo_id': 1335427001, 'portfolio_id': 20324009}, {'photo_id': 1335427000, 'portfolio_id': 20324009}, {'photo_id': 1335426692, 'portfolio_id': 20324009}, {'photo_id': 1335426599, 'portfolio_id': 20324009}, {'photo_id': 1335426531, 'portfolio_id': 20324009}, {'photo_id': 1335426411, 'portfolio_id': 20324009}, {'photo_id': 1335426365, 'portfolio_id': 20324009}, {'photo_id': 1335426150, 'portfolio_id': 20324009}, {'photo_id': 1335425632, 'portfolio_id': 20324009}, {'photo_id': 1335425590, 'portfolio_id': 20324009}, {'photo_id': 1335425548, 'portfolio_id': 20324009}, {'photo_id': 1335425464, 'portfolio_id': 20324009}, {'photo_id': 1335425416, 'portfolio_id': 20324009}, {'photo_id': 1335425365, 'portfolio_id': 20324009}, {'photo_id': 1335424754, 'portfolio_id': 20324009}, {'photo_id': 1335424751, 'portfolio_id': 20324009}, {'photo_id': 1335424747, 'portfolio_id': 20324009}, {'photo_id': 1335424604, 'portfolio_id': 20324009}, {'photo_id': 1335423907, 'portfolio_id': 20324009}, {'photo_id': 1335423894, 'portfolio_id': 20324009}, {'photo_id': 1335423771, 'portfolio_id': 20324009}, {'photo_id': 1335423766, 'portfolio_id': 20324009}, {'photo_id': 1335423760, 'portfolio_id': 20324009}, {'photo_id': 1335423757, 'portfolio_id': 20324009}, {'photo_id': 1335423755, 'portfolio_id': 20324009}, {'photo_id': 1335423645, 'portfolio_id': 20324009}, {'photo_id': 1335423643, 'portfolio_id': 20324009}, {'photo_id': 1335423641, 'portfolio_id': 20324009}] map_portfolio_id_photo_id: {20324009: [1335428442, 1335428390, 1335428347, 1335428317, 1335428109, 1335428067, 1335428026, 1335427495, 1335427492, 1335427489, 1335427485, 1335427482, 1335427375, 1335427362, 1335427360, 1335427326, 1335427270, 1335427194, 1335427038, 1335427035, 1335427032, 1335427030, 1335427001, 1335427000, 1335426692, 1335426599, 1335426531, 1335426411, 1335426365, 1335426150, 1335425632, 1335425590, 1335425548, 1335425464, 1335425416, 1335425365, 1335424754, 1335424751, 1335424747, 1335424604, 1335423907, 1335423894, 1335423771, 1335423766, 1335423760, 1335423757, 1335423755, 1335423645, 1335423643, 1335423641]} ##### 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.014119148254394531 #### 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 Fri Feb 7 07:58:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20324009) 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 : 20324009 get user id for portfolio 20324009 get sub ptf for main ptf 20324009, type 3726 and hashtags ['flou', 'plastique', 'cartonnette', 'kraft', 'autre_refus', 'metal', 'mal_croppe', 'Carton_brun', 'papier', 'Teint_Dans_La_Masse', 'Carton_gris', 'environnement'] 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`=20324009 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','plastique','cartonnette','kraft','autre_refus','metal','mal_croppe','Carton_brun','papier','Teint_Dans_La_Masse','Carton_gris','environnement')) 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`=20324009 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','plastique','cartonnette','kraft','autre_refus','metal','mal_croppe','Carton_brun','papier','Teint_Dans_La_Masse','Carton_gris','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 20324009, 'sub_port_id': 20324023, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13011693, 'last_updated_at': datetime.datetime(2025, 2, 7, 7, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 7, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 7, 48, 58)}, 'papier': {'main_port_id': 20324009, 'sub_port_id': 20324024, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13011694, 'last_updated_at': datetime.datetime(2025, 2, 7, 7, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 7, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 7, 48, 58)}, 'flou': {'main_port_id': 20324009, 'sub_port_id': 20324025, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13011695, 'last_updated_at': datetime.datetime(2025, 2, 7, 7, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 7, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 7, 48, 58)}, 'kraft': {'main_port_id': 20324009, 'sub_port_id': 20324026, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13011696, 'last_updated_at': datetime.datetime(2025, 2, 7, 7, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 7, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 7, 48, 58)}, 'cartonnette': {'main_port_id': 20324009, 'sub_port_id': 20324027, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13011697, 'last_updated_at': datetime.datetime(2025, 2, 7, 7, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 7, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 7, 48, 58)}, 'Carton_brun': {'main_port_id': 20324009, 'sub_port_id': 20324028, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13011698, 'last_updated_at': datetime.datetime(2025, 2, 7, 7, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 7, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 7, 48, 58)}, 'metal': {'main_port_id': 20324009, 'sub_port_id': 20324029, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13011699, 'last_updated_at': datetime.datetime(2025, 2, 7, 7, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 7, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 7, 48, 58)}, 'environnement': {'main_port_id': 20324009, 'sub_port_id': 20324030, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13011700, 'last_updated_at': datetime.datetime(2025, 2, 7, 7, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 7, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 7, 48, 58)}, 'mal_croppe': {'main_port_id': 20324009, 'sub_port_id': 20324031, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13011701, 'last_updated_at': datetime.datetime(2025, 2, 7, 7, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 7, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 7, 48, 58)}, 'autre_refus': {'main_port_id': 20324009, 'sub_port_id': 20324032, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13011702, 'last_updated_at': datetime.datetime(2025, 2, 7, 7, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 7, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 7, 48, 58)}, 'Carton_gris': {'main_port_id': 20324009, 'sub_port_id': 20324033, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13011703, 'last_updated_at': datetime.datetime(2025, 2, 7, 7, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 7, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 7, 48, 58)}, 'plastique': {'main_port_id': 20324009, 'sub_port_id': 20324034, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13011704, 'last_updated_at': datetime.datetime(2025, 2, 7, 7, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 7, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 7, 48, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20324023 , 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=20324009 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 (20324023) result : ((1335423805,), (1335423808,), (1335423810,), (1335425310,), (1335425312,), (1335425315,), (1335425317,), (1335426995,), (1335426996,), (1335427383,), (1335427384,), (1335427388,), (1335427983,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20324009) result : ((1335423641,), (1335423643,), (1335423645,), (1335423755,), (1335423757,), (1335423760,), (1335423766,), (1335423771,), (1335423894,), (1335423907,), (1335424604,), (1335424747,), (1335424751,), (1335424754,), (1335425365,), (1335425416,), (1335425464,), (1335425548,), (1335425590,), (1335425632,), (1335426150,), (1335426365,), (1335426411,), (1335426531,), (1335426599,), (1335426692,), (1335427000,), (1335427001,), (1335427030,), (1335427032,), (1335427035,), (1335427038,), (1335427194,), (1335427270,), (1335427326,), (1335427360,), (1335427362,), (1335427375,), (1335427482,), (1335427485,), (1335427489,), (1335427492,), (1335427495,), (1335428026,), (1335428067,), (1335428109,), (1335428317,), (1335428347,), (1335428390,), (1335428442,)) 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 (1335427000) 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 20324024 , 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=20324009 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 (20324024) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20324009) result : ((1335423641,), (1335423643,), (1335423645,), (1335423755,), (1335423757,), (1335423760,), (1335423766,), (1335423771,), (1335423894,), (1335423907,), (1335424604,), (1335424747,), (1335424751,), (1335424754,), (1335425365,), (1335425416,), (1335425464,), (1335425548,), (1335425590,), (1335425632,), (1335426150,), (1335426365,), (1335426411,), (1335426531,), (1335426599,), (1335426692,), (1335427000,), (1335427001,), (1335427030,), (1335427032,), (1335427035,), (1335427038,), (1335427194,), (1335427270,), (1335427326,), (1335427360,), (1335427362,), (1335427375,), (1335427482,), (1335427485,), (1335427489,), (1335427492,), (1335427495,), (1335428026,), (1335428067,), (1335428109,), (1335428317,), (1335428347,), (1335428390,), (1335428442,)) 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 (1335427000) 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 20324025 , 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=20324009 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 (20324025) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20324009) result : ((1335423641,), (1335423643,), (1335423645,), (1335423755,), (1335423757,), (1335423760,), (1335423766,), (1335423771,), (1335423894,), (1335423907,), (1335424604,), (1335424747,), (1335424751,), (1335424754,), (1335425365,), (1335425416,), (1335425464,), (1335425548,), (1335425590,), (1335425632,), (1335426150,), (1335426365,), (1335426411,), (1335426531,), (1335426599,), (1335426692,), (1335427000,), (1335427001,), (1335427030,), (1335427032,), (1335427035,), (1335427038,), (1335427194,), (1335427270,), (1335427326,), (1335427360,), (1335427362,), (1335427375,), (1335427482,), (1335427485,), (1335427489,), (1335427492,), (1335427495,), (1335428026,), (1335428067,), (1335428109,), (1335428317,), (1335428347,), (1335428390,), (1335428442,)) 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 (1335427000) 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 20324026 , 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=20324009 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 (20324026) result : ((1335427408,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20324009) result : ((1335423641,), (1335423643,), (1335423645,), (1335423755,), (1335423757,), (1335423760,), (1335423766,), (1335423771,), (1335423894,), (1335423907,), (1335424604,), (1335424747,), (1335424751,), (1335424754,), (1335425365,), (1335425416,), (1335425464,), (1335425548,), (1335425590,), (1335425632,), (1335426150,), (1335426365,), (1335426411,), (1335426531,), (1335426599,), (1335426692,), (1335427000,), (1335427001,), (1335427030,), (1335427032,), (1335427035,), (1335427038,), (1335427194,), (1335427270,), (1335427326,), (1335427360,), (1335427362,), (1335427375,), (1335427482,), (1335427485,), (1335427489,), (1335427492,), (1335427495,), (1335428026,), (1335428067,), (1335428109,), (1335428317,), (1335428347,), (1335428390,), (1335428442,)) 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 (1335427000) 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 20324027 , 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=20324009 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 (20324027) result : ((1335423826,), (1335423827,), (1335425389,), (1335425391,), (1335427393,), (1335427398,), (1335427402,), (1335427403,), (1335427404,), (1335428693,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20324009) result : ((1335423641,), (1335423643,), (1335423645,), (1335423755,), (1335423757,), (1335423760,), (1335423766,), (1335423771,), (1335423894,), (1335423907,), (1335424604,), (1335424747,), (1335424751,), (1335424754,), (1335425365,), (1335425416,), (1335425464,), (1335425548,), (1335425590,), (1335425632,), (1335426150,), (1335426365,), (1335426411,), (1335426531,), (1335426599,), (1335426692,), (1335427000,), (1335427001,), (1335427030,), (1335427032,), (1335427035,), (1335427038,), (1335427194,), (1335427270,), (1335427326,), (1335427360,), (1335427362,), (1335427375,), (1335427482,), (1335427485,), (1335427489,), (1335427492,), (1335427495,), (1335428026,), (1335428067,), (1335428109,), (1335428317,), (1335428347,), (1335428390,), (1335428442,)) 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 (1335427000) 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 20324028 , 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=20324009 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 (20324028) result : ((1335423843,), (1335423844,), (1335425410,), (1335425412,), (1335427409,), (1335427410,), (1335427411,), (1335427412,), (1335427413,), (1335428708,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20324009) result : ((1335423641,), (1335423643,), (1335423645,), (1335423755,), (1335423757,), (1335423760,), (1335423766,), (1335423771,), (1335423894,), (1335423907,), (1335424604,), (1335424747,), (1335424751,), (1335424754,), (1335425365,), (1335425416,), (1335425464,), (1335425548,), (1335425590,), (1335425632,), (1335426150,), (1335426365,), (1335426411,), (1335426531,), (1335426599,), (1335426692,), (1335427000,), (1335427001,), (1335427030,), (1335427032,), (1335427035,), (1335427038,), (1335427194,), (1335427270,), (1335427326,), (1335427360,), (1335427362,), (1335427375,), (1335427482,), (1335427485,), (1335427489,), (1335427492,), (1335427495,), (1335428026,), (1335428067,), (1335428109,), (1335428317,), (1335428347,), (1335428390,), (1335428442,)) 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 (1335427000) 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 20324029 , 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=20324009 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 (20324029) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20324009) result : ((1335423641,), (1335423643,), (1335423645,), (1335423755,), (1335423757,), (1335423760,), (1335423766,), (1335423771,), (1335423894,), (1335423907,), (1335424604,), (1335424747,), (1335424751,), (1335424754,), (1335425365,), (1335425416,), (1335425464,), (1335425548,), (1335425590,), (1335425632,), (1335426150,), (1335426365,), (1335426411,), (1335426531,), (1335426599,), (1335426692,), (1335427000,), (1335427001,), (1335427030,), (1335427032,), (1335427035,), (1335427038,), (1335427194,), (1335427270,), (1335427326,), (1335427360,), (1335427362,), (1335427375,), (1335427482,), (1335427485,), (1335427489,), (1335427492,), (1335427495,), (1335428026,), (1335428067,), (1335428109,), (1335428317,), (1335428347,), (1335428390,), (1335428442,)) 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 (1335427000) 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 20324030 , 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=20324009 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 (20324030) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20324009) result : ((1335423641,), (1335423643,), (1335423645,), (1335423755,), (1335423757,), (1335423760,), (1335423766,), (1335423771,), (1335423894,), (1335423907,), (1335424604,), (1335424747,), (1335424751,), (1335424754,), (1335425365,), (1335425416,), (1335425464,), (1335425548,), (1335425590,), (1335425632,), (1335426150,), (1335426365,), (1335426411,), (1335426531,), (1335426599,), (1335426692,), (1335427000,), (1335427001,), (1335427030,), (1335427032,), (1335427035,), (1335427038,), (1335427194,), (1335427270,), (1335427326,), (1335427360,), (1335427362,), (1335427375,), (1335427482,), (1335427485,), (1335427489,), (1335427492,), (1335427495,), (1335428026,), (1335428067,), (1335428109,), (1335428317,), (1335428347,), (1335428390,), (1335428442,)) 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 (1335427000) 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 20324031 , 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=20324009 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 (20324031) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20324009) result : ((1335423641,), (1335423643,), (1335423645,), (1335423755,), (1335423757,), (1335423760,), (1335423766,), (1335423771,), (1335423894,), (1335423907,), (1335424604,), (1335424747,), (1335424751,), (1335424754,), (1335425365,), (1335425416,), (1335425464,), (1335425548,), (1335425590,), (1335425632,), (1335426150,), (1335426365,), (1335426411,), (1335426531,), (1335426599,), (1335426692,), (1335427000,), (1335427001,), (1335427030,), (1335427032,), (1335427035,), (1335427038,), (1335427194,), (1335427270,), (1335427326,), (1335427360,), (1335427362,), (1335427375,), (1335427482,), (1335427485,), (1335427489,), (1335427492,), (1335427495,), (1335428026,), (1335428067,), (1335428109,), (1335428317,), (1335428347,), (1335428390,), (1335428442,)) 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 (1335427000) 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 20324032 , 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=20324009 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 (20324032) result : ((1335425355,), (1335426997,), (1335427002,), (1335427387,), (1335427389,), (1335427390,), (1335427392,), (1335427397,), (1335427989,), (1335427991,), (1335427992,), (1335427993,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20324009) result : ((1335423641,), (1335423643,), (1335423645,), (1335423755,), (1335423757,), (1335423760,), (1335423766,), (1335423771,), (1335423894,), (1335423907,), (1335424604,), (1335424747,), (1335424751,), (1335424754,), (1335425365,), (1335425416,), (1335425464,), (1335425548,), (1335425590,), (1335425632,), (1335426150,), (1335426365,), (1335426411,), (1335426531,), (1335426599,), (1335426692,), (1335427000,), (1335427001,), (1335427030,), (1335427032,), (1335427035,), (1335427038,), (1335427194,), (1335427270,), (1335427326,), (1335427360,), (1335427362,), (1335427375,), (1335427482,), (1335427485,), (1335427489,), (1335427492,), (1335427495,), (1335428026,), (1335428067,), (1335428109,), (1335428317,), (1335428347,), (1335428390,), (1335428442,)) 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 (1335427000) 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 20324033 , 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=20324009 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 (20324033) result : ((1335425370,), (1335427003,), (1335427391,), (1335427399,), (1335428004,), (1335428080,), (1335428675,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20324009) result : ((1335423641,), (1335423643,), (1335423645,), (1335423755,), (1335423757,), (1335423760,), (1335423766,), (1335423771,), (1335423894,), (1335423907,), (1335424604,), (1335424747,), (1335424751,), (1335424754,), (1335425365,), (1335425416,), (1335425464,), (1335425548,), (1335425590,), (1335425632,), (1335426150,), (1335426365,), (1335426411,), (1335426531,), (1335426599,), (1335426692,), (1335427000,), (1335427001,), (1335427030,), (1335427032,), (1335427035,), (1335427038,), (1335427194,), (1335427270,), (1335427326,), (1335427360,), (1335427362,), (1335427375,), (1335427482,), (1335427485,), (1335427489,), (1335427492,), (1335427495,), (1335428026,), (1335428067,), (1335428109,), (1335428317,), (1335428347,), (1335428390,), (1335428442,)) 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 (1335427000) 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 20324034 , 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=20324009 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 (20324034) result : ((1335426999,), (1335427400,), (1335427401,), (1335427414,), (1335427415,), (1335427416,), (1335427417,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20324009) result : ((1335423641,), (1335423643,), (1335423645,), (1335423755,), (1335423757,), (1335423760,), (1335423766,), (1335423771,), (1335423894,), (1335423907,), (1335424604,), (1335424747,), (1335424751,), (1335424754,), (1335425365,), (1335425416,), (1335425464,), (1335425548,), (1335425590,), (1335425632,), (1335426150,), (1335426365,), (1335426411,), (1335426531,), (1335426599,), (1335426692,), (1335427000,), (1335427001,), (1335427030,), (1335427032,), (1335427035,), (1335427038,), (1335427194,), (1335427270,), (1335427326,), (1335427360,), (1335427362,), (1335427375,), (1335427482,), (1335427485,), (1335427489,), (1335427492,), (1335427495,), (1335428026,), (1335428067,), (1335428109,), (1335428317,), (1335428347,), (1335428390,), (1335428442,)) 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 (1335427000) 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`=20324009 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','plastique','cartonnette','kraft','autre_refus','metal','mal_croppe','Carton_brun','papier','Teint_Dans_La_Masse','Carton_gris','environnement')) 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`=20324009 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','plastique','cartonnette','kraft','autre_refus','metal','mal_croppe','Carton_brun','papier','Teint_Dans_La_Masse','Carton_gris','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 20324009, 'sub_port_id': 20324047, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13011717, 'last_updated_at': datetime.datetime(2025, 2, 7, 7, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 7, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 7, 49, 1)}, 'papier': {'main_port_id': 20324009, 'sub_port_id': 20324048, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13011718, 'last_updated_at': datetime.datetime(2025, 2, 7, 7, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 7, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 7, 49, 1)}, 'flou': {'main_port_id': 20324009, 'sub_port_id': 20324049, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13011719, 'last_updated_at': datetime.datetime(2025, 2, 7, 7, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 7, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 7, 49, 1)}, 'kraft': {'main_port_id': 20324009, 'sub_port_id': 20324050, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13011720, 'last_updated_at': datetime.datetime(2025, 2, 7, 7, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 7, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 7, 49, 1)}, 'cartonnette': {'main_port_id': 20324009, 'sub_port_id': 20324051, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13011721, 'last_updated_at': datetime.datetime(2025, 2, 7, 7, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 7, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 7, 49, 1)}, 'Carton_brun': {'main_port_id': 20324009, 'sub_port_id': 20324052, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13011722, 'last_updated_at': datetime.datetime(2025, 2, 7, 7, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 7, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 7, 49, 1)}, 'metal': {'main_port_id': 20324009, 'sub_port_id': 20324053, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13011723, 'last_updated_at': datetime.datetime(2025, 2, 7, 7, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 7, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 7, 49, 1)}, 'environnement': {'main_port_id': 20324009, 'sub_port_id': 20324054, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13011724, 'last_updated_at': datetime.datetime(2025, 2, 7, 7, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 7, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 7, 49, 1)}, 'mal_croppe': {'main_port_id': 20324009, 'sub_port_id': 20324055, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13011725, 'last_updated_at': datetime.datetime(2025, 2, 7, 7, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 7, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 7, 49, 1)}, 'autre_refus': {'main_port_id': 20324009, 'sub_port_id': 20324056, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13011726, 'last_updated_at': datetime.datetime(2025, 2, 7, 7, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 7, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 7, 49, 1)}, 'Carton_gris': {'main_port_id': 20324009, 'sub_port_id': 20324057, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13011727, 'last_updated_at': datetime.datetime(2025, 2, 7, 7, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 7, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 7, 49, 1)}, 'plastique': {'main_port_id': 20324009, 'sub_port_id': 20324058, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13011728, 'last_updated_at': datetime.datetime(2025, 2, 7, 7, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 7, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 7, 49, 1)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20324047,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20324023 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20324048,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20324024 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20324049,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20324025 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20324050,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20324026 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20324051,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20324027 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20324052,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20324028 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20324053,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20324029 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20324054,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20324030 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20324055,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20324031 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20324056,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20324032 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20324057,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20324033 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20324058,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20324034 lien utilise dans velours : https://www.fotonower.com/velours/20324047,20324048,20324049,20324050,20324051,20324052,20324053,20324054,20324055,20324056,20324057,20324058?tags=Teint_Dans_La_Masse,papier,flou,kraft,cartonnette,Carton_brun,metal,environnement,mal_croppe,autre_refus,Carton_gris,plastique After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20324009]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1335428442, 1335428390, 1335428347, 1335428317] map_info['map_portfolio_photo'] : {20324009: [1335428442, 1335428390, 1335428347, 1335428317, 1335428109, 1335428067, 1335428026, 1335427495, 1335427492, 1335427489, 1335427485, 1335427482, 1335427375, 1335427362, 1335427360, 1335427326, 1335427270, 1335427194, 1335427038, 1335427035, 1335427032, 1335427030, 1335427001, 1335427000, 1335426692, 1335426599, 1335426531, 1335426411, 1335426365, 1335426150, 1335425632, 1335425590, 1335425548, 1335425464, 1335425416, 1335425365, 1335424754, 1335424751, 1335424747, 1335424604, 1335423907, 1335423894, 1335423771, 1335423766, 1335423760, 1335423757, 1335423755, 1335423645, 1335423643, 1335423641]} final : False mtd_id 4302 list_pids : [1335428442, 1335428390, 1335428347, 1335428317] Looping around the photos to save general results len do output : 1 /20324009. 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, '2561726') ('4302', '20324009', '1335428442', None, None, None, None, None, '2561726') ('4302', None, None, None, None, None, None, None, '2561726') ('4302', '20324009', '1335428390', None, None, None, None, None, '2561726') ('4302', None, None, None, None, None, None, None, '2561726') ('4302', '20324009', '1335428347', None, None, None, None, None, '2561726') ('4302', None, None, None, None, None, None, None, '2561726') ('4302', '20324009', '1335428317', None, None, None, None, None, '2561726') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 5 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, '20324009', "{'Teint_Dans_La_Masse': 20324023, 'papier': 20324024, 'flou': 20324025, 'kraft': 20324026, 'cartonnette': 20324027, 'Carton_brun': 20324028, 'metal': 20324029, 'environnement': 20324030, 'mal_croppe': 20324031, 'autre_refus': 20324032, 'Carton_gris': 20324033, 'plastique': 20324034}", None, None, None, None, '2561726'), ('4302', '20324009', '1335428442', None, None, None, None, None, '2561726'), ('4302', '20324009', '1335428390', None, None, None, None, None, '2561726'), ('4302', '20324009', '1335428347', None, None, None, None, None, '2561726'), ('4302', '20324009', '1335428317', None, None, None, None, None, '2561726')] time used for this insertion : 0.014934301376342773 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.43387413024902344 time spend to save output : 0.015187501907348633 total time spend for step 1 : 0.44906163215637207 step2:final Fri Feb 7 07:58: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 (20324009) 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 20324009 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1335423645,1335423643,1335423641,1335423771,1335423766,1335423760,1335423757,1335423755,1335423907,1335423894,1335424754,1335424751,1335424747,1335424604,1335425632,1335425590,1335425548,1335425464,1335425416,1335425365,1335426692,1335426599,1335426531,1335426411,1335426365,1335426150,1335427001,1335427000,1335427038,1335427035,1335427032,1335427030,1335427375,1335427362,1335427360,1335427326,1335427270,1335427194,1335427495,1335427492,1335427489,1335427485,1335427482,1335428109,1335428067,1335428026,1335428442,1335428390,1335428347,1335428317); 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([20324009]) Inside saveOutput : final : False verbose : True original output for save of step final : {1335428442: ('0.04784756526971593',), 1335428390: ('0.04784756526971593',), 1335428347: ('0.04784756526971593',), 1335428317: ('0.04784756526971593',)} new output for save of step final : {1335428442: ('0.04784756526971593',), 1335428390: ('0.04784756526971593',), 1335428347: ('0.04784756526971593',), 1335428317: ('0.04784756526971593',)} [1335428442, 1335428390, 1335428347, 1335428317] map_info['map_portfolio_photo'] : {20324009: [1335428442, 1335428390, 1335428347, 1335428317, 1335428109, 1335428067, 1335428026, 1335427495, 1335427492, 1335427489, 1335427485, 1335427482, 1335427375, 1335427362, 1335427360, 1335427326, 1335427270, 1335427194, 1335427038, 1335427035, 1335427032, 1335427030, 1335427001, 1335427000, 1335426692, 1335426599, 1335426531, 1335426411, 1335426365, 1335426150, 1335425632, 1335425590, 1335425548, 1335425464, 1335425416, 1335425365, 1335424754, 1335424751, 1335424747, 1335424604, 1335423907, 1335423894, 1335423771, 1335423766, 1335423760, 1335423757, 1335423755, 1335423645, 1335423643, 1335423641]} final : False mtd_id 4302 list_pids : [1335428442, 1335428390, 1335428347, 1335428317] Looping around the photos to save general results len do output : 4 /1335428442.Didn't retrieve data . /1335428390.Didn't retrieve data . /1335428347.Didn't retrieve data . /1335428317.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, '2561726') ('4302', '20324009', '1335428442', None, None, None, None, None, '2561726') ('4302', None, None, None, None, None, None, None, '2561726') ('4302', '20324009', '1335428390', None, None, None, None, None, '2561726') ('4302', None, None, None, None, None, None, None, '2561726') ('4302', '20324009', '1335428347', None, None, None, None, None, '2561726') ('4302', None, None, None, None, None, None, None, '2561726') ('4302', '20324009', '1335428317', None, None, None, None, None, '2561726') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '20324009', '1335428442', '0.04784756526971593', None, None, None, None, '2561726'), ('4302', '20324009', '1335428390', '0.04784756526971593', None, None, None, None, '2561726'), ('4302', '20324009', '1335428347', '0.04784756526971593', None, None, None, None, '2561726'), ('4302', '20324009', '1335428317', '0.04784756526971593', None, None, None, None, '2561726')] time used for this insertion : 0.012290239334106445 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06520867347717285 time spend to save output : 0.012639760971069336 total time spend for step 2 : 0.07784843444824219 step3:velours_tree Fri Feb 7 07:58: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 complete output_args for input 0 : {20324009: [{'Teint_Dans_La_Masse': 20324023, 'papier': 20324024, 'flou': 20324025, 'kraft': 20324026, 'cartonnette': 20324027, 'Carton_brun': 20324028, 'metal': 20324029, 'environnement': 20324030, 'mal_croppe': 20324031, 'autre_refus': 20324032, 'Carton_gris': 20324033, 'plastique': 20324034}]} input_args_next_step : {20324009: ()} output_args : {20324009: [{'Teint_Dans_La_Masse': 20324023, 'papier': 20324024, 'flou': 20324025, 'kraft': 20324026, 'cartonnette': 20324027, 'Carton_brun': 20324028, 'metal': 20324029, 'environnement': 20324030, 'mal_croppe': 20324031, 'autre_refus': 20324032, 'Carton_gris': 20324033, 'plastique': 20324034}]} args : 20324009 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Teint_Dans_La_Masse': 20324023, 'papier': 20324024, 'flou': 20324025, 'kraft': 20324026, 'cartonnette': 20324027, 'Carton_brun': 20324028, 'metal': 20324029, 'environnement': 20324030, 'mal_croppe': 20324031, 'autre_refus': 20324032, 'Carton_gris': 20324033, 'plastique': 20324034},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20324009) 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([20324009]) 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.31896090507507324 time spend to save output : 4.76837158203125e-05 total time spend for step 3 : 0.31900858879089355 step4:send_mail_cod Fri Feb 7 07:58: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 ! complete output_args for input 2 : {1335428442: ('0.04784756526971593',), 1335428390: ('0.04784756526971593',), 1335428347: ('0.04784756526971593',), 1335428317: ('0.04784756526971593',)} input_args_next_step : {1335428442: ()} output_args : {1335428442: ('0.04784756526971593',), 1335428390: ('0.04784756526971593',), 1335428347: ('0.04784756526971593',), 1335428317: ('0.04784756526971593',)} args : 1335428442 depend.output_id : 0 input_args_next_step : {1335428442: ('0.04784756526971593',), 1335428390: ()} output_args : {1335428442: ('0.04784756526971593',), 1335428390: ('0.04784756526971593',), 1335428347: ('0.04784756526971593',), 1335428317: ('0.04784756526971593',)} args : 1335428390 depend.output_id : 0 input_args_next_step : {1335428442: ('0.04784756526971593',), 1335428390: ('0.04784756526971593',), 1335428347: ()} output_args : {1335428442: ('0.04784756526971593',), 1335428390: ('0.04784756526971593',), 1335428347: ('0.04784756526971593',), 1335428317: ('0.04784756526971593',)} args : 1335428347 depend.output_id : 0 input_args_next_step : {1335428442: ('0.04784756526971593',), 1335428390: ('0.04784756526971593',), 1335428347: ('0.04784756526971593',), 1335428317: ()} output_args : {1335428442: ('0.04784756526971593',), 1335428390: ('0.04784756526971593',), 1335428347: ('0.04784756526971593',), 1335428317: ('0.04784756526971593',)} args : 1335428317 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 : {20324009: [{'Teint_Dans_La_Masse': 20324023, 'papier': 20324024, 'flou': 20324025, 'kraft': 20324026, 'cartonnette': 20324027, 'Carton_brun': 20324028, 'metal': 20324029, 'environnement': 20324030, 'mal_croppe': 20324031, 'autre_refus': 20324032, 'Carton_gris': 20324033, 'plastique': 20324034}]} input_args_next_step : {1335428442: ('0.04784756526971593',), 1335428390: ('0.04784756526971593',), 1335428347: ('0.04784756526971593',), 1335428317: ('0.04784756526971593',), 20324009: ()} output_args : {20324009: [{'Teint_Dans_La_Masse': 20324023, 'papier': 20324024, 'flou': 20324025, 'kraft': 20324026, 'cartonnette': 20324027, 'Carton_brun': 20324028, 'metal': 20324029, 'environnement': 20324030, 'mal_croppe': 20324031, 'autre_refus': 20324032, 'Carton_gris': 20324033, 'plastique': 20324034}]} args : 20324009 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 :5, first value : ('0.04784756526971593',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20324009) 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 (1335428442,1335428390,1335428347,1335428317) Found this number of photos: 4 ##### Call download_photos : nb_thread : 5 begin to download photo : 1335428317 begin to download photo : 1335428347 begin to download photo : 1335428390 begin to download photo : 1335428442 download finish for photo 1335428442 download finish for photo 1335428390 download finish for photo 1335428347 download finish for photo 1335428317 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette203240251738911539/ length of list_filenames : 4 ; length of list_pids : 4 ; length of list_args : 4 results_Auto_P20324009_07-02-2025_07_58_59.pdf 20324025 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=20324025 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette203240251738911539 20324026 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=20324026 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1335427408: '1738911191_1394903_1335426531_c8107e4f63a8428207d2fa9b487b97af_rle_crop_3659137024_0.png'} change filename to text .imagette203240261738911539/ imagette203240261738911539/1738911191_1394903_1335426531_c8107e4f63a8428207d2fa9b487b97af_rle_crop_3659137024_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/5eafc45f9653c68eef82f1e3ef2c2621_1003246.png imagette203240261738911539 20324027 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=20324027 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1335423826: '1738910832_1391036_1335423643_3ea9ef28dd9cb85c965ef10b4394ec81_rle_crop_3659128691_0.png', 1335423827: '1738910832_1391036_1335423641_2b62b718a91de6069abbe722ac82e3db_rle_crop_3659128881_0.png', 1335425389: '1738910931_1392320_1335423757_d9f44e1df8b8184727f09e96b311e58e_rle_crop_3659129622_0.png', 1335425391: '1738910931_1392320_1335423755_cfccb7c2a1f1c677dc862910ee3fb1aa_rle_crop_3659129644_0.png', 1335427393: '1738911191_1394903_1335426599_fdd24fbef62f2c1fb0c46185d5e880fc_rle_crop_3659136977_0.png', 1335427398: '1738911191_1394903_1335426150_07f35b405901dc0b32fd576af37425f4_rle_crop_3659137159_0.png', 1335427402: '1738911209_1395057_1335425590_33c140836e476387b0343345030509fa_rle_crop_3659137033_0.png', 1335427403: '1738911209_1395057_1335425416_b62a753bb3fc6e1d647b24975d9add8e_rle_crop_3659137145_0.png', 1335427404: '1738911209_1395057_1335425416_b62a753bb3fc6e1d647b24975d9add8e_rle_crop_3659137144_0.png', 1335428693: '1738911434_1397314_1335428026_0082245be7dfa342265e668af00ff4e7_rle_crop_3659141712_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/3c96aacc4dbc49d61ef4b77e7b134c83_12357020.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/9e734b0b3741dcc5de44359aef7de90d_22262596.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/2c589c995fee0b6d71bfa4ab5ebc05f9_95241558.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/776ba9c0057748d6a03ba852c3dda3c0_46228390.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/456f267a8ef40a2540c5a7f564f36826_74272893.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/12db4f2dd3f50024a1c04bdbb5b9b2b1_17478459.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/2101146f850385fa727e38b6b08799d6_58720409.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/cb0b86e9adacfb2910b8fd08419c4acd_25310350.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/95f48664535b77d234940fc0b0416fa7_29311765.png change filename to text .imagette203240271738911539/ imagette203240271738911539/1738910931_1392320_1335423757_d9f44e1df8b8184727f09e96b311e58e_rle_crop_3659129622_0.png.png imagette203240271738911539/1738911209_1395057_1335425416_b62a753bb3fc6e1d647b24975d9add8e_rle_crop_3659137145_0.png.png imagette203240271738911539/1738911434_1397314_1335428026_0082245be7dfa342265e668af00ff4e7_rle_crop_3659141712_0.png.png imagette203240271738911539/1738911191_1394903_1335426150_07f35b405901dc0b32fd576af37425f4_rle_crop_3659137159_0.png.png imagette203240271738911539/1738910832_1391036_1335423641_2b62b718a91de6069abbe722ac82e3db_rle_crop_3659128881_0.png.png imagette203240271738911539/1738910931_1392320_1335423755_cfccb7c2a1f1c677dc862910ee3fb1aa_rle_crop_3659129644_0.png.png imagette203240271738911539/1738911209_1395057_1335425590_33c140836e476387b0343345030509fa_rle_crop_3659137033_0.png.png imagette203240271738911539/1738911209_1395057_1335425416_b62a753bb3fc6e1d647b24975d9add8e_rle_crop_3659137144_0.png.png imagette203240271738911539/1738911191_1394903_1335426599_fdd24fbef62f2c1fb0c46185d5e880fc_rle_crop_3659136977_0.png.png imagette203240271738911539/1738910832_1391036_1335423643_3ea9ef28dd9cb85c965ef10b4394ec81_rle_crop_3659128691_0.png.png imagette203240291738911540/ imagette203240311738911540/ wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/e4a10978bd9176c9039966e430860aac_1559489.png imagette203240271738911539 20324029 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=20324029 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette203240291738911540 20324031 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=20324031 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette203240311738911540 20324032 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=20324032 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1335425355: '1738910931_1392320_1335423757_d9f44e1df8b8184727f09e96b311e58e_rle_crop_3659129619_0.png', 1335426997: '1738911073_1393635_1335424747_8c915d5f8825b34fab17ccd018a91765_rle_crop_3659133760_0.png', 1335427002: '1738911091_1393888_1335424754_1bdb8052705f0ce105b6aa20978e76b2_rle_crop_3659133802_0.png', 1335427387: '1738911191_1394903_1335426599_fdd24fbef62f2c1fb0c46185d5e880fc_rle_crop_3659136976_0.png', 1335427389: '1738911191_1394903_1335426411_097073fcc9a3be02e86fb9fbf44370dd_rle_crop_3659137064_0.png', 1335427390: '1738911191_1394903_1335426365_61930264122723fff183871c4f1b13f3_rle_crop_3659137123_0.png', 1335427392: '1738911209_1395057_1335426692_e920f3559f9f85b6db9d47c9c5a394ea_rle_crop_3659136994_0.png', 1335427397: '1738911209_1395057_1335425416_b62a753bb3fc6e1d647b24975d9add8e_rle_crop_3659137143_0.png', 1335427989: '1738911313_1395989_1335427032_faa17b93071b936e9cb18dcb924cfe8e_rle_crop_3659137438_0.png', 1335427991: '1738911313_1395989_1335427032_faa17b93071b936e9cb18dcb924cfe8e_rle_crop_3659137433_0.png', 1335427992: '1738911313_1395989_1335427030_fb359afe0afdb53616716f83b862c995_rle_crop_3659137449_0.png', 1335427993: '1738911313_1395989_1335427030_fb359afe0afdb53616716f83b862c995_rle_crop_3659137453_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/7551aa09502ef2bb8c2e1d92da769ab1_75592294.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/f4d49c45cf9c01bafdc089e262a537e4_6407564.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/db7e1ca090b9c4cbdbe37455b8c1a980_91515245.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/dd559cc0ee119e6db086d68d3f4ff2f4_77758982.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/8ce838dc853c4b7b68ae0a3ef2ef7b97_5999245.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/5d880bf21a918690e9d40cd05f6697b2_67668770.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/4ce34073260339b085ba3cf45780e7f7_80580462.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/57a206611fc493737b95089d17bfdf92_82388733.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/365467a0c75c65bbd1ecd7405a33f8e2_29504385.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/a50f05cc9600eab1e15e13cd3b12c28e_59459346.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/b914d93523322f0cae94fed349125751_64552706.png change filename to text .imagette203240321738911540/ imagette203240321738911540/1738911313_1395989_1335427030_fb359afe0afdb53616716f83b862c995_rle_crop_3659137449_0.png.png imagette203240321738911540/1738910931_1392320_1335423757_d9f44e1df8b8184727f09e96b311e58e_rle_crop_3659129619_0.png.png imagette203240321738911540/1738911313_1395989_1335427032_faa17b93071b936e9cb18dcb924cfe8e_rle_crop_3659137438_0.png.png imagette203240321738911540/1738911209_1395057_1335425416_b62a753bb3fc6e1d647b24975d9add8e_rle_crop_3659137143_0.png.png imagette203240321738911540/1738911191_1394903_1335426599_fdd24fbef62f2c1fb0c46185d5e880fc_rle_crop_3659136976_0.png.png imagette203240321738911540/1738911091_1393888_1335424754_1bdb8052705f0ce105b6aa20978e76b2_rle_crop_3659133802_0.png.png imagette203240321738911540/1738911191_1394903_1335426411_097073fcc9a3be02e86fb9fbf44370dd_rle_crop_3659137064_0.png.png imagette203240321738911540/1738911073_1393635_1335424747_8c915d5f8825b34fab17ccd018a91765_rle_crop_3659133760_0.png.png imagette203240321738911540/1738911191_1394903_1335426365_61930264122723fff183871c4f1b13f3_rle_crop_3659137123_0.png.png imagette203240321738911540/1738911313_1395989_1335427030_fb359afe0afdb53616716f83b862c995_rle_crop_3659137453_0.png.png imagette203240321738911540/1738911313_1395989_1335427032_faa17b93071b936e9cb18dcb924cfe8e_rle_crop_3659137433_0.png.png imagette203240321738911540/1738911209_1395057_1335426692_e920f3559f9f85b6db9d47c9c5a394ea_rle_crop_3659136994_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/5a8bff4683109b2826c97524db419f73_60169806.png imagette203240321738911540 20324034 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=20324034 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1335426999: '1738911073_1393635_1335424747_8c915d5f8825b34fab17ccd018a91765_rle_crop_3659133761_0.png', 1335427400: '1738911191_1394903_1335426531_c8107e4f63a8428207d2fa9b487b97af_rle_crop_3659137011_0.png', 1335427401: '1738911191_1394903_1335426531_c8107e4f63a8428207d2fa9b487b97af_rle_crop_3659137025_0.png', 1335427414: '1738911209_1395057_1335426692_e920f3559f9f85b6db9d47c9c5a394ea_rle_crop_3659137000_0.png', 1335427415: '1738911209_1395057_1335425590_33c140836e476387b0343345030509fa_rle_crop_3659137036_0.png', 1335427416: '1738911209_1395057_1335425548_00cc90552e6e3e46ebdbeaa3cc520a2f_rle_crop_3659137084_0.png', 1335427417: '1738911209_1395057_1335425464_0d710a0da6a3c9fca4aeeae935544c78_rle_crop_3659137106_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/3069447a47060388a09130abcb29a1ce_36883272.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/b061c6b157cdc8fca13abffbaac9148c_17024833.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/4ebcc6919c1620f9c2639ea83bf2437d_47062675.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/a7d48d8b6462addfce1ccec0edb89b45_8106102.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/b02a24ad7ff85ad5922228f6d3d4eacf_46710372.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/ddb2d4979d2f720ebb091998cc849e2e_26846002.png change filename to text .imagette203240341738911540/ imagette203240341738911540/1738911209_1395057_1335425464_0d710a0da6a3c9fca4aeeae935544c78_rle_crop_3659137106_0.png.png imagette203240341738911540/1738911209_1395057_1335425548_00cc90552e6e3e46ebdbeaa3cc520a2f_rle_crop_3659137084_0.png.png imagette203240341738911540/1738911209_1395057_1335426692_e920f3559f9f85b6db9d47c9c5a394ea_rle_crop_3659137000_0.png.png imagette203240341738911540/1738911191_1394903_1335426531_c8107e4f63a8428207d2fa9b487b97af_rle_crop_3659137025_0.png.png imagette203240341738911540/1738911191_1394903_1335426531_c8107e4f63a8428207d2fa9b487b97af_rle_crop_3659137011_0.png.png imagette203240341738911540/1738911073_1393635_1335424747_8c915d5f8825b34fab17ccd018a91765_rle_crop_3659133761_0.png.png imagette203240341738911540/1738911209_1395057_1335425590_33c140836e476387b0343345030509fa_rle_crop_3659137036_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/7d0c08143f456758cdd3ff6176cb8e11_25329415.png imagette203240341738911540 20324023 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=20324023 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1335423805: '1738910832_1391036_1335423645_51a2205cecc85d6652a4b4d5629ea0ad_rle_crop_3659128678_0.png', 1335423808: '1738910832_1391036_1335423645_51a2205cecc85d6652a4b4d5629ea0ad_rle_crop_3659128670_0.png', 1335423810: '1738910832_1391036_1335423641_2b62b718a91de6069abbe722ac82e3db_rle_crop_3659128879_0.png', 1335425310: '1738910931_1392320_1335423766_9a1d81029457191fdb24d29a4c79df04_rle_crop_3659129468_0.png', 1335425312: '1738910931_1392320_1335423766_9a1d81029457191fdb24d29a4c79df04_rle_crop_3659129467_0.png', 1335425315: '1738910931_1392320_1335423760_2e3805e96e7a8524c87a2751c0e3419b_rle_crop_3659129482_0.png', 1335425317: '1738910931_1392320_1335423760_2e3805e96e7a8524c87a2751c0e3419b_rle_crop_3659129479_0.png', 1335426995: '1738911073_1393635_1335424751_3aaa4bbebaa341fc715500b58720bdeb_rle_crop_3659133749_0.png', 1335426996: '1738911073_1393635_1335424747_8c915d5f8825b34fab17ccd018a91765_rle_crop_3659133763_0.png', 1335427383: '1738911191_1394903_1335426599_fdd24fbef62f2c1fb0c46185d5e880fc_rle_crop_3659136979_0.png', 1335427384: '1738911209_1395057_1335425590_33c140836e476387b0343345030509fa_rle_crop_3659137038_0.png', 1335427388: '1738911209_1395057_1335425464_0d710a0da6a3c9fca4aeeae935544c78_rle_crop_3659137102_0.png', 1335427983: '1738911313_1395989_1335427030_fb359afe0afdb53616716f83b862c995_rle_crop_3659137455_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/8d0071576f339be901e05f36333291ff_91115828.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/eac88d0d8465ef01a26b561d608d9bef_73746643.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/c0cb4a1a9930a47f4da41fe7bb637d45_77298654.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/b7246e80be500c2609ed64da9beee439_67242554.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/51b46e05de90612957d7b1aedf52018b_25099040.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/f377ad3c9565f3c73818ab34ab42d87a_61049342.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/767751c87d2fc7486f66d5a4abe2fbed_63146840.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/37b1f366d1901d9edcc2c70f9d7ca9d0_2210530.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/5b7256080200c1729102e32168c571ae_80575322.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/a87baa2fe888139ee04da8dfe89c575f_30217334.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/0065532315b5634401cdd249234de5e1_4870439.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/a9af733bb2eebda54c24d8e0bb12d887_71797267.png change filename to text .imagette203240231738911541/ imagette203240231738911541/1738910931_1392320_1335423766_9a1d81029457191fdb24d29a4c79df04_rle_crop_3659129468_0.png.png imagette203240231738911541/1738910931_1392320_1335423766_9a1d81029457191fdb24d29a4c79df04_rle_crop_3659129467_0.png.png imagette203240231738911541/1738910931_1392320_1335423760_2e3805e96e7a8524c87a2751c0e3419b_rle_crop_3659129482_0.png.png imagette203240231738911541/1738910832_1391036_1335423645_51a2205cecc85d6652a4b4d5629ea0ad_rle_crop_3659128670_0.png.png imagette203240231738911541/1738910931_1392320_1335423760_2e3805e96e7a8524c87a2751c0e3419b_rle_crop_3659129479_0.png.png imagette203240231738911541/1738911209_1395057_1335425464_0d710a0da6a3c9fca4aeeae935544c78_rle_crop_3659137102_0.png.png imagette203240231738911541/1738911191_1394903_1335426599_fdd24fbef62f2c1fb0c46185d5e880fc_rle_crop_3659136979_0.png.png imagette203240231738911541/1738910832_1391036_1335423645_51a2205cecc85d6652a4b4d5629ea0ad_rle_crop_3659128678_0.png.png imagette203240231738911541/1738911073_1393635_1335424747_8c915d5f8825b34fab17ccd018a91765_rle_crop_3659133763_0.png.png imagette203240231738911541/1738910832_1391036_1335423641_2b62b718a91de6069abbe722ac82e3db_rle_crop_3659128879_0.png.png imagette203240231738911541/1738911209_1395057_1335425590_33c140836e476387b0343345030509fa_rle_crop_3659137038_0.png.png imagette203240231738911541/1738911313_1395989_1335427030_fb359afe0afdb53616716f83b862c995_rle_crop_3659137455_0.png.png imagette203240231738911541/1738911073_1393635_1335424751_3aaa4bbebaa341fc715500b58720bdeb_rle_crop_3659133749_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/dce72aa103dc16bca23fd5ea56a1332d_26981656.png imagette203240231738911541 20324028 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=20324028 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1335423843: '1738910832_1391036_1335423645_51a2205cecc85d6652a4b4d5629ea0ad_rle_crop_3659128675_0.png', 1335423844: '1738910832_1391036_1335423643_3ea9ef28dd9cb85c965ef10b4394ec81_rle_crop_3659128688_0.png', 1335425410: '1738910931_1392320_1335423757_d9f44e1df8b8184727f09e96b311e58e_rle_crop_3659129623_0.png', 1335425412: '1738910931_1392320_1335423755_cfccb7c2a1f1c677dc862910ee3fb1aa_rle_crop_3659129651_0.png', 1335427409: '1738911209_1395057_1335426692_e920f3559f9f85b6db9d47c9c5a394ea_rle_crop_3659136998_0.png', 1335427410: '1738911209_1395057_1335425548_00cc90552e6e3e46ebdbeaa3cc520a2f_rle_crop_3659137089_0.png', 1335427411: '1738911209_1395057_1335425416_b62a753bb3fc6e1d647b24975d9add8e_rle_crop_3659137147_0.png', 1335427412: '1738911209_1395057_1335425365_928922bf238f8880e29216524302e923_rle_crop_3659137184_0.png', 1335427413: '1738911209_1395057_1335425365_928922bf238f8880e29216524302e923_rle_crop_3659137185_0.png', 1335428708: '1738911434_1397314_1335428026_0082245be7dfa342265e668af00ff4e7_rle_crop_3659141713_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/c6713f10a81da32502efba998476d857_10851845.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/2ccaa872391295921df54ac8e624a0da_12845995.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/c94e3a46d4ecbe305067352d88023ee9_41036648.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/5de4ebf511118c653e3391421afb1582_45650638.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/ba5c56620fa715f32ec67129df4076e0_80178110.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/fe8ddd06f36998ff38167be5f8763ca4_60506239.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/9f4f8427212b908f9eb2cb18315536b9_20818060.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/7a7a9f321e154734ea1ffd088c7897c8_55430853.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/120443e17009ed7a2c5385f5a3e7c06b_85545383.png change filename to text .imagette203240281738911541/ imagette203240281738911541/1738911209_1395057_1335425365_928922bf238f8880e29216524302e923_rle_crop_3659137184_0.png.png imagette203240281738911541/1738910832_1391036_1335423645_51a2205cecc85d6652a4b4d5629ea0ad_rle_crop_3659128675_0.png.png imagette203240281738911541/1738911209_1395057_1335426692_e920f3559f9f85b6db9d47c9c5a394ea_rle_crop_3659136998_0.png.png imagette203240281738911541/1738911209_1395057_1335425365_928922bf238f8880e29216524302e923_rle_crop_3659137185_0.png.png imagette203240281738911541/1738911209_1395057_1335425548_00cc90552e6e3e46ebdbeaa3cc520a2f_rle_crop_3659137089_0.png.png imagette203240281738911541/1738911209_1395057_1335425416_b62a753bb3fc6e1d647b24975d9add8e_rle_crop_3659137147_0.png.png imagette203240281738911541/1738910832_1391036_1335423643_3ea9ef28dd9cb85c965ef10b4394ec81_rle_crop_3659128688_0.png.png imagette203240281738911541/1738910931_1392320_1335423757_d9f44e1df8b8184727f09e96b311e58e_rle_crop_3659129623_0.png.png imagette203240281738911541/1738910931_1392320_1335423755_cfccb7c2a1f1c677dc862910ee3fb1aa_rle_crop_3659129651_0.png.png imagette203240281738911541/1738911434_1397314_1335428026_0082245be7dfa342265e668af00ff4e7_rle_crop_3659141713_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/e12700b719e5e3ea43cad1f48e15171b_63257668.png imagette203240281738911541 20324033 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=20324033 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1335425370: '1738910931_1392320_1335423755_cfccb7c2a1f1c677dc862910ee3fb1aa_rle_crop_3659129642_0.png', 1335427003: '1738911091_1393888_1335424754_1bdb8052705f0ce105b6aa20978e76b2_rle_crop_3659133801_0.png', 1335427391: '1738911191_1394903_1335426599_fdd24fbef62f2c1fb0c46185d5e880fc_rle_crop_3659136978_0.png', 1335427399: '1738911209_1395057_1335425590_33c140836e476387b0343345030509fa_rle_crop_3659137034_0.png', 1335428004: '1738911313_1395989_1335427035_3650fe4bb3e5d311c63ff5aaffdcc44b_rle_crop_3659137382_0.png', 1335428080: '1738911331_1396176_1335427000_91f764b8e5f731bf038ec326194a3aee_rle_crop_3659138842_0.png', 1335428675: '1738911434_1397314_1335428026_0082245be7dfa342265e668af00ff4e7_rle_crop_3659141711_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/eedda2a6197133ac0d9905b48c1e8db5_75472764.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/bc83ff9cddd570638dcf233000570461_88101299.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/de9810a23b46538d0be6f51b2eef5b96_3896286.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/7ac7298f7e3bc9cd4f829aa76975d5e9_33719541.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/e125d60b60f3488367ea4e8821bb5ba2_83952314.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/1b456e78d4361829e8d6e187dc3b3325_31410718.png change filename to text .imagette203240331738911542/ imagette203240331738911542/1738911313_1395989_1335427035_3650fe4bb3e5d311c63ff5aaffdcc44b_rle_crop_3659137382_0.png.png imagette203240331738911542/1738911209_1395057_1335425590_33c140836e476387b0343345030509fa_rle_crop_3659137034_0.png.png imagette203240331738911542/1738911331_1396176_1335427000_91f764b8e5f731bf038ec326194a3aee_rle_crop_3659138842_0.png.png imagette203240331738911542/1738911191_1394903_1335426599_fdd24fbef62f2c1fb0c46185d5e880fc_rle_crop_3659136978_0.png.png imagette203240331738911542/1738910931_1392320_1335423755_cfccb7c2a1f1c677dc862910ee3fb1aa_rle_crop_3659129642_0.png.png imagette203240331738911542/1738911434_1397314_1335428026_0082245be7dfa342265e668af00ff4e7_rle_crop_3659141711_0.png.png imagette203240331738911542/1738911091_1393888_1335424754_1bdb8052705f0ce105b6aa20978e76b2_rle_crop_3659133801_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/ca58d820972b948813bb3a4f6d9d14e3_63998729.png imagette203240331738911542 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20324009 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20324047,20324048,20324049,20324050,20324051,20324052,20324053,20324054,20324055,20324056,20324057,20324058?tags=Teint_Dans_La_Masse,papier,flou,kraft,cartonnette,Carton_brun,metal,environnement,mal_croppe,autre_refus,Carton_gris,plastique your option no_mail is active, we will not send the real mail to your client args[1335428442] : ('0.04784756526971593',) no score found for photo 1335428442 apple ('0.04784756526971593',) We are sending mail with results at report@fotonower.com args[1335428390] : ('0.04784756526971593',) no score found for photo 1335428390 apple ('0.04784756526971593',) We are sending mail with results at report@fotonower.com args[1335428347] : ('0.04784756526971593',) no score found for photo 1335428347 apple ('0.04784756526971593',) We are sending mail with results at report@fotonower.com args[1335428317] : ('0.04784756526971593',) no score found for photo 1335428317 apple ('0.04784756526971593',) We are sending mail with results at report@fotonower.com refus_total : 0.04784756526971593 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=20324009 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_P20324009_07-02-2025_07_58_59.pdf results_Auto_P20324009_07-02-2025_07_58_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20324009_07-02-2025_07_58_59.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','20324009','results_Auto_P20324009_07-02-2025_07_58_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20324009_07-02-2025_07_58_59.pdf','pdf','','0.23','0.04784756526971593') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20324009]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1335428442, 1335428390, 1335428347, 1335428317] map_info['map_portfolio_photo'] : {20324009: [1335428442, 1335428390, 1335428347, 1335428317, 1335428109, 1335428067, 1335428026, 1335427495, 1335427492, 1335427489, 1335427485, 1335427482, 1335427375, 1335427362, 1335427360, 1335427326, 1335427270, 1335427194, 1335427038, 1335427035, 1335427032, 1335427030, 1335427001, 1335427000, 1335426692, 1335426599, 1335426531, 1335426411, 1335426365, 1335426150, 1335425632, 1335425590, 1335425548, 1335425464, 1335425416, 1335425365, 1335424754, 1335424751, 1335424747, 1335424604, 1335423907, 1335423894, 1335423771, 1335423766, 1335423760, 1335423757, 1335423755, 1335423645, 1335423643, 1335423641]} final : False mtd_id 4302 list_pids : [1335428442, 1335428390, 1335428347, 1335428317] 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, '2561726') ('4302', '20324009', '1335428442', None, None, None, None, None, '2561726') ('4302', None, None, None, None, None, None, None, '2561726') ('4302', '20324009', '1335428390', None, None, None, None, None, '2561726') ('4302', None, None, None, None, None, None, None, '2561726') ('4302', '20324009', '1335428347', None, None, None, None, None, '2561726') ('4302', None, None, None, None, None, None, None, '2561726') ('4302', '20324009', '1335428317', None, None, None, None, None, '2561726') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 4 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', '20324009', '1335428442', None, None, None, None, None, '2561726'), ('4302', '20324009', '1335428390', None, None, None, None, None, '2561726'), ('4302', '20324009', '1335428347', None, None, None, None, None, '2561726'), ('4302', '20324009', '1335428317', None, None, None, None, None, '2561726')] time used for this insertion : 0.013666868209838867 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.270095109939575 time spend to save output : 0.013848304748535156 total time spend for step 4 : 4.28394341468811 step5:split_time_score Fri Feb 7 07:59:03 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['20324009'] 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 : [('20324009',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20324009) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1335428442: {'path': 'temp/1738911539_2415592_1335428442_9b26278a1e77cec289e85c8405242f37.jpg', 'extension': 'jpg'}, 1335428390: {'path': 'temp/1738911539_2415592_1335428390_208b76626757d08197e85c1ea3df9d82.jpg', 'extension': 'jpg'}, 1335428347: {'path': 'temp/1738911539_2415592_1335428347_361559dd6a1d036c76de67c5087fe21b.jpg', 'extension': 'jpg'}, 1335428317: {'path': 'temp/1738911539_2415592_1335428317_b83099c2983cb333e01a3511bbe64389.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 = 20324009; (('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 = 20324009 group by h (('07', 50),) 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=20324009 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 (20324009) 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 (20324009) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 07022025 20324009 Nombre de photos uploadées : 50 / 23040 (0%) 07022025 20324009 Nombre de photos taguées (types de déchets): 0 / 50 (0%) 07022025 20324009 Nombre de photos taguées (volume) : 0 / 50 (0%) [{'photo_id': 1335423645, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/51a2205cecc85d6652a4b4d5629ea0ad.jpg', 'username': None, 'uploaded_at': 1738910768, 'text': 'image_07022025_07_45_04_10169.jpg'}, {'photo_id': 1335423643, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/3ea9ef28dd9cb85c965ef10b4394ec81.jpg', 'username': None, 'uploaded_at': 1738910768, 'text': 'image_07022025_07_45_24_10141.jpg'}, {'photo_id': 1335423641, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/2b62b718a91de6069abbe722ac82e3db.jpg', 'username': None, 'uploaded_at': 1738910768, 'text': 'image_07022025_07_45_44_10134.jpg'}, {'photo_id': 1335423771, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/52c9ccebeac354f34939cfdbbe056c23.jpg', 'username': None, 'uploaded_at': 1738910827, 'text': 'image_07022025_07_45_54_10137.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 5.0067901611328125e-06 ?????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002366304397583008 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20324009, '2025-02-07' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1584783,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.021575212478637695 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= 1584783 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1584783, 'dashboard_run_id': 1593045, 'mtr_portfolio_id': 20322943, 'dashboard_result_id': 8754465, '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_P20322943_07-02-2025_07_23_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20322946, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20322947, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20322948, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20322949, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20322950, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20322951, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20322952, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20322953, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20322954, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20322955, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20322956, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20322957, 'pht': 3726}}"}, {'dashboat_entry_day': 1584783, 'dashboard_run_id': 1593045, 'mtr_portfolio_id': 20323019, 'dashboard_result_id': 8754466, '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_P20323019_07-02-2025_07_32_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20323025, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20323026, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20323027, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20323028, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20323029, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20323030, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20323031, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20323032, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20323033, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20323034, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20323035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20323036, 'pht': 3726}}"}, {'dashboat_entry_day': 1584783, 'dashboard_run_id': 1593045, 'mtr_portfolio_id': 20323596, 'dashboard_result_id': 8754467, '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_P20323596_07-02-2025_07_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20323601, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20323602, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20323603, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20323604, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20323605, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20323606, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20323607, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20323608, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20323609, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20323610, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20323611, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20323612, 'pht': 3726}}"}, {'dashboat_entry_day': 1584783, 'dashboard_run_id': 1593045, 'mtr_portfolio_id': 20324009, 'dashboard_result_id': 8754468, '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_P20324009_07-02-2025_07_57_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20324023, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20324024, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20324025, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20324026, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20324027, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20324028, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20324029, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20324030, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20324031, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20324032, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20324033, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20324034, '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 = 20322943 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': 2561649, 'mtr_portfolio_id': 20322943, 'created_at': datetime.datetime(2025, 2, 7, 7, 23, 29), 'result': '0.02704197444944989', 'result_long': None, 'result_double': None}] Qualite : 0.02704197444944989 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20322943 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20322943_07-02-2025_07_23_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20322943 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_P20322943_07-02-2025_07_23_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20322946, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20322947, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20322948, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20322949, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20322950, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20322951, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20322952, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20322953, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20322954, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20322955, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20322956, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20322957, 'pht': 3726}}" where mtr_portfolio_id = 20322943 and dashboard_run_id = 1593045 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`=20322943 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8754465, 0.02704197444944989, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20322943_07-02-2025_07_23_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20322946, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20322947, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20322948, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20322949, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20322950, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20322951, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20322952, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20322953, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20322954, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20322955, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20322956, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20322957, '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 = 20323019 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': 2561655, 'mtr_portfolio_id': 20323019, 'created_at': datetime.datetime(2025, 2, 7, 7, 32, 57), 'result': '0.031096395621148448', 'result_long': None, 'result_double': None}] Qualite : 0.031096395621148448 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20323019 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20323019_07-02-2025_07_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20323019 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_P20323019_07-02-2025_07_32_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20323025, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20323026, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20323027, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20323028, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20323029, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20323030, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20323031, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20323032, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20323033, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20323034, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20323035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20323036, 'pht': 3726}}" where mtr_portfolio_id = 20323019 and dashboard_run_id = 1593045 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`=20323019 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8754466, 0.031096395621148448, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20323019_07-02-2025_07_32_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20323025, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20323026, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20323027, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20323028, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20323029, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20323030, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20323031, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20323032, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20323033, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20323034, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20323035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20323036, '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 = 20323596 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': 2561694, 'mtr_portfolio_id': 20323596, 'created_at': datetime.datetime(2025, 2, 7, 7, 46, 59), 'result': '0.05076025138146329', 'result_long': None, 'result_double': None}] Qualite : 0.05076025138146329 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20323596 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20323596_07-02-2025_07_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20323596 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_P20323596_07-02-2025_07_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20323601, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20323602, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20323603, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20323604, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20323605, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20323606, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20323607, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20323608, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20323609, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20323610, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20323611, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20323612, 'pht': 3726}}" where mtr_portfolio_id = 20323596 and dashboard_run_id = 1593045 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`=20323596 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8754467, 0.05076025138146329, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20323596_07-02-2025_07_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20323601, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20323602, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20323603, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20323604, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20323605, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20323606, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20323607, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20323608, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20323609, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20323610, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20323611, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20323612, '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 = 20324009 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': 2561726, 'mtr_portfolio_id': 20324009, 'created_at': datetime.datetime(2025, 2, 7, 7, 58, 59), 'result': '0.04784756526971593', 'result_long': None, 'result_double': None}] Qualite : 0.04784756526971593 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20324009 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20324009_07-02-2025_07_58_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20324009 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_P20324009_07-02-2025_07_58_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20324023, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20324024, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20324025, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20324026, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20324027, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20324028, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20324029, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20324030, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20324031, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20324032, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20324033, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20324034, 'pht': 3726}}" where mtr_portfolio_id = 20324009 and dashboard_run_id = 1593045 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`=20324009 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8754468, 0.04784756526971593, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20324009_07-02-2025_07_58_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20324023, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20324024, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20324025, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20324026, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20324027, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20324028, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20324029, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20324030, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20324031, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20324032, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20324033, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20324034, '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 (20322943,20323019,20323596,20324009) result : ((1335420084,), (1335420091,), (1335420096,), (1335420102,), (1335420109,), (1335420116,), (1335420133,), (1335420134,), (1335420135,), (1335420136,), (1335420161,), (1335420167,), (1335420172,), (1335420189,), (1335420194,), (1335420199,), (1335420202,), (1335420208,), (1335420212,), (1335420236,), (1335420241,), (1335420244,), (1335420253,), (1335420254,), (1335420256,), (1335420258,), (1335420260,), (1335420265,), (1335421001,), (1335420128,), (1335420130,), (1335420142,), (1335420147,), (1335420155,), (1335420221,), (1335420225,), (1335420233,), (1335420292,), (1335420293,), (1335420298,), (1335420299,), (1335420305,), (1335420309,), (1335420379,), (1335420387,), (1335420453,), (1335420462,), (1335420531,), (1335420534,), (1335420756,), (1335420806,), (1335420849,), (1335420916,), (1335420976,), (1335421375,), (1335421377,), (1335421381,), (1335421384,), (1335421417,), (1335421420,), (1335421426,), (1335421431,), (1335421441,), (1335421497,), (1335421500,), (1335421503,), (1335421507,), (1335421638,), (1335421642,), (1335421680,), (1335421685,), (1335421696,), (1335421699,), (1335421744,), (1335421973,), (1335422012,), (1335422016,), (1335422020,), (1335422024,), (1335422261,), (1335422095,), (1335422152,), (1335422182,), (1335422227,), (1335422344,), (1335422353,), (1335422359,), (1335422394,), (1335422398,), (1335422401,), (1335422762,), (1335422766,), (1335422815,), (1335422848,), (1335422890,), (1335422893,), (1335422897,), (1335422914,), (1335422920,), (1335422951,), (1335423036,), (1335423042,), (1335423046,), (1335423050,), (1335423077,), (1335423084,), (1335423093,), (1335423137,), (1335423149,), (1335423161,), (1335423168,), (1335423269,), (1335423273,), (1335423309,), (1335423313,), (1335423317,), (1335423322,), (1335423347,), (1335423353,), (1335423356,), (1335423360,), (1335423397,), (1335423410,), (1335423453,), (1335423456,), (1335423462,), (1335423466,), (1335423507,), (1335423508,), (1335423512,), (1335423514,), (1335423519,), (1335423548,), (1335423555,), (1335423559,), (1335423561,), (1335423565,), (1335423577,), (1335423648,), (1335423641,), (1335423643,), (1335423645,), (1335423755,), (1335423757,), (1335423760,), (1335423766,), (1335423771,), (1335423894,), (1335423907,), (1335424604,), (1335424747,), (1335424751,), (1335424754,), (1335425365,), (1335425416,), (1335425464,), (1335425548,), (1335425590,), (1335425632,), (1335426150,), (1335426365,), (1335426411,), (1335426531,), (1335426599,), (1335426692,), (1335427000,), (1335427001,), (1335427030,), (1335427032,), (1335427035,), (1335427038,), (1335427194,), (1335427270,), (1335427326,), (1335427360,), (1335427362,), (1335427375,), (1335427482,), (1335427485,), (1335427489,), (1335427492,), (1335427495,), (1335428026,), (1335428067,), (1335428109,), (1335428317,), (1335428347,), (1335428390,), (1335428442,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'07022025': {'nb_upload': 50, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20324009]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1335428442, 1335428390, 1335428347, 1335428317] map_info['map_portfolio_photo'] : {20324009: [1335428442, 1335428390, 1335428347, 1335428317, 1335428109, 1335428067, 1335428026, 1335427495, 1335427492, 1335427489, 1335427485, 1335427482, 1335427375, 1335427362, 1335427360, 1335427326, 1335427270, 1335427194, 1335427038, 1335427035, 1335427032, 1335427030, 1335427001, 1335427000, 1335426692, 1335426599, 1335426531, 1335426411, 1335426365, 1335426150, 1335425632, 1335425590, 1335425548, 1335425464, 1335425416, 1335425365, 1335424754, 1335424751, 1335424747, 1335424604, 1335423907, 1335423894, 1335423771, 1335423766, 1335423760, 1335423757, 1335423755, 1335423645, 1335423643, 1335423641]} final : True mtd_id 4302 list_pids : [1335428442, 1335428390, 1335428347, 1335428317] Looping around the photos to save general results len do output : 1 /20324009Didn'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, '2561726') ('4302', '20324009', '1335428442', None, None, None, None, None, '2561726') ('4302', None, None, None, None, None, None, None, '2561726') ('4302', '20324009', '1335428390', None, None, None, None, None, '2561726') ('4302', None, None, None, None, None, None, None, '2561726') ('4302', '20324009', '1335428347', None, None, None, None, None, '2561726') ('4302', None, None, None, None, None, None, None, '2561726') ('4302', '20324009', '1335428317', None, None, None, None, None, '2561726') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 5 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, '20324009', 'None', None, None, None, None, '2561726'), ('4302', '20324009', '1335428442', None, None, None, None, None, '2561726'), ('4302', '20324009', '1335428390', None, None, None, None, None, '2561726'), ('4302', '20324009', '1335428347', None, None, None, None, None, '2561726'), ('4302', '20324009', '1335428317', None, None, None, None, None, '2561726')] time used for this insertion : 0.012264251708984375 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3234889507293701 time spend to save output : 0.012428760528564453 total time spend for step 5 : 0.33591771125793457 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 (2561726) 1.89user 2.41system 0:09.60elapsed 44%CPU (0avgtext+0avgdata 159156maxresident)k 176inputs+11928outputs (0major+63773minor)pagefaults 0swaps