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 : 3078359 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 (2717323) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2717323) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21984181 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2717323'] with mtr_portfolio_ids : ['21984181'] and first list_photo_ids : [] new path : /proc/3078359/ Name: python3 Umask: 0002 State: R (running) Tgid: 3078359 Ngid: 0 Pid: 3078359 PPid: 3078358 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3078359 NSpid: 3078359 NSpgid: 3075575 NSsid: 3075575 VmPeak: 1106928 kB VmSize: 1106928 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97992 kB VmRSS: 97992 kB RssAnon: 59760 kB RssFile: 38232 kB RssShmem: 0 kB VmData: 865676 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 604 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: 51 nonvoluntary_ctxt_switches: 84 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3078359', 'Ngid': '0', 'Pid': '3078359', 'PPid': '3078358', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3078359', 'NSpid': '3078359', 'NSpgid': '3075575', 'NSsid': '3075575', 'VmPeak': '1106928 kB', 'VmSize': '1106928 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97992 kB', 'VmRSS': '97992 kB', 'RssAnon': '59760 kB', 'RssFile': '38232 kB', 'RssShmem': '0 kB', 'VmData': '865676 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '604 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': '51', 'nonvoluntary_ctxt_switches': '84'} ('datou_batch_current', '3078359', '1106928', '0', '1106928', '865676', '97992', b'', 'marlene', '2717323') 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 (21984181) 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 (2717323 ) ) 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 (21984181) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1349582034, 'portfolio_id': 21984181}, {'photo_id': 1349582028, 'portfolio_id': 21984181}, {'photo_id': 1349582022, 'portfolio_id': 21984181}, {'photo_id': 1349582016, 'portfolio_id': 21984181}, {'photo_id': 1349582012, 'portfolio_id': 21984181}, {'photo_id': 1349581986, 'portfolio_id': 21984181}, {'photo_id': 1349581979, 'portfolio_id': 21984181}, {'photo_id': 1349581969, 'portfolio_id': 21984181}, {'photo_id': 1349581964, 'portfolio_id': 21984181}, {'photo_id': 1349581960, 'portfolio_id': 21984181}, {'photo_id': 1349581955, 'portfolio_id': 21984181}, {'photo_id': 1349581908, 'portfolio_id': 21984181}, {'photo_id': 1349581902, 'portfolio_id': 21984181}, {'photo_id': 1349581888, 'portfolio_id': 21984181}, {'photo_id': 1349581870, 'portfolio_id': 21984181}, {'photo_id': 1349581720, 'portfolio_id': 21984181}, {'photo_id': 1349581668, 'portfolio_id': 21984181}, {'photo_id': 1349581606, 'portfolio_id': 21984181}, {'photo_id': 1349581515, 'portfolio_id': 21984181}, {'photo_id': 1349581462, 'portfolio_id': 21984181}, {'photo_id': 1349581426, 'portfolio_id': 21984181}, {'photo_id': 1349581321, 'portfolio_id': 21984181}, {'photo_id': 1349581275, 'portfolio_id': 21984181}, {'photo_id': 1349581271, 'portfolio_id': 21984181}, {'photo_id': 1349581266, 'portfolio_id': 21984181}, {'photo_id': 1349581252, 'portfolio_id': 21984181}, {'photo_id': 1349581244, 'portfolio_id': 21984181}, {'photo_id': 1349581208, 'portfolio_id': 21984181}, {'photo_id': 1349581200, 'portfolio_id': 21984181}, {'photo_id': 1349581189, 'portfolio_id': 21984181}, {'photo_id': 1349581175, 'portfolio_id': 21984181}, {'photo_id': 1349581105, 'portfolio_id': 21984181}, {'photo_id': 1349581100, 'portfolio_id': 21984181}, {'photo_id': 1349581090, 'portfolio_id': 21984181}, {'photo_id': 1349581082, 'portfolio_id': 21984181}, {'photo_id': 1349581078, 'portfolio_id': 21984181}] map_portfolio_id_photo_id: {21984181: [1349582034, 1349582028, 1349582022, 1349582016, 1349582012, 1349581986, 1349581979, 1349581969, 1349581964, 1349581960, 1349581955, 1349581908, 1349581902, 1349581888, 1349581870, 1349581720, 1349581668, 1349581606, 1349581515, 1349581462, 1349581426, 1349581321, 1349581275, 1349581271, 1349581266, 1349581252, 1349581244, 1349581208, 1349581200, 1349581189, 1349581175, 1349581105, 1349581100, 1349581090, 1349581082, 1349581078]} ##### 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.015086650848388672 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Apr 2 19:38:56 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21984181) 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 : 21984181 get user id for portfolio 21984181 get sub ptf for main ptf 21984181, type 3726 and hashtags ['autre_refus', 'Carton_brun', 'mal_croppe', 'kraft', 'metal', 'plastique', 'environnement', 'cartonnette', 'flou', 'papier', 'Teint_Dans_La_Masse', 'Carton_gris'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21984181 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Carton_brun','mal_croppe','kraft','metal','plastique','environnement','cartonnette','flou','papier','Teint_Dans_La_Masse','Carton_gris')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21984181 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Carton_brun','mal_croppe','kraft','metal','plastique','environnement','cartonnette','flou','papier','Teint_Dans_La_Masse','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 21984181, 'sub_port_id': 21984192, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14481973, 'last_updated_at': datetime.datetime(2025, 4, 2, 19, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 19, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 19, 33, 1)}, 'kraft': {'main_port_id': 21984181, 'sub_port_id': 21984193, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14481974, 'last_updated_at': datetime.datetime(2025, 4, 2, 19, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 19, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 19, 33, 1)}, 'plastique': {'main_port_id': 21984181, 'sub_port_id': 21984194, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14481975, 'last_updated_at': datetime.datetime(2025, 4, 2, 19, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 19, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 19, 33, 1)}, 'mal_croppe': {'main_port_id': 21984181, 'sub_port_id': 21984195, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14481976, 'last_updated_at': datetime.datetime(2025, 4, 2, 19, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 19, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 19, 33, 1)}, 'cartonnette': {'main_port_id': 21984181, 'sub_port_id': 21984196, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14481977, 'last_updated_at': datetime.datetime(2025, 4, 2, 19, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 19, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 19, 33, 1)}, 'papier': {'main_port_id': 21984181, 'sub_port_id': 21984197, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14481978, 'last_updated_at': datetime.datetime(2025, 4, 2, 19, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 19, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 19, 33, 1)}, 'Carton_brun': {'main_port_id': 21984181, 'sub_port_id': 21984198, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14481979, 'last_updated_at': datetime.datetime(2025, 4, 2, 19, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 19, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 19, 33, 1)}, 'metal': {'main_port_id': 21984181, 'sub_port_id': 21984199, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14481980, 'last_updated_at': datetime.datetime(2025, 4, 2, 19, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 19, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 19, 33, 1)}, 'flou': {'main_port_id': 21984181, 'sub_port_id': 21984200, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14481981, 'last_updated_at': datetime.datetime(2025, 4, 2, 19, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 19, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 19, 33, 1)}, 'Carton_gris': {'main_port_id': 21984181, 'sub_port_id': 21984201, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14481982, 'last_updated_at': datetime.datetime(2025, 4, 2, 19, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 19, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 19, 33, 1)}, 'autre_refus': {'main_port_id': 21984181, 'sub_port_id': 21984202, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14481983, 'last_updated_at': datetime.datetime(2025, 4, 2, 19, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 19, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 19, 33, 1)}, 'environnement': {'main_port_id': 21984181, 'sub_port_id': 21984203, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14481984, 'last_updated_at': datetime.datetime(2025, 4, 2, 19, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 19, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 19, 33, 1)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21984192 , 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=21984181 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 (21984192) result : ((1349581489,), (1349581805,), (1349581806,), (1349581934,), (1349581935,), (1349582078,), (1349582130,), (1349582178,), (1349582179,), (1349582180,), (1349582181,), (1349582182,), (1349582183,), (1349582184,), (1349582185,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21984181) result : ((1349581078,), (1349581082,), (1349581090,), (1349581100,), (1349581105,), (1349581175,), (1349581189,), (1349581200,), (1349581208,), (1349581244,), (1349581252,), (1349581266,), (1349581271,), (1349581275,), (1349581321,), (1349581426,), (1349581462,), (1349581515,), (1349581606,), (1349581668,), (1349581720,), (1349581870,), (1349581888,), (1349581902,), (1349581908,), (1349581955,), (1349581960,), (1349581964,), (1349581969,), (1349581979,), (1349581986,), (1349582012,), (1349582016,), (1349582022,), (1349582028,), (1349582034,)) 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 (1349581200,1349581100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21984193 , 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=21984181 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 (21984193) result : ((1349581554,), (1349582209,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21984181) result : ((1349581078,), (1349581082,), (1349581090,), (1349581100,), (1349581105,), (1349581175,), (1349581189,), (1349581200,), (1349581208,), (1349581244,), (1349581252,), (1349581266,), (1349581271,), (1349581275,), (1349581321,), (1349581426,), (1349581462,), (1349581515,), (1349581606,), (1349581668,), (1349581720,), (1349581870,), (1349581888,), (1349581902,), (1349581908,), (1349581955,), (1349581960,), (1349581964,), (1349581969,), (1349581979,), (1349581986,), (1349582012,), (1349582016,), (1349582022,), (1349582028,), (1349582034,)) 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 (1349581200,1349581100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21984194 , 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=21984181 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 (21984194) result : ((1349581540,), (1349581836,), (1349582203,), (1349582206,), (1349582207,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21984181) result : ((1349581078,), (1349581082,), (1349581090,), (1349581100,), (1349581105,), (1349581175,), (1349581189,), (1349581200,), (1349581208,), (1349581244,), (1349581252,), (1349581266,), (1349581271,), (1349581275,), (1349581321,), (1349581426,), (1349581462,), (1349581515,), (1349581606,), (1349581668,), (1349581720,), (1349581870,), (1349581888,), (1349581902,), (1349581908,), (1349581955,), (1349581960,), (1349581964,), (1349581969,), (1349581979,), (1349581986,), (1349582012,), (1349582016,), (1349582022,), (1349582028,), (1349582034,)) 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 (1349581200,1349581100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21984195 , 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=21984181 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 (21984195) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21984181) result : ((1349581078,), (1349581082,), (1349581090,), (1349581100,), (1349581105,), (1349581175,), (1349581189,), (1349581200,), (1349581208,), (1349581244,), (1349581252,), (1349581266,), (1349581271,), (1349581275,), (1349581321,), (1349581426,), (1349581462,), (1349581515,), (1349581606,), (1349581668,), (1349581720,), (1349581870,), (1349581888,), (1349581902,), (1349581908,), (1349581955,), (1349581960,), (1349581964,), (1349581969,), (1349581979,), (1349581986,), (1349582012,), (1349582016,), (1349582022,), (1349582028,), (1349582034,)) 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 (1349581200,1349581100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21984196 , 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=21984181 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 (21984196) result : ((1349581506,), (1349581939,), (1349582193,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21984181) result : ((1349581078,), (1349581082,), (1349581090,), (1349581100,), (1349581105,), (1349581175,), (1349581189,), (1349581200,), (1349581208,), (1349581244,), (1349581252,), (1349581266,), (1349581271,), (1349581275,), (1349581321,), (1349581426,), (1349581462,), (1349581515,), (1349581606,), (1349581668,), (1349581720,), (1349581870,), (1349581888,), (1349581902,), (1349581908,), (1349581955,), (1349581960,), (1349581964,), (1349581969,), (1349581979,), (1349581986,), (1349582012,), (1349582016,), (1349582022,), (1349582028,), (1349582034,)) 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 (1349581200,1349581100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21984197 , 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=21984181 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 (21984197) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21984181) result : ((1349581078,), (1349581082,), (1349581090,), (1349581100,), (1349581105,), (1349581175,), (1349581189,), (1349581200,), (1349581208,), (1349581244,), (1349581252,), (1349581266,), (1349581271,), (1349581275,), (1349581321,), (1349581426,), (1349581462,), (1349581515,), (1349581606,), (1349581668,), (1349581720,), (1349581870,), (1349581888,), (1349581902,), (1349581908,), (1349581955,), (1349581960,), (1349581964,), (1349581969,), (1349581979,), (1349581986,), (1349582012,), (1349582016,), (1349582022,), (1349582028,), (1349582034,)) 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 (1349581200,1349581100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21984198 , 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=21984181 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 (21984198) result : ((1349581520,), (1349581833,), (1349581834,), (1349581941,), (1349582136,), (1349582195,), (1349582198,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21984181) result : ((1349581078,), (1349581082,), (1349581090,), (1349581100,), (1349581105,), (1349581175,), (1349581189,), (1349581200,), (1349581208,), (1349581244,), (1349581252,), (1349581266,), (1349581271,), (1349581275,), (1349581321,), (1349581426,), (1349581462,), (1349581515,), (1349581606,), (1349581668,), (1349581720,), (1349581870,), (1349581888,), (1349581902,), (1349581908,), (1349581955,), (1349581960,), (1349581964,), (1349581969,), (1349581979,), (1349581986,), (1349582012,), (1349582016,), (1349582022,), (1349582028,), (1349582034,)) 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 (1349581200,1349581100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21984199 , 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=21984181 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 (21984199) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21984181) result : ((1349581078,), (1349581082,), (1349581090,), (1349581100,), (1349581105,), (1349581175,), (1349581189,), (1349581200,), (1349581208,), (1349581244,), (1349581252,), (1349581266,), (1349581271,), (1349581275,), (1349581321,), (1349581426,), (1349581462,), (1349581515,), (1349581606,), (1349581668,), (1349581720,), (1349581870,), (1349581888,), (1349581902,), (1349581908,), (1349581955,), (1349581960,), (1349581964,), (1349581969,), (1349581979,), (1349581986,), (1349582012,), (1349582016,), (1349582022,), (1349582028,), (1349582034,)) 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 (1349581200,1349581100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21984200 , 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=21984181 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 (21984200) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21984181) result : ((1349581078,), (1349581082,), (1349581090,), (1349581100,), (1349581105,), (1349581175,), (1349581189,), (1349581200,), (1349581208,), (1349581244,), (1349581252,), (1349581266,), (1349581271,), (1349581275,), (1349581321,), (1349581426,), (1349581462,), (1349581515,), (1349581606,), (1349581668,), (1349581720,), (1349581870,), (1349581888,), (1349581902,), (1349581908,), (1349581955,), (1349581960,), (1349581964,), (1349581969,), (1349581979,), (1349581986,), (1349582012,), (1349582016,), (1349582022,), (1349582028,), (1349582034,)) 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 (1349581200,1349581100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21984201 , 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=21984181 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 (21984201) result : ((1349581830,), (1349581831,), (1349581832,), (1349581937,), (1349581938,), (1349582188,), (1349582189,), (1349582191,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21984181) result : ((1349581078,), (1349581082,), (1349581090,), (1349581100,), (1349581105,), (1349581175,), (1349581189,), (1349581200,), (1349581208,), (1349581244,), (1349581252,), (1349581266,), (1349581271,), (1349581275,), (1349581321,), (1349581426,), (1349581462,), (1349581515,), (1349581606,), (1349581668,), (1349581720,), (1349581870,), (1349581888,), (1349581902,), (1349581908,), (1349581955,), (1349581960,), (1349581964,), (1349581969,), (1349581979,), (1349581986,), (1349582012,), (1349582016,), (1349582022,), (1349582028,), (1349582034,)) 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 (1349581200,1349581100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21984202 , 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=21984181 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 (21984202) result : ((1349581812,), (1349581813,), (1349581815,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21984181) result : ((1349581078,), (1349581082,), (1349581090,), (1349581100,), (1349581105,), (1349581175,), (1349581189,), (1349581200,), (1349581208,), (1349581244,), (1349581252,), (1349581266,), (1349581271,), (1349581275,), (1349581321,), (1349581426,), (1349581462,), (1349581515,), (1349581606,), (1349581668,), (1349581720,), (1349581870,), (1349581888,), (1349581902,), (1349581908,), (1349581955,), (1349581960,), (1349581964,), (1349581969,), (1349581979,), (1349581986,), (1349582012,), (1349582016,), (1349582022,), (1349582028,), (1349582034,)) 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 (1349581200,1349581100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21984203 , 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=21984181 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 (21984203) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21984181) result : ((1349581078,), (1349581082,), (1349581090,), (1349581100,), (1349581105,), (1349581175,), (1349581189,), (1349581200,), (1349581208,), (1349581244,), (1349581252,), (1349581266,), (1349581271,), (1349581275,), (1349581321,), (1349581426,), (1349581462,), (1349581515,), (1349581606,), (1349581668,), (1349581720,), (1349581870,), (1349581888,), (1349581902,), (1349581908,), (1349581955,), (1349581960,), (1349581964,), (1349581969,), (1349581979,), (1349581986,), (1349582012,), (1349582016,), (1349582022,), (1349582028,), (1349582034,)) 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 (1349581200,1349581100) and cspi.crop_hashtag_id = chi.id; To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21984181 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Carton_brun','mal_croppe','kraft','metal','plastique','environnement','cartonnette','flou','papier','Teint_Dans_La_Masse','Carton_gris')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21984181 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Carton_brun','mal_croppe','kraft','metal','plastique','environnement','cartonnette','flou','papier','Teint_Dans_La_Masse','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 21984181, 'sub_port_id': 21984204, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14481985, 'last_updated_at': datetime.datetime(2025, 4, 2, 19, 33, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 19, 33, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 19, 33, 2)}, 'kraft': {'main_port_id': 21984181, 'sub_port_id': 21984205, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14481986, 'last_updated_at': datetime.datetime(2025, 4, 2, 19, 33, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 19, 33, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 19, 33, 2)}, 'plastique': {'main_port_id': 21984181, 'sub_port_id': 21984206, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14481987, 'last_updated_at': datetime.datetime(2025, 4, 2, 19, 33, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 19, 33, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 19, 33, 2)}, 'mal_croppe': {'main_port_id': 21984181, 'sub_port_id': 21984207, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14481988, 'last_updated_at': datetime.datetime(2025, 4, 2, 19, 33, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 19, 33, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 19, 33, 2)}, 'cartonnette': {'main_port_id': 21984181, 'sub_port_id': 21984208, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14481989, 'last_updated_at': datetime.datetime(2025, 4, 2, 19, 33, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 19, 33, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 19, 33, 2)}, 'papier': {'main_port_id': 21984181, 'sub_port_id': 21984209, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14481990, 'last_updated_at': datetime.datetime(2025, 4, 2, 19, 33, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 19, 33, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 19, 33, 2)}, 'Carton_brun': {'main_port_id': 21984181, 'sub_port_id': 21984210, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14481991, 'last_updated_at': datetime.datetime(2025, 4, 2, 19, 33, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 19, 33, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 19, 33, 2)}, 'metal': {'main_port_id': 21984181, 'sub_port_id': 21984211, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14481992, 'last_updated_at': datetime.datetime(2025, 4, 2, 19, 33, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 19, 33, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 19, 33, 2)}, 'flou': {'main_port_id': 21984181, 'sub_port_id': 21984212, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14481993, 'last_updated_at': datetime.datetime(2025, 4, 2, 19, 33, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 19, 33, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 19, 33, 2)}, 'Carton_gris': {'main_port_id': 21984181, 'sub_port_id': 21984213, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14481994, 'last_updated_at': datetime.datetime(2025, 4, 2, 19, 33, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 19, 33, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 19, 33, 2)}, 'autre_refus': {'main_port_id': 21984181, 'sub_port_id': 21984214, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14481995, 'last_updated_at': datetime.datetime(2025, 4, 2, 19, 33, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 19, 33, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 19, 33, 2)}, 'environnement': {'main_port_id': 21984181, 'sub_port_id': 21984215, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14481996, 'last_updated_at': datetime.datetime(2025, 4, 2, 19, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 19, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 19, 33, 2)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21984204,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21984192 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21984205,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21984193 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21984206,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21984194 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21984207,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21984195 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21984208,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21984196 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21984209,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21984197 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21984210,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21984198 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21984211,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21984199 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21984212,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21984200 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21984213,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21984201 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21984214,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21984202 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21984215,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21984203 lien utilise dans velours : https://www.fotonower.com/velours/21984204,21984205,21984206,21984207,21984208,21984209,21984210,21984211,21984212,21984213,21984214,21984215?tags=Teint_Dans_La_Masse,kraft,plastique,mal_croppe,cartonnette,papier,Carton_brun,metal,flou,Carton_gris,autre_refus,environnement After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21984181]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1349582034, 1349582028, 1349582022, 1349582016, 1349582012, 1349581986, 1349581979, 1349581969, 1349581964, 1349581960, 1349581955] map_info['map_portfolio_photo'] : {21984181: [1349582034, 1349582028, 1349582022, 1349582016, 1349582012, 1349581986, 1349581979, 1349581969, 1349581964, 1349581960, 1349581955, 1349581908, 1349581902, 1349581888, 1349581870, 1349581720, 1349581668, 1349581606, 1349581515, 1349581462, 1349581426, 1349581321, 1349581275, 1349581271, 1349581266, 1349581252, 1349581244, 1349581208, 1349581200, 1349581189, 1349581175, 1349581105, 1349581100, 1349581090, 1349581082, 1349581078]} final : False mtd_id 4302 list_pids : [1349582034, 1349582028, 1349582022, 1349582016, 1349582012, 1349581986, 1349581979, 1349581969, 1349581964, 1349581960, 1349581955] Looping around the photos to save general results len do output : 1 /21984181. 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, '2717323') ('4302', '21984181', '1349582034', None, None, None, None, None, '2717323') ('4302', None, None, None, None, None, None, None, '2717323') ('4302', '21984181', '1349582028', None, None, None, None, None, '2717323') ('4302', None, None, None, None, None, None, None, '2717323') ('4302', '21984181', '1349582022', None, None, None, None, None, '2717323') ('4302', None, None, None, None, None, None, None, '2717323') ('4302', '21984181', '1349582016', None, None, None, None, None, '2717323') ('4302', None, None, None, None, None, None, None, '2717323') ('4302', '21984181', '1349582012', None, None, None, None, None, '2717323') ('4302', None, None, None, None, None, None, None, '2717323') ('4302', '21984181', '1349581986', None, None, None, None, None, '2717323') ('4302', None, None, None, None, None, None, None, '2717323') ('4302', '21984181', '1349581979', None, None, None, None, None, '2717323') ('4302', None, None, None, None, None, None, None, '2717323') ('4302', '21984181', '1349581969', None, None, None, None, None, '2717323') ('4302', None, None, None, None, None, None, None, '2717323') ('4302', '21984181', '1349581964', None, None, None, None, None, '2717323') ('4302', None, None, None, None, None, None, None, '2717323') ('4302', '21984181', '1349581960', None, None, None, None, None, '2717323') ('4302', None, None, None, None, None, None, None, '2717323') ('4302', '21984181', '1349581955', None, None, None, None, None, '2717323') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21984181', "{'Teint_Dans_La_Masse': 21984192, 'kraft': 21984193, 'plastique': 21984194, 'mal_croppe': 21984195, 'cartonnette': 21984196, 'papier': 21984197, 'Carton_brun': 21984198, 'metal': 21984199, 'flou': 21984200, 'Carton_gris': 21984201, 'autre_refus': 21984202, 'environnement': 21984203}", None, None, None, None, '2717323'), ('4302', '21984181', '1349582034', None, None, None, None, None, '2717323'), ('4302', '21984181', '1349582028', None, None, None, None, None, '2717323'), ('4302', '21984181', '1349582022', None, None, None, None, None, '2717323'), ('4302', '21984181', '1349582016', None, None, None, None, None, '2717323'), ('4302', '21984181', '1349582012', None, None, None, None, None, '2717323'), ('4302', '21984181', '1349581986', None, None, None, None, None, '2717323'), ('4302', '21984181', '1349581979', None, None, None, None, None, '2717323'), ('4302', '21984181', '1349581969', None, None, None, None, None, '2717323'), ('4302', '21984181', '1349581964', None, None, None, None, None, '2717323'), ('4302', '21984181', '1349581960', None, None, None, None, None, '2717323'), ('4302', '21984181', '1349581955', None, None, None, None, None, '2717323')] time used for this insertion : 0.013566255569458008 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4891974925994873 time spend to save output : 0.013860702514648438 total time spend for step 1 : 0.5030581951141357 step2:final Wed Apr 2 19:38:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21984181) 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 21984181 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1349581105,1349581100,1349581090,1349581082,1349581078,1349581208,1349581200,1349581189,1349581175,1349581321,1349581275,1349581271,1349581266,1349581252,1349581244,1349581720,1349581668,1349581606,1349581515,1349581462,1349581426,1349581908,1349581902,1349581888,1349581870,1349581986,1349581979,1349581969,1349581964,1349581960,1349581955,1349582034,1349582028,1349582022,1349582016,1349582012); 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([21984181]) Inside saveOutput : final : False verbose : True original output for save of step final : {1349582034: ('0.06651790706829833',), 1349582028: ('0.06651790706829833',), 1349582022: ('0.06651790706829833',), 1349582016: ('0.06651790706829833',), 1349582012: ('0.06651790706829833',), 1349581986: ('0.06651790706829833',), 1349581979: ('0.06651790706829833',), 1349581969: ('0.06651790706829833',), 1349581964: ('0.06651790706829833',), 1349581960: ('0.06651790706829833',), 1349581955: ('0.06651790706829833',)} new output for save of step final : {1349582034: ('0.06651790706829833',), 1349582028: ('0.06651790706829833',), 1349582022: ('0.06651790706829833',), 1349582016: ('0.06651790706829833',), 1349582012: ('0.06651790706829833',), 1349581986: ('0.06651790706829833',), 1349581979: ('0.06651790706829833',), 1349581969: ('0.06651790706829833',), 1349581964: ('0.06651790706829833',), 1349581960: ('0.06651790706829833',), 1349581955: ('0.06651790706829833',)} [1349582034, 1349582028, 1349582022, 1349582016, 1349582012, 1349581986, 1349581979, 1349581969, 1349581964, 1349581960, 1349581955] map_info['map_portfolio_photo'] : {21984181: [1349582034, 1349582028, 1349582022, 1349582016, 1349582012, 1349581986, 1349581979, 1349581969, 1349581964, 1349581960, 1349581955, 1349581908, 1349581902, 1349581888, 1349581870, 1349581720, 1349581668, 1349581606, 1349581515, 1349581462, 1349581426, 1349581321, 1349581275, 1349581271, 1349581266, 1349581252, 1349581244, 1349581208, 1349581200, 1349581189, 1349581175, 1349581105, 1349581100, 1349581090, 1349581082, 1349581078]} final : False mtd_id 4302 list_pids : [1349582034, 1349582028, 1349582022, 1349582016, 1349582012, 1349581986, 1349581979, 1349581969, 1349581964, 1349581960, 1349581955] Looping around the photos to save general results len do output : 11 /1349582034.Didn't retrieve data . /1349582028.Didn't retrieve data . /1349582022.Didn't retrieve data . /1349582016.Didn't retrieve data . /1349582012.Didn't retrieve data . /1349581986.Didn't retrieve data . /1349581979.Didn't retrieve data . /1349581969.Didn't retrieve data . /1349581964.Didn't retrieve data . /1349581960.Didn't retrieve data . /1349581955.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, '2717323') ('4302', '21984181', '1349582034', None, None, None, None, None, '2717323') ('4302', None, None, None, None, None, None, None, '2717323') ('4302', '21984181', '1349582028', None, None, None, None, None, '2717323') ('4302', None, None, None, None, None, None, None, '2717323') ('4302', '21984181', '1349582022', None, None, None, None, None, '2717323') ('4302', None, None, None, None, None, None, None, '2717323') ('4302', '21984181', '1349582016', None, None, None, None, None, '2717323') ('4302', None, None, None, None, None, None, None, '2717323') ('4302', '21984181', '1349582012', None, None, None, None, None, '2717323') ('4302', None, None, None, None, None, None, None, '2717323') ('4302', '21984181', '1349581986', None, None, None, None, None, '2717323') ('4302', None, None, None, None, None, None, None, '2717323') ('4302', '21984181', '1349581979', None, None, None, None, None, '2717323') ('4302', None, None, None, None, None, None, None, '2717323') ('4302', '21984181', '1349581969', None, None, None, None, None, '2717323') ('4302', None, None, None, None, None, None, None, '2717323') ('4302', '21984181', '1349581964', None, None, None, None, None, '2717323') ('4302', None, None, None, None, None, None, None, '2717323') ('4302', '21984181', '1349581960', None, None, None, None, None, '2717323') ('4302', None, None, None, None, None, None, None, '2717323') ('4302', '21984181', '1349581955', None, None, None, None, None, '2717323') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 33 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', '21984181', '1349582034', '0.06651790706829833', None, None, None, None, '2717323'), ('4302', '21984181', '1349582028', '0.06651790706829833', None, None, None, None, '2717323'), ('4302', '21984181', '1349582022', '0.06651790706829833', None, None, None, None, '2717323'), ('4302', '21984181', '1349582016', '0.06651790706829833', None, None, None, None, '2717323'), ('4302', '21984181', '1349582012', '0.06651790706829833', None, None, None, None, '2717323'), ('4302', '21984181', '1349581986', '0.06651790706829833', None, None, None, None, '2717323'), ('4302', '21984181', '1349581979', '0.06651790706829833', None, None, None, None, '2717323'), ('4302', '21984181', '1349581969', '0.06651790706829833', None, None, None, None, '2717323'), ('4302', '21984181', '1349581964', '0.06651790706829833', None, None, None, None, '2717323'), ('4302', '21984181', '1349581960', '0.06651790706829833', None, None, None, None, '2717323'), ('4302', '21984181', '1349581955', '0.06651790706829833', None, None, None, None, '2717323')] time used for this insertion : 0.013778924942016602 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06817436218261719 time spend to save output : 0.014313459396362305 total time spend for step 2 : 0.08248782157897949 step3:velours_tree Wed Apr 2 19:38:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {21984181: [{'Teint_Dans_La_Masse': 21984192, 'kraft': 21984193, 'plastique': 21984194, 'mal_croppe': 21984195, 'cartonnette': 21984196, 'papier': 21984197, 'Carton_brun': 21984198, 'metal': 21984199, 'flou': 21984200, 'Carton_gris': 21984201, 'autre_refus': 21984202, 'environnement': 21984203}]} input_args_next_step : {21984181: ()} output_args : {21984181: [{'Teint_Dans_La_Masse': 21984192, 'kraft': 21984193, 'plastique': 21984194, 'mal_croppe': 21984195, 'cartonnette': 21984196, 'papier': 21984197, 'Carton_brun': 21984198, 'metal': 21984199, 'flou': 21984200, 'Carton_gris': 21984201, 'autre_refus': 21984202, 'environnement': 21984203}]} args : 21984181 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Teint_Dans_La_Masse': 21984192, 'kraft': 21984193, 'plastique': 21984194, 'mal_croppe': 21984195, 'cartonnette': 21984196, 'papier': 21984197, 'Carton_brun': 21984198, 'metal': 21984199, 'flou': 21984200, 'Carton_gris': 21984201, 'autre_refus': 21984202, 'environnement': 21984203},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21984181) 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([21984181]) 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.3126053810119629 time spend to save output : 6.008148193359375e-05 total time spend for step 3 : 0.3126654624938965 step4:send_mail_cod Wed Apr 2 19:38:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1349582034: ('0.06651790706829833',), 1349582028: ('0.06651790706829833',), 1349582022: ('0.06651790706829833',), 1349582016: ('0.06651790706829833',), 1349582012: ('0.06651790706829833',), 1349581986: ('0.06651790706829833',), 1349581979: ('0.06651790706829833',), 1349581969: ('0.06651790706829833',), 1349581964: ('0.06651790706829833',), 1349581960: ('0.06651790706829833',), 1349581955: ('0.06651790706829833',)} input_args_next_step : {1349582034: ()} output_args : {1349582034: ('0.06651790706829833',), 1349582028: ('0.06651790706829833',), 1349582022: ('0.06651790706829833',), 1349582016: ('0.06651790706829833',), 1349582012: ('0.06651790706829833',), 1349581986: ('0.06651790706829833',), 1349581979: ('0.06651790706829833',), 1349581969: ('0.06651790706829833',), 1349581964: ('0.06651790706829833',), 1349581960: ('0.06651790706829833',), 1349581955: ('0.06651790706829833',)} args : 1349582034 depend.output_id : 0 input_args_next_step : {1349582034: ('0.06651790706829833',), 1349582028: ()} output_args : {1349582034: ('0.06651790706829833',), 1349582028: ('0.06651790706829833',), 1349582022: ('0.06651790706829833',), 1349582016: ('0.06651790706829833',), 1349582012: ('0.06651790706829833',), 1349581986: ('0.06651790706829833',), 1349581979: ('0.06651790706829833',), 1349581969: ('0.06651790706829833',), 1349581964: ('0.06651790706829833',), 1349581960: ('0.06651790706829833',), 1349581955: ('0.06651790706829833',)} args : 1349582028 depend.output_id : 0 input_args_next_step : {1349582034: ('0.06651790706829833',), 1349582028: ('0.06651790706829833',), 1349582022: ()} output_args : {1349582034: ('0.06651790706829833',), 1349582028: ('0.06651790706829833',), 1349582022: ('0.06651790706829833',), 1349582016: ('0.06651790706829833',), 1349582012: ('0.06651790706829833',), 1349581986: ('0.06651790706829833',), 1349581979: ('0.06651790706829833',), 1349581969: ('0.06651790706829833',), 1349581964: ('0.06651790706829833',), 1349581960: ('0.06651790706829833',), 1349581955: ('0.06651790706829833',)} args : 1349582022 depend.output_id : 0 input_args_next_step : {1349582034: ('0.06651790706829833',), 1349582028: ('0.06651790706829833',), 1349582022: ('0.06651790706829833',), 1349582016: ()} output_args : {1349582034: ('0.06651790706829833',), 1349582028: ('0.06651790706829833',), 1349582022: ('0.06651790706829833',), 1349582016: ('0.06651790706829833',), 1349582012: ('0.06651790706829833',), 1349581986: ('0.06651790706829833',), 1349581979: ('0.06651790706829833',), 1349581969: ('0.06651790706829833',), 1349581964: ('0.06651790706829833',), 1349581960: ('0.06651790706829833',), 1349581955: ('0.06651790706829833',)} args : 1349582016 depend.output_id : 0 input_args_next_step : {1349582034: ('0.06651790706829833',), 1349582028: ('0.06651790706829833',), 1349582022: ('0.06651790706829833',), 1349582016: ('0.06651790706829833',), 1349582012: ()} output_args : {1349582034: ('0.06651790706829833',), 1349582028: ('0.06651790706829833',), 1349582022: ('0.06651790706829833',), 1349582016: ('0.06651790706829833',), 1349582012: ('0.06651790706829833',), 1349581986: ('0.06651790706829833',), 1349581979: ('0.06651790706829833',), 1349581969: ('0.06651790706829833',), 1349581964: ('0.06651790706829833',), 1349581960: ('0.06651790706829833',), 1349581955: ('0.06651790706829833',)} args : 1349582012 depend.output_id : 0 input_args_next_step : {1349582034: ('0.06651790706829833',), 1349582028: ('0.06651790706829833',), 1349582022: ('0.06651790706829833',), 1349582016: ('0.06651790706829833',), 1349582012: ('0.06651790706829833',), 1349581986: ()} output_args : {1349582034: ('0.06651790706829833',), 1349582028: ('0.06651790706829833',), 1349582022: ('0.06651790706829833',), 1349582016: ('0.06651790706829833',), 1349582012: ('0.06651790706829833',), 1349581986: ('0.06651790706829833',), 1349581979: ('0.06651790706829833',), 1349581969: ('0.06651790706829833',), 1349581964: ('0.06651790706829833',), 1349581960: ('0.06651790706829833',), 1349581955: ('0.06651790706829833',)} args : 1349581986 depend.output_id : 0 input_args_next_step : {1349582034: ('0.06651790706829833',), 1349582028: ('0.06651790706829833',), 1349582022: ('0.06651790706829833',), 1349582016: ('0.06651790706829833',), 1349582012: ('0.06651790706829833',), 1349581986: ('0.06651790706829833',), 1349581979: ()} output_args : {1349582034: ('0.06651790706829833',), 1349582028: ('0.06651790706829833',), 1349582022: ('0.06651790706829833',), 1349582016: ('0.06651790706829833',), 1349582012: ('0.06651790706829833',), 1349581986: ('0.06651790706829833',), 1349581979: ('0.06651790706829833',), 1349581969: ('0.06651790706829833',), 1349581964: ('0.06651790706829833',), 1349581960: ('0.06651790706829833',), 1349581955: ('0.06651790706829833',)} args : 1349581979 depend.output_id : 0 input_args_next_step : {1349582034: ('0.06651790706829833',), 1349582028: ('0.06651790706829833',), 1349582022: ('0.06651790706829833',), 1349582016: ('0.06651790706829833',), 1349582012: ('0.06651790706829833',), 1349581986: ('0.06651790706829833',), 1349581979: ('0.06651790706829833',), 1349581969: ()} output_args : {1349582034: ('0.06651790706829833',), 1349582028: ('0.06651790706829833',), 1349582022: ('0.06651790706829833',), 1349582016: ('0.06651790706829833',), 1349582012: ('0.06651790706829833',), 1349581986: ('0.06651790706829833',), 1349581979: ('0.06651790706829833',), 1349581969: ('0.06651790706829833',), 1349581964: ('0.06651790706829833',), 1349581960: ('0.06651790706829833',), 1349581955: ('0.06651790706829833',)} args : 1349581969 depend.output_id : 0 input_args_next_step : {1349582034: ('0.06651790706829833',), 1349582028: ('0.06651790706829833',), 1349582022: ('0.06651790706829833',), 1349582016: ('0.06651790706829833',), 1349582012: ('0.06651790706829833',), 1349581986: ('0.06651790706829833',), 1349581979: ('0.06651790706829833',), 1349581969: ('0.06651790706829833',), 1349581964: ()} output_args : {1349582034: ('0.06651790706829833',), 1349582028: ('0.06651790706829833',), 1349582022: ('0.06651790706829833',), 1349582016: ('0.06651790706829833',), 1349582012: ('0.06651790706829833',), 1349581986: ('0.06651790706829833',), 1349581979: ('0.06651790706829833',), 1349581969: ('0.06651790706829833',), 1349581964: ('0.06651790706829833',), 1349581960: ('0.06651790706829833',), 1349581955: ('0.06651790706829833',)} args : 1349581964 depend.output_id : 0 input_args_next_step : {1349582034: ('0.06651790706829833',), 1349582028: ('0.06651790706829833',), 1349582022: ('0.06651790706829833',), 1349582016: ('0.06651790706829833',), 1349582012: ('0.06651790706829833',), 1349581986: ('0.06651790706829833',), 1349581979: ('0.06651790706829833',), 1349581969: ('0.06651790706829833',), 1349581964: ('0.06651790706829833',), 1349581960: ()} output_args : {1349582034: ('0.06651790706829833',), 1349582028: ('0.06651790706829833',), 1349582022: ('0.06651790706829833',), 1349582016: ('0.06651790706829833',), 1349582012: ('0.06651790706829833',), 1349581986: ('0.06651790706829833',), 1349581979: ('0.06651790706829833',), 1349581969: ('0.06651790706829833',), 1349581964: ('0.06651790706829833',), 1349581960: ('0.06651790706829833',), 1349581955: ('0.06651790706829833',)} args : 1349581960 depend.output_id : 0 input_args_next_step : {1349582034: ('0.06651790706829833',), 1349582028: ('0.06651790706829833',), 1349582022: ('0.06651790706829833',), 1349582016: ('0.06651790706829833',), 1349582012: ('0.06651790706829833',), 1349581986: ('0.06651790706829833',), 1349581979: ('0.06651790706829833',), 1349581969: ('0.06651790706829833',), 1349581964: ('0.06651790706829833',), 1349581960: ('0.06651790706829833',), 1349581955: ()} output_args : {1349582034: ('0.06651790706829833',), 1349582028: ('0.06651790706829833',), 1349582022: ('0.06651790706829833',), 1349582016: ('0.06651790706829833',), 1349582012: ('0.06651790706829833',), 1349581986: ('0.06651790706829833',), 1349581979: ('0.06651790706829833',), 1349581969: ('0.06651790706829833',), 1349581964: ('0.06651790706829833',), 1349581960: ('0.06651790706829833',), 1349581955: ('0.06651790706829833',)} args : 1349581955 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 : {21984181: [{'Teint_Dans_La_Masse': 21984192, 'kraft': 21984193, 'plastique': 21984194, 'mal_croppe': 21984195, 'cartonnette': 21984196, 'papier': 21984197, 'Carton_brun': 21984198, 'metal': 21984199, 'flou': 21984200, 'Carton_gris': 21984201, 'autre_refus': 21984202, 'environnement': 21984203}]} input_args_next_step : {1349582034: ('0.06651790706829833',), 1349582028: ('0.06651790706829833',), 1349582022: ('0.06651790706829833',), 1349582016: ('0.06651790706829833',), 1349582012: ('0.06651790706829833',), 1349581986: ('0.06651790706829833',), 1349581979: ('0.06651790706829833',), 1349581969: ('0.06651790706829833',), 1349581964: ('0.06651790706829833',), 1349581960: ('0.06651790706829833',), 1349581955: ('0.06651790706829833',), 21984181: ()} output_args : {21984181: [{'Teint_Dans_La_Masse': 21984192, 'kraft': 21984193, 'plastique': 21984194, 'mal_croppe': 21984195, 'cartonnette': 21984196, 'papier': 21984197, 'Carton_brun': 21984198, 'metal': 21984199, 'flou': 21984200, 'Carton_gris': 21984201, 'autre_refus': 21984202, 'environnement': 21984203}]} args : 21984181 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 :12, first value : ('0.06651790706829833',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21984181) 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 (1349582034,1349582028,1349582022,1349582016,1349582012,1349581986,1349581979,1349581969,1349581964,1349581960,1349581955) Found this number of photos: 11 ##### Call download_photos : nb_thread : 5 begin to download photo : 1349581955 begin to download photo : 1349581969 begin to download photo : 1349582012 begin to download photo : 1349582028 download finish for photo 1349581969 begin to download photo : 1349581979 download finish for photo 1349582028 begin to download photo : 1349582034 download finish for photo 1349582012 begin to download photo : 1349582016 download finish for photo 1349581955 begin to download photo : 1349581960 download finish for photo 1349581979 begin to download photo : 1349581986 download finish for photo 1349581960 begin to download photo : 1349581964 download finish for photo 1349582016 begin to download photo : 1349582022 download finish for photo 1349582034 download finish for photo 1349581986 download finish for photo 1349582022 download finish for photo 1349581964 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 11 ; length of list_pids : 11 ; length of list_args : 11 results_Auto_P21984181_02-04-2025_19_38_58.pdf 21984193 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=21984193 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349581554: '1743615213_1321481_1349581200_377540fc07e6f718a616e4fbf1623276_rle_crop_3744574026_0.png', 1349582209: '1743615447_626786_1349581606_91b39d9b41e299b7fa6e32b13ac0b48b_rle_crop_3744578264_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/8666c2c193177f3344b21578b8479a24_20271941.png change filename to text .imagette219841931743615538/ imagette219841931743615538/1743615213_1321481_1349581200_377540fc07e6f718a616e4fbf1623276_rle_crop_3744574026_0.png.png imagette219841931743615538/1743615447_626786_1349581606_91b39d9b41e299b7fa6e32b13ac0b48b_rle_crop_3744578264_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/7f19fed2a7063f3847d0dfd7abb2d8f8_551554.png imagette219841931743615538 21984194 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=21984194 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349581540: '1743615213_1321481_1349581200_377540fc07e6f718a616e4fbf1623276_rle_crop_3744574028_0.png', 1349581836: '1743615233_1321766_1349581100_ec6f1a9df781c1d42c22e55b9f32a927_rle_crop_3744574335_0.png', 1349582203: '1743615447_626786_1349581668_c4e437dc144a4472e527c0d49809aa13_rle_crop_3744578256_0.png', 1349582206: '1743615447_626786_1349581515_1df4cce79e9452c25542674849661c42_rle_crop_3744578284_0.png', 1349582207: '1743615447_626786_1349581426_1127bd9fbb60531849342ffd9200baf4_rle_crop_3744578311_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/5379a684f4a8c22c01864e3ffe55fc05_21303892.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/51b5441ec58c5ef734c5e9b61605fa90_60706513.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/13d84fae6f203b0e8010524d38995045_10445753.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/3b8534aae2e987e8c0512423e77389bb_68723852.png change filename to text .imagette219841941743615538/ imagette219841941743615538/1743615233_1321766_1349581100_ec6f1a9df781c1d42c22e55b9f32a927_rle_crop_3744574335_0.png.png imagette219841941743615538/1743615447_626786_1349581668_c4e437dc144a4472e527c0d49809aa13_rle_crop_3744578256_0.png.png imagette219841941743615538/1743615213_1321481_1349581200_377540fc07e6f718a616e4fbf1623276_rle_crop_3744574028_0.png.png imagette219841941743615538/1743615447_626786_1349581426_1127bd9fbb60531849342ffd9200baf4_rle_crop_3744578311_0.png.png imagette219841941743615538/1743615447_626786_1349581515_1df4cce79e9452c25542674849661c42_rle_crop_3744578284_0.png.png imagette219841951743615538/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/e65b9b0380a7ecf3000dafa32ff54851_17504535.png imagette219841941743615538 21984195 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=21984195 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219841951743615538 21984196 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=21984196 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349581506: '1743615213_1321481_1349581189_9c625dfede861c3bfc03b366e8d75ecb_rle_crop_3744574045_0.png', 1349581939: '1743615310_1322783_1349581252_472cc5abc1292e36490a1ceea72659e2_rle_crop_3744575480_0.png', 1349582193: '1743615447_626786_1349581908_a4efb7b03ec578ae261aee58b9b27c30_rle_crop_3744578232_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/ba6803eeae04601311d06e8814e448b8_77506408.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/acb4e488fc0ee8c261ed5d243799c1ea_83431188.png change filename to text .imagette219841961743615538/ imagette219841961743615538/1743615310_1322783_1349581252_472cc5abc1292e36490a1ceea72659e2_rle_crop_3744575480_0.png.png imagette219841961743615538/1743615447_626786_1349581908_a4efb7b03ec578ae261aee58b9b27c30_rle_crop_3744578232_0.png.png imagette219841961743615538/1743615213_1321481_1349581189_9c625dfede861c3bfc03b366e8d75ecb_rle_crop_3744574045_0.png.png imagette219841991743615538/ imagette219842001743615538/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/dc011abaf1796602db8275cefa6cd79e_50161935.png imagette219841961743615538 21984199 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=21984199 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219841991743615538 21984200 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=21984200 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219842001743615538 21984202 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=21984202 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349581812: '1743615233_1321766_1349581208_39264f3ae4510826fa55c154929e1951_rle_crop_3744574286_0.png', 1349581813: '1743615233_1321766_1349581100_ec6f1a9df781c1d42c22e55b9f32a927_rle_crop_3744574339_0.png', 1349581815: '1743615233_1321766_1349581100_ec6f1a9df781c1d42c22e55b9f32a927_rle_crop_3744574334_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/405af4e1db18728eacf206f18d42e882_36172403.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/0a32fc981f603c56bb33fe5fda4e723f_32002640.png change filename to text .imagette219842021743615538/ imagette219842021743615538/1743615233_1321766_1349581100_ec6f1a9df781c1d42c22e55b9f32a927_rle_crop_3744574339_0.png.png imagette219842021743615538/1743615233_1321766_1349581100_ec6f1a9df781c1d42c22e55b9f32a927_rle_crop_3744574334_0.png.png imagette219842021743615538/1743615233_1321766_1349581208_39264f3ae4510826fa55c154929e1951_rle_crop_3744574286_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/aa22f81c878b4fbfdfe0392c5540f790_8562745.png imagette219842021743615538 21984192 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=21984192 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349581489: '1743615213_1321481_1349581189_9c625dfede861c3bfc03b366e8d75ecb_rle_crop_3744574048_0.png', 1349581805: '1743615233_1321766_1349581100_ec6f1a9df781c1d42c22e55b9f32a927_rle_crop_3744574337_0.png', 1349581806: '1743615233_1321766_1349581090_41ff0fa6e04fd3504c6b987334f369c8_rle_crop_3744574350_0.png', 1349581934: '1743615310_1322783_1349581271_a14a3c864d4e64011089c7157e69d63a_rle_crop_3744575348_0.png', 1349581935: '1743615310_1322783_1349581271_a14a3c864d4e64011089c7157e69d63a_rle_crop_3744575346_0.png', 1349582078: '1743615432_1323806_1349581870_eba7cdf7aae051079868b8b1ac0d7c4e_rle_crop_3744576783_0.png', 1349582130: '1743615447_3534531_1349581720_8fdcc6ac5e34bb89cfa58e9bf99dc0f8_rle_crop_3744578221_0.png', 1349582178: '1743615447_626786_1349581908_a4efb7b03ec578ae261aee58b9b27c30_rle_crop_3744578242_0.png', 1349582179: '1743615447_626786_1349581908_a4efb7b03ec578ae261aee58b9b27c30_rle_crop_3744578237_0.png', 1349582180: '1743615447_626786_1349581668_c4e437dc144a4472e527c0d49809aa13_rle_crop_3744578257_0.png', 1349582181: '1743615447_626786_1349581606_91b39d9b41e299b7fa6e32b13ac0b48b_rle_crop_3744578275_0.png', 1349582182: '1743615447_626786_1349581515_1df4cce79e9452c25542674849661c42_rle_crop_3744578281_0.png', 1349582183: '1743615447_626786_1349581515_1df4cce79e9452c25542674849661c42_rle_crop_3744578287_0.png', 1349582184: '1743615447_626786_1349581462_a11f08a8405fc1bf5878411b9d4f7cd5_rle_crop_3744578297_0.png', 1349582185: '1743615447_626786_1349581426_1127bd9fbb60531849342ffd9200baf4_rle_crop_3744578312_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/13680ca7b9a8b5dee8b73518a709ef96_92664366.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/13bc9f49f19a99a972b9d3acc640df61_43213672.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/4915314109b1151c954fa9627c2f71f0_96789216.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/59b77cdc9bd3a89529607a873c298e3f_73377600.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/dd5ea2c1157ae7559df734b04c01b4fd_76403296.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/a063c08eb521f1b02c631c5ed531a174_92859128.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/69aa548d014765385d5c9bc956bc3e77_78026585.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/7f58d12135ca7ce2db17fbe2eda7ab5d_34183798.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/bb5f9acaf149ae99dd1ae442f55413f9_43917292.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/6398676eb8cf8726501fe940bb151df4_38712770.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/caa7d13d788b514657ee14855c17086c_40032112.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/218f466ac0ed180a23bf89dfb8cb389c_79072766.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/02d0741ac22e06c4690994ffc564a705_18574958.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/b9c5e405916d35ed8465c1aed2a1bd4b_44621664.png change filename to text .imagette219841921743615538/ imagette219841921743615538/1743615447_626786_1349581908_a4efb7b03ec578ae261aee58b9b27c30_rle_crop_3744578237_0.png.png imagette219841921743615538/1743615447_626786_1349581668_c4e437dc144a4472e527c0d49809aa13_rle_crop_3744578257_0.png.png imagette219841921743615538/1743615447_626786_1349581462_a11f08a8405fc1bf5878411b9d4f7cd5_rle_crop_3744578297_0.png.png imagette219841921743615538/1743615233_1321766_1349581090_41ff0fa6e04fd3504c6b987334f369c8_rle_crop_3744574350_0.png.png imagette219841921743615538/1743615447_626786_1349581426_1127bd9fbb60531849342ffd9200baf4_rle_crop_3744578312_0.png.png imagette219841921743615538/1743615447_626786_1349581515_1df4cce79e9452c25542674849661c42_rle_crop_3744578281_0.png.png imagette219841921743615538/1743615447_626786_1349581908_a4efb7b03ec578ae261aee58b9b27c30_rle_crop_3744578242_0.png.png imagette219841921743615538/1743615432_1323806_1349581870_eba7cdf7aae051079868b8b1ac0d7c4e_rle_crop_3744576783_0.png.png imagette219841921743615538/1743615310_1322783_1349581271_a14a3c864d4e64011089c7157e69d63a_rle_crop_3744575346_0.png.png imagette219841921743615538/1743615213_1321481_1349581189_9c625dfede861c3bfc03b366e8d75ecb_rle_crop_3744574048_0.png.png imagette219841921743615538/1743615447_3534531_1349581720_8fdcc6ac5e34bb89cfa58e9bf99dc0f8_rle_crop_3744578221_0.png.png imagette219841921743615538/1743615447_626786_1349581515_1df4cce79e9452c25542674849661c42_rle_crop_3744578287_0.png.png imagette219841921743615538/1743615310_1322783_1349581271_a14a3c864d4e64011089c7157e69d63a_rle_crop_3744575348_0.png.png imagette219841921743615538/1743615233_1321766_1349581100_ec6f1a9df781c1d42c22e55b9f32a927_rle_crop_3744574337_0.png.png imagette219841921743615538/1743615447_626786_1349581606_91b39d9b41e299b7fa6e32b13ac0b48b_rle_crop_3744578275_0.png.png wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/470f92bc1dd8e4d19199ba29a19e4f8f_84874910.png imagette219841921743615538 21984198 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=21984198 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349581520: '1743615213_1321481_1349581189_9c625dfede861c3bfc03b366e8d75ecb_rle_crop_3744574047_0.png', 1349581833: '1743615233_1321766_1349581090_41ff0fa6e04fd3504c6b987334f369c8_rle_crop_3744574353_0.png', 1349581834: '1743615233_1321766_1349581082_5f0135dc23ee9a8d593bbadc8106bde6_rle_crop_3744574791_0.png', 1349581941: '1743615310_1322783_1349581266_577d99a3886fd98074ba78977d0a3b8b_rle_crop_3744575458_0.png', 1349582136: '1743615447_3534531_1349581720_8fdcc6ac5e34bb89cfa58e9bf99dc0f8_rle_crop_3744578226_0.png', 1349582195: '1743615447_626786_1349581668_c4e437dc144a4472e527c0d49809aa13_rle_crop_3744578254_0.png', 1349582198: '1743615447_626786_1349581426_1127bd9fbb60531849342ffd9200baf4_rle_crop_3744578307_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/e42ebe55d3ba87209cffa557c1f03c6c_57725911.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/c6ad5f6b980d272ee2822cd96a0350d2_64897051.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/dc1434094211d9fcc49a92889918b2c9_92225658.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/0654b5d20958948894f8de4701a0e662_61443387.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/c4e57f52020d7d44d67cf6a589bd1171_21549612.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/cf22faed97910d4af2eb82cf31290b03_11108114.png change filename to text .imagette219841981743615539/ imagette219841981743615539/1743615447_3534531_1349581720_8fdcc6ac5e34bb89cfa58e9bf99dc0f8_rle_crop_3744578226_0.png.png imagette219841981743615539/1743615447_626786_1349581426_1127bd9fbb60531849342ffd9200baf4_rle_crop_3744578307_0.png.png imagette219841981743615539/1743615310_1322783_1349581266_577d99a3886fd98074ba78977d0a3b8b_rle_crop_3744575458_0.png.png imagette219841981743615539/1743615233_1321766_1349581082_5f0135dc23ee9a8d593bbadc8106bde6_rle_crop_3744574791_0.png.png imagette219841981743615539/1743615233_1321766_1349581090_41ff0fa6e04fd3504c6b987334f369c8_rle_crop_3744574353_0.png.png imagette219841981743615539/1743615447_626786_1349581668_c4e437dc144a4472e527c0d49809aa13_rle_crop_3744578254_0.png.png imagette219841981743615539/1743615213_1321481_1349581189_9c625dfede861c3bfc03b366e8d75ecb_rle_crop_3744574047_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/c68a98e9250f67717b7c09e698e15114_79798941.png imagette219841981743615539 21984201 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=21984201 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349581830: '1743615233_1321766_1349581105_08c1bc481db7d8996828ca6e71c8548d_rle_crop_3744574309_0.png', 1349581831: '1743615233_1321766_1349581105_08c1bc481db7d8996828ca6e71c8548d_rle_crop_3744574308_0.png', 1349581832: '1743615233_1321766_1349581082_5f0135dc23ee9a8d593bbadc8106bde6_rle_crop_3744574787_0.png', 1349581937: '1743615310_1322783_1349581266_577d99a3886fd98074ba78977d0a3b8b_rle_crop_3744575457_0.png', 1349581938: '1743615310_1322783_1349581252_472cc5abc1292e36490a1ceea72659e2_rle_crop_3744575479_0.png', 1349582188: '1743615447_626786_1349581668_c4e437dc144a4472e527c0d49809aa13_rle_crop_3744578249_0.png', 1349582189: '1743615447_626786_1349581668_c4e437dc144a4472e527c0d49809aa13_rle_crop_3744578250_0.png', 1349582191: '1743615447_626786_1349581606_91b39d9b41e299b7fa6e32b13ac0b48b_rle_crop_3744578269_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/f7196665f98a481dfe9f90e2bf845f9c_10948461.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/b12e1f21024c7d13a2c222c34e1a3041_71328899.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/7a25682938dfe77dc61d5c2ba7a1a2ad_21170063.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/730a8237ad85194903d6a81444b4494d_68698481.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/535952c44347072ee612d6dafdc664b0_55601859.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/871aac7c6476442f495afce6a26c2d33_87074376.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/d7d17e52bae5c5947e98ce5a6f42683e_61357477.png change filename to text .imagette219842011743615540/ imagette219842011743615540/1743615310_1322783_1349581266_577d99a3886fd98074ba78977d0a3b8b_rle_crop_3744575457_0.png.png imagette219842011743615540/1743615447_626786_1349581668_c4e437dc144a4472e527c0d49809aa13_rle_crop_3744578250_0.png.png imagette219842011743615540/1743615233_1321766_1349581105_08c1bc481db7d8996828ca6e71c8548d_rle_crop_3744574308_0.png.png imagette219842011743615540/1743615233_1321766_1349581105_08c1bc481db7d8996828ca6e71c8548d_rle_crop_3744574309_0.png.png imagette219842011743615540/1743615233_1321766_1349581082_5f0135dc23ee9a8d593bbadc8106bde6_rle_crop_3744574787_0.png.png imagette219842011743615540/1743615447_626786_1349581606_91b39d9b41e299b7fa6e32b13ac0b48b_rle_crop_3744578269_0.png.png imagette219842011743615540/1743615310_1322783_1349581252_472cc5abc1292e36490a1ceea72659e2_rle_crop_3744575479_0.png.png imagette219842011743615540/1743615447_626786_1349581668_c4e437dc144a4472e527c0d49809aa13_rle_crop_3744578249_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/b93e50e811814d25720baad50c085d09_83739879.png imagette219842011743615540 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21984181 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21984204,21984205,21984206,21984207,21984208,21984209,21984210,21984211,21984212,21984213,21984214,21984215?tags=Teint_Dans_La_Masse,kraft,plastique,mal_croppe,cartonnette,papier,Carton_brun,metal,flou,Carton_gris,autre_refus,environnement your option no_mail is active, we will not send the real mail to your client args[1349582034] : ('0.06651790706829833',) no score found for photo 1349582034 We are sending mail with results at report@fotonower.com args[1349582028] : ('0.06651790706829833',) no score found for photo 1349582028 We are sending mail with results at report@fotonower.com args[1349582022] : ('0.06651790706829833',) no score found for photo 1349582022 We are sending mail with results at report@fotonower.com args[1349582016] : ('0.06651790706829833',) no score found for photo 1349582016 We are sending mail with results at report@fotonower.com args[1349582012] : ('0.06651790706829833',) no score found for photo 1349582012 We are sending mail with results at report@fotonower.com args[1349581986] : ('0.06651790706829833',) no score found for photo 1349581986 We are sending mail with results at report@fotonower.com args[1349581979] : ('0.06651790706829833',) no score found for photo 1349581979 We are sending mail with results at report@fotonower.com args[1349581969] : ('0.06651790706829833',) no score found for photo 1349581969 We are sending mail with results at report@fotonower.com args[1349581964] : ('0.06651790706829833',) no score found for photo 1349581964 We are sending mail with results at report@fotonower.com args[1349581960] : ('0.06651790706829833',) no score found for photo 1349581960 We are sending mail with results at report@fotonower.com args[1349581955] : ('0.06651790706829833',) no score found for photo 1349581955 We are sending mail with results at report@fotonower.com refus_total : 0.06651790706829833 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=21984181 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_P21984181_02-04-2025_19_38_58.pdf results_Auto_P21984181_02-04-2025_19_38_58.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21984181_02-04-2025_19_38_58.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','21984181','results_Auto_P21984181_02-04-2025_19_38_58.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21984181_02-04-2025_19_38_58.pdf','pdf','','0.23','0.06651790706829833') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21984181]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1349582034, 1349582028, 1349582022, 1349582016, 1349582012, 1349581986, 1349581979, 1349581969, 1349581964, 1349581960, 1349581955] map_info['map_portfolio_photo'] : {21984181: [1349582034, 1349582028, 1349582022, 1349582016, 1349582012, 1349581986, 1349581979, 1349581969, 1349581964, 1349581960, 1349581955, 1349581908, 1349581902, 1349581888, 1349581870, 1349581720, 1349581668, 1349581606, 1349581515, 1349581462, 1349581426, 1349581321, 1349581275, 1349581271, 1349581266, 1349581252, 1349581244, 1349581208, 1349581200, 1349581189, 1349581175, 1349581105, 1349581100, 1349581090, 1349581082, 1349581078]} final : False mtd_id 4302 list_pids : [1349582034, 1349582028, 1349582022, 1349582016, 1349582012, 1349581986, 1349581979, 1349581969, 1349581964, 1349581960, 1349581955] 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, '2717323') ('4302', '21984181', '1349582034', None, None, None, None, None, '2717323') ('4302', None, None, None, None, None, None, None, '2717323') ('4302', '21984181', '1349582028', None, None, None, None, None, '2717323') ('4302', None, None, None, None, None, None, None, '2717323') ('4302', '21984181', '1349582022', None, None, None, None, None, '2717323') ('4302', None, None, None, None, None, None, None, '2717323') ('4302', '21984181', '1349582016', None, None, None, None, None, '2717323') ('4302', None, None, None, None, None, None, None, '2717323') ('4302', '21984181', '1349582012', None, None, None, None, None, '2717323') ('4302', None, None, None, None, None, None, None, '2717323') ('4302', '21984181', '1349581986', None, None, None, None, None, '2717323') ('4302', None, None, None, None, None, None, None, '2717323') ('4302', '21984181', '1349581979', None, None, None, None, None, '2717323') ('4302', None, None, None, None, None, None, None, '2717323') ('4302', '21984181', '1349581969', None, None, None, None, None, '2717323') ('4302', None, None, None, None, None, None, None, '2717323') ('4302', '21984181', '1349581964', None, None, None, None, None, '2717323') ('4302', None, None, None, None, None, None, None, '2717323') ('4302', '21984181', '1349581960', None, None, None, None, None, '2717323') ('4302', None, None, None, None, None, None, None, '2717323') ('4302', '21984181', '1349581955', None, None, None, None, None, '2717323') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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', '21984181', '1349582034', None, None, None, None, None, '2717323'), ('4302', '21984181', '1349582028', None, None, None, None, None, '2717323'), ('4302', '21984181', '1349582022', None, None, None, None, None, '2717323'), ('4302', '21984181', '1349582016', None, None, None, None, None, '2717323'), ('4302', '21984181', '1349582012', None, None, None, None, None, '2717323'), ('4302', '21984181', '1349581986', None, None, None, None, None, '2717323'), ('4302', '21984181', '1349581979', None, None, None, None, None, '2717323'), ('4302', '21984181', '1349581969', None, None, None, None, None, '2717323'), ('4302', '21984181', '1349581964', None, None, None, None, None, '2717323'), ('4302', '21984181', '1349581960', None, None, None, None, None, '2717323'), ('4302', '21984181', '1349581955', None, None, None, None, None, '2717323')] time used for this insertion : 0.012830257415771484 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.0638039112091064 time spend to save output : 0.013046979904174805 total time spend for step 4 : 5.076850891113281 step5:split_time_score Wed Apr 2 19:39:02 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['21984181'] 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 : [('21984181',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21984181) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1349582028: {'path': 'temp/1743615537_3078359_1349582028_7f1338ea4402d6636239e0cb26bc9b1f.jpg', 'extension': 'jpg'}, 1349582034: {'path': 'temp/1743615537_3078359_1349582034_93479b412d96dfdd338eb89708578b2b.jpg', 'extension': 'jpg'}, 1349581969: {'path': 'temp/1743615537_3078359_1349581969_3cd0674a0c47d8e34aa6003d98cec7c0.jpg', 'extension': 'jpg'}, 1349581979: {'path': 'temp/1743615537_3078359_1349581979_1eca4f3fd40fd4a7342a3d0d786631dc.jpg', 'extension': 'jpg'}, 1349581986: {'path': 'temp/1743615537_3078359_1349581986_22601f980705777a5f5e4944c7189a8b.jpg', 'extension': 'jpg'}, 1349582012: {'path': 'temp/1743615537_3078359_1349582012_1e5489a922e5127d8533346df1e66688.jpg', 'extension': 'jpg'}, 1349582016: {'path': 'temp/1743615537_3078359_1349582016_1c1b31874eb7184556953d410ca0deb2.jpg', 'extension': 'jpg'}, 1349582022: {'path': 'temp/1743615537_3078359_1349582022_9413905d44d1e26ecf9b041dc76d7487.jpg', 'extension': 'jpg'}, 1349581955: {'path': 'temp/1743615537_3078359_1349581955_01403d2868442e75f2bf9b87006fe00d.jpg', 'extension': 'jpg'}, 1349581960: {'path': 'temp/1743615537_3078359_1349581960_97032e6a03b9b340e29eac63f361db98.jpg', 'extension': 'jpg'}, 1349581964: {'path': 'temp/1743615537_3078359_1349581964_76fb7b30012f74aca22e2159d62d09be.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 = 21984181; (('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 = 21984181 group by h (('19', 36),) 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=21984181 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 (21984181) 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 (21984181) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 02042025 21984181 Nombre de photos uploadées : 36 / 23040 (0%) 02042025 21984181 Nombre de photos taguées (types de déchets): 0 / 36 (0%) 02042025 21984181 Nombre de photos taguées (volume) : 0 / 36 (0%) [{'photo_id': 1349581105, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/08c1bc481db7d8996828ca6e71c8548d.jpg', 'username': None, 'uploaded_at': 1743615068, 'text': 'image_02042025_19_30_05_010153m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1349581100, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/ec6f1a9df781c1d42c22e55b9f32a927.jpg', 'username': None, 'uploaded_at': 1743615068, 'text': 'image_02042025_19_30_15_010134m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1349581090, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/41ff0fa6e04fd3504c6b987334f369c8.jpg', 'username': None, 'uploaded_at': 1743615068, 'text': 'image_02042025_19_30_24_009124m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1349581082, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/5f0135dc23ee9a8d593bbadc8106bde6.jpg', 'username': None, 'uploaded_at': 1743615068, 'text': 'image_02042025_19_30_34_010133m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.1920928955078125e-06 elapsed_time : order_list_meta_photo_and_scores 5.245208740234375e-06 ???????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0016751289367675781 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21984181, '2025-04-02' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1709477,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.023308277130126953 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= 1709477 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1709477, 'dashboard_run_id': 1718760, 'mtr_portfolio_id': 21982272, 'dashboard_result_id': 9815181, '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_P21982272_02-04-2025_19_03_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21982276, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21982277, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21982278, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21982279, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21982280, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21982281, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21982282, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21982283, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21982284, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21982285, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21982286, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21982287, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1718760, 'mtr_portfolio_id': 21983045, 'dashboard_result_id': 9815182, '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_P21983045_02-04-2025_19_16_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21983049, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21983050, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21983051, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21983052, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21983053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21983054, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21983055, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21983056, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21983057, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21983058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21983059, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21983060, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1718760, 'mtr_portfolio_id': 21983779, 'dashboard_result_id': 9815183, '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_P21983779_02-04-2025_19_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21983782, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21983783, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21983784, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21983785, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21983786, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21983787, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21983788, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21983789, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21983790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21983791, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21983792, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21983793, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1718760, 'mtr_portfolio_id': 21984181, 'dashboard_result_id': 9815184, '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_P21984181_02-04-2025_19_36_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21984192, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21984193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21984194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21984195, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21984196, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21984197, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21984198, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21984199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21984200, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21984201, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21984202, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21984203, '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 = 21982272 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': 2717173, 'mtr_portfolio_id': 21982272, 'created_at': datetime.datetime(2025, 4, 2, 19, 3), 'result': '0.03891199199274584', 'result_long': None, 'result_double': None}] Qualite : 0.03891199199274584 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21982272 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21982272_02-04-2025_19_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21982272 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_P21982272_02-04-2025_19_03_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21982276, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21982277, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21982278, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21982279, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21982280, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21982281, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21982282, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21982283, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21982284, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21982285, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21982286, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21982287, 'pht': 3726}}" where mtr_portfolio_id = 21982272 and dashboard_run_id = 1718760 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`=21982272 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9815181, 0.03891199199274584, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21982272_02-04-2025_19_03_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21982276, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21982277, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21982278, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21982279, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21982280, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21982281, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21982282, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21982283, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21982284, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21982285, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21982286, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21982287, '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 = 21983045 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': 2717236, 'mtr_portfolio_id': 21983045, 'created_at': datetime.datetime(2025, 4, 2, 19, 16, 57), 'result': '0.04554435823533873', 'result_long': None, 'result_double': None}] Qualite : 0.04554435823533873 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21983045 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21983045_02-04-2025_19_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21983045 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_P21983045_02-04-2025_19_16_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21983049, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21983050, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21983051, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21983052, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21983053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21983054, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21983055, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21983056, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21983057, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21983058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21983059, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21983060, 'pht': 3726}}" where mtr_portfolio_id = 21983045 and dashboard_run_id = 1718760 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`=21983045 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9815182, 0.04554435823533873, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21983045_02-04-2025_19_16_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21983049, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21983050, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21983051, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21983052, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21983053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21983054, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21983055, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21983056, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21983057, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21983058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21983059, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21983060, '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 = 21983779 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': 2717284, 'mtr_portfolio_id': 21983779, 'created_at': datetime.datetime(2025, 4, 2, 19, 32, 59), 'result': '0.0673209137893428', 'result_long': None, 'result_double': None}] Qualite : 0.0673209137893428 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21983779 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21983779_02-04-2025_19_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21983779 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_P21983779_02-04-2025_19_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21983782, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21983783, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21983784, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21983785, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21983786, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21983787, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21983788, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21983789, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21983790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21983791, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21983792, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21983793, 'pht': 3726}}" where mtr_portfolio_id = 21983779 and dashboard_run_id = 1718760 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`=21983779 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9815183, 0.0673209137893428, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21983779_02-04-2025_19_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21983782, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21983783, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21983784, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21983785, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21983786, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21983787, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21983788, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21983789, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21983790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21983791, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21983792, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21983793, '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 = 21984181 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': 2717323, 'mtr_portfolio_id': 21984181, 'created_at': datetime.datetime(2025, 4, 2, 19, 38, 57), 'result': '0.06651790706829833', 'result_long': None, 'result_double': None}] Qualite : 0.06651790706829833 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21984181 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21984181_02-04-2025_19_38_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21984181 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_P21984181_02-04-2025_19_38_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21984192, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21984193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21984194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21984195, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21984196, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21984197, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21984198, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21984199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21984200, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21984201, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21984202, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21984203, 'pht': 3726}}" where mtr_portfolio_id = 21984181 and dashboard_run_id = 1718760 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`=21984181 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9815184, 0.06651790706829833, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21984181_02-04-2025_19_38_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21984192, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21984193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21984194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21984195, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21984196, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21984197, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21984198, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21984199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21984200, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21984201, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21984202, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21984203, '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 (21982272,21983045,21983779,21984181) result : ((1349570957,), (1349570962,), (1349570967,), (1349570972,), (1349570981,), (1349571039,), (1349571048,), (1349571080,), (1349571190,), (1349571194,), (1349571207,), (1349571374,), (1349571382,), (1349571385,), (1349571395,), (1349571450,), (1349571505,), (1349571689,), (1349571717,), (1349571767,), (1349571822,), (1349571869,), (1349571918,), (1349571992,), (1349571996,), (1349572060,), (1349572063,), (1349572065,), (1349572067,), (1349572070,), (1349572072,), (1349572102,), (1349572105,), (1349572110,), (1349572113,), (1349572132,), (1349572185,), (1349572338,), (1349572365,), (1349572399,), (1349572424,), (1349572453,), (1349572716,), (1349572749,), (1349572788,), (1349572840,), (1349573439,), (1349573454,), (1349573516,), (1349573589,), (1349573630,), (1349573633,), (1349573779,), (1349573782,), (1349573794,), (1349573808,), (1349574794,), (1349574834,), (1349574874,), (1349574931,), (1349574968,), (1349575030,), (1349575266,), (1349575174,), (1349575179,), (1349575202,), (1349575235,), (1349575730,), (1349575795,), (1349575870,), (1349575964,), (1349576029,), (1349576506,), (1349576558,), (1349576638,), (1349576701,), (1349576778,), (1349577201,), (1349577256,), (1349577283,), (1349577529,), (1349577611,), (1349577636,), (1349577660,), (1349577688,), (1349577894,), (1349577925,), (1349577959,), (1349578023,), (1349578074,), (1349578100,), (1349578337,), (1349578364,), (1349578384,), (1349578399,), (1349578403,), (1349578486,), (1349578489,), (1349578492,), (1349578496,), (1349578639,), (1349578642,), (1349578646,), (1349578650,), (1349578654,), (1349578707,), (1349578752,), (1349578769,), (1349578776,), (1349578780,), (1349578849,), (1349578852,), (1349578856,), (1349578859,), (1349578896,), (1349578902,), (1349578910,), (1349578916,), (1349578919,), (1349578957,), (1349578961,), (1349578999,), (1349579002,), (1349579499,), (1349579622,), (1349579626,), (1349579630,), (1349579636,), (1349579705,), (1349579725,), (1349579731,), (1349579885,), (1349579892,), (1349579898,), (1349579903,), (1349579910,), (1349579915,), (1349579942,), (1349579947,), (1349579954,), (1349580046,), (1349580065,), (1349580079,), (1349580083,), (1349580140,), (1349580144,), (1349580151,), (1349580183,), (1349580187,), (1349580192,), (1349580229,), (1349580265,), (1349580348,), (1349580434,), (1349580484,), (1349580580,), (1349580583,), (1349580626,), (1349580652,), (1349580690,), (1349580768,), (1349580772,), (1349580836,), (1349580839,), (1349580844,), (1349580847,), (1349580892,), (1349580901,), (1349580906,), (1349580911,), (1349580916,), (1349580942,), (1349580946,), (1349580951,), (1349580998,), (1349581001,), (1349581004,), (1349581007,), (1349581011,), (1349581135,), (1349581078,), (1349581082,), (1349581090,), (1349581100,), (1349581105,), (1349581175,), (1349581189,), (1349581200,), (1349581208,), (1349581244,), (1349581252,), (1349581266,), (1349581271,), (1349581275,), (1349581321,), (1349581426,), (1349581462,), (1349581515,), (1349581606,), (1349581668,), (1349581720,), (1349581870,), (1349581888,), (1349581902,), (1349581908,), (1349581955,), (1349581960,), (1349581964,), (1349581969,), (1349581979,), (1349581986,), (1349582012,), (1349582016,), (1349582022,), (1349582028,), (1349582034,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'02042025': {'nb_upload': 36, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21984181]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1349582034, 1349582028, 1349582022, 1349582016, 1349582012, 1349581986, 1349581979, 1349581969, 1349581964, 1349581960, 1349581955] map_info['map_portfolio_photo'] : {21984181: [1349582034, 1349582028, 1349582022, 1349582016, 1349582012, 1349581986, 1349581979, 1349581969, 1349581964, 1349581960, 1349581955, 1349581908, 1349581902, 1349581888, 1349581870, 1349581720, 1349581668, 1349581606, 1349581515, 1349581462, 1349581426, 1349581321, 1349581275, 1349581271, 1349581266, 1349581252, 1349581244, 1349581208, 1349581200, 1349581189, 1349581175, 1349581105, 1349581100, 1349581090, 1349581082, 1349581078]} final : True mtd_id 4302 list_pids : [1349582034, 1349582028, 1349582022, 1349582016, 1349582012, 1349581986, 1349581979, 1349581969, 1349581964, 1349581960, 1349581955] Looping around the photos to save general results len do output : 1 /21984181Didn'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, '2717323') ('4302', '21984181', '1349582034', None, None, None, None, None, '2717323') ('4302', None, None, None, None, None, None, None, '2717323') ('4302', '21984181', '1349582028', None, None, None, None, None, '2717323') ('4302', None, None, None, None, None, None, None, '2717323') ('4302', '21984181', '1349582022', None, None, None, None, None, '2717323') ('4302', None, None, None, None, None, None, None, '2717323') ('4302', '21984181', '1349582016', None, None, None, None, None, '2717323') ('4302', None, None, None, None, None, None, None, '2717323') ('4302', '21984181', '1349582012', None, None, None, None, None, '2717323') ('4302', None, None, None, None, None, None, None, '2717323') ('4302', '21984181', '1349581986', None, None, None, None, None, '2717323') ('4302', None, None, None, None, None, None, None, '2717323') ('4302', '21984181', '1349581979', None, None, None, None, None, '2717323') ('4302', None, None, None, None, None, None, None, '2717323') ('4302', '21984181', '1349581969', None, None, None, None, None, '2717323') ('4302', None, None, None, None, None, None, None, '2717323') ('4302', '21984181', '1349581964', None, None, None, None, None, '2717323') ('4302', None, None, None, None, None, None, None, '2717323') ('4302', '21984181', '1349581960', None, None, None, None, None, '2717323') ('4302', None, None, None, None, None, None, None, '2717323') ('4302', '21984181', '1349581955', None, None, None, None, None, '2717323') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21984181', 'None', None, None, None, None, '2717323'), ('4302', '21984181', '1349582034', None, None, None, None, None, '2717323'), ('4302', '21984181', '1349582028', None, None, None, None, None, '2717323'), ('4302', '21984181', '1349582022', None, None, None, None, None, '2717323'), ('4302', '21984181', '1349582016', None, None, None, None, None, '2717323'), ('4302', '21984181', '1349582012', None, None, None, None, None, '2717323'), ('4302', '21984181', '1349581986', None, None, None, None, None, '2717323'), ('4302', '21984181', '1349581979', None, None, None, None, None, '2717323'), ('4302', '21984181', '1349581969', None, None, None, None, None, '2717323'), ('4302', '21984181', '1349581964', None, None, None, None, None, '2717323'), ('4302', '21984181', '1349581960', None, None, None, None, None, '2717323'), ('4302', '21984181', '1349581955', None, None, None, None, None, '2717323')] time used for this insertion : 0.013661623001098633 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.40706372261047363 time spend to save output : 0.013912439346313477 total time spend for step 5 : 0.4209761619567871 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 (2717323) 2.13user 2.32system 0:08.67elapsed 51%CPU (0avgtext+0avgdata 159660maxresident)k 320inputs+12048outputs (0major+64055minor)pagefaults 0swaps