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 : 1144232 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 (2680199) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2680199) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21591264 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2680199'] with mtr_portfolio_ids : ['21591264'] and first list_photo_ids : [] new path : /proc/1144232/ Name: python3 Umask: 0002 State: R (running) Tgid: 1144232 Ngid: 0 Pid: 1144232 PPid: 1144231 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1144232 NSpid: 1144232 NSpgid: 1141400 NSsid: 1141400 VmPeak: 1106936 kB VmSize: 1106936 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99044 kB VmRSS: 99044 kB RssAnon: 59768 kB RssFile: 39276 kB RssShmem: 0 kB VmData: 865684 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 592 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: 78 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1144232', 'Ngid': '0', 'Pid': '1144232', 'PPid': '1144231', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1144232', 'NSpid': '1144232', 'NSpgid': '1141400', 'NSsid': '1141400', 'VmPeak': '1106936 kB', 'VmSize': '1106936 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99044 kB', 'VmRSS': '99044 kB', 'RssAnon': '59768 kB', 'RssFile': '39276 kB', 'RssShmem': '0 kB', 'VmData': '865684 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '592 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': '78'} ('datou_batch_current', '1144232', '1106936', '0', '1106936', '865684', '99044', b'', 'marlene', '2680199') 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 (21591264) 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 (2680199 ) ) 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 (21591264) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1346156888, 'portfolio_id': 21591264}, {'photo_id': 1346156843, 'portfolio_id': 21591264}, {'photo_id': 1346156786, 'portfolio_id': 21591264}, {'photo_id': 1346156717, 'portfolio_id': 21591264}, {'photo_id': 1346156600, 'portfolio_id': 21591264}, {'photo_id': 1346156597, 'portfolio_id': 21591264}, {'photo_id': 1346156563, 'portfolio_id': 21591264}, {'photo_id': 1346156546, 'portfolio_id': 21591264}, {'photo_id': 1346156512, 'portfolio_id': 21591264}, {'photo_id': 1346156510, 'portfolio_id': 21591264}, {'photo_id': 1346156484, 'portfolio_id': 21591264}, {'photo_id': 1346156480, 'portfolio_id': 21591264}, {'photo_id': 1346156458, 'portfolio_id': 21591264}, {'photo_id': 1346156450, 'portfolio_id': 21591264}, {'photo_id': 1346156428, 'portfolio_id': 21591264}, {'photo_id': 1346156427, 'portfolio_id': 21591264}, {'photo_id': 1346156231, 'portfolio_id': 21591264}, {'photo_id': 1346156226, 'portfolio_id': 21591264}, {'photo_id': 1346156210, 'portfolio_id': 21591264}, {'photo_id': 1346155983, 'portfolio_id': 21591264}, {'photo_id': 1346155975, 'portfolio_id': 21591264}, {'photo_id': 1346155967, 'portfolio_id': 21591264}, {'photo_id': 1346155942, 'portfolio_id': 21591264}, {'photo_id': 1346155931, 'portfolio_id': 21591264}, {'photo_id': 1346155923, 'portfolio_id': 21591264}, {'photo_id': 1346155863, 'portfolio_id': 21591264}, {'photo_id': 1346155859, 'portfolio_id': 21591264}, {'photo_id': 1346155854, 'portfolio_id': 21591264}, {'photo_id': 1346155850, 'portfolio_id': 21591264}, {'photo_id': 1346155845, 'portfolio_id': 21591264}, {'photo_id': 1346155706, 'portfolio_id': 21591264}, {'photo_id': 1346155698, 'portfolio_id': 21591264}, {'photo_id': 1346155693, 'portfolio_id': 21591264}, {'photo_id': 1346155688, 'portfolio_id': 21591264}, {'photo_id': 1346155682, 'portfolio_id': 21591264}, {'photo_id': 1346155673, 'portfolio_id': 21591264}, {'photo_id': 1346155663, 'portfolio_id': 21591264}, {'photo_id': 1346155657, 'portfolio_id': 21591264}, {'photo_id': 1346155645, 'portfolio_id': 21591264}, {'photo_id': 1346155632, 'portfolio_id': 21591264}, {'photo_id': 1346155626, 'portfolio_id': 21591264}, {'photo_id': 1346155532, 'portfolio_id': 21591264}, {'photo_id': 1346155501, 'portfolio_id': 21591264}, {'photo_id': 1346155476, 'portfolio_id': 21591264}] map_portfolio_id_photo_id: {21591264: [1346156888, 1346156843, 1346156786, 1346156717, 1346156600, 1346156597, 1346156563, 1346156546, 1346156512, 1346156510, 1346156484, 1346156480, 1346156458, 1346156450, 1346156428, 1346156427, 1346156231, 1346156226, 1346156210, 1346155983, 1346155975, 1346155967, 1346155942, 1346155931, 1346155923, 1346155863, 1346155859, 1346155854, 1346155850, 1346155845, 1346155706, 1346155698, 1346155693, 1346155688, 1346155682, 1346155673, 1346155663, 1346155657, 1346155645, 1346155632, 1346155626, 1346155532, 1346155501, 1346155476]} ##### 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.015392303466796875 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Fri Mar 21 19:39:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21591264) 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 : 21591264 get user id for portfolio 21591264 get sub ptf for main ptf 21591264, type 3726 and hashtags ['Carton_gris', 'metal', 'flou', 'autre_refus', 'mal_croppe', 'cartonnette', 'kraft', 'plastique', 'environnement', 'Carton_brun', 'papier', 'Teint_Dans_La_Masse'] 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`=21591264 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','metal','flou','autre_refus','mal_croppe','cartonnette','kraft','plastique','environnement','Carton_brun','papier','Teint_Dans_La_Masse')) 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`=21591264 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','metal','flou','autre_refus','mal_croppe','cartonnette','kraft','plastique','environnement','Carton_brun','papier','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 21591264, 'sub_port_id': 21591329, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14135092, 'last_updated_at': datetime.datetime(2025, 3, 21, 19, 37, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 19, 37, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 19, 35, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 21591264, 'sub_port_id': 21591330, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14135093, 'last_updated_at': datetime.datetime(2025, 3, 21, 19, 37, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 19, 37, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 19, 35, 30)}, 'cartonnette': {'main_port_id': 21591264, 'sub_port_id': 21591331, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14135094, 'last_updated_at': datetime.datetime(2025, 3, 21, 19, 37, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 19, 37, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 19, 35, 30)}, 'Carton_brun': {'main_port_id': 21591264, 'sub_port_id': 21591332, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14135095, 'last_updated_at': datetime.datetime(2025, 3, 21, 19, 37, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 19, 37, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 19, 35, 30)}, 'plastique': {'main_port_id': 21591264, 'sub_port_id': 21591333, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14135096, 'last_updated_at': datetime.datetime(2025, 3, 21, 19, 37, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 19, 37, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 19, 35, 30)}, 'papier': {'main_port_id': 21591264, 'sub_port_id': 21591334, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14135097, 'last_updated_at': datetime.datetime(2025, 3, 21, 19, 37, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 19, 37, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 19, 35, 30)}, 'environnement': {'main_port_id': 21591264, 'sub_port_id': 21591335, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14135098, 'last_updated_at': datetime.datetime(2025, 3, 21, 19, 37, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 19, 37, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 19, 35, 30)}, 'mal_croppe': {'main_port_id': 21591264, 'sub_port_id': 21591336, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14135099, 'last_updated_at': datetime.datetime(2025, 3, 21, 19, 37, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 19, 37, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 19, 35, 30)}, 'metal': {'main_port_id': 21591264, 'sub_port_id': 21591337, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14135100, 'last_updated_at': datetime.datetime(2025, 3, 21, 19, 37, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 19, 37, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 19, 35, 30)}, 'autre_refus': {'main_port_id': 21591264, 'sub_port_id': 21591338, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14135101, 'last_updated_at': datetime.datetime(2025, 3, 21, 19, 37, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 19, 37, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 19, 35, 30)}, 'kraft': {'main_port_id': 21591264, 'sub_port_id': 21591339, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14135102, 'last_updated_at': datetime.datetime(2025, 3, 21, 19, 37, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 19, 37, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 19, 35, 30)}, 'Carton_gris': {'main_port_id': 21591264, 'sub_port_id': 21591340, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14135103, 'last_updated_at': datetime.datetime(2025, 3, 21, 19, 37, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 19, 37, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 19, 35, 30)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21591329 , 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=21591264 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 (21591329) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21591264) result : ((1346155476,), (1346155501,), (1346155532,), (1346155626,), (1346155632,), (1346155645,), (1346155657,), (1346155663,), (1346155673,), (1346155682,), (1346155688,), (1346155693,), (1346155698,), (1346155706,), (1346155845,), (1346155850,), (1346155854,), (1346155859,), (1346155863,), (1346155923,), (1346155931,), (1346155942,), (1346155967,), (1346155975,), (1346155983,), (1346156210,), (1346156226,), (1346156231,), (1346156427,), (1346156428,), (1346156450,), (1346156458,), (1346156480,), (1346156484,), (1346156510,), (1346156512,), (1346156546,), (1346156563,), (1346156597,), (1346156600,), (1346156717,), (1346156786,), (1346156843,), (1346156888,)) 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 (1346156600) 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 21591330 , 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=21591264 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 (21591330) result : ((1346155802,), (1346156380,), (1346156957,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21591264) result : ((1346155476,), (1346155501,), (1346155532,), (1346155626,), (1346155632,), (1346155645,), (1346155657,), (1346155663,), (1346155673,), (1346155682,), (1346155688,), (1346155693,), (1346155698,), (1346155706,), (1346155845,), (1346155850,), (1346155854,), (1346155859,), (1346155863,), (1346155923,), (1346155931,), (1346155942,), (1346155967,), (1346155975,), (1346155983,), (1346156210,), (1346156226,), (1346156231,), (1346156427,), (1346156428,), (1346156450,), (1346156458,), (1346156480,), (1346156484,), (1346156510,), (1346156512,), (1346156546,), (1346156563,), (1346156597,), (1346156600,), (1346156717,), (1346156786,), (1346156843,), (1346156888,)) 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 (1346156600) 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 21591331 , 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=21591264 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 (21591331) result : ((1346155808,), (1346156208,), (1346156209,), (1346156246,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21591264) result : ((1346155476,), (1346155501,), (1346155532,), (1346155626,), (1346155632,), (1346155645,), (1346155657,), (1346155663,), (1346155673,), (1346155682,), (1346155688,), (1346155693,), (1346155698,), (1346155706,), (1346155845,), (1346155850,), (1346155854,), (1346155859,), (1346155863,), (1346155923,), (1346155931,), (1346155942,), (1346155967,), (1346155975,), (1346155983,), (1346156210,), (1346156226,), (1346156231,), (1346156427,), (1346156428,), (1346156450,), (1346156458,), (1346156480,), (1346156484,), (1346156510,), (1346156512,), (1346156546,), (1346156563,), (1346156597,), (1346156600,), (1346156717,), (1346156786,), (1346156843,), (1346156888,)) 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 (1346156600) 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 21591332 , 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=21591264 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 (21591332) result : ((1346155809,), (1346156213,), (1346156247,), (1346156440,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21591264) result : ((1346155476,), (1346155501,), (1346155532,), (1346155626,), (1346155632,), (1346155645,), (1346155657,), (1346155663,), (1346155673,), (1346155682,), (1346155688,), (1346155693,), (1346155698,), (1346155706,), (1346155845,), (1346155850,), (1346155854,), (1346155859,), (1346155863,), (1346155923,), (1346155931,), (1346155942,), (1346155967,), (1346155975,), (1346155983,), (1346156210,), (1346156226,), (1346156231,), (1346156427,), (1346156428,), (1346156450,), (1346156458,), (1346156480,), (1346156484,), (1346156510,), (1346156512,), (1346156546,), (1346156563,), (1346156597,), (1346156600,), (1346156717,), (1346156786,), (1346156843,), (1346156888,)) 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 (1346156600) 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 21591333 , 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=21591264 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 (21591333) result : ((1346156214,), (1346156215,), (1346156216,), (1346156446,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21591264) result : ((1346155476,), (1346155501,), (1346155532,), (1346155626,), (1346155632,), (1346155645,), (1346155657,), (1346155663,), (1346155673,), (1346155682,), (1346155688,), (1346155693,), (1346155698,), (1346155706,), (1346155845,), (1346155850,), (1346155854,), (1346155859,), (1346155863,), (1346155923,), (1346155931,), (1346155942,), (1346155967,), (1346155975,), (1346155983,), (1346156210,), (1346156226,), (1346156231,), (1346156427,), (1346156428,), (1346156450,), (1346156458,), (1346156480,), (1346156484,), (1346156510,), (1346156512,), (1346156546,), (1346156563,), (1346156597,), (1346156600,), (1346156717,), (1346156786,), (1346156843,), (1346156888,)) 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 (1346156600) 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 21591334 , 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=21591264 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 (21591334) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21591264) result : ((1346155476,), (1346155501,), (1346155532,), (1346155626,), (1346155632,), (1346155645,), (1346155657,), (1346155663,), (1346155673,), (1346155682,), (1346155688,), (1346155693,), (1346155698,), (1346155706,), (1346155845,), (1346155850,), (1346155854,), (1346155859,), (1346155863,), (1346155923,), (1346155931,), (1346155942,), (1346155967,), (1346155975,), (1346155983,), (1346156210,), (1346156226,), (1346156231,), (1346156427,), (1346156428,), (1346156450,), (1346156458,), (1346156480,), (1346156484,), (1346156510,), (1346156512,), (1346156546,), (1346156563,), (1346156597,), (1346156600,), (1346156717,), (1346156786,), (1346156843,), (1346156888,)) 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 (1346156600) 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 21591335 , 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=21591264 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 (21591335) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21591264) result : ((1346155476,), (1346155501,), (1346155532,), (1346155626,), (1346155632,), (1346155645,), (1346155657,), (1346155663,), (1346155673,), (1346155682,), (1346155688,), (1346155693,), (1346155698,), (1346155706,), (1346155845,), (1346155850,), (1346155854,), (1346155859,), (1346155863,), (1346155923,), (1346155931,), (1346155942,), (1346155967,), (1346155975,), (1346155983,), (1346156210,), (1346156226,), (1346156231,), (1346156427,), (1346156428,), (1346156450,), (1346156458,), (1346156480,), (1346156484,), (1346156510,), (1346156512,), (1346156546,), (1346156563,), (1346156597,), (1346156600,), (1346156717,), (1346156786,), (1346156843,), (1346156888,)) 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 (1346156600) 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 21591336 , 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=21591264 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 (21591336) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21591264) result : ((1346155476,), (1346155501,), (1346155532,), (1346155626,), (1346155632,), (1346155645,), (1346155657,), (1346155663,), (1346155673,), (1346155682,), (1346155688,), (1346155693,), (1346155698,), (1346155706,), (1346155845,), (1346155850,), (1346155854,), (1346155859,), (1346155863,), (1346155923,), (1346155931,), (1346155942,), (1346155967,), (1346155975,), (1346155983,), (1346156210,), (1346156226,), (1346156231,), (1346156427,), (1346156428,), (1346156450,), (1346156458,), (1346156480,), (1346156484,), (1346156510,), (1346156512,), (1346156546,), (1346156563,), (1346156597,), (1346156600,), (1346156717,), (1346156786,), (1346156843,), (1346156888,)) 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 (1346156600) 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 21591337 , 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=21591264 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 (21591337) result : ((1346156454,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21591264) result : ((1346155476,), (1346155501,), (1346155532,), (1346155626,), (1346155632,), (1346155645,), (1346155657,), (1346155663,), (1346155673,), (1346155682,), (1346155688,), (1346155693,), (1346155698,), (1346155706,), (1346155845,), (1346155850,), (1346155854,), (1346155859,), (1346155863,), (1346155923,), (1346155931,), (1346155942,), (1346155967,), (1346155975,), (1346155983,), (1346156210,), (1346156226,), (1346156231,), (1346156427,), (1346156428,), (1346156450,), (1346156458,), (1346156480,), (1346156484,), (1346156510,), (1346156512,), (1346156546,), (1346156563,), (1346156597,), (1346156600,), (1346156717,), (1346156786,), (1346156843,), (1346156888,)) 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 (1346156600) 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 21591338 , 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=21591264 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 (21591338) result : ((1346155804,), (1346155805,), (1346155806,), (1346155807,), (1346156192,), (1346156193,), (1346156194,), (1346156195,), (1346156196,), (1346156241,), (1346156242,), (1346156243,), (1346156244,), (1346156383,), (1346156402,), (1346156403,), (1346156404,), (1346156406,), (1346156407,), (1346156408,), (1346156970,), (1346156971,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21591264) result : ((1346155476,), (1346155501,), (1346155532,), (1346155626,), (1346155632,), (1346155645,), (1346155657,), (1346155663,), (1346155673,), (1346155682,), (1346155688,), (1346155693,), (1346155698,), (1346155706,), (1346155845,), (1346155850,), (1346155854,), (1346155859,), (1346155863,), (1346155923,), (1346155931,), (1346155942,), (1346155967,), (1346155975,), (1346155983,), (1346156210,), (1346156226,), (1346156231,), (1346156427,), (1346156428,), (1346156450,), (1346156458,), (1346156480,), (1346156484,), (1346156510,), (1346156512,), (1346156546,), (1346156563,), (1346156597,), (1346156600,), (1346156717,), (1346156786,), (1346156843,), (1346156888,)) 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 (1346156600) 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 21591339 , 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=21591264 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 (21591339) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21591264) result : ((1346155476,), (1346155501,), (1346155532,), (1346155626,), (1346155632,), (1346155645,), (1346155657,), (1346155663,), (1346155673,), (1346155682,), (1346155688,), (1346155693,), (1346155698,), (1346155706,), (1346155845,), (1346155850,), (1346155854,), (1346155859,), (1346155863,), (1346155923,), (1346155931,), (1346155942,), (1346155967,), (1346155975,), (1346155983,), (1346156210,), (1346156226,), (1346156231,), (1346156427,), (1346156428,), (1346156450,), (1346156458,), (1346156480,), (1346156484,), (1346156510,), (1346156512,), (1346156546,), (1346156563,), (1346156597,), (1346156600,), (1346156717,), (1346156786,), (1346156843,), (1346156888,)) 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 (1346156600) 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 21591340 , 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=21591264 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 (21591340) result : ((1346156203,), (1346156204,), (1346156424,), (1346156430,), (1346156431,), (1346156432,), (1346156433,), (1346156985,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21591264) result : ((1346155476,), (1346155501,), (1346155532,), (1346155626,), (1346155632,), (1346155645,), (1346155657,), (1346155663,), (1346155673,), (1346155682,), (1346155688,), (1346155693,), (1346155698,), (1346155706,), (1346155845,), (1346155850,), (1346155854,), (1346155859,), (1346155863,), (1346155923,), (1346155931,), (1346155942,), (1346155967,), (1346155975,), (1346155983,), (1346156210,), (1346156226,), (1346156231,), (1346156427,), (1346156428,), (1346156450,), (1346156458,), (1346156480,), (1346156484,), (1346156510,), (1346156512,), (1346156546,), (1346156563,), (1346156597,), (1346156600,), (1346156717,), (1346156786,), (1346156843,), (1346156888,)) 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 (1346156600) 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`=21591264 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','metal','flou','autre_refus','mal_croppe','cartonnette','kraft','plastique','environnement','Carton_brun','papier','Teint_Dans_La_Masse')) 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`=21591264 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','metal','flou','autre_refus','mal_croppe','cartonnette','kraft','plastique','environnement','Carton_brun','papier','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 21591264, 'sub_port_id': 21591341, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14135104, 'last_updated_at': datetime.datetime(2025, 3, 21, 19, 35, 32), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 19, 35, 32), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 19, 35, 32)}, 'Teint_Dans_La_Masse': {'main_port_id': 21591264, 'sub_port_id': 21591342, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14135105, 'last_updated_at': datetime.datetime(2025, 3, 21, 19, 35, 32), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 19, 35, 32), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 19, 35, 32)}, 'cartonnette': {'main_port_id': 21591264, 'sub_port_id': 21591343, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14135106, 'last_updated_at': datetime.datetime(2025, 3, 21, 19, 35, 32), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 19, 35, 32), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 19, 35, 32)}, 'Carton_brun': {'main_port_id': 21591264, 'sub_port_id': 21591344, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14135107, 'last_updated_at': datetime.datetime(2025, 3, 21, 19, 35, 32), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 19, 35, 32), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 19, 35, 32)}, 'plastique': {'main_port_id': 21591264, 'sub_port_id': 21591345, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14135108, 'last_updated_at': datetime.datetime(2025, 3, 21, 19, 35, 32), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 19, 35, 32), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 19, 35, 32)}, 'papier': {'main_port_id': 21591264, 'sub_port_id': 21591346, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14135109, 'last_updated_at': datetime.datetime(2025, 3, 21, 19, 35, 32), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 19, 35, 32), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 19, 35, 32)}, 'environnement': {'main_port_id': 21591264, 'sub_port_id': 21591347, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14135110, 'last_updated_at': datetime.datetime(2025, 3, 21, 19, 35, 32), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 19, 35, 32), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 19, 35, 32)}, 'mal_croppe': {'main_port_id': 21591264, 'sub_port_id': 21591348, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14135111, 'last_updated_at': datetime.datetime(2025, 3, 21, 19, 35, 32), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 19, 35, 32), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 19, 35, 32)}, 'metal': {'main_port_id': 21591264, 'sub_port_id': 21591349, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14135112, 'last_updated_at': datetime.datetime(2025, 3, 21, 19, 35, 32), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 19, 35, 32), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 19, 35, 32)}, 'autre_refus': {'main_port_id': 21591264, 'sub_port_id': 21591350, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14135113, 'last_updated_at': datetime.datetime(2025, 3, 21, 19, 35, 32), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 19, 35, 32), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 19, 35, 32)}, 'kraft': {'main_port_id': 21591264, 'sub_port_id': 21591351, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14135114, 'last_updated_at': datetime.datetime(2025, 3, 21, 19, 35, 32), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 19, 35, 32), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 19, 35, 32)}, 'Carton_gris': {'main_port_id': 21591264, 'sub_port_id': 21591352, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14135115, 'last_updated_at': datetime.datetime(2025, 3, 21, 19, 37, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 19, 37, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 19, 35, 32)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21591341,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21591329 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21591342,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21591330 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21591343,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21591331 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21591344,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21591332 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21591345,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21591333 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21591346,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21591334 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21591347,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21591335 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21591348,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21591336 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21591349,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21591337 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21591350,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21591338 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21591351,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21591339 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21591352,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21591340 lien utilise dans velours : https://www.fotonower.com/velours/21591341,21591342,21591343,21591344,21591345,21591346,21591347,21591348,21591349,21591350,21591351,21591352?tags=flou,Teint_Dans_La_Masse,cartonnette,Carton_brun,plastique,papier,environnement,mal_croppe,metal,autre_refus,kraft,Carton_gris After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21591264]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1346156888, 1346156843, 1346156786, 1346156717, 1346156600, 1346156597, 1346156563, 1346156546, 1346156512, 1346156510, 1346156484, 1346156480, 1346156458, 1346156450, 1346156428, 1346156427, 1346156231, 1346156226, 1346156210] map_info['map_portfolio_photo'] : {21591264: [1346156888, 1346156843, 1346156786, 1346156717, 1346156600, 1346156597, 1346156563, 1346156546, 1346156512, 1346156510, 1346156484, 1346156480, 1346156458, 1346156450, 1346156428, 1346156427, 1346156231, 1346156226, 1346156210, 1346155983, 1346155975, 1346155967, 1346155942, 1346155931, 1346155923, 1346155863, 1346155859, 1346155854, 1346155850, 1346155845, 1346155706, 1346155698, 1346155693, 1346155688, 1346155682, 1346155673, 1346155663, 1346155657, 1346155645, 1346155632, 1346155626, 1346155532, 1346155501, 1346155476]} final : False mtd_id 4302 list_pids : [1346156888, 1346156843, 1346156786, 1346156717, 1346156600, 1346156597, 1346156563, 1346156546, 1346156512, 1346156510, 1346156484, 1346156480, 1346156458, 1346156450, 1346156428, 1346156427, 1346156231, 1346156226, 1346156210] Looping around the photos to save general results len do output : 1 /21591264. 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, '2680199') ('4302', '21591264', '1346156888', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156843', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156786', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156717', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156600', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156597', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156563', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156546', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156512', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156510', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156484', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156480', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156458', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156450', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156428', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156427', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156231', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156226', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156210', None, None, None, None, None, '2680199') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 20 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, '21591264', "{'flou': 21591329, 'Teint_Dans_La_Masse': 21591330, 'cartonnette': 21591331, 'Carton_brun': 21591332, 'plastique': 21591333, 'papier': 21591334, 'environnement': 21591335, 'mal_croppe': 21591336, 'metal': 21591337, 'autre_refus': 21591338, 'kraft': 21591339, 'Carton_gris': 21591340}", None, None, None, None, '2680199'), ('4302', '21591264', '1346156888', None, None, None, None, None, '2680199'), ('4302', '21591264', '1346156843', None, None, None, None, None, '2680199'), ('4302', '21591264', '1346156786', None, None, None, None, None, '2680199'), ('4302', '21591264', '1346156717', None, None, None, None, None, '2680199'), ('4302', '21591264', '1346156600', None, None, None, None, None, '2680199'), ('4302', '21591264', '1346156597', None, None, None, None, None, '2680199'), ('4302', '21591264', '1346156563', None, None, None, None, None, '2680199'), ('4302', '21591264', '1346156546', None, None, None, None, None, '2680199'), ('4302', '21591264', '1346156512', None, None, None, None, None, '2680199'), ('4302', '21591264', '1346156510', None, None, None, None, None, '2680199'), ('4302', '21591264', '1346156484', None, None, None, None, None, '2680199'), ('4302', '21591264', '1346156480', None, None, None, None, None, '2680199'), ('4302', '21591264', '1346156458', None, None, None, None, None, '2680199'), ('4302', '21591264', '1346156450', None, None, None, None, None, '2680199'), ('4302', '21591264', '1346156428', None, None, None, None, None, '2680199'), ('4302', '21591264', '1346156427', None, None, None, None, None, '2680199'), ('4302', '21591264', '1346156231', None, None, None, None, None, '2680199'), ('4302', '21591264', '1346156226', None, None, None, None, None, '2680199'), ('4302', '21591264', '1346156210', None, None, None, None, None, '2680199')] time used for this insertion : 0.01748490333557129 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.6414589881896973 time spend to save output : 0.017834186553955078 total time spend for step 1 : 0.6592931747436523 step2:final Fri Mar 21 19:39:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21591264) 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 21591264 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1346155532,1346155501,1346155476,1346155673,1346155663,1346155657,1346155645,1346155632,1346155626,1346155706,1346155698,1346155693,1346155688,1346155682,1346155863,1346155859,1346155854,1346155850,1346155845,1346155983,1346155975,1346155967,1346155942,1346155931,1346155923,1346156231,1346156226,1346156210,1346156600,1346156597,1346156563,1346156546,1346156512,1346156510,1346156484,1346156480,1346156458,1346156450,1346156428,1346156427,1346156888,1346156843,1346156786,1346156717); 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([21591264]) Inside saveOutput : final : False verbose : True original output for save of step final : {1346156888: ('0.07102636309177428',), 1346156843: ('0.07102636309177428',), 1346156786: ('0.07102636309177428',), 1346156717: ('0.07102636309177428',), 1346156600: ('0.07102636309177428',), 1346156597: ('0.07102636309177428',), 1346156563: ('0.07102636309177428',), 1346156546: ('0.07102636309177428',), 1346156512: ('0.07102636309177428',), 1346156510: ('0.07102636309177428',), 1346156484: ('0.07102636309177428',), 1346156480: ('0.07102636309177428',), 1346156458: ('0.07102636309177428',), 1346156450: ('0.07102636309177428',), 1346156428: ('0.07102636309177428',), 1346156427: ('0.07102636309177428',), 1346156231: ('0.07102636309177428',), 1346156226: ('0.07102636309177428',), 1346156210: ('0.07102636309177428',)} new output for save of step final : {1346156888: ('0.07102636309177428',), 1346156843: ('0.07102636309177428',), 1346156786: ('0.07102636309177428',), 1346156717: ('0.07102636309177428',), 1346156600: ('0.07102636309177428',), 1346156597: ('0.07102636309177428',), 1346156563: ('0.07102636309177428',), 1346156546: ('0.07102636309177428',), 1346156512: ('0.07102636309177428',), 1346156510: ('0.07102636309177428',), 1346156484: ('0.07102636309177428',), 1346156480: ('0.07102636309177428',), 1346156458: ('0.07102636309177428',), 1346156450: ('0.07102636309177428',), 1346156428: ('0.07102636309177428',), 1346156427: ('0.07102636309177428',), 1346156231: ('0.07102636309177428',), 1346156226: ('0.07102636309177428',), 1346156210: ('0.07102636309177428',)} [1346156888, 1346156843, 1346156786, 1346156717, 1346156600, 1346156597, 1346156563, 1346156546, 1346156512, 1346156510, 1346156484, 1346156480, 1346156458, 1346156450, 1346156428, 1346156427, 1346156231, 1346156226, 1346156210] map_info['map_portfolio_photo'] : {21591264: [1346156888, 1346156843, 1346156786, 1346156717, 1346156600, 1346156597, 1346156563, 1346156546, 1346156512, 1346156510, 1346156484, 1346156480, 1346156458, 1346156450, 1346156428, 1346156427, 1346156231, 1346156226, 1346156210, 1346155983, 1346155975, 1346155967, 1346155942, 1346155931, 1346155923, 1346155863, 1346155859, 1346155854, 1346155850, 1346155845, 1346155706, 1346155698, 1346155693, 1346155688, 1346155682, 1346155673, 1346155663, 1346155657, 1346155645, 1346155632, 1346155626, 1346155532, 1346155501, 1346155476]} final : False mtd_id 4302 list_pids : [1346156888, 1346156843, 1346156786, 1346156717, 1346156600, 1346156597, 1346156563, 1346156546, 1346156512, 1346156510, 1346156484, 1346156480, 1346156458, 1346156450, 1346156428, 1346156427, 1346156231, 1346156226, 1346156210] Looping around the photos to save general results len do output : 19 /1346156888.Didn't retrieve data . /1346156843.Didn't retrieve data . /1346156786.Didn't retrieve data . /1346156717.Didn't retrieve data . /1346156600.Didn't retrieve data . /1346156597.Didn't retrieve data . /1346156563.Didn't retrieve data . /1346156546.Didn't retrieve data . /1346156512.Didn't retrieve data . /1346156510.Didn't retrieve data . /1346156484.Didn't retrieve data . /1346156480.Didn't retrieve data . /1346156458.Didn't retrieve data . /1346156450.Didn't retrieve data . /1346156428.Didn't retrieve data . /1346156427.Didn't retrieve data . /1346156231.Didn't retrieve data . /1346156226.Didn't retrieve data . /1346156210.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, '2680199') ('4302', '21591264', '1346156888', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156843', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156786', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156717', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156600', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156597', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156563', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156546', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156512', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156510', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156484', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156480', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156458', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156450', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156428', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156427', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156231', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156226', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156210', None, None, None, None, None, '2680199') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 57 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', '21591264', '1346156888', '0.07102636309177428', None, None, None, None, '2680199'), ('4302', '21591264', '1346156843', '0.07102636309177428', None, None, None, None, '2680199'), ('4302', '21591264', '1346156786', '0.07102636309177428', None, None, None, None, '2680199'), ('4302', '21591264', '1346156717', '0.07102636309177428', None, None, None, None, '2680199'), ('4302', '21591264', '1346156600', '0.07102636309177428', None, None, None, None, '2680199'), ('4302', '21591264', '1346156597', '0.07102636309177428', None, None, None, None, '2680199'), ('4302', '21591264', '1346156563', '0.07102636309177428', None, None, None, None, '2680199'), ('4302', '21591264', '1346156546', '0.07102636309177428', None, None, None, None, '2680199'), ('4302', '21591264', '1346156512', '0.07102636309177428', None, None, None, None, '2680199'), ('4302', '21591264', '1346156510', '0.07102636309177428', None, None, None, None, '2680199'), ('4302', '21591264', '1346156484', '0.07102636309177428', None, None, None, None, '2680199'), ('4302', '21591264', '1346156480', '0.07102636309177428', None, None, None, None, '2680199'), ('4302', '21591264', '1346156458', '0.07102636309177428', None, None, None, None, '2680199'), ('4302', '21591264', '1346156450', '0.07102636309177428', None, None, None, None, '2680199'), ('4302', '21591264', '1346156428', '0.07102636309177428', None, None, None, None, '2680199'), ('4302', '21591264', '1346156427', '0.07102636309177428', None, None, None, None, '2680199'), ('4302', '21591264', '1346156231', '0.07102636309177428', None, None, None, None, '2680199'), ('4302', '21591264', '1346156226', '0.07102636309177428', None, None, None, None, '2680199'), ('4302', '21591264', '1346156210', '0.07102636309177428', None, None, None, None, '2680199')] time used for this insertion : 0.01509714126586914 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06607651710510254 time spend to save output : 0.015992403030395508 total time spend for step 2 : 0.08206892013549805 step3:velours_tree Fri Mar 21 19:39:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {21591264: [{'flou': 21591329, 'Teint_Dans_La_Masse': 21591330, 'cartonnette': 21591331, 'Carton_brun': 21591332, 'plastique': 21591333, 'papier': 21591334, 'environnement': 21591335, 'mal_croppe': 21591336, 'metal': 21591337, 'autre_refus': 21591338, 'kraft': 21591339, 'Carton_gris': 21591340}]} input_args_next_step : {21591264: ()} output_args : {21591264: [{'flou': 21591329, 'Teint_Dans_La_Masse': 21591330, 'cartonnette': 21591331, 'Carton_brun': 21591332, 'plastique': 21591333, 'papier': 21591334, 'environnement': 21591335, 'mal_croppe': 21591336, 'metal': 21591337, 'autre_refus': 21591338, 'kraft': 21591339, 'Carton_gris': 21591340}]} args : 21591264 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 : ({'flou': 21591329, 'Teint_Dans_La_Masse': 21591330, 'cartonnette': 21591331, 'Carton_brun': 21591332, 'plastique': 21591333, 'papier': 21591334, 'environnement': 21591335, 'mal_croppe': 21591336, 'metal': 21591337, 'autre_refus': 21591338, 'kraft': 21591339, 'Carton_gris': 21591340},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21591264) 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([21591264]) 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.2821223735809326 time spend to save output : 4.863739013671875e-05 total time spend for step 3 : 0.28217101097106934 step4:send_mail_cod Fri Mar 21 19:39:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1346156888: ('0.07102636309177428',), 1346156843: ('0.07102636309177428',), 1346156786: ('0.07102636309177428',), 1346156717: ('0.07102636309177428',), 1346156600: ('0.07102636309177428',), 1346156597: ('0.07102636309177428',), 1346156563: ('0.07102636309177428',), 1346156546: ('0.07102636309177428',), 1346156512: ('0.07102636309177428',), 1346156510: ('0.07102636309177428',), 1346156484: ('0.07102636309177428',), 1346156480: ('0.07102636309177428',), 1346156458: ('0.07102636309177428',), 1346156450: ('0.07102636309177428',), 1346156428: ('0.07102636309177428',), 1346156427: ('0.07102636309177428',), 1346156231: ('0.07102636309177428',), 1346156226: ('0.07102636309177428',), 1346156210: ('0.07102636309177428',)} input_args_next_step : {1346156888: ()} output_args : {1346156888: ('0.07102636309177428',), 1346156843: ('0.07102636309177428',), 1346156786: ('0.07102636309177428',), 1346156717: ('0.07102636309177428',), 1346156600: ('0.07102636309177428',), 1346156597: ('0.07102636309177428',), 1346156563: ('0.07102636309177428',), 1346156546: ('0.07102636309177428',), 1346156512: ('0.07102636309177428',), 1346156510: ('0.07102636309177428',), 1346156484: ('0.07102636309177428',), 1346156480: ('0.07102636309177428',), 1346156458: ('0.07102636309177428',), 1346156450: ('0.07102636309177428',), 1346156428: ('0.07102636309177428',), 1346156427: ('0.07102636309177428',), 1346156231: ('0.07102636309177428',), 1346156226: ('0.07102636309177428',), 1346156210: ('0.07102636309177428',)} args : 1346156888 depend.output_id : 0 input_args_next_step : {1346156888: ('0.07102636309177428',), 1346156843: ()} output_args : {1346156888: ('0.07102636309177428',), 1346156843: ('0.07102636309177428',), 1346156786: ('0.07102636309177428',), 1346156717: ('0.07102636309177428',), 1346156600: ('0.07102636309177428',), 1346156597: ('0.07102636309177428',), 1346156563: ('0.07102636309177428',), 1346156546: ('0.07102636309177428',), 1346156512: ('0.07102636309177428',), 1346156510: ('0.07102636309177428',), 1346156484: ('0.07102636309177428',), 1346156480: ('0.07102636309177428',), 1346156458: ('0.07102636309177428',), 1346156450: ('0.07102636309177428',), 1346156428: ('0.07102636309177428',), 1346156427: ('0.07102636309177428',), 1346156231: ('0.07102636309177428',), 1346156226: ('0.07102636309177428',), 1346156210: ('0.07102636309177428',)} args : 1346156843 depend.output_id : 0 input_args_next_step : {1346156888: ('0.07102636309177428',), 1346156843: ('0.07102636309177428',), 1346156786: ()} output_args : {1346156888: ('0.07102636309177428',), 1346156843: ('0.07102636309177428',), 1346156786: ('0.07102636309177428',), 1346156717: ('0.07102636309177428',), 1346156600: ('0.07102636309177428',), 1346156597: ('0.07102636309177428',), 1346156563: ('0.07102636309177428',), 1346156546: ('0.07102636309177428',), 1346156512: ('0.07102636309177428',), 1346156510: ('0.07102636309177428',), 1346156484: ('0.07102636309177428',), 1346156480: ('0.07102636309177428',), 1346156458: ('0.07102636309177428',), 1346156450: ('0.07102636309177428',), 1346156428: ('0.07102636309177428',), 1346156427: ('0.07102636309177428',), 1346156231: ('0.07102636309177428',), 1346156226: ('0.07102636309177428',), 1346156210: ('0.07102636309177428',)} args : 1346156786 depend.output_id : 0 input_args_next_step : {1346156888: ('0.07102636309177428',), 1346156843: ('0.07102636309177428',), 1346156786: ('0.07102636309177428',), 1346156717: ()} output_args : {1346156888: ('0.07102636309177428',), 1346156843: ('0.07102636309177428',), 1346156786: ('0.07102636309177428',), 1346156717: ('0.07102636309177428',), 1346156600: ('0.07102636309177428',), 1346156597: ('0.07102636309177428',), 1346156563: ('0.07102636309177428',), 1346156546: ('0.07102636309177428',), 1346156512: ('0.07102636309177428',), 1346156510: ('0.07102636309177428',), 1346156484: ('0.07102636309177428',), 1346156480: ('0.07102636309177428',), 1346156458: ('0.07102636309177428',), 1346156450: ('0.07102636309177428',), 1346156428: ('0.07102636309177428',), 1346156427: ('0.07102636309177428',), 1346156231: ('0.07102636309177428',), 1346156226: ('0.07102636309177428',), 1346156210: ('0.07102636309177428',)} args : 1346156717 depend.output_id : 0 input_args_next_step : {1346156888: ('0.07102636309177428',), 1346156843: ('0.07102636309177428',), 1346156786: ('0.07102636309177428',), 1346156717: ('0.07102636309177428',), 1346156600: ()} output_args : {1346156888: ('0.07102636309177428',), 1346156843: ('0.07102636309177428',), 1346156786: ('0.07102636309177428',), 1346156717: ('0.07102636309177428',), 1346156600: ('0.07102636309177428',), 1346156597: ('0.07102636309177428',), 1346156563: ('0.07102636309177428',), 1346156546: ('0.07102636309177428',), 1346156512: ('0.07102636309177428',), 1346156510: ('0.07102636309177428',), 1346156484: ('0.07102636309177428',), 1346156480: ('0.07102636309177428',), 1346156458: ('0.07102636309177428',), 1346156450: ('0.07102636309177428',), 1346156428: ('0.07102636309177428',), 1346156427: ('0.07102636309177428',), 1346156231: ('0.07102636309177428',), 1346156226: ('0.07102636309177428',), 1346156210: ('0.07102636309177428',)} args : 1346156600 depend.output_id : 0 input_args_next_step : {1346156888: ('0.07102636309177428',), 1346156843: ('0.07102636309177428',), 1346156786: ('0.07102636309177428',), 1346156717: ('0.07102636309177428',), 1346156600: ('0.07102636309177428',), 1346156597: ()} output_args : {1346156888: ('0.07102636309177428',), 1346156843: ('0.07102636309177428',), 1346156786: ('0.07102636309177428',), 1346156717: ('0.07102636309177428',), 1346156600: ('0.07102636309177428',), 1346156597: ('0.07102636309177428',), 1346156563: ('0.07102636309177428',), 1346156546: ('0.07102636309177428',), 1346156512: ('0.07102636309177428',), 1346156510: ('0.07102636309177428',), 1346156484: ('0.07102636309177428',), 1346156480: ('0.07102636309177428',), 1346156458: ('0.07102636309177428',), 1346156450: ('0.07102636309177428',), 1346156428: ('0.07102636309177428',), 1346156427: ('0.07102636309177428',), 1346156231: ('0.07102636309177428',), 1346156226: ('0.07102636309177428',), 1346156210: ('0.07102636309177428',)} args : 1346156597 depend.output_id : 0 input_args_next_step : {1346156888: ('0.07102636309177428',), 1346156843: ('0.07102636309177428',), 1346156786: ('0.07102636309177428',), 1346156717: ('0.07102636309177428',), 1346156600: ('0.07102636309177428',), 1346156597: ('0.07102636309177428',), 1346156563: ()} output_args : {1346156888: ('0.07102636309177428',), 1346156843: ('0.07102636309177428',), 1346156786: ('0.07102636309177428',), 1346156717: ('0.07102636309177428',), 1346156600: ('0.07102636309177428',), 1346156597: ('0.07102636309177428',), 1346156563: ('0.07102636309177428',), 1346156546: ('0.07102636309177428',), 1346156512: ('0.07102636309177428',), 1346156510: ('0.07102636309177428',), 1346156484: ('0.07102636309177428',), 1346156480: ('0.07102636309177428',), 1346156458: ('0.07102636309177428',), 1346156450: ('0.07102636309177428',), 1346156428: ('0.07102636309177428',), 1346156427: ('0.07102636309177428',), 1346156231: ('0.07102636309177428',), 1346156226: ('0.07102636309177428',), 1346156210: ('0.07102636309177428',)} args : 1346156563 depend.output_id : 0 input_args_next_step : {1346156888: ('0.07102636309177428',), 1346156843: ('0.07102636309177428',), 1346156786: ('0.07102636309177428',), 1346156717: ('0.07102636309177428',), 1346156600: ('0.07102636309177428',), 1346156597: ('0.07102636309177428',), 1346156563: ('0.07102636309177428',), 1346156546: ()} output_args : {1346156888: ('0.07102636309177428',), 1346156843: ('0.07102636309177428',), 1346156786: ('0.07102636309177428',), 1346156717: ('0.07102636309177428',), 1346156600: ('0.07102636309177428',), 1346156597: ('0.07102636309177428',), 1346156563: ('0.07102636309177428',), 1346156546: ('0.07102636309177428',), 1346156512: ('0.07102636309177428',), 1346156510: ('0.07102636309177428',), 1346156484: ('0.07102636309177428',), 1346156480: ('0.07102636309177428',), 1346156458: ('0.07102636309177428',), 1346156450: ('0.07102636309177428',), 1346156428: ('0.07102636309177428',), 1346156427: ('0.07102636309177428',), 1346156231: ('0.07102636309177428',), 1346156226: ('0.07102636309177428',), 1346156210: ('0.07102636309177428',)} args : 1346156546 depend.output_id : 0 input_args_next_step : {1346156888: ('0.07102636309177428',), 1346156843: ('0.07102636309177428',), 1346156786: ('0.07102636309177428',), 1346156717: ('0.07102636309177428',), 1346156600: ('0.07102636309177428',), 1346156597: ('0.07102636309177428',), 1346156563: ('0.07102636309177428',), 1346156546: ('0.07102636309177428',), 1346156512: ()} output_args : {1346156888: ('0.07102636309177428',), 1346156843: ('0.07102636309177428',), 1346156786: ('0.07102636309177428',), 1346156717: ('0.07102636309177428',), 1346156600: ('0.07102636309177428',), 1346156597: ('0.07102636309177428',), 1346156563: ('0.07102636309177428',), 1346156546: ('0.07102636309177428',), 1346156512: ('0.07102636309177428',), 1346156510: ('0.07102636309177428',), 1346156484: ('0.07102636309177428',), 1346156480: ('0.07102636309177428',), 1346156458: ('0.07102636309177428',), 1346156450: ('0.07102636309177428',), 1346156428: ('0.07102636309177428',), 1346156427: ('0.07102636309177428',), 1346156231: ('0.07102636309177428',), 1346156226: ('0.07102636309177428',), 1346156210: ('0.07102636309177428',)} args : 1346156512 depend.output_id : 0 input_args_next_step : {1346156888: ('0.07102636309177428',), 1346156843: ('0.07102636309177428',), 1346156786: ('0.07102636309177428',), 1346156717: ('0.07102636309177428',), 1346156600: ('0.07102636309177428',), 1346156597: ('0.07102636309177428',), 1346156563: ('0.07102636309177428',), 1346156546: ('0.07102636309177428',), 1346156512: ('0.07102636309177428',), 1346156510: ()} output_args : {1346156888: ('0.07102636309177428',), 1346156843: ('0.07102636309177428',), 1346156786: ('0.07102636309177428',), 1346156717: ('0.07102636309177428',), 1346156600: ('0.07102636309177428',), 1346156597: ('0.07102636309177428',), 1346156563: ('0.07102636309177428',), 1346156546: ('0.07102636309177428',), 1346156512: ('0.07102636309177428',), 1346156510: ('0.07102636309177428',), 1346156484: ('0.07102636309177428',), 1346156480: ('0.07102636309177428',), 1346156458: ('0.07102636309177428',), 1346156450: ('0.07102636309177428',), 1346156428: ('0.07102636309177428',), 1346156427: ('0.07102636309177428',), 1346156231: ('0.07102636309177428',), 1346156226: ('0.07102636309177428',), 1346156210: ('0.07102636309177428',)} args : 1346156510 depend.output_id : 0 input_args_next_step : {1346156888: ('0.07102636309177428',), 1346156843: ('0.07102636309177428',), 1346156786: ('0.07102636309177428',), 1346156717: ('0.07102636309177428',), 1346156600: ('0.07102636309177428',), 1346156597: ('0.07102636309177428',), 1346156563: ('0.07102636309177428',), 1346156546: ('0.07102636309177428',), 1346156512: ('0.07102636309177428',), 1346156510: ('0.07102636309177428',), 1346156484: ()} output_args : {1346156888: ('0.07102636309177428',), 1346156843: ('0.07102636309177428',), 1346156786: ('0.07102636309177428',), 1346156717: ('0.07102636309177428',), 1346156600: ('0.07102636309177428',), 1346156597: ('0.07102636309177428',), 1346156563: ('0.07102636309177428',), 1346156546: ('0.07102636309177428',), 1346156512: ('0.07102636309177428',), 1346156510: ('0.07102636309177428',), 1346156484: ('0.07102636309177428',), 1346156480: ('0.07102636309177428',), 1346156458: ('0.07102636309177428',), 1346156450: ('0.07102636309177428',), 1346156428: ('0.07102636309177428',), 1346156427: ('0.07102636309177428',), 1346156231: ('0.07102636309177428',), 1346156226: ('0.07102636309177428',), 1346156210: ('0.07102636309177428',)} args : 1346156484 depend.output_id : 0 input_args_next_step : {1346156888: ('0.07102636309177428',), 1346156843: ('0.07102636309177428',), 1346156786: ('0.07102636309177428',), 1346156717: ('0.07102636309177428',), 1346156600: ('0.07102636309177428',), 1346156597: ('0.07102636309177428',), 1346156563: ('0.07102636309177428',), 1346156546: ('0.07102636309177428',), 1346156512: ('0.07102636309177428',), 1346156510: ('0.07102636309177428',), 1346156484: ('0.07102636309177428',), 1346156480: ()} output_args : {1346156888: ('0.07102636309177428',), 1346156843: ('0.07102636309177428',), 1346156786: ('0.07102636309177428',), 1346156717: ('0.07102636309177428',), 1346156600: ('0.07102636309177428',), 1346156597: ('0.07102636309177428',), 1346156563: ('0.07102636309177428',), 1346156546: ('0.07102636309177428',), 1346156512: ('0.07102636309177428',), 1346156510: ('0.07102636309177428',), 1346156484: ('0.07102636309177428',), 1346156480: ('0.07102636309177428',), 1346156458: ('0.07102636309177428',), 1346156450: ('0.07102636309177428',), 1346156428: ('0.07102636309177428',), 1346156427: ('0.07102636309177428',), 1346156231: ('0.07102636309177428',), 1346156226: ('0.07102636309177428',), 1346156210: ('0.07102636309177428',)} args : 1346156480 depend.output_id : 0 input_args_next_step : {1346156888: ('0.07102636309177428',), 1346156843: ('0.07102636309177428',), 1346156786: ('0.07102636309177428',), 1346156717: ('0.07102636309177428',), 1346156600: ('0.07102636309177428',), 1346156597: ('0.07102636309177428',), 1346156563: ('0.07102636309177428',), 1346156546: ('0.07102636309177428',), 1346156512: ('0.07102636309177428',), 1346156510: ('0.07102636309177428',), 1346156484: ('0.07102636309177428',), 1346156480: ('0.07102636309177428',), 1346156458: ()} output_args : {1346156888: ('0.07102636309177428',), 1346156843: ('0.07102636309177428',), 1346156786: ('0.07102636309177428',), 1346156717: ('0.07102636309177428',), 1346156600: ('0.07102636309177428',), 1346156597: ('0.07102636309177428',), 1346156563: ('0.07102636309177428',), 1346156546: ('0.07102636309177428',), 1346156512: ('0.07102636309177428',), 1346156510: ('0.07102636309177428',), 1346156484: ('0.07102636309177428',), 1346156480: ('0.07102636309177428',), 1346156458: ('0.07102636309177428',), 1346156450: ('0.07102636309177428',), 1346156428: ('0.07102636309177428',), 1346156427: ('0.07102636309177428',), 1346156231: ('0.07102636309177428',), 1346156226: ('0.07102636309177428',), 1346156210: ('0.07102636309177428',)} args : 1346156458 depend.output_id : 0 input_args_next_step : {1346156888: ('0.07102636309177428',), 1346156843: ('0.07102636309177428',), 1346156786: ('0.07102636309177428',), 1346156717: ('0.07102636309177428',), 1346156600: ('0.07102636309177428',), 1346156597: ('0.07102636309177428',), 1346156563: ('0.07102636309177428',), 1346156546: ('0.07102636309177428',), 1346156512: ('0.07102636309177428',), 1346156510: ('0.07102636309177428',), 1346156484: ('0.07102636309177428',), 1346156480: ('0.07102636309177428',), 1346156458: ('0.07102636309177428',), 1346156450: ()} output_args : {1346156888: ('0.07102636309177428',), 1346156843: ('0.07102636309177428',), 1346156786: ('0.07102636309177428',), 1346156717: ('0.07102636309177428',), 1346156600: ('0.07102636309177428',), 1346156597: ('0.07102636309177428',), 1346156563: ('0.07102636309177428',), 1346156546: ('0.07102636309177428',), 1346156512: ('0.07102636309177428',), 1346156510: ('0.07102636309177428',), 1346156484: ('0.07102636309177428',), 1346156480: ('0.07102636309177428',), 1346156458: ('0.07102636309177428',), 1346156450: ('0.07102636309177428',), 1346156428: ('0.07102636309177428',), 1346156427: ('0.07102636309177428',), 1346156231: ('0.07102636309177428',), 1346156226: ('0.07102636309177428',), 1346156210: ('0.07102636309177428',)} args : 1346156450 depend.output_id : 0 input_args_next_step : {1346156888: ('0.07102636309177428',), 1346156843: ('0.07102636309177428',), 1346156786: ('0.07102636309177428',), 1346156717: ('0.07102636309177428',), 1346156600: ('0.07102636309177428',), 1346156597: ('0.07102636309177428',), 1346156563: ('0.07102636309177428',), 1346156546: ('0.07102636309177428',), 1346156512: ('0.07102636309177428',), 1346156510: ('0.07102636309177428',), 1346156484: ('0.07102636309177428',), 1346156480: ('0.07102636309177428',), 1346156458: ('0.07102636309177428',), 1346156450: ('0.07102636309177428',), 1346156428: ()} output_args : {1346156888: ('0.07102636309177428',), 1346156843: ('0.07102636309177428',), 1346156786: ('0.07102636309177428',), 1346156717: ('0.07102636309177428',), 1346156600: ('0.07102636309177428',), 1346156597: ('0.07102636309177428',), 1346156563: ('0.07102636309177428',), 1346156546: ('0.07102636309177428',), 1346156512: ('0.07102636309177428',), 1346156510: ('0.07102636309177428',), 1346156484: ('0.07102636309177428',), 1346156480: ('0.07102636309177428',), 1346156458: ('0.07102636309177428',), 1346156450: ('0.07102636309177428',), 1346156428: ('0.07102636309177428',), 1346156427: ('0.07102636309177428',), 1346156231: ('0.07102636309177428',), 1346156226: ('0.07102636309177428',), 1346156210: ('0.07102636309177428',)} args : 1346156428 depend.output_id : 0 input_args_next_step : {1346156888: ('0.07102636309177428',), 1346156843: ('0.07102636309177428',), 1346156786: ('0.07102636309177428',), 1346156717: ('0.07102636309177428',), 1346156600: ('0.07102636309177428',), 1346156597: ('0.07102636309177428',), 1346156563: ('0.07102636309177428',), 1346156546: ('0.07102636309177428',), 1346156512: ('0.07102636309177428',), 1346156510: ('0.07102636309177428',), 1346156484: ('0.07102636309177428',), 1346156480: ('0.07102636309177428',), 1346156458: ('0.07102636309177428',), 1346156450: ('0.07102636309177428',), 1346156428: ('0.07102636309177428',), 1346156427: ()} output_args : {1346156888: ('0.07102636309177428',), 1346156843: ('0.07102636309177428',), 1346156786: ('0.07102636309177428',), 1346156717: ('0.07102636309177428',), 1346156600: ('0.07102636309177428',), 1346156597: ('0.07102636309177428',), 1346156563: ('0.07102636309177428',), 1346156546: ('0.07102636309177428',), 1346156512: ('0.07102636309177428',), 1346156510: ('0.07102636309177428',), 1346156484: ('0.07102636309177428',), 1346156480: ('0.07102636309177428',), 1346156458: ('0.07102636309177428',), 1346156450: ('0.07102636309177428',), 1346156428: ('0.07102636309177428',), 1346156427: ('0.07102636309177428',), 1346156231: ('0.07102636309177428',), 1346156226: ('0.07102636309177428',), 1346156210: ('0.07102636309177428',)} args : 1346156427 depend.output_id : 0 input_args_next_step : {1346156888: ('0.07102636309177428',), 1346156843: ('0.07102636309177428',), 1346156786: ('0.07102636309177428',), 1346156717: ('0.07102636309177428',), 1346156600: ('0.07102636309177428',), 1346156597: ('0.07102636309177428',), 1346156563: ('0.07102636309177428',), 1346156546: ('0.07102636309177428',), 1346156512: ('0.07102636309177428',), 1346156510: ('0.07102636309177428',), 1346156484: ('0.07102636309177428',), 1346156480: ('0.07102636309177428',), 1346156458: ('0.07102636309177428',), 1346156450: ('0.07102636309177428',), 1346156428: ('0.07102636309177428',), 1346156427: ('0.07102636309177428',), 1346156231: ()} output_args : {1346156888: ('0.07102636309177428',), 1346156843: ('0.07102636309177428',), 1346156786: ('0.07102636309177428',), 1346156717: ('0.07102636309177428',), 1346156600: ('0.07102636309177428',), 1346156597: ('0.07102636309177428',), 1346156563: ('0.07102636309177428',), 1346156546: ('0.07102636309177428',), 1346156512: ('0.07102636309177428',), 1346156510: ('0.07102636309177428',), 1346156484: ('0.07102636309177428',), 1346156480: ('0.07102636309177428',), 1346156458: ('0.07102636309177428',), 1346156450: ('0.07102636309177428',), 1346156428: ('0.07102636309177428',), 1346156427: ('0.07102636309177428',), 1346156231: ('0.07102636309177428',), 1346156226: ('0.07102636309177428',), 1346156210: ('0.07102636309177428',)} args : 1346156231 depend.output_id : 0 input_args_next_step : {1346156888: ('0.07102636309177428',), 1346156843: ('0.07102636309177428',), 1346156786: ('0.07102636309177428',), 1346156717: ('0.07102636309177428',), 1346156600: ('0.07102636309177428',), 1346156597: ('0.07102636309177428',), 1346156563: ('0.07102636309177428',), 1346156546: ('0.07102636309177428',), 1346156512: ('0.07102636309177428',), 1346156510: ('0.07102636309177428',), 1346156484: ('0.07102636309177428',), 1346156480: ('0.07102636309177428',), 1346156458: ('0.07102636309177428',), 1346156450: ('0.07102636309177428',), 1346156428: ('0.07102636309177428',), 1346156427: ('0.07102636309177428',), 1346156231: ('0.07102636309177428',), 1346156226: ()} output_args : {1346156888: ('0.07102636309177428',), 1346156843: ('0.07102636309177428',), 1346156786: ('0.07102636309177428',), 1346156717: ('0.07102636309177428',), 1346156600: ('0.07102636309177428',), 1346156597: ('0.07102636309177428',), 1346156563: ('0.07102636309177428',), 1346156546: ('0.07102636309177428',), 1346156512: ('0.07102636309177428',), 1346156510: ('0.07102636309177428',), 1346156484: ('0.07102636309177428',), 1346156480: ('0.07102636309177428',), 1346156458: ('0.07102636309177428',), 1346156450: ('0.07102636309177428',), 1346156428: ('0.07102636309177428',), 1346156427: ('0.07102636309177428',), 1346156231: ('0.07102636309177428',), 1346156226: ('0.07102636309177428',), 1346156210: ('0.07102636309177428',)} args : 1346156226 depend.output_id : 0 input_args_next_step : {1346156888: ('0.07102636309177428',), 1346156843: ('0.07102636309177428',), 1346156786: ('0.07102636309177428',), 1346156717: ('0.07102636309177428',), 1346156600: ('0.07102636309177428',), 1346156597: ('0.07102636309177428',), 1346156563: ('0.07102636309177428',), 1346156546: ('0.07102636309177428',), 1346156512: ('0.07102636309177428',), 1346156510: ('0.07102636309177428',), 1346156484: ('0.07102636309177428',), 1346156480: ('0.07102636309177428',), 1346156458: ('0.07102636309177428',), 1346156450: ('0.07102636309177428',), 1346156428: ('0.07102636309177428',), 1346156427: ('0.07102636309177428',), 1346156231: ('0.07102636309177428',), 1346156226: ('0.07102636309177428',), 1346156210: ()} output_args : {1346156888: ('0.07102636309177428',), 1346156843: ('0.07102636309177428',), 1346156786: ('0.07102636309177428',), 1346156717: ('0.07102636309177428',), 1346156600: ('0.07102636309177428',), 1346156597: ('0.07102636309177428',), 1346156563: ('0.07102636309177428',), 1346156546: ('0.07102636309177428',), 1346156512: ('0.07102636309177428',), 1346156510: ('0.07102636309177428',), 1346156484: ('0.07102636309177428',), 1346156480: ('0.07102636309177428',), 1346156458: ('0.07102636309177428',), 1346156450: ('0.07102636309177428',), 1346156428: ('0.07102636309177428',), 1346156427: ('0.07102636309177428',), 1346156231: ('0.07102636309177428',), 1346156226: ('0.07102636309177428',), 1346156210: ('0.07102636309177428',)} args : 1346156210 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 : {21591264: [{'flou': 21591329, 'Teint_Dans_La_Masse': 21591330, 'cartonnette': 21591331, 'Carton_brun': 21591332, 'plastique': 21591333, 'papier': 21591334, 'environnement': 21591335, 'mal_croppe': 21591336, 'metal': 21591337, 'autre_refus': 21591338, 'kraft': 21591339, 'Carton_gris': 21591340}]} input_args_next_step : {1346156888: ('0.07102636309177428',), 1346156843: ('0.07102636309177428',), 1346156786: ('0.07102636309177428',), 1346156717: ('0.07102636309177428',), 1346156600: ('0.07102636309177428',), 1346156597: ('0.07102636309177428',), 1346156563: ('0.07102636309177428',), 1346156546: ('0.07102636309177428',), 1346156512: ('0.07102636309177428',), 1346156510: ('0.07102636309177428',), 1346156484: ('0.07102636309177428',), 1346156480: ('0.07102636309177428',), 1346156458: ('0.07102636309177428',), 1346156450: ('0.07102636309177428',), 1346156428: ('0.07102636309177428',), 1346156427: ('0.07102636309177428',), 1346156231: ('0.07102636309177428',), 1346156226: ('0.07102636309177428',), 1346156210: ('0.07102636309177428',), 21591264: ()} output_args : {21591264: [{'flou': 21591329, 'Teint_Dans_La_Masse': 21591330, 'cartonnette': 21591331, 'Carton_brun': 21591332, 'plastique': 21591333, 'papier': 21591334, 'environnement': 21591335, 'mal_croppe': 21591336, 'metal': 21591337, 'autre_refus': 21591338, 'kraft': 21591339, 'Carton_gris': 21591340}]} args : 21591264 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 :20, first value : ('0.07102636309177428',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21591264) 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 (1346156888,1346156843,1346156786,1346156717,1346156600,1346156597,1346156563,1346156546,1346156512,1346156510,1346156484,1346156480,1346156458,1346156450,1346156428,1346156427,1346156231,1346156226,1346156210) Found this number of photos: 19 ##### Call download_photos : nb_thread : 5 begin to download photo : 1346156210 begin to download photo : 1346156428 begin to download photo : 1346156484 begin to download photo : 1346156563 begin to download photo : 1346156786 download finish for photo 1346156428 download finish for photo 1346156210 begin to download photo : 1346156450 begin to download photo : 1346156226 download finish for photo 1346156786 begin to download photo : 1346156843 download finish for photo 1346156563 begin to download photo : 1346156597 download finish for photo 1346156484 begin to download photo : 1346156510 download finish for photo 1346156450 begin to download photo : 1346156458 download finish for photo 1346156226 begin to download photo : 1346156231 download finish for photo 1346156510 begin to download photo : 1346156512 download finish for photo 1346156843 begin to download photo : 1346156888 download finish for photo 1346156597 begin to download photo : 1346156600 download finish for photo 1346156231 begin to download photo : 1346156427 download finish for photo 1346156458 begin to download photo : 1346156480 download finish for photo 1346156600 begin to download photo : 1346156717 download finish for photo 1346156888 download finish for photo 1346156512 begin to download photo : 1346156546 download finish for photo 1346156717 download finish for photo 1346156427 download finish for photo 1346156480 download finish for photo 1346156546 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette215913291742582399/ length of list_filenames : 19 ; length of list_pids : 19 ; length of list_args : 19 results_Auto_P21591264_21-03-2025_19_39_59.pdf 21591329 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=21591329 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette215913291742582399 21591331 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=21591331 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346155808: '1742582054_1109065_1346155501_4cf7397cdc2c9cac8071cb016a6b956c_rle_crop_3722821455_0.png', 1346156208: '1742582212_1110660_1346155854_5f2b364b8816d5797f92847c42b84c1a_rle_crop_3722829094_0.png', 1346156209: '1742582212_1110660_1346155850_5fa89d0e5d97676799b6362f2e522b28_rle_crop_3722829114_0.png', 1346156246: '1742582231_1110867_1346155688_3b9292e9d127e4955d421a5a490ac1f1_rle_crop_3722829243_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/05c47228e49139a4ff86179ccc2dcfed_55926892.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/41a4fd343777b6131796a9e0c03509c1_4926576.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/8426fc968745cea00f23fa148478809d_48001129.png change filename to text .imagette215913311742582399/ imagette215913311742582399/1742582212_1110660_1346155854_5f2b364b8816d5797f92847c42b84c1a_rle_crop_3722829094_0.png.png imagette215913311742582399/1742582054_1109065_1346155501_4cf7397cdc2c9cac8071cb016a6b956c_rle_crop_3722821455_0.png.png imagette215913311742582399/1742582231_1110867_1346155688_3b9292e9d127e4955d421a5a490ac1f1_rle_crop_3722829243_0.png.png imagette215913311742582399/1742582212_1110660_1346155850_5fa89d0e5d97676799b6362f2e522b28_rle_crop_3722829114_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/67fff023979f77feb3166ea19e0b77c2_81543005.png imagette215913311742582399 21591333 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=21591333 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346156214: '1742582212_1110660_1346155854_5f2b364b8816d5797f92847c42b84c1a_rle_crop_3722829096_0.png', 1346156215: '1742582212_1110660_1346155850_5fa89d0e5d97676799b6362f2e522b28_rle_crop_3722829113_0.png', 1346156216: '1742582212_1110660_1346155850_5fa89d0e5d97676799b6362f2e522b28_rle_crop_3722829116_0.png', 1346156446: '1742582252_1111138_1346155663_18c7a45b88352c8dab2db1904bccaba1_rle_crop_3722830380_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/d1f85c2cadea7f889020188f05175c35_68529664.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/3b233b37c68f1c90a6f4aea06e85da21_99615666.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/547d349345ba92e25c9b300c6ae4e05c_77696403.png change filename to text .imagette215913331742582400/ imagette215913331742582400/1742582252_1111138_1346155663_18c7a45b88352c8dab2db1904bccaba1_rle_crop_3722830380_0.png.png imagette215913331742582400/1742582212_1110660_1346155854_5f2b364b8816d5797f92847c42b84c1a_rle_crop_3722829096_0.png.png imagette215913331742582400/1742582212_1110660_1346155850_5fa89d0e5d97676799b6362f2e522b28_rle_crop_3722829113_0.png.png imagette215913331742582400/1742582212_1110660_1346155850_5fa89d0e5d97676799b6362f2e522b28_rle_crop_3722829116_0.png.png imagette215913361742582400/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/d0d6503c8dd15f262e590b7e05f5d80f_91575105.png imagette215913331742582400 21591336 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=21591336 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette215913361742582400 21591337 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=21591337 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346156454: '1742582252_1111138_1346155645_818446fd954d4e7aa60cb35619340b0f_rle_crop_3722831452_0.png'} change filename to text .imagette215913371742582400/ imagette215913371742582400/1742582252_1111138_1346155645_818446fd954d4e7aa60cb35619340b0f_rle_crop_3722831452_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/d69b041ccce427380010dec32ec2945e_76668880.png imagette215913371742582400 21591338 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=21591338 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346156243: '1742582231_1110867_1346155682_b8a219f2d2e2ba4fc8ed9e13854eeb0a_rle_crop_3722829427_0.png', 1346156971: '1742582332_1112054_1346156210_8ad8f4c27165856ffcec67dc04555aa6_rle_crop_3722832257_0.png', 1346156970: '1742582332_1112054_1346156226_a75a7c00616838126d851e36dc41a55f_rle_crop_3722832248_0.png', 1346156408: '1742582252_1111138_1346155626_101f2cd9baa39257197ad47a6e13c30f_rle_crop_3722831500_0.png', 1346156407: '1742582252_1111138_1346155632_14906b41dc4eac092e27bccff26c7fe2_rle_crop_3722831482_0.png', 1346156406: '1742582252_1111138_1346155645_818446fd954d4e7aa60cb35619340b0f_rle_crop_3722831465_0.png', 1346156404: '1742582252_1111138_1346155657_36db9779b91a6c378df5337918d767f1_rle_crop_3722830489_0.png', 1346156403: '1742582252_1111138_1346155663_18c7a45b88352c8dab2db1904bccaba1_rle_crop_3722830378_0.png', 1346156402: '1742582252_1111138_1346155706_b4c985565f853616ec798355b2559172_rle_crop_3722830372_0.png', 1346156383: '1742582272_1111372_1346155673_c9a144ad80a93b2eacfabbd5fcca85b0_rle_crop_3722831512_0.png', 1346156244: '1742582231_1110867_1346155682_b8a219f2d2e2ba4fc8ed9e13854eeb0a_rle_crop_3722829429_0.png', 1346155804: '1742582054_1109065_1346155532_b0d0024e18088998d4c96d5e1eeb6965_rle_crop_3722821441_0.png', 1346156242: '1742582231_1110867_1346155698_9d19b2b37ed7a369211307783900516e_rle_crop_3722829232_0.png', 1346156241: '1742582231_1110867_1346155863_946879a37df1b42ea428d932246e1fc2_rle_crop_3722829225_0.png', 1346156196: '1742582212_1110660_1346155845_eafd966bfdaeb9e120a962db049e97f9_rle_crop_3722829211_0.png', 1346156195: '1742582212_1110660_1346155845_eafd966bfdaeb9e120a962db049e97f9_rle_crop_3722829202_0.png', 1346156194: '1742582212_1110660_1346155850_5fa89d0e5d97676799b6362f2e522b28_rle_crop_3722829118_0.png', 1346156193: '1742582212_1110660_1346155854_5f2b364b8816d5797f92847c42b84c1a_rle_crop_3722829104_0.png', 1346156192: '1742582212_1110660_1346155859_67d03ee6baa2a3221071b79c31688ecb_rle_crop_3722829086_0.png', 1346155807: '1742582054_1109065_1346155476_8916e5c0460b1127f12e719ac4feab65_rle_crop_3722821473_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/f5ce561c3517db42567e1b41c5783a23_2893918.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/e3b752cf2cff80efac1be4ca07020a32_53364632.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/92ed5a196496e748033b23945c8a7833_8760328.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/ec60bfb7b2849b00fde06ae383fcb0ba_39027905.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/a4b90b7e2206efffc595fbbead831b97_52917679.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/8bfbf9a74bceb44dd9011d2855a0c51d_86441918.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/7fb679a5f5d4a6f7a0ad3bd9ea8fa145_35564394.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/b2e2d432e968b01db107fd1979aa7230_72936021.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/55e90428f2ef00976300bb25f3f8d163_90378031.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/0b1d9ac6fa93b8a9c879da813433c90c_99717688.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/fa051159c0fe414bcdfe44020d788d5b_72788011.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/c7beac5256ca71db52417a296499ef0c_26676055.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/2ede2351ec3f5e8979c2f8c579299262_31061179.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/50ea9a9dfd747dede8af6a7e4ea491e4_84507273.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/2fb54a04cbab6c46e7840928f0932713_86198506.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/43e050cc2825672450542973c1486f86_36487924.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/c0a3e1831301b8dd6691ab2c8f0eb5c8_26168200.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/ce06b2ca13207ad1781f77afd939a7bf_28588904.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/dd6f802015da1906cc30400584db24ee_90458946.png change filename to text .imagette215913381742582400/ imagette215913381742582400/1742582231_1110867_1346155863_946879a37df1b42ea428d932246e1fc2_rle_crop_3722829225_0.png.png imagette215913381742582400/1742582332_1112054_1346156210_8ad8f4c27165856ffcec67dc04555aa6_rle_crop_3722832257_0.png.png imagette215913381742582400/1742582252_1111138_1346155632_14906b41dc4eac092e27bccff26c7fe2_rle_crop_3722831482_0.png.png imagette215913381742582400/1742582252_1111138_1346155645_818446fd954d4e7aa60cb35619340b0f_rle_crop_3722831465_0.png.png imagette215913381742582400/1742582054_1109065_1346155532_b0d0024e18088998d4c96d5e1eeb6965_rle_crop_3722821441_0.png.png imagette215913381742582400/1742582231_1110867_1346155682_b8a219f2d2e2ba4fc8ed9e13854eeb0a_rle_crop_3722829427_0.png.png imagette215913381742582400/1742582332_1112054_1346156226_a75a7c00616838126d851e36dc41a55f_rle_crop_3722832248_0.png.png imagette215913381742582400/1742582212_1110660_1346155845_eafd966bfdaeb9e120a962db049e97f9_rle_crop_3722829211_0.png.png imagette215913381742582400/1742582252_1111138_1346155706_b4c985565f853616ec798355b2559172_rle_crop_3722830372_0.png.png imagette215913381742582400/1742582231_1110867_1346155682_b8a219f2d2e2ba4fc8ed9e13854eeb0a_rle_crop_3722829429_0.png.png imagette215913381742582400/1742582252_1111138_1346155663_18c7a45b88352c8dab2db1904bccaba1_rle_crop_3722830378_0.png.png imagette215913381742582400/1742582272_1111372_1346155673_c9a144ad80a93b2eacfabbd5fcca85b0_rle_crop_3722831512_0.png.png imagette215913381742582400/1742582212_1110660_1346155845_eafd966bfdaeb9e120a962db049e97f9_rle_crop_3722829202_0.png.png imagette215913381742582400/1742582054_1109065_1346155476_8916e5c0460b1127f12e719ac4feab65_rle_crop_3722821473_0.png.png imagette215913381742582400/1742582212_1110660_1346155859_67d03ee6baa2a3221071b79c31688ecb_rle_crop_3722829086_0.png.png imagette215913381742582400/1742582252_1111138_1346155626_101f2cd9baa39257197ad47a6e13c30f_rle_crop_3722831500_0.png.png imagette215913381742582400/1742582231_1110867_1346155698_9d19b2b37ed7a369211307783900516e_rle_crop_3722829232_0.png.png imagette215913381742582400/1742582212_1110660_1346155854_5f2b364b8816d5797f92847c42b84c1a_rle_crop_3722829104_0.png.png imagette215913381742582400/1742582252_1111138_1346155657_36db9779b91a6c378df5337918d767f1_rle_crop_3722830489_0.png.png imagette215913381742582400/1742582212_1110660_1346155850_5fa89d0e5d97676799b6362f2e522b28_rle_crop_3722829118_0.png.png imagette215913391742582401/ wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/1f81b6f9a4dca84c3420fcb65af4cc09_88368801.png imagette215913381742582400 21591339 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=21591339 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette215913391742582401 21591330 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=21591330 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346155802: '1742582054_1109065_1346155532_b0d0024e18088998d4c96d5e1eeb6965_rle_crop_3722821438_0.png', 1346156380: '1742582252_1111138_1346155645_818446fd954d4e7aa60cb35619340b0f_rle_crop_3722831469_0.png', 1346156957: '1742582332_1112054_1346156226_a75a7c00616838126d851e36dc41a55f_rle_crop_3722832249_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/87964ae8edc76d77bc94e2c8a1f174e7_8422357.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/6fcfb52fc81cf4d42e828d125cc2b9d3_63366250.png change filename to text .imagette215913301742582401/ imagette215913301742582401/1742582332_1112054_1346156226_a75a7c00616838126d851e36dc41a55f_rle_crop_3722832249_0.png.png imagette215913301742582401/1742582252_1111138_1346155645_818446fd954d4e7aa60cb35619340b0f_rle_crop_3722831469_0.png.png imagette215913301742582401/1742582054_1109065_1346155532_b0d0024e18088998d4c96d5e1eeb6965_rle_crop_3722821438_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/81705d13a4bf4f92e1f2b1009e8e6ddd_93686005.png imagette215913301742582401 21591332 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=21591332 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346155809: '1742582054_1109065_1346155476_8916e5c0460b1127f12e719ac4feab65_rle_crop_3722821472_0.png', 1346156213: '1742582212_1110660_1346155854_5f2b364b8816d5797f92847c42b84c1a_rle_crop_3722829099_0.png', 1346156247: '1742582231_1110867_1346155863_946879a37df1b42ea428d932246e1fc2_rle_crop_3722829224_0.png', 1346156440: '1742582252_1111138_1346155706_b4c985565f853616ec798355b2559172_rle_crop_3722830367_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/2e2797c84eb648c64ac4f80a86491676_6016213.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/00641e9c62345408053945354a5db2c3_8194357.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/1379be78141f65f6f7e67389c6404d5f_95637124.png change filename to text .imagette215913321742582401/ imagette215913321742582401/1742582231_1110867_1346155863_946879a37df1b42ea428d932246e1fc2_rle_crop_3722829224_0.png.png imagette215913321742582401/1742582212_1110660_1346155854_5f2b364b8816d5797f92847c42b84c1a_rle_crop_3722829099_0.png.png imagette215913321742582401/1742582054_1109065_1346155476_8916e5c0460b1127f12e719ac4feab65_rle_crop_3722821472_0.png.png imagette215913321742582401/1742582252_1111138_1346155706_b4c985565f853616ec798355b2559172_rle_crop_3722830367_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/d162707433dc2ae8e6b65cb5ec478ee1_8368349.png imagette215913321742582401 21591340 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=21591340 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346156203: '1742582212_1110660_1346155845_eafd966bfdaeb9e120a962db049e97f9_rle_crop_3722829206_0.png', 1346156204: '1742582212_1110660_1346155845_eafd966bfdaeb9e120a962db049e97f9_rle_crop_3722829210_0.png', 1346156424: '1742582252_1111138_1346155663_18c7a45b88352c8dab2db1904bccaba1_rle_crop_3722830381_0.png', 1346156430: '1742582252_1111138_1346155663_18c7a45b88352c8dab2db1904bccaba1_rle_crop_3722830379_0.png', 1346156431: '1742582252_1111138_1346155663_18c7a45b88352c8dab2db1904bccaba1_rle_crop_3722830375_0.png', 1346156432: '1742582252_1111138_1346155645_818446fd954d4e7aa60cb35619340b0f_rle_crop_3722831459_0.png', 1346156433: '1742582252_1111138_1346155626_101f2cd9baa39257197ad47a6e13c30f_rle_crop_3722831492_0.png', 1346156985: '1742582332_1112054_1346156226_a75a7c00616838126d851e36dc41a55f_rle_crop_3722832240_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/c8b7867e4016eb4f7c13a80c75eccc26_11386089.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/2fbeb30b41669c05f86a43a870d948c0_57568782.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/cde59a13f05267a584b24c647f620e43_19096006.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/3841048be4cd4a149ca9ffcf6b28e219_98664957.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/a6f4ef14c96f94c2587ae128188dc372_42332528.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/cfab83433230f910f4a3b2250161bb11_9457190.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/f30a2e56a7db7988bfcdd5bb905be455_93645740.png change filename to text .imagette215913401742582401/ imagette215913401742582401/1742582252_1111138_1346155663_18c7a45b88352c8dab2db1904bccaba1_rle_crop_3722830379_0.png.png imagette215913401742582401/1742582212_1110660_1346155845_eafd966bfdaeb9e120a962db049e97f9_rle_crop_3722829206_0.png.png imagette215913401742582401/1742582252_1111138_1346155663_18c7a45b88352c8dab2db1904bccaba1_rle_crop_3722830375_0.png.png imagette215913401742582401/1742582252_1111138_1346155645_818446fd954d4e7aa60cb35619340b0f_rle_crop_3722831459_0.png.png imagette215913401742582401/1742582332_1112054_1346156226_a75a7c00616838126d851e36dc41a55f_rle_crop_3722832240_0.png.png imagette215913401742582401/1742582252_1111138_1346155626_101f2cd9baa39257197ad47a6e13c30f_rle_crop_3722831492_0.png.png imagette215913401742582401/1742582212_1110660_1346155845_eafd966bfdaeb9e120a962db049e97f9_rle_crop_3722829210_0.png.png imagette215913401742582401/1742582252_1111138_1346155663_18c7a45b88352c8dab2db1904bccaba1_rle_crop_3722830381_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/367af86de3f2109c21246644618200e4_14457666.png imagette215913401742582401 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21591264 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21591341,21591342,21591343,21591344,21591345,21591346,21591347,21591348,21591349,21591350,21591351,21591352?tags=flou,Teint_Dans_La_Masse,cartonnette,Carton_brun,plastique,papier,environnement,mal_croppe,metal,autre_refus,kraft,Carton_gris your option no_mail is active, we will not send the real mail to your client args[1346156888] : ('0.07102636309177428',) no score found for photo 1346156888 We are sending mail with results at report@fotonower.com args[1346156843] : ('0.07102636309177428',) no score found for photo 1346156843 We are sending mail with results at report@fotonower.com args[1346156786] : ('0.07102636309177428',) no score found for photo 1346156786 We are sending mail with results at report@fotonower.com args[1346156717] : ('0.07102636309177428',) no score found for photo 1346156717 We are sending mail with results at report@fotonower.com args[1346156600] : ('0.07102636309177428',) no score found for photo 1346156600 We are sending mail with results at report@fotonower.com args[1346156597] : ('0.07102636309177428',) no score found for photo 1346156597 We are sending mail with results at report@fotonower.com args[1346156563] : ('0.07102636309177428',) no score found for photo 1346156563 We are sending mail with results at report@fotonower.com args[1346156546] : ('0.07102636309177428',) no score found for photo 1346156546 We are sending mail with results at report@fotonower.com args[1346156512] : ('0.07102636309177428',) no score found for photo 1346156512 We are sending mail with results at report@fotonower.com args[1346156510] : ('0.07102636309177428',) no score found for photo 1346156510 We are sending mail with results at report@fotonower.com args[1346156484] : ('0.07102636309177428',) no score found for photo 1346156484 We are sending mail with results at report@fotonower.com args[1346156480] : ('0.07102636309177428',) no score found for photo 1346156480 We are sending mail with results at report@fotonower.com args[1346156458] : ('0.07102636309177428',) no score found for photo 1346156458 We are sending mail with results at report@fotonower.com args[1346156450] : ('0.07102636309177428',) no score found for photo 1346156450 We are sending mail with results at report@fotonower.com args[1346156428] : ('0.07102636309177428',) no score found for photo 1346156428 We are sending mail with results at report@fotonower.com args[1346156427] : ('0.07102636309177428',) no score found for photo 1346156427 We are sending mail with results at report@fotonower.com args[1346156231] : ('0.07102636309177428',) no score found for photo 1346156231 We are sending mail with results at report@fotonower.com args[1346156226] : ('0.07102636309177428',) no score found for photo 1346156226 We are sending mail with results at report@fotonower.com args[1346156210] : ('0.07102636309177428',) no score found for photo 1346156210 We are sending mail with results at report@fotonower.com refus_total : 0.07102636309177428 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=21591264 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_P21591264_21-03-2025_19_39_59.pdf results_Auto_P21591264_21-03-2025_19_39_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21591264_21-03-2025_19_39_59.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','21591264','results_Auto_P21591264_21-03-2025_19_39_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21591264_21-03-2025_19_39_59.pdf','pdf','','0.3','0.07102636309177428') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21591264]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1346156888, 1346156843, 1346156786, 1346156717, 1346156600, 1346156597, 1346156563, 1346156546, 1346156512, 1346156510, 1346156484, 1346156480, 1346156458, 1346156450, 1346156428, 1346156427, 1346156231, 1346156226, 1346156210] map_info['map_portfolio_photo'] : {21591264: [1346156888, 1346156843, 1346156786, 1346156717, 1346156600, 1346156597, 1346156563, 1346156546, 1346156512, 1346156510, 1346156484, 1346156480, 1346156458, 1346156450, 1346156428, 1346156427, 1346156231, 1346156226, 1346156210, 1346155983, 1346155975, 1346155967, 1346155942, 1346155931, 1346155923, 1346155863, 1346155859, 1346155854, 1346155850, 1346155845, 1346155706, 1346155698, 1346155693, 1346155688, 1346155682, 1346155673, 1346155663, 1346155657, 1346155645, 1346155632, 1346155626, 1346155532, 1346155501, 1346155476]} final : False mtd_id 4302 list_pids : [1346156888, 1346156843, 1346156786, 1346156717, 1346156600, 1346156597, 1346156563, 1346156546, 1346156512, 1346156510, 1346156484, 1346156480, 1346156458, 1346156450, 1346156428, 1346156427, 1346156231, 1346156226, 1346156210] 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, '2680199') ('4302', '21591264', '1346156888', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156843', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156786', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156717', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156600', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156597', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156563', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156546', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156512', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156510', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156484', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156480', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156458', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156450', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156428', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156427', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156231', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156226', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156210', None, None, None, None, None, '2680199') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 19 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', '21591264', '1346156888', None, None, None, None, None, '2680199'), ('4302', '21591264', '1346156843', None, None, None, None, None, '2680199'), ('4302', '21591264', '1346156786', None, None, None, None, None, '2680199'), ('4302', '21591264', '1346156717', None, None, None, None, None, '2680199'), ('4302', '21591264', '1346156600', None, None, None, None, None, '2680199'), ('4302', '21591264', '1346156597', None, None, None, None, None, '2680199'), ('4302', '21591264', '1346156563', None, None, None, None, None, '2680199'), ('4302', '21591264', '1346156546', None, None, None, None, None, '2680199'), ('4302', '21591264', '1346156512', None, None, None, None, None, '2680199'), ('4302', '21591264', '1346156510', None, None, None, None, None, '2680199'), ('4302', '21591264', '1346156484', None, None, None, None, None, '2680199'), ('4302', '21591264', '1346156480', None, None, None, None, None, '2680199'), ('4302', '21591264', '1346156458', None, None, None, None, None, '2680199'), ('4302', '21591264', '1346156450', None, None, None, None, None, '2680199'), ('4302', '21591264', '1346156428', None, None, None, None, None, '2680199'), ('4302', '21591264', '1346156427', None, None, None, None, None, '2680199'), ('4302', '21591264', '1346156231', None, None, None, None, None, '2680199'), ('4302', '21591264', '1346156226', None, None, None, None, None, '2680199'), ('4302', '21591264', '1346156210', None, None, None, None, None, '2680199')] time used for this insertion : 0.014729499816894531 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.823487043380737 time spend to save output : 0.014955997467041016 total time spend for step 4 : 4.838443040847778 step5:split_time_score Fri Mar 21 19:40:04 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 : ['21591264'] 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 : [('21591264',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21591264) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1346156786: {'path': 'temp/1742582399_1144232_1346156786_4e2c4a29db614f2ea9cc1f53dce14212.jpg', 'extension': 'jpg'}, 1346156843: {'path': 'temp/1742582399_1144232_1346156843_5e14c6319feba3e3724a7e77836eea1b.jpg', 'extension': 'jpg'}, 1346156888: {'path': 'temp/1742582399_1144232_1346156888_9faceba12b38a30365a56a8a54ef8d9b.jpg', 'extension': 'jpg'}, 1346156563: {'path': 'temp/1742582399_1144232_1346156563_cd782359eed56e203090894d4152a898.jpg', 'extension': 'jpg'}, 1346156597: {'path': 'temp/1742582399_1144232_1346156597_8c9d60cce0dcc07183f7a03958ccd940.jpg', 'extension': 'jpg'}, 1346156600: {'path': 'temp/1742582399_1144232_1346156600_fea05dfded5653619d50ebe7a48ff22c.jpg', 'extension': 'jpg'}, 1346156717: {'path': 'temp/1742582399_1144232_1346156717_79e7871d1642660e0952ae889faecb75.jpg', 'extension': 'jpg'}, 1346156210: {'path': 'temp/1742582399_1144232_1346156210_8ad8f4c27165856ffcec67dc04555aa6.jpg', 'extension': 'jpg'}, 1346156226: {'path': 'temp/1742582399_1144232_1346156226_a75a7c00616838126d851e36dc41a55f.jpg', 'extension': 'jpg'}, 1346156231: {'path': 'temp/1742582399_1144232_1346156231_5dd7f1c2319753e67a8aa375ef5261f6.jpg', 'extension': 'jpg'}, 1346156427: {'path': 'temp/1742582399_1144232_1346156427_89460f9402a771345975d53f658e7ac7.jpg', 'extension': 'jpg'}, 1346156428: {'path': 'temp/1742582399_1144232_1346156428_900de750e7c25ff35710b9e99294cdd9.jpg', 'extension': 'jpg'}, 1346156450: {'path': 'temp/1742582399_1144232_1346156450_af6e6b7d3e472797aa3abc03ad6ce475.jpg', 'extension': 'jpg'}, 1346156458: {'path': 'temp/1742582399_1144232_1346156458_a4706eb5e674578055ee3c5b6f390f15.jpg', 'extension': 'jpg'}, 1346156480: {'path': 'temp/1742582399_1144232_1346156480_fdf1bc7fdfb695674dc022933bc09b72.jpg', 'extension': 'jpg'}, 1346156484: {'path': 'temp/1742582399_1144232_1346156484_371293b87ab428efc686bcc9e3efe136.jpg', 'extension': 'jpg'}, 1346156510: {'path': 'temp/1742582399_1144232_1346156510_29b277956f69d720841ebbbe70b71be6.jpg', 'extension': 'jpg'}, 1346156512: {'path': 'temp/1742582399_1144232_1346156512_2c8380d002e5471ac919bc4b2180362c.jpg', 'extension': 'jpg'}, 1346156546: {'path': 'temp/1742582399_1144232_1346156546_86d715b1a10599a4399d4a4a6a2c8d6f.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 = 21591264; (('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 = 21591264 group by h (('19', 44),) 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=21591264 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 (21591264) 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 (21591264) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 21032025 21591264 Nombre de photos uploadées : 44 / 23040 (0%) 21032025 21591264 Nombre de photos taguées (types de déchets): 0 / 44 (0%) 21032025 21591264 Nombre de photos taguées (volume) : 0 / 44 (0%) [{'photo_id': 1346155532, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/b0d0024e18088998d4c96d5e1eeb6965.jpg', 'username': None, 'uploaded_at': 1742581937, 'text': 'image_21032025_19_30_04_010151m0.jpg 1e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1346155501, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/4cf7397cdc2c9cac8071cb016a6b956c.jpg', 'username': None, 'uploaded_at': 1742581937, 'text': 'image_21032025_19_30_14_010137m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1346155476, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/8916e5c0460b1127f12e719ac4feab65.jpg', 'username': None, 'uploaded_at': 1742581937, 'text': 'image_21032025_19_30_24_010137m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1346155673, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/c9a144ad80a93b2eacfabbd5fcca85b0.jpg', 'username': None, 'uploaded_at': 1742582008, 'text': 'image_21032025_19_30_44_010136m0.jpg 4e-05 for time 1, id_amount 1 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.0020444393157958984 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21591264, '2025-03-21' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1678259,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.025897979736328125 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= 1678259 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1678259, 'dashboard_run_id': 1686987, 'mtr_portfolio_id': 21589129, 'dashboard_result_id': 9542850, '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_P21589129_21-03-2025_19_06_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21589161, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21589162, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21589163, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21589164, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21589165, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21589166, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21589167, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21589168, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21589169, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21589170, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21589171, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21589172, 'pht': 3726}}"}, {'dashboat_entry_day': 1678259, 'dashboard_run_id': 1686987, 'mtr_portfolio_id': 21589130, 'dashboard_result_id': 9542852, '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_P21589130_21-03-2025_19_19_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21589131, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21589132, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21589133, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21589134, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21589135, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21589136, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21589137, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21589138, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21589139, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21589140, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21589141, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21589142, 'pht': 3726}}"}, {'dashboat_entry_day': 1678259, 'dashboard_run_id': 1686987, 'mtr_portfolio_id': 21590152, 'dashboard_result_id': 9542853, '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_P21590152_21-03-2025_19_35_03.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21590171, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21590172, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21590173, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21590174, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21590175, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21590176, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21590177, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21590178, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21590179, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21590180, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21590181, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21590182, 'pht': 3726}}"}, {'dashboat_entry_day': 1678259, 'dashboard_run_id': 1686987, 'mtr_portfolio_id': 21591264, 'dashboard_result_id': 9542855, '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_P21591264_21-03-2025_19_37_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21591329, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21591330, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21591331, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21591332, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21591333, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21591334, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21591335, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21591336, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21591337, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21591338, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21591339, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21591340, '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 = 21589129 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': 2680073, 'mtr_portfolio_id': 21589129, 'created_at': datetime.datetime(2025, 3, 21, 19, 6, 1), 'result': '0.07747611787648946', 'result_long': None, 'result_double': None}] Qualite : 0.07747611787648946 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21589129 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21589129_21-03-2025_19_06_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21589129 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_P21589129_21-03-2025_19_06_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21589161, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21589162, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21589163, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21589164, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21589165, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21589166, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21589167, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21589168, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21589169, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21589170, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21589171, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21589172, 'pht': 3726}}" where mtr_portfolio_id = 21589129 and dashboard_run_id = 1686987 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`=21589129 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9542850, 0.07747611787648946, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21589129_21-03-2025_19_06_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21589161, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21589162, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21589163, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21589164, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21589165, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21589166, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21589167, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21589168, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21589169, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21589170, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21589171, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21589172, '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 = 21589130 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': 2680074, 'mtr_portfolio_id': 21589130, 'created_at': datetime.datetime(2025, 3, 21, 19, 19), 'result': '0.0856138373609611', 'result_long': None, 'result_double': None}] Qualite : 0.0856138373609611 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21589130 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21589130_21-03-2025_19_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21589130 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_P21589130_21-03-2025_19_19_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21589131, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21589132, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21589133, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21589134, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21589135, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21589136, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21589137, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21589138, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21589139, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21589140, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21589141, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21589142, 'pht': 3726}}" where mtr_portfolio_id = 21589130 and dashboard_run_id = 1686987 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`=21589130 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9542852, 0.0856138373609611, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21589130_21-03-2025_19_19_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21589131, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21589132, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21589133, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21589134, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21589135, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21589136, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21589137, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21589138, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21589139, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21589140, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21589141, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21589142, '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 = 21590152 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': 2680116, 'mtr_portfolio_id': 21590152, 'created_at': datetime.datetime(2025, 3, 21, 19, 35, 3), 'result': '0.09581432467744277', 'result_long': None, 'result_double': None}] Qualite : 0.09581432467744277 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21590152 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21590152_21-03-2025_19_35_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21590152 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_P21590152_21-03-2025_19_35_03.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21590171, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21590172, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21590173, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21590174, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21590175, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21590176, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21590177, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21590178, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21590179, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21590180, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21590181, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21590182, 'pht': 3726}}" where mtr_portfolio_id = 21590152 and dashboard_run_id = 1686987 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`=21590152 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9542853, 0.09581432467744277, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21590152_21-03-2025_19_35_03.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21590171, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21590172, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21590173, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21590174, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21590175, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21590176, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21590177, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21590178, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21590179, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21590180, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21590181, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21590182, '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 = 21591264 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': 2680199, 'mtr_portfolio_id': 21591264, 'created_at': datetime.datetime(2025, 3, 21, 19, 39, 59), 'result': '0.07102636309177428', 'result_long': None, 'result_double': None}] Qualite : 0.07102636309177428 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21591264 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21591264_21-03-2025_19_39_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21591264 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_P21591264_21-03-2025_19_39_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21591329, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21591330, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21591331, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21591332, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21591333, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21591334, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21591335, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21591336, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21591337, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21591338, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21591339, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21591340, 'pht': 3726}}" where mtr_portfolio_id = 21591264 and dashboard_run_id = 1686987 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`=21591264 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9542855, 0.07102636309177428, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21591264_21-03-2025_19_39_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21591329, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21591330, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21591331, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21591332, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21591333, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21591334, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21591335, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21591336, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21591337, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21591338, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21591339, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21591340, '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 (21589129,21589130,21590152,21591264) result : ((1346133455,), (1346135094,), (1346135358,), (1346135426,), (1346135517,), (1346135628,), (1346135703,), (1346136831,), (1346136845,), (1346136501,), (1346136518,), (1346136569,), (1346136583,), (1346136749,), (1346136793,), (1346137663,), (1346137664,), (1346137730,), (1346137733,), (1346137802,), (1346137813,), (1346137876,), (1346137886,), (1346138458,), (1346138501,), (1346138548,), (1346139306,), (1346139337,), (1346139381,), (1346139409,), (1346139437,), (1346139537,), (1346139567,), (1346139594,), (1346139644,), (1346140105,), (1346140129,), (1346140172,), (1346140703,), (1346140774,), (1346140820,), (1346140860,), (1346141580,), (1346141631,), (1346141723,), (1346141797,), (1346142949,), (1346143088,), (1346143174,), (1346143278,), (1346143735,), (1346143815,), (1346143871,), (1346144515,), (1346144571,), (1346144627,), (1346144698,), (1346145631,), (1346145692,), (1346147072,), (1346147177,), (1346147405,), (1346147507,), (1346148362,), (1346148422,), (1346148467,), (1346148527,), (1346148658,), (1346148705,), (1346148708,), (1346148767,), (1346148812,), (1346149640,), (1346149439,), (1346149478,), (1346149514,), (1346150581,), (1346150694,), (1346150789,), (1346150961,), (1346151028,), (1346151847,), (1346151887,), (1346151938,), (1346151972,), (1346152118,), (1346152146,), (1346152410,), (1346152412,), (1346152425,), (1346152426,), (1346152436,), (1346152437,), (1346152468,), (1346152469,), (1346152491,), (1346152493,), (1346152515,), (1346152516,), (1346152552,), (1346152563,), (1346152568,), (1346152583,), (1346152589,), (1346152627,), (1346153197,), (1346153248,), (1346153280,), (1346153313,), (1346153918,), (1346153945,), (1346153957,), (1346154164,), (1346154165,), (1346154169,), (1346154170,), (1346154176,), (1346154177,), (1346154185,), (1346154186,), (1346154191,), (1346154193,), (1346154278,), (1346154304,), (1346154331,), (1346154360,), (1346154382,), (1346154403,), (1346154437,), (1346154450,), (1346154477,), (1346154482,), (1346154734,), (1346154755,), (1346154799,), (1346154823,), (1346155012,), (1346155041,), (1346155053,), (1346155057,), (1346155062,), (1346155064,), (1346155265,), (1346155282,), (1346155287,), (1346155355,), (1346155365,), (1346155374,), (1346155382,), (1346155549,), (1346155476,), (1346155501,), (1346155532,), (1346155626,), (1346155632,), (1346155645,), (1346155657,), (1346155663,), (1346155673,), (1346155682,), (1346155688,), (1346155693,), (1346155698,), (1346155706,), (1346155845,), (1346155850,), (1346155854,), (1346155859,), (1346155863,), (1346155923,), (1346155931,), (1346155942,), (1346155967,), (1346155975,), (1346155983,), (1346156210,), (1346156226,), (1346156231,), (1346156427,), (1346156428,), (1346156450,), (1346156458,), (1346156480,), (1346156484,), (1346156510,), (1346156512,), (1346156546,), (1346156563,), (1346156597,), (1346156600,), (1346156717,), (1346156786,), (1346156843,), (1346156888,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'21032025': {'nb_upload': 44, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21591264]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1346156888, 1346156843, 1346156786, 1346156717, 1346156600, 1346156597, 1346156563, 1346156546, 1346156512, 1346156510, 1346156484, 1346156480, 1346156458, 1346156450, 1346156428, 1346156427, 1346156231, 1346156226, 1346156210] map_info['map_portfolio_photo'] : {21591264: [1346156888, 1346156843, 1346156786, 1346156717, 1346156600, 1346156597, 1346156563, 1346156546, 1346156512, 1346156510, 1346156484, 1346156480, 1346156458, 1346156450, 1346156428, 1346156427, 1346156231, 1346156226, 1346156210, 1346155983, 1346155975, 1346155967, 1346155942, 1346155931, 1346155923, 1346155863, 1346155859, 1346155854, 1346155850, 1346155845, 1346155706, 1346155698, 1346155693, 1346155688, 1346155682, 1346155673, 1346155663, 1346155657, 1346155645, 1346155632, 1346155626, 1346155532, 1346155501, 1346155476]} final : True mtd_id 4302 list_pids : [1346156888, 1346156843, 1346156786, 1346156717, 1346156600, 1346156597, 1346156563, 1346156546, 1346156512, 1346156510, 1346156484, 1346156480, 1346156458, 1346156450, 1346156428, 1346156427, 1346156231, 1346156226, 1346156210] Looping around the photos to save general results len do output : 1 /21591264Didn'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, '2680199') ('4302', '21591264', '1346156888', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156843', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156786', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156717', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156600', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156597', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156563', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156546', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156512', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156510', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156484', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156480', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156458', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156450', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156428', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156427', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156231', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156226', None, None, None, None, None, '2680199') ('4302', None, None, None, None, None, None, None, '2680199') ('4302', '21591264', '1346156210', None, None, None, None, None, '2680199') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 20 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, '21591264', 'None', None, None, None, None, '2680199'), ('4302', '21591264', '1346156888', None, None, None, None, None, '2680199'), ('4302', '21591264', '1346156843', None, None, None, None, None, '2680199'), ('4302', '21591264', '1346156786', None, None, None, None, None, '2680199'), ('4302', '21591264', '1346156717', None, None, None, None, None, '2680199'), ('4302', '21591264', '1346156600', None, None, None, None, None, '2680199'), ('4302', '21591264', '1346156597', None, None, None, None, None, '2680199'), ('4302', '21591264', '1346156563', None, None, None, None, None, '2680199'), ('4302', '21591264', '1346156546', None, None, None, None, None, '2680199'), ('4302', '21591264', '1346156512', None, None, None, None, None, '2680199'), ('4302', '21591264', '1346156510', None, None, None, None, None, '2680199'), ('4302', '21591264', '1346156484', None, None, None, None, None, '2680199'), ('4302', '21591264', '1346156480', None, None, None, None, None, '2680199'), ('4302', '21591264', '1346156458', None, None, None, None, None, '2680199'), ('4302', '21591264', '1346156450', None, None, None, None, None, '2680199'), ('4302', '21591264', '1346156428', None, None, None, None, None, '2680199'), ('4302', '21591264', '1346156427', None, None, None, None, None, '2680199'), ('4302', '21591264', '1346156231', None, None, None, None, None, '2680199'), ('4302', '21591264', '1346156226', None, None, None, None, None, '2680199'), ('4302', '21591264', '1346156210', None, None, None, None, None, '2680199')] time used for this insertion : 0.016346454620361328 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3523404598236084 time spend to save output : 0.01662158966064453 total time spend for step 5 : 0.36896204948425293 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 (2680199) 2.44user 2.40system 0:08.57elapsed 56%CPU (0avgtext+0avgdata 161612maxresident)k 480inputs+18464outputs (3major+75263minor)pagefaults 0swaps