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 : 1754916 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 (2575118) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2575118) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20433719 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2575118'] with mtr_portfolio_ids : ['20433719'] and first list_photo_ids : [] new path : /proc/1754916/ Name: python3 Umask: 0002 State: R (running) Tgid: 1754916 Ngid: 0 Pid: 1754916 PPid: 1754915 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1754916 NSpid: 1754916 NSpgid: 1753547 NSsid: 1753547 VmPeak: 1106824 kB VmSize: 1106824 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98696 kB VmRSS: 98696 kB RssAnon: 59792 kB RssFile: 38904 kB RssShmem: 0 kB VmData: 865576 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 548 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: 43 nonvoluntary_ctxt_switches: 109 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1754916', 'Ngid': '0', 'Pid': '1754916', 'PPid': '1754915', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1754916', 'NSpid': '1754916', 'NSpgid': '1753547', 'NSsid': '1753547', 'VmPeak': '1106824 kB', 'VmSize': '1106824 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98696 kB', 'VmRSS': '98696 kB', 'RssAnon': '59792 kB', 'RssFile': '38904 kB', 'RssShmem': '0 kB', 'VmData': '865576 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '548 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': '43', 'nonvoluntary_ctxt_switches': '109'} ('datou_batch_current', '1754916', '1106824', '0', '1106824', '865576', '98696', b'', 'marlene', '2575118') 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 (20433719) 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 (2575118 ) ) 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 (20433719) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1336742074, 'portfolio_id': 20433719}, {'photo_id': 1336742071, 'portfolio_id': 20433719}, {'photo_id': 1336742068, 'portfolio_id': 20433719}, {'photo_id': 1336741877, 'portfolio_id': 20433719}, {'photo_id': 1336741874, 'portfolio_id': 20433719}, {'photo_id': 1336741870, 'portfolio_id': 20433719}, {'photo_id': 1336741867, 'portfolio_id': 20433719}, {'photo_id': 1336741828, 'portfolio_id': 20433719}, {'photo_id': 1336741817, 'portfolio_id': 20433719}, {'photo_id': 1336741814, 'portfolio_id': 20433719}, {'photo_id': 1336741812, 'portfolio_id': 20433719}, {'photo_id': 1336741727, 'portfolio_id': 20433719}, {'photo_id': 1336741712, 'portfolio_id': 20433719}, {'photo_id': 1336741710, 'portfolio_id': 20433719}, {'photo_id': 1336741550, 'portfolio_id': 20433719}, {'photo_id': 1336741547, 'portfolio_id': 20433719}, {'photo_id': 1336741545, 'portfolio_id': 20433719}, {'photo_id': 1336741543, 'portfolio_id': 20433719}, {'photo_id': 1336741196, 'portfolio_id': 20433719}, {'photo_id': 1336741193, 'portfolio_id': 20433719}, {'photo_id': 1336741148, 'portfolio_id': 20433719}, {'photo_id': 1336741028, 'portfolio_id': 20433719}, {'photo_id': 1336741025, 'portfolio_id': 20433719}, {'photo_id': 1336741021, 'portfolio_id': 20433719}, {'photo_id': 1336741018, 'portfolio_id': 20433719}, {'photo_id': 1336741015, 'portfolio_id': 20433719}, {'photo_id': 1336740967, 'portfolio_id': 20433719}, {'photo_id': 1336740961, 'portfolio_id': 20433719}, {'photo_id': 1336740950, 'portfolio_id': 20433719}, {'photo_id': 1336740851, 'portfolio_id': 20433719}, {'photo_id': 1336740837, 'portfolio_id': 20433719}, {'photo_id': 1336740729, 'portfolio_id': 20433719}, {'photo_id': 1336740162, 'portfolio_id': 20433719}, {'photo_id': 1336740148, 'portfolio_id': 20433719}, {'photo_id': 1336740144, 'portfolio_id': 20433719}, {'photo_id': 1336740141, 'portfolio_id': 20433719}, {'photo_id': 1336740139, 'portfolio_id': 20433719}, {'photo_id': 1336740049, 'portfolio_id': 20433719}, {'photo_id': 1336740007, 'portfolio_id': 20433719}, {'photo_id': 1336739824, 'portfolio_id': 20433719}, {'photo_id': 1336739821, 'portfolio_id': 20433719}] map_portfolio_id_photo_id: {20433719: [1336742074, 1336742071, 1336742068, 1336741877, 1336741874, 1336741870, 1336741867, 1336741828, 1336741817, 1336741814, 1336741812, 1336741727, 1336741712, 1336741710, 1336741550, 1336741547, 1336741545, 1336741543, 1336741196, 1336741193, 1336741148, 1336741028, 1336741025, 1336741021, 1336741018, 1336741015, 1336740967, 1336740961, 1336740950, 1336740851, 1336740837, 1336740729, 1336740162, 1336740148, 1336740144, 1336740141, 1336740139, 1336740049, 1336740007, 1336739824, 1336739821]} ##### 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.014124870300292969 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Tue Feb 11 08:14:29 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 (20433719) 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 : 20433719 get user id for portfolio 20433719 get sub ptf for main ptf 20433719, type 3726 and hashtags ['plastique', 'autre_refus', 'papier', 'Teint_Dans_La_Masse', 'cartonnette', 'mal_croppe', 'flou', 'environnement', 'Carton_brun', 'metal', 'Carton_gris', 'kraft'] 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`=20433719 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','autre_refus','papier','Teint_Dans_La_Masse','cartonnette','mal_croppe','flou','environnement','Carton_brun','metal','Carton_gris','kraft')) 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`=20433719 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','autre_refus','papier','Teint_Dans_La_Masse','cartonnette','mal_croppe','flou','environnement','Carton_brun','metal','Carton_gris','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 20433719, 'sub_port_id': 20433748, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13109787, 'last_updated_at': datetime.datetime(2025, 2, 11, 8, 10, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 8, 10, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 8, 4, 58)}, 'mal_croppe': {'main_port_id': 20433719, 'sub_port_id': 20433749, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13109788, 'last_updated_at': datetime.datetime(2025, 2, 11, 8, 10, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 8, 10, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 8, 4, 58)}, 'metal': {'main_port_id': 20433719, 'sub_port_id': 20433750, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13109789, 'last_updated_at': datetime.datetime(2025, 2, 11, 8, 10, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 8, 10, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 8, 4, 58)}, 'plastique': {'main_port_id': 20433719, 'sub_port_id': 20433751, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13109790, 'last_updated_at': datetime.datetime(2025, 2, 11, 8, 10, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 8, 10, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 8, 4, 58)}, 'cartonnette': {'main_port_id': 20433719, 'sub_port_id': 20433752, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13109791, 'last_updated_at': datetime.datetime(2025, 2, 11, 8, 10, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 8, 10, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 8, 4, 58)}, 'autre_refus': {'main_port_id': 20433719, 'sub_port_id': 20433753, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13109792, 'last_updated_at': datetime.datetime(2025, 2, 11, 8, 10, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 8, 10, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 8, 4, 58)}, 'Carton_gris': {'main_port_id': 20433719, 'sub_port_id': 20433754, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13109793, 'last_updated_at': datetime.datetime(2025, 2, 11, 8, 10, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 8, 10, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 8, 4, 58)}, 'Carton_brun': {'main_port_id': 20433719, 'sub_port_id': 20433755, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13109794, 'last_updated_at': datetime.datetime(2025, 2, 11, 8, 10, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 8, 10, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 8, 4, 58)}, 'kraft': {'main_port_id': 20433719, 'sub_port_id': 20433756, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13109795, 'last_updated_at': datetime.datetime(2025, 2, 11, 8, 10, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 8, 10, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 8, 4, 58)}, 'environnement': {'main_port_id': 20433719, 'sub_port_id': 20433757, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13109796, 'last_updated_at': datetime.datetime(2025, 2, 11, 8, 10, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 8, 10, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 8, 4, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 20433719, 'sub_port_id': 20433758, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13109797, 'last_updated_at': datetime.datetime(2025, 2, 11, 8, 10, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 8, 10, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 8, 4, 58)}, 'flou': {'main_port_id': 20433719, 'sub_port_id': 20433759, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13109798, 'last_updated_at': datetime.datetime(2025, 2, 11, 8, 10, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 8, 10, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 8, 4, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20433748 , 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=20433719 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 (20433748) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20433719) result : ((1336739821,), (1336739824,), (1336740007,), (1336740049,), (1336740139,), (1336740141,), (1336740144,), (1336740148,), (1336740162,), (1336740729,), (1336740837,), (1336740851,), (1336740950,), (1336740961,), (1336740967,), (1336741015,), (1336741018,), (1336741021,), (1336741025,), (1336741028,), (1336741148,), (1336741193,), (1336741196,), (1336741543,), (1336741545,), (1336741547,), (1336741550,), (1336741710,), (1336741712,), (1336741727,), (1336741812,), (1336741814,), (1336741817,), (1336741828,), (1336741867,), (1336741870,), (1336741874,), (1336741877,), (1336742068,), (1336742071,), (1336742074,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20433749 , 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=20433719 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 (20433749) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20433719) result : ((1336739821,), (1336739824,), (1336740007,), (1336740049,), (1336740139,), (1336740141,), (1336740144,), (1336740148,), (1336740162,), (1336740729,), (1336740837,), (1336740851,), (1336740950,), (1336740961,), (1336740967,), (1336741015,), (1336741018,), (1336741021,), (1336741025,), (1336741028,), (1336741148,), (1336741193,), (1336741196,), (1336741543,), (1336741545,), (1336741547,), (1336741550,), (1336741710,), (1336741712,), (1336741727,), (1336741812,), (1336741814,), (1336741817,), (1336741828,), (1336741867,), (1336741870,), (1336741874,), (1336741877,), (1336742068,), (1336742071,), (1336742074,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20433750 , 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=20433719 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 (20433750) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20433719) result : ((1336739821,), (1336739824,), (1336740007,), (1336740049,), (1336740139,), (1336740141,), (1336740144,), (1336740148,), (1336740162,), (1336740729,), (1336740837,), (1336740851,), (1336740950,), (1336740961,), (1336740967,), (1336741015,), (1336741018,), (1336741021,), (1336741025,), (1336741028,), (1336741148,), (1336741193,), (1336741196,), (1336741543,), (1336741545,), (1336741547,), (1336741550,), (1336741710,), (1336741712,), (1336741727,), (1336741812,), (1336741814,), (1336741817,), (1336741828,), (1336741867,), (1336741870,), (1336741874,), (1336741877,), (1336742068,), (1336742071,), (1336742074,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20433751 , 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=20433719 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 (20433751) result : ((1336741014,), (1336741207,), (1336741208,), (1336741209,), (1336741706,), (1336741707,), (1336741708,), (1336741839,), (1336741841,), (1336741842,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20433719) result : ((1336739821,), (1336739824,), (1336740007,), (1336740049,), (1336740139,), (1336740141,), (1336740144,), (1336740148,), (1336740162,), (1336740729,), (1336740837,), (1336740851,), (1336740950,), (1336740961,), (1336740967,), (1336741015,), (1336741018,), (1336741021,), (1336741025,), (1336741028,), (1336741148,), (1336741193,), (1336741196,), (1336741543,), (1336741545,), (1336741547,), (1336741550,), (1336741710,), (1336741712,), (1336741727,), (1336741812,), (1336741814,), (1336741817,), (1336741828,), (1336741867,), (1336741870,), (1336741874,), (1336741877,), (1336742068,), (1336742071,), (1336742074,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20433752 , 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=20433719 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 (20433752) result : ((1336741838,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20433719) result : ((1336739821,), (1336739824,), (1336740007,), (1336740049,), (1336740139,), (1336740141,), (1336740144,), (1336740148,), (1336740162,), (1336740729,), (1336740837,), (1336740851,), (1336740950,), (1336740961,), (1336740967,), (1336741015,), (1336741018,), (1336741021,), (1336741025,), (1336741028,), (1336741148,), (1336741193,), (1336741196,), (1336741543,), (1336741545,), (1336741547,), (1336741550,), (1336741710,), (1336741712,), (1336741727,), (1336741812,), (1336741814,), (1336741817,), (1336741828,), (1336741867,), (1336741870,), (1336741874,), (1336741877,), (1336742068,), (1336742071,), (1336742074,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20433753 , 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=20433719 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 (20433753) result : ((1336741010,), (1336741822,), (1336741823,), (1336741829,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20433719) result : ((1336739821,), (1336739824,), (1336740007,), (1336740049,), (1336740139,), (1336740141,), (1336740144,), (1336740148,), (1336740162,), (1336740729,), (1336740837,), (1336740851,), (1336740950,), (1336740961,), (1336740967,), (1336741015,), (1336741018,), (1336741021,), (1336741025,), (1336741028,), (1336741148,), (1336741193,), (1336741196,), (1336741543,), (1336741545,), (1336741547,), (1336741550,), (1336741710,), (1336741712,), (1336741727,), (1336741812,), (1336741814,), (1336741817,), (1336741828,), (1336741867,), (1336741870,), (1336741874,), (1336741877,), (1336742068,), (1336742071,), (1336742074,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20433754 , 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=20433719 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 (20433754) result : ((1336740887,), (1336741011,), (1336741012,), (1336741032,), (1336741554,), (1336741593,), (1336741594,), (1336741596,), (1336741830,), (1336741832,), (1336741833,), (1336741834,), (1336741836,), (1336742087,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20433719) result : ((1336739821,), (1336739824,), (1336740007,), (1336740049,), (1336740139,), (1336740141,), (1336740144,), (1336740148,), (1336740162,), (1336740729,), (1336740837,), (1336740851,), (1336740950,), (1336740961,), (1336740967,), (1336741015,), (1336741018,), (1336741021,), (1336741025,), (1336741028,), (1336741148,), (1336741193,), (1336741196,), (1336741543,), (1336741545,), (1336741547,), (1336741550,), (1336741710,), (1336741712,), (1336741727,), (1336741812,), (1336741814,), (1336741817,), (1336741828,), (1336741867,), (1336741870,), (1336741874,), (1336741877,), (1336742068,), (1336742071,), (1336742074,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20433755 , 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=20433719 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 (20433755) result : ((1336740889,), (1336741013,), (1336741555,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20433719) result : ((1336739821,), (1336739824,), (1336740007,), (1336740049,), (1336740139,), (1336740141,), (1336740144,), (1336740148,), (1336740162,), (1336740729,), (1336740837,), (1336740851,), (1336740950,), (1336740961,), (1336740967,), (1336741015,), (1336741018,), (1336741021,), (1336741025,), (1336741028,), (1336741148,), (1336741193,), (1336741196,), (1336741543,), (1336741545,), (1336741547,), (1336741550,), (1336741710,), (1336741712,), (1336741727,), (1336741812,), (1336741814,), (1336741817,), (1336741828,), (1336741867,), (1336741870,), (1336741874,), (1336741877,), (1336742068,), (1336742071,), (1336742074,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20433756 , 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=20433719 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 (20433756) result : ((1336741210,), (1336741557,), (1336741709,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20433719) result : ((1336739821,), (1336739824,), (1336740007,), (1336740049,), (1336740139,), (1336740141,), (1336740144,), (1336740148,), (1336740162,), (1336740729,), (1336740837,), (1336740851,), (1336740950,), (1336740961,), (1336740967,), (1336741015,), (1336741018,), (1336741021,), (1336741025,), (1336741028,), (1336741148,), (1336741193,), (1336741196,), (1336741543,), (1336741545,), (1336741547,), (1336741550,), (1336741710,), (1336741712,), (1336741727,), (1336741812,), (1336741814,), (1336741817,), (1336741828,), (1336741867,), (1336741870,), (1336741874,), (1336741877,), (1336742068,), (1336742071,), (1336742074,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20433757 , 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=20433719 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 (20433757) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20433719) result : ((1336739821,), (1336739824,), (1336740007,), (1336740049,), (1336740139,), (1336740141,), (1336740144,), (1336740148,), (1336740162,), (1336740729,), (1336740837,), (1336740851,), (1336740950,), (1336740961,), (1336740967,), (1336741015,), (1336741018,), (1336741021,), (1336741025,), (1336741028,), (1336741148,), (1336741193,), (1336741196,), (1336741543,), (1336741545,), (1336741547,), (1336741550,), (1336741710,), (1336741712,), (1336741727,), (1336741812,), (1336741814,), (1336741817,), (1336741828,), (1336741867,), (1336741870,), (1336741874,), (1336741877,), (1336742068,), (1336742071,), (1336742074,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20433758 , 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=20433719 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 (20433758) result : ((1336741009,), (1336741202,), (1336741203,), (1336741205,), (1336741206,), (1336741553,), (1336741701,), (1336741702,), (1336741703,), (1336741704,), (1336741820,), (1336741821,), (1336741824,), (1336741825,), (1336741826,), (1336741827,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20433719) result : ((1336739821,), (1336739824,), (1336740007,), (1336740049,), (1336740139,), (1336740141,), (1336740144,), (1336740148,), (1336740162,), (1336740729,), (1336740837,), (1336740851,), (1336740950,), (1336740961,), (1336740967,), (1336741015,), (1336741018,), (1336741021,), (1336741025,), (1336741028,), (1336741148,), (1336741193,), (1336741196,), (1336741543,), (1336741545,), (1336741547,), (1336741550,), (1336741710,), (1336741712,), (1336741727,), (1336741812,), (1336741814,), (1336741817,), (1336741828,), (1336741867,), (1336741870,), (1336741874,), (1336741877,), (1336742068,), (1336742071,), (1336742074,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20433759 , 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=20433719 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 (20433759) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20433719) result : ((1336739821,), (1336739824,), (1336740007,), (1336740049,), (1336740139,), (1336740141,), (1336740144,), (1336740148,), (1336740162,), (1336740729,), (1336740837,), (1336740851,), (1336740950,), (1336740961,), (1336740967,), (1336741015,), (1336741018,), (1336741021,), (1336741025,), (1336741028,), (1336741148,), (1336741193,), (1336741196,), (1336741543,), (1336741545,), (1336741547,), (1336741550,), (1336741710,), (1336741712,), (1336741727,), (1336741812,), (1336741814,), (1336741817,), (1336741828,), (1336741867,), (1336741870,), (1336741874,), (1336741877,), (1336742068,), (1336742071,), (1336742074,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20433719 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','autre_refus','papier','Teint_Dans_La_Masse','cartonnette','mal_croppe','flou','environnement','Carton_brun','metal','Carton_gris','kraft')) 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`=20433719 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','autre_refus','papier','Teint_Dans_La_Masse','cartonnette','mal_croppe','flou','environnement','Carton_brun','metal','Carton_gris','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 20433719, 'sub_port_id': 20433760, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13109799, 'last_updated_at': datetime.datetime(2025, 2, 11, 8, 5), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 8, 5), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 8, 5)}, 'mal_croppe': {'main_port_id': 20433719, 'sub_port_id': 20433761, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13109800, 'last_updated_at': datetime.datetime(2025, 2, 11, 8, 5), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 8, 5), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 8, 5)}, 'metal': {'main_port_id': 20433719, 'sub_port_id': 20433762, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13109801, 'last_updated_at': datetime.datetime(2025, 2, 11, 8, 5), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 8, 5), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 8, 5)}, 'plastique': {'main_port_id': 20433719, 'sub_port_id': 20433763, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13109802, 'last_updated_at': datetime.datetime(2025, 2, 11, 8, 5), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 8, 5), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 8, 5)}, 'cartonnette': {'main_port_id': 20433719, 'sub_port_id': 20433764, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13109803, 'last_updated_at': datetime.datetime(2025, 2, 11, 8, 5), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 8, 5), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 8, 5)}, 'autre_refus': {'main_port_id': 20433719, 'sub_port_id': 20433765, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13109804, 'last_updated_at': datetime.datetime(2025, 2, 11, 8, 5), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 8, 5), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 8, 5)}, 'Carton_gris': {'main_port_id': 20433719, 'sub_port_id': 20433766, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13109805, 'last_updated_at': datetime.datetime(2025, 2, 11, 8, 5), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 8, 5), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 8, 5)}, 'Carton_brun': {'main_port_id': 20433719, 'sub_port_id': 20433767, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13109806, 'last_updated_at': datetime.datetime(2025, 2, 11, 8, 5), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 8, 5), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 8, 5)}, 'kraft': {'main_port_id': 20433719, 'sub_port_id': 20433768, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13109807, 'last_updated_at': datetime.datetime(2025, 2, 11, 8, 5), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 8, 5), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 8, 5)}, 'environnement': {'main_port_id': 20433719, 'sub_port_id': 20433769, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13109808, 'last_updated_at': datetime.datetime(2025, 2, 11, 8, 5), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 8, 5), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 8, 5)}, 'Teint_Dans_La_Masse': {'main_port_id': 20433719, 'sub_port_id': 20433770, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13109809, 'last_updated_at': datetime.datetime(2025, 2, 11, 8, 5), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 8, 5), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 8, 5)}, 'flou': {'main_port_id': 20433719, 'sub_port_id': 20433771, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13109810, 'last_updated_at': datetime.datetime(2025, 2, 11, 8, 10, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 8, 10, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 8, 5)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20433760,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20433748 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20433761,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20433749 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20433762,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20433750 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20433763,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20433751 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20433764,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20433752 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20433765,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20433753 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20433766,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20433754 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20433767,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20433755 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20433768,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20433756 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20433769,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20433757 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20433770,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20433758 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20433771,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20433759 lien utilise dans velours : https://www.fotonower.com/velours/20433760,20433761,20433762,20433763,20433764,20433765,20433766,20433767,20433768,20433769,20433770,20433771?tags=papier,mal_croppe,metal,plastique,cartonnette,autre_refus,Carton_gris,Carton_brun,kraft,environnement,Teint_Dans_La_Masse,flou After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20433719]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1336742074, 1336742071, 1336742068, 1336741877, 1336741874, 1336741870, 1336741867] map_info['map_portfolio_photo'] : {20433719: [1336742074, 1336742071, 1336742068, 1336741877, 1336741874, 1336741870, 1336741867, 1336741828, 1336741817, 1336741814, 1336741812, 1336741727, 1336741712, 1336741710, 1336741550, 1336741547, 1336741545, 1336741543, 1336741196, 1336741193, 1336741148, 1336741028, 1336741025, 1336741021, 1336741018, 1336741015, 1336740967, 1336740961, 1336740950, 1336740851, 1336740837, 1336740729, 1336740162, 1336740148, 1336740144, 1336740141, 1336740139, 1336740049, 1336740007, 1336739824, 1336739821]} final : False mtd_id 4302 list_pids : [1336742074, 1336742071, 1336742068, 1336741877, 1336741874, 1336741870, 1336741867] Looping around the photos to save general results len do output : 1 /20433719. 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, '2575118') ('4302', '20433719', '1336742074', None, None, None, None, None, '2575118') ('4302', None, None, None, None, None, None, None, '2575118') ('4302', '20433719', '1336742071', None, None, None, None, None, '2575118') ('4302', None, None, None, None, None, None, None, '2575118') ('4302', '20433719', '1336742068', None, None, None, None, None, '2575118') ('4302', None, None, None, None, None, None, None, '2575118') ('4302', '20433719', '1336741877', None, None, None, None, None, '2575118') ('4302', None, None, None, None, None, None, None, '2575118') ('4302', '20433719', '1336741874', None, None, None, None, None, '2575118') ('4302', None, None, None, None, None, None, None, '2575118') ('4302', '20433719', '1336741870', None, None, None, None, None, '2575118') ('4302', None, None, None, None, None, None, None, '2575118') ('4302', '20433719', '1336741867', None, None, None, None, None, '2575118') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 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, '20433719', "{'papier': 20433748, 'mal_croppe': 20433749, 'metal': 20433750, 'plastique': 20433751, 'cartonnette': 20433752, 'autre_refus': 20433753, 'Carton_gris': 20433754, 'Carton_brun': 20433755, 'kraft': 20433756, 'environnement': 20433757, 'Teint_Dans_La_Masse': 20433758, 'flou': 20433759}", None, None, None, None, '2575118'), ('4302', '20433719', '1336742074', None, None, None, None, None, '2575118'), ('4302', '20433719', '1336742071', None, None, None, None, None, '2575118'), ('4302', '20433719', '1336742068', None, None, None, None, None, '2575118'), ('4302', '20433719', '1336741877', None, None, None, None, None, '2575118'), ('4302', '20433719', '1336741874', None, None, None, None, None, '2575118'), ('4302', '20433719', '1336741870', None, None, None, None, None, '2575118'), ('4302', '20433719', '1336741867', None, None, None, None, None, '2575118')] time used for this insertion : 0.01378774642944336 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4035117626190186 time spend to save output : 0.014049291610717773 total time spend for step 1 : 1.4175610542297363 step2:final Tue Feb 11 08:14:30 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 (20433719) 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 20433719 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1336739824,1336739821,1336740049,1336740007,1336740162,1336740148,1336740144,1336740141,1336740139,1336740851,1336740837,1336740729,1336740967,1336740961,1336740950,1336741028,1336741025,1336741021,1336741018,1336741015,1336741196,1336741193,1336741148,1336741550,1336741547,1336741545,1336741543,1336741727,1336741712,1336741710,1336741828,1336741817,1336741814,1336741812,1336741877,1336741874,1336741870,1336741867,1336742074,1336742071,1336742068); 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([20433719]) Inside saveOutput : final : False verbose : True original output for save of step final : {1336742074: ('0.04720384562330049',), 1336742071: ('0.04720384562330049',), 1336742068: ('0.04720384562330049',), 1336741877: ('0.04720384562330049',), 1336741874: ('0.04720384562330049',), 1336741870: ('0.04720384562330049',), 1336741867: ('0.04720384562330049',)} new output for save of step final : {1336742074: ('0.04720384562330049',), 1336742071: ('0.04720384562330049',), 1336742068: ('0.04720384562330049',), 1336741877: ('0.04720384562330049',), 1336741874: ('0.04720384562330049',), 1336741870: ('0.04720384562330049',), 1336741867: ('0.04720384562330049',)} [1336742074, 1336742071, 1336742068, 1336741877, 1336741874, 1336741870, 1336741867] map_info['map_portfolio_photo'] : {20433719: [1336742074, 1336742071, 1336742068, 1336741877, 1336741874, 1336741870, 1336741867, 1336741828, 1336741817, 1336741814, 1336741812, 1336741727, 1336741712, 1336741710, 1336741550, 1336741547, 1336741545, 1336741543, 1336741196, 1336741193, 1336741148, 1336741028, 1336741025, 1336741021, 1336741018, 1336741015, 1336740967, 1336740961, 1336740950, 1336740851, 1336740837, 1336740729, 1336740162, 1336740148, 1336740144, 1336740141, 1336740139, 1336740049, 1336740007, 1336739824, 1336739821]} final : False mtd_id 4302 list_pids : [1336742074, 1336742071, 1336742068, 1336741877, 1336741874, 1336741870, 1336741867] Looping around the photos to save general results len do output : 7 /1336742074.Didn't retrieve data . /1336742071.Didn't retrieve data . /1336742068.Didn't retrieve data . /1336741877.Didn't retrieve data . /1336741874.Didn't retrieve data . /1336741870.Didn't retrieve data . /1336741867.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, '2575118') ('4302', '20433719', '1336742074', None, None, None, None, None, '2575118') ('4302', None, None, None, None, None, None, None, '2575118') ('4302', '20433719', '1336742071', None, None, None, None, None, '2575118') ('4302', None, None, None, None, None, None, None, '2575118') ('4302', '20433719', '1336742068', None, None, None, None, None, '2575118') ('4302', None, None, None, None, None, None, None, '2575118') ('4302', '20433719', '1336741877', None, None, None, None, None, '2575118') ('4302', None, None, None, None, None, None, None, '2575118') ('4302', '20433719', '1336741874', None, None, None, None, None, '2575118') ('4302', None, None, None, None, None, None, None, '2575118') ('4302', '20433719', '1336741870', None, None, None, None, None, '2575118') ('4302', None, None, None, None, None, None, None, '2575118') ('4302', '20433719', '1336741867', None, None, None, None, None, '2575118') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 21 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', '20433719', '1336742074', '0.04720384562330049', None, None, None, None, '2575118'), ('4302', '20433719', '1336742071', '0.04720384562330049', None, None, None, None, '2575118'), ('4302', '20433719', '1336742068', '0.04720384562330049', None, None, None, None, '2575118'), ('4302', '20433719', '1336741877', '0.04720384562330049', None, None, None, None, '2575118'), ('4302', '20433719', '1336741874', '0.04720384562330049', None, None, None, None, '2575118'), ('4302', '20433719', '1336741870', '0.04720384562330049', None, None, None, None, '2575118'), ('4302', '20433719', '1336741867', '0.04720384562330049', None, None, None, None, '2575118')] time used for this insertion : 0.012395143508911133 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06530427932739258 time spend to save output : 0.012820243835449219 total time spend for step 2 : 0.0781245231628418 step3:velours_tree Tue Feb 11 08:14:31 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 : {20433719: [{'papier': 20433748, 'mal_croppe': 20433749, 'metal': 20433750, 'plastique': 20433751, 'cartonnette': 20433752, 'autre_refus': 20433753, 'Carton_gris': 20433754, 'Carton_brun': 20433755, 'kraft': 20433756, 'environnement': 20433757, 'Teint_Dans_La_Masse': 20433758, 'flou': 20433759}]} input_args_next_step : {20433719: ()} output_args : {20433719: [{'papier': 20433748, 'mal_croppe': 20433749, 'metal': 20433750, 'plastique': 20433751, 'cartonnette': 20433752, 'autre_refus': 20433753, 'Carton_gris': 20433754, 'Carton_brun': 20433755, 'kraft': 20433756, 'environnement': 20433757, 'Teint_Dans_La_Masse': 20433758, 'flou': 20433759}]} args : 20433719 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 : ({'papier': 20433748, 'mal_croppe': 20433749, 'metal': 20433750, 'plastique': 20433751, 'cartonnette': 20433752, 'autre_refus': 20433753, 'Carton_gris': 20433754, 'Carton_brun': 20433755, 'kraft': 20433756, 'environnement': 20433757, 'Teint_Dans_La_Masse': 20433758, 'flou': 20433759},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20433719) 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([20433719]) 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.3081345558166504 time spend to save output : 4.649162292480469e-05 total time spend for step 3 : 0.3081810474395752 step4:send_mail_cod Tue Feb 11 08:14:31 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 : {1336742074: ('0.04720384562330049',), 1336742071: ('0.04720384562330049',), 1336742068: ('0.04720384562330049',), 1336741877: ('0.04720384562330049',), 1336741874: ('0.04720384562330049',), 1336741870: ('0.04720384562330049',), 1336741867: ('0.04720384562330049',)} input_args_next_step : {1336742074: ()} output_args : {1336742074: ('0.04720384562330049',), 1336742071: ('0.04720384562330049',), 1336742068: ('0.04720384562330049',), 1336741877: ('0.04720384562330049',), 1336741874: ('0.04720384562330049',), 1336741870: ('0.04720384562330049',), 1336741867: ('0.04720384562330049',)} args : 1336742074 depend.output_id : 0 input_args_next_step : {1336742074: ('0.04720384562330049',), 1336742071: ()} output_args : {1336742074: ('0.04720384562330049',), 1336742071: ('0.04720384562330049',), 1336742068: ('0.04720384562330049',), 1336741877: ('0.04720384562330049',), 1336741874: ('0.04720384562330049',), 1336741870: ('0.04720384562330049',), 1336741867: ('0.04720384562330049',)} args : 1336742071 depend.output_id : 0 input_args_next_step : {1336742074: ('0.04720384562330049',), 1336742071: ('0.04720384562330049',), 1336742068: ()} output_args : {1336742074: ('0.04720384562330049',), 1336742071: ('0.04720384562330049',), 1336742068: ('0.04720384562330049',), 1336741877: ('0.04720384562330049',), 1336741874: ('0.04720384562330049',), 1336741870: ('0.04720384562330049',), 1336741867: ('0.04720384562330049',)} args : 1336742068 depend.output_id : 0 input_args_next_step : {1336742074: ('0.04720384562330049',), 1336742071: ('0.04720384562330049',), 1336742068: ('0.04720384562330049',), 1336741877: ()} output_args : {1336742074: ('0.04720384562330049',), 1336742071: ('0.04720384562330049',), 1336742068: ('0.04720384562330049',), 1336741877: ('0.04720384562330049',), 1336741874: ('0.04720384562330049',), 1336741870: ('0.04720384562330049',), 1336741867: ('0.04720384562330049',)} args : 1336741877 depend.output_id : 0 input_args_next_step : {1336742074: ('0.04720384562330049',), 1336742071: ('0.04720384562330049',), 1336742068: ('0.04720384562330049',), 1336741877: ('0.04720384562330049',), 1336741874: ()} output_args : {1336742074: ('0.04720384562330049',), 1336742071: ('0.04720384562330049',), 1336742068: ('0.04720384562330049',), 1336741877: ('0.04720384562330049',), 1336741874: ('0.04720384562330049',), 1336741870: ('0.04720384562330049',), 1336741867: ('0.04720384562330049',)} args : 1336741874 depend.output_id : 0 input_args_next_step : {1336742074: ('0.04720384562330049',), 1336742071: ('0.04720384562330049',), 1336742068: ('0.04720384562330049',), 1336741877: ('0.04720384562330049',), 1336741874: ('0.04720384562330049',), 1336741870: ()} output_args : {1336742074: ('0.04720384562330049',), 1336742071: ('0.04720384562330049',), 1336742068: ('0.04720384562330049',), 1336741877: ('0.04720384562330049',), 1336741874: ('0.04720384562330049',), 1336741870: ('0.04720384562330049',), 1336741867: ('0.04720384562330049',)} args : 1336741870 depend.output_id : 0 input_args_next_step : {1336742074: ('0.04720384562330049',), 1336742071: ('0.04720384562330049',), 1336742068: ('0.04720384562330049',), 1336741877: ('0.04720384562330049',), 1336741874: ('0.04720384562330049',), 1336741870: ('0.04720384562330049',), 1336741867: ()} output_args : {1336742074: ('0.04720384562330049',), 1336742071: ('0.04720384562330049',), 1336742068: ('0.04720384562330049',), 1336741877: ('0.04720384562330049',), 1336741874: ('0.04720384562330049',), 1336741870: ('0.04720384562330049',), 1336741867: ('0.04720384562330049',)} args : 1336741867 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 : {20433719: [{'papier': 20433748, 'mal_croppe': 20433749, 'metal': 20433750, 'plastique': 20433751, 'cartonnette': 20433752, 'autre_refus': 20433753, 'Carton_gris': 20433754, 'Carton_brun': 20433755, 'kraft': 20433756, 'environnement': 20433757, 'Teint_Dans_La_Masse': 20433758, 'flou': 20433759}]} input_args_next_step : {1336742074: ('0.04720384562330049',), 1336742071: ('0.04720384562330049',), 1336742068: ('0.04720384562330049',), 1336741877: ('0.04720384562330049',), 1336741874: ('0.04720384562330049',), 1336741870: ('0.04720384562330049',), 1336741867: ('0.04720384562330049',), 20433719: ()} output_args : {20433719: [{'papier': 20433748, 'mal_croppe': 20433749, 'metal': 20433750, 'plastique': 20433751, 'cartonnette': 20433752, 'autre_refus': 20433753, 'Carton_gris': 20433754, 'Carton_brun': 20433755, 'kraft': 20433756, 'environnement': 20433757, 'Teint_Dans_La_Masse': 20433758, 'flou': 20433759}]} args : 20433719 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 :8, first value : ('0.04720384562330049',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20433719) 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 (1336742074,1336742071,1336742068,1336741877,1336741874,1336741870,1336741867) Found this number of photos: 7 ##### Call download_photos : nb_thread : 5 begin to download photo : 1336741867 begin to download photo : 1336741874 begin to download photo : 1336742068 begin to download photo : 1336742074 download finish for photo 1336742068 begin to download photo : 1336742071 download finish for photo 1336741874 begin to download photo : 1336741877 download finish for photo 1336741867 begin to download photo : 1336741870 download finish for photo 1336742074 download finish for photo 1336742071 download finish for photo 1336741877 download finish for photo 1336741870 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette204337491739258071/ imagette204337501739258071/ length of list_filenames : 7 ; length of list_pids : 7 ; length of list_args : 7 results_Auto_P20433719_11-02-2025_08_14_31.pdf 20433749 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=20433749 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette204337491739258071 20433750 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=20433750 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette204337501739258071 20433751 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=20433751 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336741014: '1739257532_1491541_1336740837_14687f407017aaf15a4ca0ef67bfa785_rle_crop_3669505045_0.png', 1336741207: '1739257572_1492310_1336740148_af31dcdebfc5462efc9d2cc85b595069_rle_crop_3669507312_0.png', 1336741208: '1739257572_1492310_1336740144_6038fcde0d3a108bb35d8486c5e5f21c_rle_crop_3669507346_0.png', 1336741209: '1739257572_1492310_1336740141_16a4bc3d42202c347dc8ce80c35aeb32_rle_crop_3669507366_0.png', 1336741706: '1739257673_1494251_1336740148_af31dcdebfc5462efc9d2cc85b595069_rle_crop_3669507312_0.png', 1336741707: '1739257673_1494251_1336740144_6038fcde0d3a108bb35d8486c5e5f21c_rle_crop_3669507346_0.png', 1336741708: '1739257673_1494251_1336740141_16a4bc3d42202c347dc8ce80c35aeb32_rle_crop_3669507366_0.png', 1336741839: '1739257743_1495737_1336741193_3801b48a97ebfa7ba7aa69bdc5b2c06c_rle_crop_3669508999_0.png', 1336741841: '1739257755_1495949_1336741547_bcdfa2228eaf40f56dabac81992e7e4d_rle_crop_3669508987_0.png', 1336741842: '1739257755_1495949_1336741543_3797a1ec4725fd6b98fa78a9f1943bf4_rle_crop_3669509049_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/2a19160ec30bdeb9b434981bd0090272_62271363.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/98585acba753e468e6c43f1c38536551_86444127.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/21cdaf00f68f1fef0f80de1ca5e2369e_27021175.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/5afbe2c1a3ccb3b7d386d016bc807497_77089416.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/98585acba753e468e6c43f1c38536551_82646122.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/21cdaf00f68f1fef0f80de1ca5e2369e_74717878.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/5afbe2c1a3ccb3b7d386d016bc807497_75184608.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/d9d8b06037c418555fe9dfe94bb2db7e_75567364.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/268ad833dcc6d282e826e6defcb63d4e_56416006.png change filename to text .imagette204337511739258071/ imagette204337511739258071/1739257572_1492310_1336740141_16a4bc3d42202c347dc8ce80c35aeb32_rle_crop_3669507366_0.png.png imagette204337511739258071/1739257572_1492310_1336740148_af31dcdebfc5462efc9d2cc85b595069_rle_crop_3669507312_0.png.png imagette204337511739258071/1739257532_1491541_1336740837_14687f407017aaf15a4ca0ef67bfa785_rle_crop_3669505045_0.png.png imagette204337511739258071/1739257743_1495737_1336741193_3801b48a97ebfa7ba7aa69bdc5b2c06c_rle_crop_3669508999_0.png.png imagette204337511739258071/1739257572_1492310_1336740144_6038fcde0d3a108bb35d8486c5e5f21c_rle_crop_3669507346_0.png.png imagette204337511739258071/1739257673_1494251_1336740144_6038fcde0d3a108bb35d8486c5e5f21c_rle_crop_3669507346_0.png.png imagette204337511739258071/1739257755_1495949_1336741547_bcdfa2228eaf40f56dabac81992e7e4d_rle_crop_3669508987_0.png.png imagette204337511739258071/1739257673_1494251_1336740141_16a4bc3d42202c347dc8ce80c35aeb32_rle_crop_3669507366_0.png.png imagette204337511739258071/1739257673_1494251_1336740148_af31dcdebfc5462efc9d2cc85b595069_rle_crop_3669507312_0.png.png imagette204337511739258071/1739257755_1495949_1336741543_3797a1ec4725fd6b98fa78a9f1943bf4_rle_crop_3669509049_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/37dbb6c4c69f23b2bcd5368718805454_618098.png imagette204337511739258071 20433752 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=20433752 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336741838: '1739257743_1495737_1336741148_1d5887b3f62c502bd1d1dbe2c4822fd3_rle_crop_3669509028_0.png'} change filename to text .imagette204337521739258072/ imagette204337521739258072/1739257743_1495737_1336741148_1d5887b3f62c502bd1d1dbe2c4822fd3_rle_crop_3669509028_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/40383867dd3cd7fdc3976039aeb73869_21785028.png imagette204337521739258072 20433753 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=20433753 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336741010: '1739257532_1491541_1336740837_14687f407017aaf15a4ca0ef67bfa785_rle_crop_3669505053_0.png', 1336741822: '1739257743_1495737_1336741193_3801b48a97ebfa7ba7aa69bdc5b2c06c_rle_crop_3669508997_0.png', 1336741823: '1739257743_1495737_1336741193_3801b48a97ebfa7ba7aa69bdc5b2c06c_rle_crop_3669509002_0.png', 1336741829: '1739257755_1495949_1336741543_3797a1ec4725fd6b98fa78a9f1943bf4_rle_crop_3669509044_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/4f360a89a6c366fc1854ae6a835f542a_30572578.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/6a13242d40d8e892951aabe9ac67d54c_52251059.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/d61247aec17c837b731671eda2c8ff9d_10984974.png change filename to text .imagette204337531739258072/ imagette204337531739258072/1739257743_1495737_1336741193_3801b48a97ebfa7ba7aa69bdc5b2c06c_rle_crop_3669508997_0.png.png imagette204337531739258072/1739257755_1495949_1336741543_3797a1ec4725fd6b98fa78a9f1943bf4_rle_crop_3669509044_0.png.png imagette204337531739258072/1739257743_1495737_1336741193_3801b48a97ebfa7ba7aa69bdc5b2c06c_rle_crop_3669509002_0.png.png imagette204337531739258072/1739257532_1491541_1336740837_14687f407017aaf15a4ca0ef67bfa785_rle_crop_3669505053_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/dc6f0321643c649dc453c404854cf4e3_54968758.png imagette204337531739258072 20433756 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=20433756 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336741210: '1739257572_1492310_1336740148_af31dcdebfc5462efc9d2cc85b595069_rle_crop_3669507315_0.png', 1336741557: '1739257632_1493654_1336741015_526135787b70a30c396812198356c43c_rle_crop_3669507844_0.png', 1336741709: '1739257673_1494251_1336740148_af31dcdebfc5462efc9d2cc85b595069_rle_crop_3669507315_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/e7bf28c25936b9638ad5e79d056d74da_38185795.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/822ea572f7208b6ede79a383b201e848_13371362.png change filename to text .imagette204337561739258072/ imagette204337561739258072/1739257673_1494251_1336740148_af31dcdebfc5462efc9d2cc85b595069_rle_crop_3669507315_0.png.png imagette204337561739258072/1739257632_1493654_1336741015_526135787b70a30c396812198356c43c_rle_crop_3669507844_0.png.png imagette204337561739258072/1739257572_1492310_1336740148_af31dcdebfc5462efc9d2cc85b595069_rle_crop_3669507315_0.png.png imagette204337591739258072/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/e7bf28c25936b9638ad5e79d056d74da_87892707.png imagette204337561739258072 20433759 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=20433759 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette204337591739258072 20433754 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=20433754 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336740887: '1739257395_1486781_1336739824_276d8ec03ac6b7383c523b641b1d577b_rle_crop_3669504612_0.png', 1336741011: '1739257532_1491541_1336740837_14687f407017aaf15a4ca0ef67bfa785_rle_crop_3669505048_0.png', 1336741012: '1739257532_1491541_1336740837_14687f407017aaf15a4ca0ef67bfa785_rle_crop_3669505054_0.png', 1336741032: '1739257553_1491841_1336740007_475b7b002c9e686a866e0ca00cfc25f5_rle_crop_3669506389_0.png', 1336741554: '1739257632_1493654_1336741018_e3a11119ac94e0660f0bd9ecd5f8fd0e_rle_crop_3669507810_0.png', 1336741593: '1739257653_1493979_1336741028_473c8fb53ea892f1308f7ee244ee319e_rle_crop_3669507825_0.png', 1336741594: '1739257653_1493979_1336740961_480b4a5b7c4664376c4ec8f26a965bc0_rle_crop_3669508022_0.png', 1336741596: '1739257653_1493979_1336740950_676121238811ffa642007fa58d4b9b19_rle_crop_3669508033_0.png', 1336741830: '1739257743_1495737_1336741550_37cd09eef32d653609450fead3f6d84c_rle_crop_3669508972_0.png', 1336741832: '1739257743_1495737_1336741550_37cd09eef32d653609450fead3f6d84c_rle_crop_3669508966_0.png', 1336741833: '1739257743_1495737_1336741550_37cd09eef32d653609450fead3f6d84c_rle_crop_3669508967_0.png', 1336741834: '1739257743_1495737_1336741148_1d5887b3f62c502bd1d1dbe2c4822fd3_rle_crop_3669509035_0.png', 1336741836: '1739257755_1495949_1336741547_bcdfa2228eaf40f56dabac81992e7e4d_rle_crop_3669508981_0.png', 1336742087: '1739257890_1499400_1336741814_0e27270d8ea1e5425bfa4a1f8cc99838_rle_crop_3669510084_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/8e97646d782d1c6ca605b81b76557088_5051522.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/dfefc4047f17ee215c6206cfc5f5fc1e_74991119.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/17c47f5ebfa16dd88fc0cf140c23857e_66534037.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/2bd1e7ef282fbf5589484cc978da3662_23491303.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/5f1b0c908c7dddd74a1a596040e88071_60965334.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/acee42db59b94c8341f4c2c3b8c296b1_34837543.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/e51b24b249dc4d11891096bd91055aae_72143497.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/63f83dad9d05d81e75f32605db842624_23363483.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/af908959c7d47bfeab3717a3829dbdbc_32649878.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/fbd09931ac191bfa9d30953bb461ffba_5920527.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/0806d4bb8aba36178d4ca05bdc722131_53905272.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/7823dca70d9fddfacfde77802015f22a_88402013.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/77038570a8bac44bc9239a79a555374f_43777036.png change filename to text .imagette204337541739258072/ imagette204337541739258072/1739257532_1491541_1336740837_14687f407017aaf15a4ca0ef67bfa785_rle_crop_3669505054_0.png.png imagette204337541739258072/1739257743_1495737_1336741550_37cd09eef32d653609450fead3f6d84c_rle_crop_3669508967_0.png.png imagette204337541739258072/1739257653_1493979_1336741028_473c8fb53ea892f1308f7ee244ee319e_rle_crop_3669507825_0.png.png imagette204337541739258072/1739257743_1495737_1336741550_37cd09eef32d653609450fead3f6d84c_rle_crop_3669508966_0.png.png imagette204337541739258072/1739257743_1495737_1336741148_1d5887b3f62c502bd1d1dbe2c4822fd3_rle_crop_3669509035_0.png.png imagette204337541739258072/1739257532_1491541_1336740837_14687f407017aaf15a4ca0ef67bfa785_rle_crop_3669505048_0.png.png imagette204337541739258072/1739257890_1499400_1336741814_0e27270d8ea1e5425bfa4a1f8cc99838_rle_crop_3669510084_0.png.png imagette204337541739258072/1739257743_1495737_1336741550_37cd09eef32d653609450fead3f6d84c_rle_crop_3669508972_0.png.png imagette204337541739258072/1739257653_1493979_1336740961_480b4a5b7c4664376c4ec8f26a965bc0_rle_crop_3669508022_0.png.png imagette204337541739258072/1739257653_1493979_1336740950_676121238811ffa642007fa58d4b9b19_rle_crop_3669508033_0.png.png imagette204337541739258072/1739257395_1486781_1336739824_276d8ec03ac6b7383c523b641b1d577b_rle_crop_3669504612_0.png.png imagette204337541739258072/1739257755_1495949_1336741547_bcdfa2228eaf40f56dabac81992e7e4d_rle_crop_3669508981_0.png.png imagette204337541739258072/1739257553_1491841_1336740007_475b7b002c9e686a866e0ca00cfc25f5_rle_crop_3669506389_0.png.png imagette204337541739258072/1739257632_1493654_1336741018_e3a11119ac94e0660f0bd9ecd5f8fd0e_rle_crop_3669507810_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/59f4642b8df754a0acd0fe88564f7358_4436396.png imagette204337541739258072 20433755 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=20433755 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336740889: '1739257395_1486781_1336739821_5d49bbce81c665a5a8837dfe720ca5f7_rle_crop_3669504634_0.png', 1336741013: '1739257532_1491541_1336740837_14687f407017aaf15a4ca0ef67bfa785_rle_crop_3669505052_0.png', 1336741555: '1739257632_1493654_1336741021_e3e1487642277c82ee5c2507bf1e42c2_rle_crop_3669507798_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/6121bb56abb4adf614326ac8f22ff1b9_64766376.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/e3b55607cf1b064128cc9f9cdc0a7f23_37545788.png change filename to text .imagette204337551739258073/ imagette204337551739258073/1739257532_1491541_1336740837_14687f407017aaf15a4ca0ef67bfa785_rle_crop_3669505052_0.png.png imagette204337551739258073/1739257632_1493654_1336741021_e3e1487642277c82ee5c2507bf1e42c2_rle_crop_3669507798_0.png.png imagette204337551739258073/1739257395_1486781_1336739821_5d49bbce81c665a5a8837dfe720ca5f7_rle_crop_3669504634_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/379b8617a5f0598bdc9e2ad1e8902cf5_51455786.png imagette204337551739258073 20433758 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=20433758 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336741009: '1739257532_1491541_1336740837_14687f407017aaf15a4ca0ef67bfa785_rle_crop_3669505050_0.png', 1336741202: '1739257572_1492310_1336740148_af31dcdebfc5462efc9d2cc85b595069_rle_crop_3669507311_0.png', 1336741203: '1739257572_1492310_1336740148_af31dcdebfc5462efc9d2cc85b595069_rle_crop_3669507313_0.png', 1336741205: '1739257572_1492310_1336740144_6038fcde0d3a108bb35d8486c5e5f21c_rle_crop_3669507344_0.png', 1336741206: '1739257572_1492310_1336740141_16a4bc3d42202c347dc8ce80c35aeb32_rle_crop_3669507379_0.png', 1336741553: '1739257632_1493654_1336741015_526135787b70a30c396812198356c43c_rle_crop_3669507847_0.png', 1336741701: '1739257673_1494251_1336740148_af31dcdebfc5462efc9d2cc85b595069_rle_crop_3669507311_0.png', 1336741702: '1739257673_1494251_1336740148_af31dcdebfc5462efc9d2cc85b595069_rle_crop_3669507313_0.png', 1336741703: '1739257673_1494251_1336740144_6038fcde0d3a108bb35d8486c5e5f21c_rle_crop_3669507344_0.png', 1336741704: '1739257673_1494251_1336740141_16a4bc3d42202c347dc8ce80c35aeb32_rle_crop_3669507379_0.png', 1336741820: '1739257743_1495737_1336741193_3801b48a97ebfa7ba7aa69bdc5b2c06c_rle_crop_3669509003_0.png', 1336741821: '1739257743_1495737_1336741148_1d5887b3f62c502bd1d1dbe2c4822fd3_rle_crop_3669509030_0.png', 1336741824: '1739257755_1495949_1336741547_bcdfa2228eaf40f56dabac81992e7e4d_rle_crop_3669508989_0.png', 1336741825: '1739257755_1495949_1336741545_0dcbc36c8f3acab574111fece8b485c1_rle_crop_3669509013_0.png', 1336741826: '1739257755_1495949_1336741545_0dcbc36c8f3acab574111fece8b485c1_rle_crop_3669509012_0.png', 1336741827: '1739257755_1495949_1336741543_3797a1ec4725fd6b98fa78a9f1943bf4_rle_crop_3669509052_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/daee98d7102f4d23f0116bf65b073bfa_20331616.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/752cfbe12929b8cbc650fb7e2bc5baea_84409966.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/0edaa257f311860d8ae14207bfe2cae6_72932678.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/26d058d6fec0baa53e31570cc59e8f76_45966517.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/2c16be0b7b3e6795ab10f394b442d55a_77941987.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/ddfde97ad4249278e25888620e5b7324_29195325.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/752cfbe12929b8cbc650fb7e2bc5baea_45100076.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/0edaa257f311860d8ae14207bfe2cae6_93806113.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/26d058d6fec0baa53e31570cc59e8f76_59053128.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/2c16be0b7b3e6795ab10f394b442d55a_55996554.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/eecc84d4fb7712311a905d3e2f6ccd4f_94747832.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/93d24da095e0dfe1e2b3f0d2ab895d40_71607276.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/68215b1db9e25508339ac33754058123_60247084.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/f680ac579b82de6ac9acf82ee4eeec43_40598345.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/711ead8dabc8bb03da2c8b4bddc698c9_40947206.png change filename to text .imagette204337581739258073/ imagette204337581739258073/1739257572_1492310_1336740148_af31dcdebfc5462efc9d2cc85b595069_rle_crop_3669507313_0.png.png imagette204337581739258073/1739257755_1495949_1336741545_0dcbc36c8f3acab574111fece8b485c1_rle_crop_3669509012_0.png.png imagette204337581739258073/1739257755_1495949_1336741545_0dcbc36c8f3acab574111fece8b485c1_rle_crop_3669509013_0.png.png imagette204337581739258073/1739257673_1494251_1336740148_af31dcdebfc5462efc9d2cc85b595069_rle_crop_3669507311_0.png.png imagette204337581739258073/1739257572_1492310_1336740144_6038fcde0d3a108bb35d8486c5e5f21c_rle_crop_3669507344_0.png.png imagette204337581739258073/1739257755_1495949_1336741543_3797a1ec4725fd6b98fa78a9f1943bf4_rle_crop_3669509052_0.png.png imagette204337581739258073/1739257632_1493654_1336741015_526135787b70a30c396812198356c43c_rle_crop_3669507847_0.png.png imagette204337581739258073/1739257673_1494251_1336740148_af31dcdebfc5462efc9d2cc85b595069_rle_crop_3669507313_0.png.png imagette204337581739258073/1739257572_1492310_1336740141_16a4bc3d42202c347dc8ce80c35aeb32_rle_crop_3669507379_0.png.png imagette204337581739258073/1739257673_1494251_1336740141_16a4bc3d42202c347dc8ce80c35aeb32_rle_crop_3669507379_0.png.png imagette204337581739258073/1739257673_1494251_1336740144_6038fcde0d3a108bb35d8486c5e5f21c_rle_crop_3669507344_0.png.png imagette204337581739258073/1739257743_1495737_1336741148_1d5887b3f62c502bd1d1dbe2c4822fd3_rle_crop_3669509030_0.png.png imagette204337581739258073/1739257755_1495949_1336741547_bcdfa2228eaf40f56dabac81992e7e4d_rle_crop_3669508989_0.png.png imagette204337581739258073/1739257572_1492310_1336740148_af31dcdebfc5462efc9d2cc85b595069_rle_crop_3669507311_0.png.png imagette204337581739258073/1739257743_1495737_1336741193_3801b48a97ebfa7ba7aa69bdc5b2c06c_rle_crop_3669509003_0.png.png imagette204337581739258073/1739257532_1491541_1336740837_14687f407017aaf15a4ca0ef67bfa785_rle_crop_3669505050_0.png.png wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/43500f644d6d63843b95091ec40a7db4_26860135.png imagette204337581739258073 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20433719 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20433760,20433761,20433762,20433763,20433764,20433765,20433766,20433767,20433768,20433769,20433770,20433771?tags=papier,mal_croppe,metal,plastique,cartonnette,autre_refus,Carton_gris,Carton_brun,kraft,environnement,Teint_Dans_La_Masse,flou your option no_mail is active, we will not send the real mail to your client args[1336742074] : ('0.04720384562330049',) no score found for photo 1336742074 apple ('0.04720384562330049',) We are sending mail with results at report@fotonower.com args[1336742071] : ('0.04720384562330049',) no score found for photo 1336742071 apple ('0.04720384562330049',) We are sending mail with results at report@fotonower.com args[1336742068] : ('0.04720384562330049',) no score found for photo 1336742068 apple ('0.04720384562330049',) We are sending mail with results at report@fotonower.com args[1336741877] : ('0.04720384562330049',) no score found for photo 1336741877 apple ('0.04720384562330049',) We are sending mail with results at report@fotonower.com args[1336741874] : ('0.04720384562330049',) no score found for photo 1336741874 apple ('0.04720384562330049',) We are sending mail with results at report@fotonower.com args[1336741870] : ('0.04720384562330049',) no score found for photo 1336741870 apple ('0.04720384562330049',) We are sending mail with results at report@fotonower.com args[1336741867] : ('0.04720384562330049',) no score found for photo 1336741867 apple ('0.04720384562330049',) We are sending mail with results at report@fotonower.com refus_total : 0.04720384562330049 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=20433719 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_P20433719_11-02-2025_08_14_31.pdf results_Auto_P20433719_11-02-2025_08_14_31.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20433719_11-02-2025_08_14_31.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','20433719','results_Auto_P20433719_11-02-2025_08_14_31.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20433719_11-02-2025_08_14_31.pdf','pdf','','0.21','0.04720384562330049') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20433719]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1336742074, 1336742071, 1336742068, 1336741877, 1336741874, 1336741870, 1336741867] map_info['map_portfolio_photo'] : {20433719: [1336742074, 1336742071, 1336742068, 1336741877, 1336741874, 1336741870, 1336741867, 1336741828, 1336741817, 1336741814, 1336741812, 1336741727, 1336741712, 1336741710, 1336741550, 1336741547, 1336741545, 1336741543, 1336741196, 1336741193, 1336741148, 1336741028, 1336741025, 1336741021, 1336741018, 1336741015, 1336740967, 1336740961, 1336740950, 1336740851, 1336740837, 1336740729, 1336740162, 1336740148, 1336740144, 1336740141, 1336740139, 1336740049, 1336740007, 1336739824, 1336739821]} final : False mtd_id 4302 list_pids : [1336742074, 1336742071, 1336742068, 1336741877, 1336741874, 1336741870, 1336741867] 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, '2575118') ('4302', '20433719', '1336742074', None, None, None, None, None, '2575118') ('4302', None, None, None, None, None, None, None, '2575118') ('4302', '20433719', '1336742071', None, None, None, None, None, '2575118') ('4302', None, None, None, None, None, None, None, '2575118') ('4302', '20433719', '1336742068', None, None, None, None, None, '2575118') ('4302', None, None, None, None, None, None, None, '2575118') ('4302', '20433719', '1336741877', None, None, None, None, None, '2575118') ('4302', None, None, None, None, None, None, None, '2575118') ('4302', '20433719', '1336741874', None, None, None, None, None, '2575118') ('4302', None, None, None, None, None, None, None, '2575118') ('4302', '20433719', '1336741870', None, None, None, None, None, '2575118') ('4302', None, None, None, None, None, None, None, '2575118') ('4302', '20433719', '1336741867', None, None, None, None, None, '2575118') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '20433719', '1336742074', None, None, None, None, None, '2575118'), ('4302', '20433719', '1336742071', None, None, None, None, None, '2575118'), ('4302', '20433719', '1336742068', None, None, None, None, None, '2575118'), ('4302', '20433719', '1336741877', None, None, None, None, None, '2575118'), ('4302', '20433719', '1336741874', None, None, None, None, None, '2575118'), ('4302', '20433719', '1336741870', None, None, None, None, None, '2575118'), ('4302', '20433719', '1336741867', None, None, None, None, None, '2575118')] time used for this insertion : 0.012753009796142578 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.2538230419158936 time spend to save output : 0.012939929962158203 total time spend for step 4 : 4.266762971878052 step5:split_time_score Tue Feb 11 08:14:35 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 : ['20433719'] 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 : [('20433719',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20433719) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1336742074: {'path': 'temp/1739258071_1754916_1336742074_24950b0742716d2b70231d82b8cac1ea.jpg', 'extension': 'jpg'}, 1336742068: {'path': 'temp/1739258071_1754916_1336742068_b1db6c3d5572debc3079009656ddaa97.jpg', 'extension': 'jpg'}, 1336742071: {'path': 'temp/1739258071_1754916_1336742071_b1b301aba137a4240de2ec6570db4a71.jpg', 'extension': 'jpg'}, 1336741874: {'path': 'temp/1739258071_1754916_1336741874_4c2ca2c24edd3cfeb85755d1b4d37b06.jpg', 'extension': 'jpg'}, 1336741877: {'path': 'temp/1739258071_1754916_1336741877_0f82103da5fb72547a1b6aba9bbe1f46.jpg', 'extension': 'jpg'}, 1336741867: {'path': 'temp/1739258071_1754916_1336741867_939e4d8788f779be4900f0540d7a8bc9.jpg', 'extension': 'jpg'}, 1336741870: {'path': 'temp/1739258071_1754916_1336741870_2a22d7300fa895905122550f4ec39cbe.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 = 20433719; (('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 = 20433719 group by h (('08', 41),) 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=20433719 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 (20433719) 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 (20433719) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 11022025 20433719 Nombre de photos uploadées : 41 / 23040 (0%) 11022025 20433719 Nombre de photos taguées (types de déchets): 0 / 41 (0%) 11022025 20433719 Nombre de photos taguées (volume) : 0 / 41 (0%) [{'photo_id': 1336739824, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/276d8ec03ac6b7383c523b641b1d577b.jpg', 'username': None, 'uploaded_at': 1739257267, 'text': 'image_11022025_08_00_14_010167m0.jpg 1e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1336739821, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/5d49bbce81c665a5a8837dfe720ca5f7.jpg', 'username': None, 'uploaded_at': 1739257267, 'text': 'image_11022025_08_00_35_010145m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1336740049, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/755571f7629ec3a5b4b0230b379dca08.jpg', 'username': None, 'uploaded_at': 1739257327, 'text': 'image_11022025_08_00_55_010136m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1336740007, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/475b7b002c9e686a866e0ca00cfc25f5.jpg', 'username': None, 'uploaded_at': 1739257327, 'text': 'image_11022025_08_01_24_010136m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 3.0994415283203125e-06 elapsed_time : order_list_meta_photo_and_scores 7.152557373046875e-06 ????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0018925666809082031 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20433719, '2025-02-11' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1593540,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02232980728149414 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= 1593540 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1593540, 'dashboard_run_id': 1601907, 'mtr_portfolio_id': 20431572, 'dashboard_result_id': 8811142, '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_P20431572_11-02-2025_07_33_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20431580, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20431581, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20431582, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20431583, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20431584, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20431585, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20431586, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20431587, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20431588, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20431589, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20431590, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20431591, 'pht': 3726}}"}, {'dashboat_entry_day': 1593540, 'dashboard_run_id': 1601907, 'mtr_portfolio_id': 20432490, 'dashboard_result_id': 8811143, '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_P20432490_11-02-2025_07_50_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20432561, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20432562, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20432563, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20432564, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20432565, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20432566, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20432567, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20432568, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20432569, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20432570, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20432571, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20432572, 'pht': 3726}}"}, {'dashboat_entry_day': 1593540, 'dashboard_run_id': 1601907, 'mtr_portfolio_id': 20433352, 'dashboard_result_id': 8811144, '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_P20433352_11-02-2025_08_02_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20433378, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20433379, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20433380, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20433381, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20433382, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20433383, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20433384, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20433385, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20433386, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20433387, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20433388, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20433389, 'pht': 3726}}"}, {'dashboat_entry_day': 1593540, 'dashboard_run_id': 1601907, 'mtr_portfolio_id': 20433719, 'dashboard_result_id': 8811145, '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_P20433719_11-02-2025_08_11_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20433748, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20433749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20433750, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20433751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20433752, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20433753, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20433754, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20433755, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20433756, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20433757, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20433758, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20433759, '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 = 20431572 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': 2574953, 'mtr_portfolio_id': 20431572, 'created_at': datetime.datetime(2025, 2, 11, 7, 33), 'result': '0.0403622308039342', 'result_long': None, 'result_double': None}] Qualite : 0.0403622308039342 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20431572 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20431572_11-02-2025_07_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20431572 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_P20431572_11-02-2025_07_33_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20431580, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20431581, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20431582, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20431583, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20431584, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20431585, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20431586, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20431587, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20431588, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20431589, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20431590, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20431591, 'pht': 3726}}" where mtr_portfolio_id = 20431572 and dashboard_run_id = 1601907 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`=20431572 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8811142, 0.0403622308039342, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20431572_11-02-2025_07_33_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20431580, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20431581, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20431582, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20431583, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20431584, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20431585, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20431586, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20431587, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20431588, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20431589, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20431590, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20431591, '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 = 20432490 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': 2575025, 'mtr_portfolio_id': 20432490, 'created_at': datetime.datetime(2025, 2, 11, 7, 50, 57), 'result': '0.040344424972428385', 'result_long': None, 'result_double': None}] Qualite : 0.040344424972428385 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20432490 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20432490_11-02-2025_07_50_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20432490 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_P20432490_11-02-2025_07_50_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20432561, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20432562, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20432563, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20432564, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20432565, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20432566, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20432567, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20432568, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20432569, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20432570, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20432571, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20432572, 'pht': 3726}}" where mtr_portfolio_id = 20432490 and dashboard_run_id = 1601907 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`=20432490 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8811143, 0.040344424972428385, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20432490_11-02-2025_07_50_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20432561, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20432562, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20432563, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20432564, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20432565, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20432566, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20432567, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20432568, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20432569, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20432570, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20432571, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20432572, '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 = 20433352 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': 2575079, 'mtr_portfolio_id': 20433352, 'created_at': datetime.datetime(2025, 2, 11, 8, 2, 57), 'result': '0.0620428505518618', 'result_long': None, 'result_double': None}] Qualite : 0.0620428505518618 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20433352 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20433352_11-02-2025_08_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20433352 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_P20433352_11-02-2025_08_02_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20433378, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20433379, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20433380, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20433381, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20433382, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20433383, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20433384, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20433385, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20433386, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20433387, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20433388, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20433389, 'pht': 3726}}" where mtr_portfolio_id = 20433352 and dashboard_run_id = 1601907 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`=20433352 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8811144, 0.0620428505518618, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20433352_11-02-2025_08_02_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20433378, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20433379, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20433380, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20433381, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20433382, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20433383, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20433384, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20433385, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20433386, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20433387, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20433388, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20433389, '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 = 20433719 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': 2575118, 'mtr_portfolio_id': 20433719, 'created_at': datetime.datetime(2025, 2, 11, 8, 14, 31), 'result': '0.04720384562330049', 'result_long': None, 'result_double': None}] Qualite : 0.04720384562330049 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20433719 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20433719_11-02-2025_08_14_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20433719 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_P20433719_11-02-2025_08_14_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20433748, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20433749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20433750, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20433751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20433752, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20433753, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20433754, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20433755, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20433756, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20433757, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20433758, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20433759, 'pht': 3726}}" where mtr_portfolio_id = 20433719 and dashboard_run_id = 1601907 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`=20433719 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8811145, 0.04720384562330049, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20433719_11-02-2025_08_14_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20433748, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20433749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20433750, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20433751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20433752, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20433753, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20433754, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20433755, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20433756, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20433757, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20433758, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20433759, '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 (20431572,20432490,20433352,20433719) result : ((1336733370,), (1336733371,), (1336733373,), (1336733440,), (1336733444,), (1336733446,), (1336733448,), (1336733450,), (1336733452,), (1336733455,), (1336733458,), (1336733463,), (1336733468,), (1336733473,), (1336733500,), (1336733501,), (1336733505,), (1336733506,), (1336733510,), (1336733511,), (1336733515,), (1336733516,), (1336733535,), (1336733538,), (1336733547,), (1336733549,), (1336733551,), (1336733553,), (1336733605,), (1336733608,), (1336733610,), (1336733612,), (1336733846,), (1336733870,), (1336733904,), (1336733924,), (1336733968,), (1336733971,), (1336733974,), (1336734013,), (1336734017,), (1336734019,), (1336734022,), (1336734038,), (1336734114,), (1336734140,), (1336734155,), (1336734197,), (1336734253,), (1336734277,), (1336734474,), (1336734478,), (1336734488,), (1336734493,), (1336734542,), (1336734543,), (1336734545,), (1336734547,), (1336734597,), (1336734599,), (1336734601,), (1336734603,), (1336734605,), (1336734646,), (1336734647,), (1336734649,), (1336734651,), (1336734690,), (1336734692,), (1336734695,), (1336734731,), (1336734725,), (1336734728,), (1336734785,), (1336734787,), (1336734790,), (1336734793,), (1336734794,), (1336734822,), (1336734824,), (1336734827,), (1336734830,), (1336734832,), (1336734909,), (1336734921,), (1336734930,), (1336734937,), (1336734944,), (1336735019,), (1336735021,), (1336735023,), (1336735064,), (1336735069,), (1336735072,), (1336735075,), (1336736001,), (1336736099,), (1336736156,), (1336736158,), (1336736312,), (1336736314,), (1336736325,), (1336736723,), (1336736797,), (1336736800,), (1336736850,), (1336736897,), (1336736898,), (1336736945,), (1336736957,), (1336736965,), (1336736968,), (1336736971,), (1336736974,), (1336737010,), (1336737013,), (1336737015,), (1336737017,), (1336737020,), (1336737038,), (1336737040,), (1336737079,), (1336737080,), (1336737087,), (1336737089,), (1336737091,), (1336737114,), (1336737116,), (1336737126,), (1336737172,), (1336737214,), (1336737793,), (1336737849,), (1336737863,), (1336737866,), (1336737940,), (1336737941,), (1336737943,), (1336737946,), (1336737979,), (1336737981,), (1336737983,), (1336737985,), (1336738021,), (1336738024,), (1336738029,), (1336738031,), (1336738033,), (1336738036,), (1336738059,), (1336738060,), (1336738064,), (1336739175,), (1336739177,), (1336739180,), (1336739583,), (1336739585,), (1336739588,), (1336739638,), (1336739701,), (1336739703,), (1336739706,), (1336739721,), (1336739728,), (1336739794,), (1336739798,), (1336739803,), (1336739806,), (1336739808,), (1336739829,), (1336739821,), (1336739824,), (1336740007,), (1336740049,), (1336740139,), (1336740141,), (1336740144,), (1336740148,), (1336740162,), (1336740729,), (1336740837,), (1336740851,), (1336740950,), (1336740961,), (1336740967,), (1336741015,), (1336741018,), (1336741021,), (1336741025,), (1336741028,), (1336741148,), (1336741193,), (1336741196,), (1336741543,), (1336741545,), (1336741547,), (1336741550,), (1336741710,), (1336741712,), (1336741727,), (1336741812,), (1336741814,), (1336741817,), (1336741828,), (1336741867,), (1336741870,), (1336741874,), (1336741877,), (1336742068,), (1336742071,), (1336742074,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'11022025': {'nb_upload': 41, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20433719]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1336742074, 1336742071, 1336742068, 1336741877, 1336741874, 1336741870, 1336741867] map_info['map_portfolio_photo'] : {20433719: [1336742074, 1336742071, 1336742068, 1336741877, 1336741874, 1336741870, 1336741867, 1336741828, 1336741817, 1336741814, 1336741812, 1336741727, 1336741712, 1336741710, 1336741550, 1336741547, 1336741545, 1336741543, 1336741196, 1336741193, 1336741148, 1336741028, 1336741025, 1336741021, 1336741018, 1336741015, 1336740967, 1336740961, 1336740950, 1336740851, 1336740837, 1336740729, 1336740162, 1336740148, 1336740144, 1336740141, 1336740139, 1336740049, 1336740007, 1336739824, 1336739821]} final : True mtd_id 4302 list_pids : [1336742074, 1336742071, 1336742068, 1336741877, 1336741874, 1336741870, 1336741867] Looping around the photos to save general results len do output : 1 /20433719Didn'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, '2575118') ('4302', '20433719', '1336742074', None, None, None, None, None, '2575118') ('4302', None, None, None, None, None, None, None, '2575118') ('4302', '20433719', '1336742071', None, None, None, None, None, '2575118') ('4302', None, None, None, None, None, None, None, '2575118') ('4302', '20433719', '1336742068', None, None, None, None, None, '2575118') ('4302', None, None, None, None, None, None, None, '2575118') ('4302', '20433719', '1336741877', None, None, None, None, None, '2575118') ('4302', None, None, None, None, None, None, None, '2575118') ('4302', '20433719', '1336741874', None, None, None, None, None, '2575118') ('4302', None, None, None, None, None, None, None, '2575118') ('4302', '20433719', '1336741870', None, None, None, None, None, '2575118') ('4302', None, None, None, None, None, None, None, '2575118') ('4302', '20433719', '1336741867', None, None, None, None, None, '2575118') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 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, '20433719', 'None', None, None, None, None, '2575118'), ('4302', '20433719', '1336742074', None, None, None, None, None, '2575118'), ('4302', '20433719', '1336742071', None, None, None, None, None, '2575118'), ('4302', '20433719', '1336742068', None, None, None, None, None, '2575118'), ('4302', '20433719', '1336741877', None, None, None, None, None, '2575118'), ('4302', '20433719', '1336741874', None, None, None, None, None, '2575118'), ('4302', '20433719', '1336741870', None, None, None, None, None, '2575118'), ('4302', '20433719', '1336741867', None, None, None, None, None, '2575118')] time used for this insertion : 0.013483762741088867 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.42394518852233887 time spend to save output : 0.013629674911499023 total time spend for step 5 : 0.4375748634338379 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 (2575118) 2.03user 2.43system 0:10.90elapsed 41%CPU (0avgtext+0avgdata 159324maxresident)k 3400inputs+12576outputs (61major+63992minor)pagefaults 0swaps