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 : 2200585 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 (2618923) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2618923) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20872052 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2618923'] with mtr_portfolio_ids : ['20872052'] and first list_photo_ids : [] new path : /proc/2200585/ Name: python3 Umask: 0002 State: R (running) Tgid: 2200585 Ngid: 0 Pid: 2200585 PPid: 2200584 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2200585 NSpid: 2200585 NSpgid: 2197753 NSsid: 2197753 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97716 kB VmRSS: 97716 kB RssAnon: 59756 kB RssFile: 37960 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 584 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 3/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 51 nonvoluntary_ctxt_switches: 93 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2200585', 'Ngid': '0', 'Pid': '2200585', 'PPid': '2200584', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2200585', 'NSpid': '2200585', 'NSpgid': '2197753', 'NSsid': '2197753', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97716 kB', 'VmRSS': '97716 kB', 'RssAnon': '59756 kB', 'RssFile': '37960 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '584 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '3/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '51', 'nonvoluntary_ctxt_switches': '93'} ('datou_batch_current', '2200585', '1106844', '0', '1106844', '865592', '97716', b'', 'marlene', '2618923') 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 (20872052) 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 (2618923 ) ) 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 (20872052) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1339863661, 'portfolio_id': 20872052}, {'photo_id': 1339863659, 'portfolio_id': 20872052}, {'photo_id': 1339863656, 'portfolio_id': 20872052}, {'photo_id': 1339863653, 'portfolio_id': 20872052}, {'photo_id': 1339863650, 'portfolio_id': 20872052}, {'photo_id': 1339863628, 'portfolio_id': 20872052}, {'photo_id': 1339863624, 'portfolio_id': 20872052}, {'photo_id': 1339863622, 'portfolio_id': 20872052}, {'photo_id': 1339863620, 'portfolio_id': 20872052}, {'photo_id': 1339863617, 'portfolio_id': 20872052}, {'photo_id': 1339863615, 'portfolio_id': 20872052}, {'photo_id': 1339863602, 'portfolio_id': 20872052}, {'photo_id': 1339863600, 'portfolio_id': 20872052}, {'photo_id': 1339863598, 'portfolio_id': 20872052}, {'photo_id': 1339863595, 'portfolio_id': 20872052}, {'photo_id': 1339863593, 'portfolio_id': 20872052}, {'photo_id': 1339863555, 'portfolio_id': 20872052}, {'photo_id': 1339863552, 'portfolio_id': 20872052}, {'photo_id': 1339863550, 'portfolio_id': 20872052}, {'photo_id': 1339863546, 'portfolio_id': 20872052}, {'photo_id': 1339863543, 'portfolio_id': 20872052}, {'photo_id': 1339863516, 'portfolio_id': 20872052}, {'photo_id': 1339863514, 'portfolio_id': 20872052}, {'photo_id': 1339863507, 'portfolio_id': 20872052}, {'photo_id': 1339863496, 'portfolio_id': 20872052}, {'photo_id': 1339863489, 'portfolio_id': 20872052}, {'photo_id': 1339863474, 'portfolio_id': 20872052}, {'photo_id': 1339863469, 'portfolio_id': 20872052}, {'photo_id': 1339863463, 'portfolio_id': 20872052}, {'photo_id': 1339863442, 'portfolio_id': 20872052}, {'photo_id': 1339863419, 'portfolio_id': 20872052}, {'photo_id': 1339863050, 'portfolio_id': 20872052}, {'photo_id': 1339863048, 'portfolio_id': 20872052}, {'photo_id': 1339863043, 'portfolio_id': 20872052}, {'photo_id': 1339863035, 'portfolio_id': 20872052}, {'photo_id': 1339863028, 'portfolio_id': 20872052}] map_portfolio_id_photo_id: {20872052: [1339863661, 1339863659, 1339863656, 1339863653, 1339863650, 1339863628, 1339863624, 1339863622, 1339863620, 1339863617, 1339863615, 1339863602, 1339863600, 1339863598, 1339863595, 1339863593, 1339863555, 1339863552, 1339863550, 1339863546, 1339863543, 1339863516, 1339863514, 1339863507, 1339863496, 1339863489, 1339863474, 1339863469, 1339863463, 1339863442, 1339863419, 1339863050, 1339863048, 1339863043, 1339863035, 1339863028]} ##### 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.03222393989562988 #### 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 Thu Feb 27 06:08: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 (20872052) 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 : 20872052 get user id for portfolio 20872052 get sub ptf for main ptf 20872052, type 3726 and hashtags ['flou', 'Teint_Dans_La_Masse', 'papier', 'cartonnette', 'Carton_gris', 'Carton_brun', 'kraft', 'plastique', 'environnement', 'mal_croppe', 'metal', 'autre_refus'] 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`=20872052 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Teint_Dans_La_Masse','papier','cartonnette','Carton_gris','Carton_brun','kraft','plastique','environnement','mal_croppe','metal','autre_refus')) 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`=20872052 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Teint_Dans_La_Masse','papier','cartonnette','Carton_gris','Carton_brun','kraft','plastique','environnement','mal_croppe','metal','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 20872052, 'sub_port_id': 20872053, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13503533, 'last_updated_at': datetime.datetime(2025, 2, 27, 6, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 6, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 6, 4, 57)}, 'papier': {'main_port_id': 20872052, 'sub_port_id': 20872054, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13503534, 'last_updated_at': datetime.datetime(2025, 2, 27, 6, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 6, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 6, 4, 57)}, 'kraft': {'main_port_id': 20872052, 'sub_port_id': 20872055, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13503535, 'last_updated_at': datetime.datetime(2025, 2, 27, 6, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 6, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 6, 4, 57)}, 'Carton_brun': {'main_port_id': 20872052, 'sub_port_id': 20872056, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13503536, 'last_updated_at': datetime.datetime(2025, 2, 27, 6, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 6, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 6, 4, 57)}, 'cartonnette': {'main_port_id': 20872052, 'sub_port_id': 20872057, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13503537, 'last_updated_at': datetime.datetime(2025, 2, 27, 6, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 6, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 6, 4, 57)}, 'flou': {'main_port_id': 20872052, 'sub_port_id': 20872058, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13503538, 'last_updated_at': datetime.datetime(2025, 2, 27, 6, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 6, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 6, 4, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 20872052, 'sub_port_id': 20872059, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13503539, 'last_updated_at': datetime.datetime(2025, 2, 27, 6, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 6, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 6, 4, 57)}, 'Carton_gris': {'main_port_id': 20872052, 'sub_port_id': 20872060, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13503540, 'last_updated_at': datetime.datetime(2025, 2, 27, 6, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 6, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 6, 4, 57)}, 'metal': {'main_port_id': 20872052, 'sub_port_id': 20872061, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13503541, 'last_updated_at': datetime.datetime(2025, 2, 27, 6, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 6, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 6, 4, 57)}, 'autre_refus': {'main_port_id': 20872052, 'sub_port_id': 20872062, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13503542, 'last_updated_at': datetime.datetime(2025, 2, 27, 6, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 6, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 6, 4, 57)}, 'plastique': {'main_port_id': 20872052, 'sub_port_id': 20872063, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13503543, 'last_updated_at': datetime.datetime(2025, 2, 27, 6, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 6, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 6, 4, 57)}, 'mal_croppe': {'main_port_id': 20872052, 'sub_port_id': 20872064, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13503544, 'last_updated_at': datetime.datetime(2025, 2, 27, 6, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 6, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 6, 4, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20872053 , 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=20872052 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 (20872053) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20872052) result : ((1339863028,), (1339863035,), (1339863043,), (1339863048,), (1339863050,), (1339863419,), (1339863442,), (1339863463,), (1339863469,), (1339863474,), (1339863489,), (1339863496,), (1339863507,), (1339863514,), (1339863516,), (1339863543,), (1339863546,), (1339863550,), (1339863552,), (1339863555,), (1339863593,), (1339863595,), (1339863598,), (1339863600,), (1339863602,), (1339863615,), (1339863617,), (1339863620,), (1339863622,), (1339863624,), (1339863628,), (1339863650,), (1339863653,), (1339863656,), (1339863659,), (1339863661,)) 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 (1339863600) 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 20872054 , 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=20872052 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 (20872054) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20872052) result : ((1339863028,), (1339863035,), (1339863043,), (1339863048,), (1339863050,), (1339863419,), (1339863442,), (1339863463,), (1339863469,), (1339863474,), (1339863489,), (1339863496,), (1339863507,), (1339863514,), (1339863516,), (1339863543,), (1339863546,), (1339863550,), (1339863552,), (1339863555,), (1339863593,), (1339863595,), (1339863598,), (1339863600,), (1339863602,), (1339863615,), (1339863617,), (1339863620,), (1339863622,), (1339863624,), (1339863628,), (1339863650,), (1339863653,), (1339863656,), (1339863659,), (1339863661,)) 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 (1339863600) 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 20872055 , 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=20872052 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 (20872055) result : ((1339863587,), (1339863633,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20872052) result : ((1339863028,), (1339863035,), (1339863043,), (1339863048,), (1339863050,), (1339863419,), (1339863442,), (1339863463,), (1339863469,), (1339863474,), (1339863489,), (1339863496,), (1339863507,), (1339863514,), (1339863516,), (1339863543,), (1339863546,), (1339863550,), (1339863552,), (1339863555,), (1339863593,), (1339863595,), (1339863598,), (1339863600,), (1339863602,), (1339863615,), (1339863617,), (1339863620,), (1339863622,), (1339863624,), (1339863628,), (1339863650,), (1339863653,), (1339863656,), (1339863659,), (1339863661,)) 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 (1339863600) 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 20872056 , 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=20872052 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 (20872056) result : ((1339863558,), (1339863559,), (1339863584,), (1339863631,), (1339863632,), (1339863639,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20872052) result : ((1339863028,), (1339863035,), (1339863043,), (1339863048,), (1339863050,), (1339863419,), (1339863442,), (1339863463,), (1339863469,), (1339863474,), (1339863489,), (1339863496,), (1339863507,), (1339863514,), (1339863516,), (1339863543,), (1339863546,), (1339863550,), (1339863552,), (1339863555,), (1339863593,), (1339863595,), (1339863598,), (1339863600,), (1339863602,), (1339863615,), (1339863617,), (1339863620,), (1339863622,), (1339863624,), (1339863628,), (1339863650,), (1339863653,), (1339863656,), (1339863659,), (1339863661,)) 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 (1339863600) 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 20872057 , 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=20872052 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 (20872057) result : ((1339863582,), (1339863637,), (1339863638,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20872052) result : ((1339863028,), (1339863035,), (1339863043,), (1339863048,), (1339863050,), (1339863419,), (1339863442,), (1339863463,), (1339863469,), (1339863474,), (1339863489,), (1339863496,), (1339863507,), (1339863514,), (1339863516,), (1339863543,), (1339863546,), (1339863550,), (1339863552,), (1339863555,), (1339863593,), (1339863595,), (1339863598,), (1339863600,), (1339863602,), (1339863615,), (1339863617,), (1339863620,), (1339863622,), (1339863624,), (1339863628,), (1339863650,), (1339863653,), (1339863656,), (1339863659,), (1339863661,)) 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 (1339863600) 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 20872058 , 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=20872052 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 (20872058) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20872052) result : ((1339863028,), (1339863035,), (1339863043,), (1339863048,), (1339863050,), (1339863419,), (1339863442,), (1339863463,), (1339863469,), (1339863474,), (1339863489,), (1339863496,), (1339863507,), (1339863514,), (1339863516,), (1339863543,), (1339863546,), (1339863550,), (1339863552,), (1339863555,), (1339863593,), (1339863595,), (1339863598,), (1339863600,), (1339863602,), (1339863615,), (1339863617,), (1339863620,), (1339863622,), (1339863624,), (1339863628,), (1339863650,), (1339863653,), (1339863656,), (1339863659,), (1339863661,)) 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 (1339863600) 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 20872059 , 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=20872052 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 (20872059) result : ((1339863557,), (1339863570,), (1339863571,), (1339863572,), (1339863573,), (1339863686,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20872052) result : ((1339863028,), (1339863035,), (1339863043,), (1339863048,), (1339863050,), (1339863419,), (1339863442,), (1339863463,), (1339863469,), (1339863474,), (1339863489,), (1339863496,), (1339863507,), (1339863514,), (1339863516,), (1339863543,), (1339863546,), (1339863550,), (1339863552,), (1339863555,), (1339863593,), (1339863595,), (1339863598,), (1339863600,), (1339863602,), (1339863615,), (1339863617,), (1339863620,), (1339863622,), (1339863624,), (1339863628,), (1339863650,), (1339863653,), (1339863656,), (1339863659,), (1339863661,)) 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 (1339863600) 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 20872060 , 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=20872052 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 (20872060) result : ((1339863577,), (1339863578,), (1339863579,), (1339863580,), (1339863629,), (1339863630,), (1339863635,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20872052) result : ((1339863028,), (1339863035,), (1339863043,), (1339863048,), (1339863050,), (1339863419,), (1339863442,), (1339863463,), (1339863469,), (1339863474,), (1339863489,), (1339863496,), (1339863507,), (1339863514,), (1339863516,), (1339863543,), (1339863546,), (1339863550,), (1339863552,), (1339863555,), (1339863593,), (1339863595,), (1339863598,), (1339863600,), (1339863602,), (1339863615,), (1339863617,), (1339863620,), (1339863622,), (1339863624,), (1339863628,), (1339863650,), (1339863653,), (1339863656,), (1339863659,), (1339863661,)) 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 (1339863600) 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 20872061 , 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=20872052 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 (20872061) result : ((1339863588,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20872052) result : ((1339863028,), (1339863035,), (1339863043,), (1339863048,), (1339863050,), (1339863419,), (1339863442,), (1339863463,), (1339863469,), (1339863474,), (1339863489,), (1339863496,), (1339863507,), (1339863514,), (1339863516,), (1339863543,), (1339863546,), (1339863550,), (1339863552,), (1339863555,), (1339863593,), (1339863595,), (1339863598,), (1339863600,), (1339863602,), (1339863615,), (1339863617,), (1339863620,), (1339863622,), (1339863624,), (1339863628,), (1339863650,), (1339863653,), (1339863656,), (1339863659,), (1339863661,)) 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 (1339863600) 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 20872062 , 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=20872052 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 (20872062) result : ((1339863576,), (1339863625,), (1339863626,), (1339863627,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20872052) result : ((1339863028,), (1339863035,), (1339863043,), (1339863048,), (1339863050,), (1339863419,), (1339863442,), (1339863463,), (1339863469,), (1339863474,), (1339863489,), (1339863496,), (1339863507,), (1339863514,), (1339863516,), (1339863543,), (1339863546,), (1339863550,), (1339863552,), (1339863555,), (1339863593,), (1339863595,), (1339863598,), (1339863600,), (1339863602,), (1339863615,), (1339863617,), (1339863620,), (1339863622,), (1339863624,), (1339863628,), (1339863650,), (1339863653,), (1339863656,), (1339863659,), (1339863661,)) 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 (1339863600) 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 20872063 , 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=20872052 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 (20872063) result : ((1339863560,), (1339863561,), (1339863585,), (1339863586,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20872052) result : ((1339863028,), (1339863035,), (1339863043,), (1339863048,), (1339863050,), (1339863419,), (1339863442,), (1339863463,), (1339863469,), (1339863474,), (1339863489,), (1339863496,), (1339863507,), (1339863514,), (1339863516,), (1339863543,), (1339863546,), (1339863550,), (1339863552,), (1339863555,), (1339863593,), (1339863595,), (1339863598,), (1339863600,), (1339863602,), (1339863615,), (1339863617,), (1339863620,), (1339863622,), (1339863624,), (1339863628,), (1339863650,), (1339863653,), (1339863656,), (1339863659,), (1339863661,)) 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 (1339863600) 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 20872064 , 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=20872052 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 (20872064) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20872052) result : ((1339863028,), (1339863035,), (1339863043,), (1339863048,), (1339863050,), (1339863419,), (1339863442,), (1339863463,), (1339863469,), (1339863474,), (1339863489,), (1339863496,), (1339863507,), (1339863514,), (1339863516,), (1339863543,), (1339863546,), (1339863550,), (1339863552,), (1339863555,), (1339863593,), (1339863595,), (1339863598,), (1339863600,), (1339863602,), (1339863615,), (1339863617,), (1339863620,), (1339863622,), (1339863624,), (1339863628,), (1339863650,), (1339863653,), (1339863656,), (1339863659,), (1339863661,)) 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 (1339863600) 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`=20872052 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Teint_Dans_La_Masse','papier','cartonnette','Carton_gris','Carton_brun','kraft','plastique','environnement','mal_croppe','metal','autre_refus')) 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`=20872052 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Teint_Dans_La_Masse','papier','cartonnette','Carton_gris','Carton_brun','kraft','plastique','environnement','mal_croppe','metal','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 20872052, 'sub_port_id': 20872065, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13503545, 'last_updated_at': datetime.datetime(2025, 2, 27, 6, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 6, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 6, 4, 59)}, 'papier': {'main_port_id': 20872052, 'sub_port_id': 20872066, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13503546, 'last_updated_at': datetime.datetime(2025, 2, 27, 6, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 6, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 6, 4, 59)}, 'kraft': {'main_port_id': 20872052, 'sub_port_id': 20872067, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13503547, 'last_updated_at': datetime.datetime(2025, 2, 27, 6, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 6, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 6, 4, 59)}, 'Carton_brun': {'main_port_id': 20872052, 'sub_port_id': 20872068, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13503548, 'last_updated_at': datetime.datetime(2025, 2, 27, 6, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 6, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 6, 4, 59)}, 'cartonnette': {'main_port_id': 20872052, 'sub_port_id': 20872069, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13503549, 'last_updated_at': datetime.datetime(2025, 2, 27, 6, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 6, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 6, 4, 59)}, 'flou': {'main_port_id': 20872052, 'sub_port_id': 20872070, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13503550, 'last_updated_at': datetime.datetime(2025, 2, 27, 6, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 6, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 6, 4, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 20872052, 'sub_port_id': 20872071, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13503551, 'last_updated_at': datetime.datetime(2025, 2, 27, 6, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 6, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 6, 4, 59)}, 'Carton_gris': {'main_port_id': 20872052, 'sub_port_id': 20872072, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13503552, 'last_updated_at': datetime.datetime(2025, 2, 27, 6, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 6, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 6, 4, 59)}, 'metal': {'main_port_id': 20872052, 'sub_port_id': 20872073, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13503553, 'last_updated_at': datetime.datetime(2025, 2, 27, 6, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 6, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 6, 4, 59)}, 'autre_refus': {'main_port_id': 20872052, 'sub_port_id': 20872074, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13503554, 'last_updated_at': datetime.datetime(2025, 2, 27, 6, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 6, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 6, 4, 59)}, 'plastique': {'main_port_id': 20872052, 'sub_port_id': 20872075, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13503555, 'last_updated_at': datetime.datetime(2025, 2, 27, 6, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 6, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 6, 4, 59)}, 'mal_croppe': {'main_port_id': 20872052, 'sub_port_id': 20872076, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13503556, 'last_updated_at': datetime.datetime(2025, 2, 27, 6, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 6, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 6, 4, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20872065,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20872053 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20872066,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20872054 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20872067,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20872055 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20872068,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20872056 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20872069,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20872057 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20872070,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20872058 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20872071,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20872059 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20872072,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20872060 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20872073,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20872061 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20872074,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20872062 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20872075,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20872063 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20872076,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20872064 lien utilise dans velours : https://www.fotonower.com/velours/20872065,20872066,20872067,20872068,20872069,20872070,20872071,20872072,20872073,20872074,20872075,20872076?tags=environnement,papier,kraft,Carton_brun,cartonnette,flou,Teint_Dans_La_Masse,Carton_gris,metal,autre_refus,plastique,mal_croppe After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20872052]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1339863661, 1339863659, 1339863656, 1339863653, 1339863650, 1339863628, 1339863624, 1339863622, 1339863620, 1339863617, 1339863615, 1339863602, 1339863600, 1339863598, 1339863595, 1339863593, 1339863555, 1339863552, 1339863550, 1339863546, 1339863543] map_info['map_portfolio_photo'] : {20872052: [1339863661, 1339863659, 1339863656, 1339863653, 1339863650, 1339863628, 1339863624, 1339863622, 1339863620, 1339863617, 1339863615, 1339863602, 1339863600, 1339863598, 1339863595, 1339863593, 1339863555, 1339863552, 1339863550, 1339863546, 1339863543, 1339863516, 1339863514, 1339863507, 1339863496, 1339863489, 1339863474, 1339863469, 1339863463, 1339863442, 1339863419, 1339863050, 1339863048, 1339863043, 1339863035, 1339863028]} final : False mtd_id 4302 list_pids : [1339863661, 1339863659, 1339863656, 1339863653, 1339863650, 1339863628, 1339863624, 1339863622, 1339863620, 1339863617, 1339863615, 1339863602, 1339863600, 1339863598, 1339863595, 1339863593, 1339863555, 1339863552, 1339863550, 1339863546, 1339863543] Looping around the photos to save general results len do output : 1 /20872052. 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, '2618923') ('4302', '20872052', '1339863661', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863659', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863656', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863653', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863650', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863628', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863624', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863622', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863620', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863617', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863615', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863602', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863600', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863598', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863595', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863593', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863555', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863552', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863550', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863546', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863543', None, None, None, None, None, '2618923') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 22 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, '20872052', "{'environnement': 20872053, 'papier': 20872054, 'kraft': 20872055, 'Carton_brun': 20872056, 'cartonnette': 20872057, 'flou': 20872058, 'Teint_Dans_La_Masse': 20872059, 'Carton_gris': 20872060, 'metal': 20872061, 'autre_refus': 20872062, 'plastique': 20872063, 'mal_croppe': 20872064}", None, None, None, None, '2618923'), ('4302', '20872052', '1339863661', None, None, None, None, None, '2618923'), ('4302', '20872052', '1339863659', None, None, None, None, None, '2618923'), ('4302', '20872052', '1339863656', None, None, None, None, None, '2618923'), ('4302', '20872052', '1339863653', None, None, None, None, None, '2618923'), ('4302', '20872052', '1339863650', None, None, None, None, None, '2618923'), ('4302', '20872052', '1339863628', None, None, None, None, None, '2618923'), ('4302', '20872052', '1339863624', None, None, None, None, None, '2618923'), ('4302', '20872052', '1339863622', None, None, None, None, None, '2618923'), ('4302', '20872052', '1339863620', None, None, None, None, None, '2618923'), ('4302', '20872052', '1339863617', None, None, None, None, None, '2618923'), ('4302', '20872052', '1339863615', None, None, None, None, None, '2618923'), ('4302', '20872052', '1339863602', None, None, None, None, None, '2618923'), ('4302', '20872052', '1339863600', None, None, None, None, None, '2618923'), ('4302', '20872052', '1339863598', None, None, None, None, None, '2618923'), ('4302', '20872052', '1339863595', None, None, None, None, None, '2618923'), ('4302', '20872052', '1339863593', None, None, None, None, None, '2618923'), ('4302', '20872052', '1339863555', None, None, None, None, None, '2618923'), ('4302', '20872052', '1339863552', None, None, None, None, None, '2618923'), ('4302', '20872052', '1339863550', None, None, None, None, None, '2618923'), ('4302', '20872052', '1339863546', None, None, None, None, None, '2618923'), ('4302', '20872052', '1339863543', None, None, None, None, None, '2618923')] time used for this insertion : 0.01958632469177246 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5914332866668701 time spend to save output : 0.019975662231445312 total time spend for step 1 : 0.6114089488983154 step2:final Thu Feb 27 06:08: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 (20872052) 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 20872052 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1339863050,1339863048,1339863043,1339863035,1339863028,1339863474,1339863469,1339863463,1339863442,1339863419,1339863516,1339863514,1339863507,1339863496,1339863489,1339863555,1339863552,1339863550,1339863546,1339863543,1339863602,1339863600,1339863598,1339863595,1339863593,1339863628,1339863624,1339863622,1339863620,1339863617,1339863615,1339863661,1339863659,1339863656,1339863653,1339863650); 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([20872052]) Inside saveOutput : final : False verbose : True original output for save of step final : {1339863661: ('0.09079594764972097',), 1339863659: ('0.09079594764972097',), 1339863656: ('0.09079594764972097',), 1339863653: ('0.09079594764972097',), 1339863650: ('0.09079594764972097',), 1339863628: ('0.09079594764972097',), 1339863624: ('0.09079594764972097',), 1339863622: ('0.09079594764972097',), 1339863620: ('0.09079594764972097',), 1339863617: ('0.09079594764972097',), 1339863615: ('0.09079594764972097',), 1339863602: ('0.09079594764972097',), 1339863600: ('0.09079594764972097',), 1339863598: ('0.09079594764972097',), 1339863595: ('0.09079594764972097',), 1339863593: ('0.09079594764972097',), 1339863555: ('0.09079594764972097',), 1339863552: ('0.09079594764972097',), 1339863550: ('0.09079594764972097',), 1339863546: ('0.09079594764972097',), 1339863543: ('0.09079594764972097',)} new output for save of step final : {1339863661: ('0.09079594764972097',), 1339863659: ('0.09079594764972097',), 1339863656: ('0.09079594764972097',), 1339863653: ('0.09079594764972097',), 1339863650: ('0.09079594764972097',), 1339863628: ('0.09079594764972097',), 1339863624: ('0.09079594764972097',), 1339863622: ('0.09079594764972097',), 1339863620: ('0.09079594764972097',), 1339863617: ('0.09079594764972097',), 1339863615: ('0.09079594764972097',), 1339863602: ('0.09079594764972097',), 1339863600: ('0.09079594764972097',), 1339863598: ('0.09079594764972097',), 1339863595: ('0.09079594764972097',), 1339863593: ('0.09079594764972097',), 1339863555: ('0.09079594764972097',), 1339863552: ('0.09079594764972097',), 1339863550: ('0.09079594764972097',), 1339863546: ('0.09079594764972097',), 1339863543: ('0.09079594764972097',)} [1339863661, 1339863659, 1339863656, 1339863653, 1339863650, 1339863628, 1339863624, 1339863622, 1339863620, 1339863617, 1339863615, 1339863602, 1339863600, 1339863598, 1339863595, 1339863593, 1339863555, 1339863552, 1339863550, 1339863546, 1339863543] map_info['map_portfolio_photo'] : {20872052: [1339863661, 1339863659, 1339863656, 1339863653, 1339863650, 1339863628, 1339863624, 1339863622, 1339863620, 1339863617, 1339863615, 1339863602, 1339863600, 1339863598, 1339863595, 1339863593, 1339863555, 1339863552, 1339863550, 1339863546, 1339863543, 1339863516, 1339863514, 1339863507, 1339863496, 1339863489, 1339863474, 1339863469, 1339863463, 1339863442, 1339863419, 1339863050, 1339863048, 1339863043, 1339863035, 1339863028]} final : False mtd_id 4302 list_pids : [1339863661, 1339863659, 1339863656, 1339863653, 1339863650, 1339863628, 1339863624, 1339863622, 1339863620, 1339863617, 1339863615, 1339863602, 1339863600, 1339863598, 1339863595, 1339863593, 1339863555, 1339863552, 1339863550, 1339863546, 1339863543] Looping around the photos to save general results len do output : 21 /1339863661.Didn't retrieve data . /1339863659.Didn't retrieve data . /1339863656.Didn't retrieve data . /1339863653.Didn't retrieve data . /1339863650.Didn't retrieve data . /1339863628.Didn't retrieve data . /1339863624.Didn't retrieve data . /1339863622.Didn't retrieve data . /1339863620.Didn't retrieve data . /1339863617.Didn't retrieve data . /1339863615.Didn't retrieve data . /1339863602.Didn't retrieve data . /1339863600.Didn't retrieve data . /1339863598.Didn't retrieve data . /1339863595.Didn't retrieve data . /1339863593.Didn't retrieve data . /1339863555.Didn't retrieve data . /1339863552.Didn't retrieve data . /1339863550.Didn't retrieve data . /1339863546.Didn't retrieve data . /1339863543.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, '2618923') ('4302', '20872052', '1339863661', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863659', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863656', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863653', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863650', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863628', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863624', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863622', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863620', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863617', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863615', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863602', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863600', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863598', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863595', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863593', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863555', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863552', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863550', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863546', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863543', None, None, None, None, None, '2618923') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 63 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', '20872052', '1339863661', '0.09079594764972097', None, None, None, None, '2618923'), ('4302', '20872052', '1339863659', '0.09079594764972097', None, None, None, None, '2618923'), ('4302', '20872052', '1339863656', '0.09079594764972097', None, None, None, None, '2618923'), ('4302', '20872052', '1339863653', '0.09079594764972097', None, None, None, None, '2618923'), ('4302', '20872052', '1339863650', '0.09079594764972097', None, None, None, None, '2618923'), ('4302', '20872052', '1339863628', '0.09079594764972097', None, None, None, None, '2618923'), ('4302', '20872052', '1339863624', '0.09079594764972097', None, None, None, None, '2618923'), ('4302', '20872052', '1339863622', '0.09079594764972097', None, None, None, None, '2618923'), ('4302', '20872052', '1339863620', '0.09079594764972097', None, None, None, None, '2618923'), ('4302', '20872052', '1339863617', '0.09079594764972097', None, None, None, None, '2618923'), ('4302', '20872052', '1339863615', '0.09079594764972097', None, None, None, None, '2618923'), ('4302', '20872052', '1339863602', '0.09079594764972097', None, None, None, None, '2618923'), ('4302', '20872052', '1339863600', '0.09079594764972097', None, None, None, None, '2618923'), ('4302', '20872052', '1339863598', '0.09079594764972097', None, None, None, None, '2618923'), ('4302', '20872052', '1339863595', '0.09079594764972097', None, None, None, None, '2618923'), ('4302', '20872052', '1339863593', '0.09079594764972097', None, None, None, None, '2618923'), ('4302', '20872052', '1339863555', '0.09079594764972097', None, None, None, None, '2618923'), ('4302', '20872052', '1339863552', '0.09079594764972097', None, None, None, None, '2618923'), ('4302', '20872052', '1339863550', '0.09079594764972097', None, None, None, None, '2618923'), ('4302', '20872052', '1339863546', '0.09079594764972097', None, None, None, None, '2618923'), ('4302', '20872052', '1339863543', '0.09079594764972097', None, None, None, None, '2618923')] time used for this insertion : 0.02201366424560547 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0730280876159668 time spend to save output : 0.022908449172973633 total time spend for step 2 : 0.09593653678894043 step3:velours_tree Thu Feb 27 06:08: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 : {20872052: [{'environnement': 20872053, 'papier': 20872054, 'kraft': 20872055, 'Carton_brun': 20872056, 'cartonnette': 20872057, 'flou': 20872058, 'Teint_Dans_La_Masse': 20872059, 'Carton_gris': 20872060, 'metal': 20872061, 'autre_refus': 20872062, 'plastique': 20872063, 'mal_croppe': 20872064}]} input_args_next_step : {20872052: ()} output_args : {20872052: [{'environnement': 20872053, 'papier': 20872054, 'kraft': 20872055, 'Carton_brun': 20872056, 'cartonnette': 20872057, 'flou': 20872058, 'Teint_Dans_La_Masse': 20872059, 'Carton_gris': 20872060, 'metal': 20872061, 'autre_refus': 20872062, 'plastique': 20872063, 'mal_croppe': 20872064}]} args : 20872052 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 : ({'environnement': 20872053, 'papier': 20872054, 'kraft': 20872055, 'Carton_brun': 20872056, 'cartonnette': 20872057, 'flou': 20872058, 'Teint_Dans_La_Masse': 20872059, 'Carton_gris': 20872060, 'metal': 20872061, 'autre_refus': 20872062, 'plastique': 20872063, 'mal_croppe': 20872064},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20872052) 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([20872052]) 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.2778446674346924 time spend to save output : 6.270408630371094e-05 total time spend for step 3 : 0.2779073715209961 step4:send_mail_cod Thu Feb 27 06:08: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 : {1339863661: ('0.09079594764972097',), 1339863659: ('0.09079594764972097',), 1339863656: ('0.09079594764972097',), 1339863653: ('0.09079594764972097',), 1339863650: ('0.09079594764972097',), 1339863628: ('0.09079594764972097',), 1339863624: ('0.09079594764972097',), 1339863622: ('0.09079594764972097',), 1339863620: ('0.09079594764972097',), 1339863617: ('0.09079594764972097',), 1339863615: ('0.09079594764972097',), 1339863602: ('0.09079594764972097',), 1339863600: ('0.09079594764972097',), 1339863598: ('0.09079594764972097',), 1339863595: ('0.09079594764972097',), 1339863593: ('0.09079594764972097',), 1339863555: ('0.09079594764972097',), 1339863552: ('0.09079594764972097',), 1339863550: ('0.09079594764972097',), 1339863546: ('0.09079594764972097',), 1339863543: ('0.09079594764972097',)} input_args_next_step : {1339863661: ()} output_args : {1339863661: ('0.09079594764972097',), 1339863659: ('0.09079594764972097',), 1339863656: ('0.09079594764972097',), 1339863653: ('0.09079594764972097',), 1339863650: ('0.09079594764972097',), 1339863628: ('0.09079594764972097',), 1339863624: ('0.09079594764972097',), 1339863622: ('0.09079594764972097',), 1339863620: ('0.09079594764972097',), 1339863617: ('0.09079594764972097',), 1339863615: ('0.09079594764972097',), 1339863602: ('0.09079594764972097',), 1339863600: ('0.09079594764972097',), 1339863598: ('0.09079594764972097',), 1339863595: ('0.09079594764972097',), 1339863593: ('0.09079594764972097',), 1339863555: ('0.09079594764972097',), 1339863552: ('0.09079594764972097',), 1339863550: ('0.09079594764972097',), 1339863546: ('0.09079594764972097',), 1339863543: ('0.09079594764972097',)} args : 1339863661 depend.output_id : 0 input_args_next_step : {1339863661: ('0.09079594764972097',), 1339863659: ()} output_args : {1339863661: ('0.09079594764972097',), 1339863659: ('0.09079594764972097',), 1339863656: ('0.09079594764972097',), 1339863653: ('0.09079594764972097',), 1339863650: ('0.09079594764972097',), 1339863628: ('0.09079594764972097',), 1339863624: ('0.09079594764972097',), 1339863622: ('0.09079594764972097',), 1339863620: ('0.09079594764972097',), 1339863617: ('0.09079594764972097',), 1339863615: ('0.09079594764972097',), 1339863602: ('0.09079594764972097',), 1339863600: ('0.09079594764972097',), 1339863598: ('0.09079594764972097',), 1339863595: ('0.09079594764972097',), 1339863593: ('0.09079594764972097',), 1339863555: ('0.09079594764972097',), 1339863552: ('0.09079594764972097',), 1339863550: ('0.09079594764972097',), 1339863546: ('0.09079594764972097',), 1339863543: ('0.09079594764972097',)} args : 1339863659 depend.output_id : 0 input_args_next_step : {1339863661: ('0.09079594764972097',), 1339863659: ('0.09079594764972097',), 1339863656: ()} output_args : {1339863661: ('0.09079594764972097',), 1339863659: ('0.09079594764972097',), 1339863656: ('0.09079594764972097',), 1339863653: ('0.09079594764972097',), 1339863650: ('0.09079594764972097',), 1339863628: ('0.09079594764972097',), 1339863624: ('0.09079594764972097',), 1339863622: ('0.09079594764972097',), 1339863620: ('0.09079594764972097',), 1339863617: ('0.09079594764972097',), 1339863615: ('0.09079594764972097',), 1339863602: ('0.09079594764972097',), 1339863600: ('0.09079594764972097',), 1339863598: ('0.09079594764972097',), 1339863595: ('0.09079594764972097',), 1339863593: ('0.09079594764972097',), 1339863555: ('0.09079594764972097',), 1339863552: ('0.09079594764972097',), 1339863550: ('0.09079594764972097',), 1339863546: ('0.09079594764972097',), 1339863543: ('0.09079594764972097',)} args : 1339863656 depend.output_id : 0 input_args_next_step : {1339863661: ('0.09079594764972097',), 1339863659: ('0.09079594764972097',), 1339863656: ('0.09079594764972097',), 1339863653: ()} output_args : {1339863661: ('0.09079594764972097',), 1339863659: ('0.09079594764972097',), 1339863656: ('0.09079594764972097',), 1339863653: ('0.09079594764972097',), 1339863650: ('0.09079594764972097',), 1339863628: ('0.09079594764972097',), 1339863624: ('0.09079594764972097',), 1339863622: ('0.09079594764972097',), 1339863620: ('0.09079594764972097',), 1339863617: ('0.09079594764972097',), 1339863615: ('0.09079594764972097',), 1339863602: ('0.09079594764972097',), 1339863600: ('0.09079594764972097',), 1339863598: ('0.09079594764972097',), 1339863595: ('0.09079594764972097',), 1339863593: ('0.09079594764972097',), 1339863555: ('0.09079594764972097',), 1339863552: ('0.09079594764972097',), 1339863550: ('0.09079594764972097',), 1339863546: ('0.09079594764972097',), 1339863543: ('0.09079594764972097',)} args : 1339863653 depend.output_id : 0 input_args_next_step : {1339863661: ('0.09079594764972097',), 1339863659: ('0.09079594764972097',), 1339863656: ('0.09079594764972097',), 1339863653: ('0.09079594764972097',), 1339863650: ()} output_args : {1339863661: ('0.09079594764972097',), 1339863659: ('0.09079594764972097',), 1339863656: ('0.09079594764972097',), 1339863653: ('0.09079594764972097',), 1339863650: ('0.09079594764972097',), 1339863628: ('0.09079594764972097',), 1339863624: ('0.09079594764972097',), 1339863622: ('0.09079594764972097',), 1339863620: ('0.09079594764972097',), 1339863617: ('0.09079594764972097',), 1339863615: ('0.09079594764972097',), 1339863602: ('0.09079594764972097',), 1339863600: ('0.09079594764972097',), 1339863598: ('0.09079594764972097',), 1339863595: ('0.09079594764972097',), 1339863593: ('0.09079594764972097',), 1339863555: ('0.09079594764972097',), 1339863552: ('0.09079594764972097',), 1339863550: ('0.09079594764972097',), 1339863546: ('0.09079594764972097',), 1339863543: ('0.09079594764972097',)} args : 1339863650 depend.output_id : 0 input_args_next_step : {1339863661: ('0.09079594764972097',), 1339863659: ('0.09079594764972097',), 1339863656: ('0.09079594764972097',), 1339863653: ('0.09079594764972097',), 1339863650: ('0.09079594764972097',), 1339863628: ()} output_args : {1339863661: ('0.09079594764972097',), 1339863659: ('0.09079594764972097',), 1339863656: ('0.09079594764972097',), 1339863653: ('0.09079594764972097',), 1339863650: ('0.09079594764972097',), 1339863628: ('0.09079594764972097',), 1339863624: ('0.09079594764972097',), 1339863622: ('0.09079594764972097',), 1339863620: ('0.09079594764972097',), 1339863617: ('0.09079594764972097',), 1339863615: ('0.09079594764972097',), 1339863602: ('0.09079594764972097',), 1339863600: ('0.09079594764972097',), 1339863598: ('0.09079594764972097',), 1339863595: ('0.09079594764972097',), 1339863593: ('0.09079594764972097',), 1339863555: ('0.09079594764972097',), 1339863552: ('0.09079594764972097',), 1339863550: ('0.09079594764972097',), 1339863546: ('0.09079594764972097',), 1339863543: ('0.09079594764972097',)} args : 1339863628 depend.output_id : 0 input_args_next_step : {1339863661: ('0.09079594764972097',), 1339863659: ('0.09079594764972097',), 1339863656: ('0.09079594764972097',), 1339863653: ('0.09079594764972097',), 1339863650: ('0.09079594764972097',), 1339863628: ('0.09079594764972097',), 1339863624: ()} output_args : {1339863661: ('0.09079594764972097',), 1339863659: ('0.09079594764972097',), 1339863656: ('0.09079594764972097',), 1339863653: ('0.09079594764972097',), 1339863650: ('0.09079594764972097',), 1339863628: ('0.09079594764972097',), 1339863624: ('0.09079594764972097',), 1339863622: ('0.09079594764972097',), 1339863620: ('0.09079594764972097',), 1339863617: ('0.09079594764972097',), 1339863615: ('0.09079594764972097',), 1339863602: ('0.09079594764972097',), 1339863600: ('0.09079594764972097',), 1339863598: ('0.09079594764972097',), 1339863595: ('0.09079594764972097',), 1339863593: ('0.09079594764972097',), 1339863555: ('0.09079594764972097',), 1339863552: ('0.09079594764972097',), 1339863550: ('0.09079594764972097',), 1339863546: ('0.09079594764972097',), 1339863543: ('0.09079594764972097',)} args : 1339863624 depend.output_id : 0 input_args_next_step : {1339863661: ('0.09079594764972097',), 1339863659: ('0.09079594764972097',), 1339863656: ('0.09079594764972097',), 1339863653: ('0.09079594764972097',), 1339863650: ('0.09079594764972097',), 1339863628: ('0.09079594764972097',), 1339863624: ('0.09079594764972097',), 1339863622: ()} output_args : {1339863661: ('0.09079594764972097',), 1339863659: ('0.09079594764972097',), 1339863656: ('0.09079594764972097',), 1339863653: ('0.09079594764972097',), 1339863650: ('0.09079594764972097',), 1339863628: ('0.09079594764972097',), 1339863624: ('0.09079594764972097',), 1339863622: ('0.09079594764972097',), 1339863620: ('0.09079594764972097',), 1339863617: ('0.09079594764972097',), 1339863615: ('0.09079594764972097',), 1339863602: ('0.09079594764972097',), 1339863600: ('0.09079594764972097',), 1339863598: ('0.09079594764972097',), 1339863595: ('0.09079594764972097',), 1339863593: ('0.09079594764972097',), 1339863555: ('0.09079594764972097',), 1339863552: ('0.09079594764972097',), 1339863550: ('0.09079594764972097',), 1339863546: ('0.09079594764972097',), 1339863543: ('0.09079594764972097',)} args : 1339863622 depend.output_id : 0 input_args_next_step : {1339863661: ('0.09079594764972097',), 1339863659: ('0.09079594764972097',), 1339863656: ('0.09079594764972097',), 1339863653: ('0.09079594764972097',), 1339863650: ('0.09079594764972097',), 1339863628: ('0.09079594764972097',), 1339863624: ('0.09079594764972097',), 1339863622: ('0.09079594764972097',), 1339863620: ()} output_args : {1339863661: ('0.09079594764972097',), 1339863659: ('0.09079594764972097',), 1339863656: ('0.09079594764972097',), 1339863653: ('0.09079594764972097',), 1339863650: ('0.09079594764972097',), 1339863628: ('0.09079594764972097',), 1339863624: ('0.09079594764972097',), 1339863622: ('0.09079594764972097',), 1339863620: ('0.09079594764972097',), 1339863617: ('0.09079594764972097',), 1339863615: ('0.09079594764972097',), 1339863602: ('0.09079594764972097',), 1339863600: ('0.09079594764972097',), 1339863598: ('0.09079594764972097',), 1339863595: ('0.09079594764972097',), 1339863593: ('0.09079594764972097',), 1339863555: ('0.09079594764972097',), 1339863552: ('0.09079594764972097',), 1339863550: ('0.09079594764972097',), 1339863546: ('0.09079594764972097',), 1339863543: ('0.09079594764972097',)} args : 1339863620 depend.output_id : 0 input_args_next_step : {1339863661: ('0.09079594764972097',), 1339863659: ('0.09079594764972097',), 1339863656: ('0.09079594764972097',), 1339863653: ('0.09079594764972097',), 1339863650: ('0.09079594764972097',), 1339863628: ('0.09079594764972097',), 1339863624: ('0.09079594764972097',), 1339863622: ('0.09079594764972097',), 1339863620: ('0.09079594764972097',), 1339863617: ()} output_args : {1339863661: ('0.09079594764972097',), 1339863659: ('0.09079594764972097',), 1339863656: ('0.09079594764972097',), 1339863653: ('0.09079594764972097',), 1339863650: ('0.09079594764972097',), 1339863628: ('0.09079594764972097',), 1339863624: ('0.09079594764972097',), 1339863622: ('0.09079594764972097',), 1339863620: ('0.09079594764972097',), 1339863617: ('0.09079594764972097',), 1339863615: ('0.09079594764972097',), 1339863602: ('0.09079594764972097',), 1339863600: ('0.09079594764972097',), 1339863598: ('0.09079594764972097',), 1339863595: ('0.09079594764972097',), 1339863593: ('0.09079594764972097',), 1339863555: ('0.09079594764972097',), 1339863552: ('0.09079594764972097',), 1339863550: ('0.09079594764972097',), 1339863546: ('0.09079594764972097',), 1339863543: ('0.09079594764972097',)} args : 1339863617 depend.output_id : 0 input_args_next_step : {1339863661: ('0.09079594764972097',), 1339863659: ('0.09079594764972097',), 1339863656: ('0.09079594764972097',), 1339863653: ('0.09079594764972097',), 1339863650: ('0.09079594764972097',), 1339863628: ('0.09079594764972097',), 1339863624: ('0.09079594764972097',), 1339863622: ('0.09079594764972097',), 1339863620: ('0.09079594764972097',), 1339863617: ('0.09079594764972097',), 1339863615: ()} output_args : {1339863661: ('0.09079594764972097',), 1339863659: ('0.09079594764972097',), 1339863656: ('0.09079594764972097',), 1339863653: ('0.09079594764972097',), 1339863650: ('0.09079594764972097',), 1339863628: ('0.09079594764972097',), 1339863624: ('0.09079594764972097',), 1339863622: ('0.09079594764972097',), 1339863620: ('0.09079594764972097',), 1339863617: ('0.09079594764972097',), 1339863615: ('0.09079594764972097',), 1339863602: ('0.09079594764972097',), 1339863600: ('0.09079594764972097',), 1339863598: ('0.09079594764972097',), 1339863595: ('0.09079594764972097',), 1339863593: ('0.09079594764972097',), 1339863555: ('0.09079594764972097',), 1339863552: ('0.09079594764972097',), 1339863550: ('0.09079594764972097',), 1339863546: ('0.09079594764972097',), 1339863543: ('0.09079594764972097',)} args : 1339863615 depend.output_id : 0 input_args_next_step : {1339863661: ('0.09079594764972097',), 1339863659: ('0.09079594764972097',), 1339863656: ('0.09079594764972097',), 1339863653: ('0.09079594764972097',), 1339863650: ('0.09079594764972097',), 1339863628: ('0.09079594764972097',), 1339863624: ('0.09079594764972097',), 1339863622: ('0.09079594764972097',), 1339863620: ('0.09079594764972097',), 1339863617: ('0.09079594764972097',), 1339863615: ('0.09079594764972097',), 1339863602: ()} output_args : {1339863661: ('0.09079594764972097',), 1339863659: ('0.09079594764972097',), 1339863656: ('0.09079594764972097',), 1339863653: ('0.09079594764972097',), 1339863650: ('0.09079594764972097',), 1339863628: ('0.09079594764972097',), 1339863624: ('0.09079594764972097',), 1339863622: ('0.09079594764972097',), 1339863620: ('0.09079594764972097',), 1339863617: ('0.09079594764972097',), 1339863615: ('0.09079594764972097',), 1339863602: ('0.09079594764972097',), 1339863600: ('0.09079594764972097',), 1339863598: ('0.09079594764972097',), 1339863595: ('0.09079594764972097',), 1339863593: ('0.09079594764972097',), 1339863555: ('0.09079594764972097',), 1339863552: ('0.09079594764972097',), 1339863550: ('0.09079594764972097',), 1339863546: ('0.09079594764972097',), 1339863543: ('0.09079594764972097',)} args : 1339863602 depend.output_id : 0 input_args_next_step : {1339863661: ('0.09079594764972097',), 1339863659: ('0.09079594764972097',), 1339863656: ('0.09079594764972097',), 1339863653: ('0.09079594764972097',), 1339863650: ('0.09079594764972097',), 1339863628: ('0.09079594764972097',), 1339863624: ('0.09079594764972097',), 1339863622: ('0.09079594764972097',), 1339863620: ('0.09079594764972097',), 1339863617: ('0.09079594764972097',), 1339863615: ('0.09079594764972097',), 1339863602: ('0.09079594764972097',), 1339863600: ()} output_args : {1339863661: ('0.09079594764972097',), 1339863659: ('0.09079594764972097',), 1339863656: ('0.09079594764972097',), 1339863653: ('0.09079594764972097',), 1339863650: ('0.09079594764972097',), 1339863628: ('0.09079594764972097',), 1339863624: ('0.09079594764972097',), 1339863622: ('0.09079594764972097',), 1339863620: ('0.09079594764972097',), 1339863617: ('0.09079594764972097',), 1339863615: ('0.09079594764972097',), 1339863602: ('0.09079594764972097',), 1339863600: ('0.09079594764972097',), 1339863598: ('0.09079594764972097',), 1339863595: ('0.09079594764972097',), 1339863593: ('0.09079594764972097',), 1339863555: ('0.09079594764972097',), 1339863552: ('0.09079594764972097',), 1339863550: ('0.09079594764972097',), 1339863546: ('0.09079594764972097',), 1339863543: ('0.09079594764972097',)} args : 1339863600 depend.output_id : 0 input_args_next_step : {1339863661: ('0.09079594764972097',), 1339863659: ('0.09079594764972097',), 1339863656: ('0.09079594764972097',), 1339863653: ('0.09079594764972097',), 1339863650: ('0.09079594764972097',), 1339863628: ('0.09079594764972097',), 1339863624: ('0.09079594764972097',), 1339863622: ('0.09079594764972097',), 1339863620: ('0.09079594764972097',), 1339863617: ('0.09079594764972097',), 1339863615: ('0.09079594764972097',), 1339863602: ('0.09079594764972097',), 1339863600: ('0.09079594764972097',), 1339863598: ()} output_args : {1339863661: ('0.09079594764972097',), 1339863659: ('0.09079594764972097',), 1339863656: ('0.09079594764972097',), 1339863653: ('0.09079594764972097',), 1339863650: ('0.09079594764972097',), 1339863628: ('0.09079594764972097',), 1339863624: ('0.09079594764972097',), 1339863622: ('0.09079594764972097',), 1339863620: ('0.09079594764972097',), 1339863617: ('0.09079594764972097',), 1339863615: ('0.09079594764972097',), 1339863602: ('0.09079594764972097',), 1339863600: ('0.09079594764972097',), 1339863598: ('0.09079594764972097',), 1339863595: ('0.09079594764972097',), 1339863593: ('0.09079594764972097',), 1339863555: ('0.09079594764972097',), 1339863552: ('0.09079594764972097',), 1339863550: ('0.09079594764972097',), 1339863546: ('0.09079594764972097',), 1339863543: ('0.09079594764972097',)} args : 1339863598 depend.output_id : 0 input_args_next_step : {1339863661: ('0.09079594764972097',), 1339863659: ('0.09079594764972097',), 1339863656: ('0.09079594764972097',), 1339863653: ('0.09079594764972097',), 1339863650: ('0.09079594764972097',), 1339863628: ('0.09079594764972097',), 1339863624: ('0.09079594764972097',), 1339863622: ('0.09079594764972097',), 1339863620: ('0.09079594764972097',), 1339863617: ('0.09079594764972097',), 1339863615: ('0.09079594764972097',), 1339863602: ('0.09079594764972097',), 1339863600: ('0.09079594764972097',), 1339863598: ('0.09079594764972097',), 1339863595: ()} output_args : {1339863661: ('0.09079594764972097',), 1339863659: ('0.09079594764972097',), 1339863656: ('0.09079594764972097',), 1339863653: ('0.09079594764972097',), 1339863650: ('0.09079594764972097',), 1339863628: ('0.09079594764972097',), 1339863624: ('0.09079594764972097',), 1339863622: ('0.09079594764972097',), 1339863620: ('0.09079594764972097',), 1339863617: ('0.09079594764972097',), 1339863615: ('0.09079594764972097',), 1339863602: ('0.09079594764972097',), 1339863600: ('0.09079594764972097',), 1339863598: ('0.09079594764972097',), 1339863595: ('0.09079594764972097',), 1339863593: ('0.09079594764972097',), 1339863555: ('0.09079594764972097',), 1339863552: ('0.09079594764972097',), 1339863550: ('0.09079594764972097',), 1339863546: ('0.09079594764972097',), 1339863543: ('0.09079594764972097',)} args : 1339863595 depend.output_id : 0 input_args_next_step : {1339863661: ('0.09079594764972097',), 1339863659: ('0.09079594764972097',), 1339863656: ('0.09079594764972097',), 1339863653: ('0.09079594764972097',), 1339863650: ('0.09079594764972097',), 1339863628: ('0.09079594764972097',), 1339863624: ('0.09079594764972097',), 1339863622: ('0.09079594764972097',), 1339863620: ('0.09079594764972097',), 1339863617: ('0.09079594764972097',), 1339863615: ('0.09079594764972097',), 1339863602: ('0.09079594764972097',), 1339863600: ('0.09079594764972097',), 1339863598: ('0.09079594764972097',), 1339863595: ('0.09079594764972097',), 1339863593: ()} output_args : {1339863661: ('0.09079594764972097',), 1339863659: ('0.09079594764972097',), 1339863656: ('0.09079594764972097',), 1339863653: ('0.09079594764972097',), 1339863650: ('0.09079594764972097',), 1339863628: ('0.09079594764972097',), 1339863624: ('0.09079594764972097',), 1339863622: ('0.09079594764972097',), 1339863620: ('0.09079594764972097',), 1339863617: ('0.09079594764972097',), 1339863615: ('0.09079594764972097',), 1339863602: ('0.09079594764972097',), 1339863600: ('0.09079594764972097',), 1339863598: ('0.09079594764972097',), 1339863595: ('0.09079594764972097',), 1339863593: ('0.09079594764972097',), 1339863555: ('0.09079594764972097',), 1339863552: ('0.09079594764972097',), 1339863550: ('0.09079594764972097',), 1339863546: ('0.09079594764972097',), 1339863543: ('0.09079594764972097',)} args : 1339863593 depend.output_id : 0 input_args_next_step : {1339863661: ('0.09079594764972097',), 1339863659: ('0.09079594764972097',), 1339863656: ('0.09079594764972097',), 1339863653: ('0.09079594764972097',), 1339863650: ('0.09079594764972097',), 1339863628: ('0.09079594764972097',), 1339863624: ('0.09079594764972097',), 1339863622: ('0.09079594764972097',), 1339863620: ('0.09079594764972097',), 1339863617: ('0.09079594764972097',), 1339863615: ('0.09079594764972097',), 1339863602: ('0.09079594764972097',), 1339863600: ('0.09079594764972097',), 1339863598: ('0.09079594764972097',), 1339863595: ('0.09079594764972097',), 1339863593: ('0.09079594764972097',), 1339863555: ()} output_args : {1339863661: ('0.09079594764972097',), 1339863659: ('0.09079594764972097',), 1339863656: ('0.09079594764972097',), 1339863653: ('0.09079594764972097',), 1339863650: ('0.09079594764972097',), 1339863628: ('0.09079594764972097',), 1339863624: ('0.09079594764972097',), 1339863622: ('0.09079594764972097',), 1339863620: ('0.09079594764972097',), 1339863617: ('0.09079594764972097',), 1339863615: ('0.09079594764972097',), 1339863602: ('0.09079594764972097',), 1339863600: ('0.09079594764972097',), 1339863598: ('0.09079594764972097',), 1339863595: ('0.09079594764972097',), 1339863593: ('0.09079594764972097',), 1339863555: ('0.09079594764972097',), 1339863552: ('0.09079594764972097',), 1339863550: ('0.09079594764972097',), 1339863546: ('0.09079594764972097',), 1339863543: ('0.09079594764972097',)} args : 1339863555 depend.output_id : 0 input_args_next_step : {1339863661: ('0.09079594764972097',), 1339863659: ('0.09079594764972097',), 1339863656: ('0.09079594764972097',), 1339863653: ('0.09079594764972097',), 1339863650: ('0.09079594764972097',), 1339863628: ('0.09079594764972097',), 1339863624: ('0.09079594764972097',), 1339863622: ('0.09079594764972097',), 1339863620: ('0.09079594764972097',), 1339863617: ('0.09079594764972097',), 1339863615: ('0.09079594764972097',), 1339863602: ('0.09079594764972097',), 1339863600: ('0.09079594764972097',), 1339863598: ('0.09079594764972097',), 1339863595: ('0.09079594764972097',), 1339863593: ('0.09079594764972097',), 1339863555: ('0.09079594764972097',), 1339863552: ()} output_args : {1339863661: ('0.09079594764972097',), 1339863659: ('0.09079594764972097',), 1339863656: ('0.09079594764972097',), 1339863653: ('0.09079594764972097',), 1339863650: ('0.09079594764972097',), 1339863628: ('0.09079594764972097',), 1339863624: ('0.09079594764972097',), 1339863622: ('0.09079594764972097',), 1339863620: ('0.09079594764972097',), 1339863617: ('0.09079594764972097',), 1339863615: ('0.09079594764972097',), 1339863602: ('0.09079594764972097',), 1339863600: ('0.09079594764972097',), 1339863598: ('0.09079594764972097',), 1339863595: ('0.09079594764972097',), 1339863593: ('0.09079594764972097',), 1339863555: ('0.09079594764972097',), 1339863552: ('0.09079594764972097',), 1339863550: ('0.09079594764972097',), 1339863546: ('0.09079594764972097',), 1339863543: ('0.09079594764972097',)} args : 1339863552 depend.output_id : 0 input_args_next_step : {1339863661: ('0.09079594764972097',), 1339863659: ('0.09079594764972097',), 1339863656: ('0.09079594764972097',), 1339863653: ('0.09079594764972097',), 1339863650: ('0.09079594764972097',), 1339863628: ('0.09079594764972097',), 1339863624: ('0.09079594764972097',), 1339863622: ('0.09079594764972097',), 1339863620: ('0.09079594764972097',), 1339863617: ('0.09079594764972097',), 1339863615: ('0.09079594764972097',), 1339863602: ('0.09079594764972097',), 1339863600: ('0.09079594764972097',), 1339863598: ('0.09079594764972097',), 1339863595: ('0.09079594764972097',), 1339863593: ('0.09079594764972097',), 1339863555: ('0.09079594764972097',), 1339863552: ('0.09079594764972097',), 1339863550: ()} output_args : {1339863661: ('0.09079594764972097',), 1339863659: ('0.09079594764972097',), 1339863656: ('0.09079594764972097',), 1339863653: ('0.09079594764972097',), 1339863650: ('0.09079594764972097',), 1339863628: ('0.09079594764972097',), 1339863624: ('0.09079594764972097',), 1339863622: ('0.09079594764972097',), 1339863620: ('0.09079594764972097',), 1339863617: ('0.09079594764972097',), 1339863615: ('0.09079594764972097',), 1339863602: ('0.09079594764972097',), 1339863600: ('0.09079594764972097',), 1339863598: ('0.09079594764972097',), 1339863595: ('0.09079594764972097',), 1339863593: ('0.09079594764972097',), 1339863555: ('0.09079594764972097',), 1339863552: ('0.09079594764972097',), 1339863550: ('0.09079594764972097',), 1339863546: ('0.09079594764972097',), 1339863543: ('0.09079594764972097',)} args : 1339863550 depend.output_id : 0 input_args_next_step : {1339863661: ('0.09079594764972097',), 1339863659: ('0.09079594764972097',), 1339863656: ('0.09079594764972097',), 1339863653: ('0.09079594764972097',), 1339863650: ('0.09079594764972097',), 1339863628: ('0.09079594764972097',), 1339863624: ('0.09079594764972097',), 1339863622: ('0.09079594764972097',), 1339863620: ('0.09079594764972097',), 1339863617: ('0.09079594764972097',), 1339863615: ('0.09079594764972097',), 1339863602: ('0.09079594764972097',), 1339863600: ('0.09079594764972097',), 1339863598: ('0.09079594764972097',), 1339863595: ('0.09079594764972097',), 1339863593: ('0.09079594764972097',), 1339863555: ('0.09079594764972097',), 1339863552: ('0.09079594764972097',), 1339863550: ('0.09079594764972097',), 1339863546: ()} output_args : {1339863661: ('0.09079594764972097',), 1339863659: ('0.09079594764972097',), 1339863656: ('0.09079594764972097',), 1339863653: ('0.09079594764972097',), 1339863650: ('0.09079594764972097',), 1339863628: ('0.09079594764972097',), 1339863624: ('0.09079594764972097',), 1339863622: ('0.09079594764972097',), 1339863620: ('0.09079594764972097',), 1339863617: ('0.09079594764972097',), 1339863615: ('0.09079594764972097',), 1339863602: ('0.09079594764972097',), 1339863600: ('0.09079594764972097',), 1339863598: ('0.09079594764972097',), 1339863595: ('0.09079594764972097',), 1339863593: ('0.09079594764972097',), 1339863555: ('0.09079594764972097',), 1339863552: ('0.09079594764972097',), 1339863550: ('0.09079594764972097',), 1339863546: ('0.09079594764972097',), 1339863543: ('0.09079594764972097',)} args : 1339863546 depend.output_id : 0 input_args_next_step : {1339863661: ('0.09079594764972097',), 1339863659: ('0.09079594764972097',), 1339863656: ('0.09079594764972097',), 1339863653: ('0.09079594764972097',), 1339863650: ('0.09079594764972097',), 1339863628: ('0.09079594764972097',), 1339863624: ('0.09079594764972097',), 1339863622: ('0.09079594764972097',), 1339863620: ('0.09079594764972097',), 1339863617: ('0.09079594764972097',), 1339863615: ('0.09079594764972097',), 1339863602: ('0.09079594764972097',), 1339863600: ('0.09079594764972097',), 1339863598: ('0.09079594764972097',), 1339863595: ('0.09079594764972097',), 1339863593: ('0.09079594764972097',), 1339863555: ('0.09079594764972097',), 1339863552: ('0.09079594764972097',), 1339863550: ('0.09079594764972097',), 1339863546: ('0.09079594764972097',), 1339863543: ()} output_args : {1339863661: ('0.09079594764972097',), 1339863659: ('0.09079594764972097',), 1339863656: ('0.09079594764972097',), 1339863653: ('0.09079594764972097',), 1339863650: ('0.09079594764972097',), 1339863628: ('0.09079594764972097',), 1339863624: ('0.09079594764972097',), 1339863622: ('0.09079594764972097',), 1339863620: ('0.09079594764972097',), 1339863617: ('0.09079594764972097',), 1339863615: ('0.09079594764972097',), 1339863602: ('0.09079594764972097',), 1339863600: ('0.09079594764972097',), 1339863598: ('0.09079594764972097',), 1339863595: ('0.09079594764972097',), 1339863593: ('0.09079594764972097',), 1339863555: ('0.09079594764972097',), 1339863552: ('0.09079594764972097',), 1339863550: ('0.09079594764972097',), 1339863546: ('0.09079594764972097',), 1339863543: ('0.09079594764972097',)} args : 1339863543 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 : {20872052: [{'environnement': 20872053, 'papier': 20872054, 'kraft': 20872055, 'Carton_brun': 20872056, 'cartonnette': 20872057, 'flou': 20872058, 'Teint_Dans_La_Masse': 20872059, 'Carton_gris': 20872060, 'metal': 20872061, 'autre_refus': 20872062, 'plastique': 20872063, 'mal_croppe': 20872064}]} input_args_next_step : {1339863661: ('0.09079594764972097',), 1339863659: ('0.09079594764972097',), 1339863656: ('0.09079594764972097',), 1339863653: ('0.09079594764972097',), 1339863650: ('0.09079594764972097',), 1339863628: ('0.09079594764972097',), 1339863624: ('0.09079594764972097',), 1339863622: ('0.09079594764972097',), 1339863620: ('0.09079594764972097',), 1339863617: ('0.09079594764972097',), 1339863615: ('0.09079594764972097',), 1339863602: ('0.09079594764972097',), 1339863600: ('0.09079594764972097',), 1339863598: ('0.09079594764972097',), 1339863595: ('0.09079594764972097',), 1339863593: ('0.09079594764972097',), 1339863555: ('0.09079594764972097',), 1339863552: ('0.09079594764972097',), 1339863550: ('0.09079594764972097',), 1339863546: ('0.09079594764972097',), 1339863543: ('0.09079594764972097',), 20872052: ()} output_args : {20872052: [{'environnement': 20872053, 'papier': 20872054, 'kraft': 20872055, 'Carton_brun': 20872056, 'cartonnette': 20872057, 'flou': 20872058, 'Teint_Dans_La_Masse': 20872059, 'Carton_gris': 20872060, 'metal': 20872061, 'autre_refus': 20872062, 'plastique': 20872063, 'mal_croppe': 20872064}]} args : 20872052 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 :22, first value : ('0.09079594764972097',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20872052) 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 (1339863661,1339863659,1339863656,1339863653,1339863650,1339863628,1339863624,1339863622,1339863620,1339863617,1339863615,1339863602,1339863600,1339863598,1339863595,1339863593,1339863555,1339863552,1339863550,1339863546,1339863543) Found this number of photos: 21 ##### Call download_photos : nb_thread : 5 begin to download photo : 1339863543 begin to download photo : 1339863593 begin to download photo : 1339863615 begin to download photo : 1339863628 begin to download photo : 1339863661 download finish for photo 1339863593 begin to download photo : 1339863595 download finish for photo 1339863628 begin to download photo : 1339863650 download finish for photo 1339863661 download finish for photo 1339863615 begin to download photo : 1339863617 download finish for photo 1339863543 begin to download photo : 1339863546 download finish for photo 1339863595 begin to download photo : 1339863598 download finish for photo 1339863650 begin to download photo : 1339863653 download finish for photo 1339863617 begin to download photo : 1339863620 download finish for photo 1339863546 begin to download photo : 1339863550 download finish for photo 1339863653 begin to download photo : 1339863656 download finish for photo 1339863598 begin to download photo : 1339863600 download finish for photo 1339863620 begin to download photo : 1339863622 download finish for photo 1339863550 begin to download photo : 1339863552 download finish for photo 1339863656 begin to download photo : 1339863659 download finish for photo 1339863600 begin to download photo : 1339863602 download finish for photo 1339863622 begin to download photo : 1339863624 download finish for photo 1339863659 download finish for photo 1339863552 begin to download photo : 1339863555 download finish for photo 1339863624 download finish for photo 1339863602 download finish for photo 1339863555 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 21 ; length of list_pids : 21 ; length of list_args : 21 results_Auto_P20872052_27-02-2025_06_09_00.pdf 20872055 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=20872055 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339863587: '1740632670_599164_1339863048_dd01b12ad84f3434751b6d5bf5070e74_rle_crop_3688355071_0.png', 1339863633: '1740632771_600246_1339863489_591818dc941433dec5b8ab1463f32d3c_rle_crop_3688355411_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/e8452436a890b3148eafa69d9104bd05_14961352.png change filename to text .imagette208720551740632940/ imagette208720551740632940/1740632771_600246_1339863489_591818dc941433dec5b8ab1463f32d3c_rle_crop_3688355411_0.png.png imagette208720551740632940/1740632670_599164_1339863048_dd01b12ad84f3434751b6d5bf5070e74_rle_crop_3688355071_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/4978918ada5f80a0a329501196850227_35386789.png imagette208720551740632940 20872057 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=20872057 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339863582: '1740632670_599164_1339863048_dd01b12ad84f3434751b6d5bf5070e74_rle_crop_3688355073_0.png', 1339863637: '1740632790_600564_1339863546_f00c9d336df12f48e905e8280b0c9e73_rle_crop_3688355446_0.png', 1339863638: '1740632790_600564_1339863543_edd98a3702da536e714c814f5f417c2b_rle_crop_3688355460_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/53db9b0b8feceeb1434e5353c604167b_80021402.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/ec96b60caf7ac5800e8d78eda6a1fec8_69045978.png change filename to text .imagette208720571740632940/ imagette208720571740632940/1740632670_599164_1339863048_dd01b12ad84f3434751b6d5bf5070e74_rle_crop_3688355073_0.png.png imagette208720571740632940/1740632790_600564_1339863543_edd98a3702da536e714c814f5f417c2b_rle_crop_3688355460_0.png.png imagette208720571740632940/1740632790_600564_1339863546_f00c9d336df12f48e905e8280b0c9e73_rle_crop_3688355446_0.png.png imagette208720581740632940/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/0df17aa4bb91d9d3e70974fd58e45704_74562963.png imagette208720571740632940 20872058 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=20872058 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette208720581740632940 20872061 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=20872061 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339863588: '1740632670_599164_1339863035_00fdaa126dda53cb3af3dbfb0aef4e36_rle_crop_3688355100_0.png'} change filename to text .imagette208720611740632940/ imagette208720611740632940/1740632670_599164_1339863035_00fdaa126dda53cb3af3dbfb0aef4e36_rle_crop_3688355100_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/2cbf83a3a2fe72e644adfda63a1e34de_60691296.png imagette208720611740632940 20872062 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=20872062 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339863576: '1740632670_599164_1339863035_00fdaa126dda53cb3af3dbfb0aef4e36_rle_crop_3688355096_0.png', 1339863625: '1740632771_600246_1339863514_0cbdcd524d5cecc2f8ff2dde08e306df_rle_crop_3688355361_0.png', 1339863626: '1740632771_600246_1339863496_7f4ff0551c20689ced76238c1ce110a1_rle_crop_3688355393_0.png', 1339863627: '1740632771_600246_1339863489_591818dc941433dec5b8ab1463f32d3c_rle_crop_3688355409_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/66b5e6db1347879f51791df67c71b0b6_25524245.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/ba8dde0cb744238da69db7fb529e9810_33044531.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/7b0af4514d183b6f304a3f04fad5b0bc_45164721.png change filename to text .imagette208720621740632940/ imagette208720621740632940/1740632771_600246_1339863496_7f4ff0551c20689ced76238c1ce110a1_rle_crop_3688355393_0.png.png imagette208720621740632940/1740632771_600246_1339863514_0cbdcd524d5cecc2f8ff2dde08e306df_rle_crop_3688355361_0.png.png imagette208720621740632940/1740632670_599164_1339863035_00fdaa126dda53cb3af3dbfb0aef4e36_rle_crop_3688355096_0.png.png imagette208720621740632940/1740632771_600246_1339863489_591818dc941433dec5b8ab1463f32d3c_rle_crop_3688355409_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/92479e75511508dc5d89ad677693c248_27224907.png imagette208720621740632940 20872063 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=20872063 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339863560: '1740632651_598826_1339863469_f82b41562171040fa2b976b27a5b8c1f_rle_crop_3688354826_0.png', 1339863561: '1740632651_598826_1339863442_7bd2ceefe0962d6eab90d58a9cd957bc_rle_crop_3688355020_0.png', 1339863585: '1740632670_599164_1339863043_0cd7a691341223ec050c5c0515a1f687_rle_crop_3688355088_0.png', 1339863586: '1740632670_599164_1339863035_00fdaa126dda53cb3af3dbfb0aef4e36_rle_crop_3688355098_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/d22d66d31772c2e8e06c7d5210981607_14012623.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/1c32fc9844c5d39b9c9169747ef3a608_97746442.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/9790bd012bfa5a76cd8f2aafb92de44e_25871982.png change filename to text .imagette208720631740632941/ imagette208720631740632941/1740632670_599164_1339863035_00fdaa126dda53cb3af3dbfb0aef4e36_rle_crop_3688355098_0.png.png imagette208720631740632941/1740632651_598826_1339863469_f82b41562171040fa2b976b27a5b8c1f_rle_crop_3688354826_0.png.png imagette208720631740632941/1740632651_598826_1339863442_7bd2ceefe0962d6eab90d58a9cd957bc_rle_crop_3688355020_0.png.png imagette208720631740632941/1740632670_599164_1339863043_0cd7a691341223ec050c5c0515a1f687_rle_crop_3688355088_0.png.png imagette208720641740632941/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/49010c2ed1d9a05d291b56a7551cdaae_77408163.png imagette208720631740632941 20872064 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=20872064 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette208720641740632941 20872056 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=20872056 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339863558: '1740632651_598826_1339863469_f82b41562171040fa2b976b27a5b8c1f_rle_crop_3688354827_0.png', 1339863559: '1740632651_598826_1339863419_1d8f06ecd3ad756d410d462e8ac38a0b_rle_crop_3688355027_0.png', 1339863584: '1740632670_599164_1339863474_25a740021ce5f5ed637c57f3a83f5720_rle_crop_3688355039_0.png', 1339863631: '1740632771_600246_1339863489_591818dc941433dec5b8ab1463f32d3c_rle_crop_3688355413_0.png', 1339863632: '1740632771_600246_1339863489_591818dc941433dec5b8ab1463f32d3c_rle_crop_3688355415_0.png', 1339863639: '1740632790_600564_1339863543_edd98a3702da536e714c814f5f417c2b_rle_crop_3688355458_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/c7ca870096995d7cf2b1c3ca4e8c49de_25955241.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/f16f06f6b4dd8155c6feecdb2e47d148_93828907.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/0c711619636e970cd54e88efe38516d5_4461091.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/5414c1465abd458343a911f3e5bd2cb4_37588922.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/2bef738d607e2526b7e33563e840c6a7_69942508.png change filename to text .imagette208720561740632941/ imagette208720561740632941/1740632651_598826_1339863469_f82b41562171040fa2b976b27a5b8c1f_rle_crop_3688354827_0.png.png imagette208720561740632941/1740632771_600246_1339863489_591818dc941433dec5b8ab1463f32d3c_rle_crop_3688355413_0.png.png imagette208720561740632941/1740632670_599164_1339863474_25a740021ce5f5ed637c57f3a83f5720_rle_crop_3688355039_0.png.png imagette208720561740632941/1740632651_598826_1339863419_1d8f06ecd3ad756d410d462e8ac38a0b_rle_crop_3688355027_0.png.png imagette208720561740632941/1740632790_600564_1339863543_edd98a3702da536e714c814f5f417c2b_rle_crop_3688355458_0.png.png imagette208720561740632941/1740632771_600246_1339863489_591818dc941433dec5b8ab1463f32d3c_rle_crop_3688355415_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/560c5b77b0f4fa634e4a42e655ee27f4_87564142.png imagette208720561740632941 20872059 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=20872059 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339863557: '1740632651_598826_1339863469_f82b41562171040fa2b976b27a5b8c1f_rle_crop_3688354830_0.png', 1339863570: '1740632670_599164_1339863050_9478a050acfd60982e8ac61eaa6150ef_rle_crop_3688355054_0.png', 1339863571: '1740632670_599164_1339863048_dd01b12ad84f3434751b6d5bf5070e74_rle_crop_3688355076_0.png', 1339863572: '1740632670_599164_1339863048_dd01b12ad84f3434751b6d5bf5070e74_rle_crop_3688355069_0.png', 1339863573: '1740632670_599164_1339863043_0cd7a691341223ec050c5c0515a1f687_rle_crop_3688355087_0.png', 1339863686: '1740632891_601637_1339863617_b9cc0f478584ea35d04a43042016dbce_rle_crop_3688355643_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/fe222ac4a356004c86abb8dc75a3a6df_60755379.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/0469ef7f9e7e924b71f857d49589cc05_2853720.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/255302dfd670a1b0ecfb164c5128eedd_66164950.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/3622b08c8dd0383ccfd581aa19811f71_73100331.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/7d95baa3782e05bca9cd4467e8d232eb_44525886.png change filename to text .imagette208720591740632941/ imagette208720591740632941/1740632670_599164_1339863050_9478a050acfd60982e8ac61eaa6150ef_rle_crop_3688355054_0.png.png imagette208720591740632941/1740632670_599164_1339863043_0cd7a691341223ec050c5c0515a1f687_rle_crop_3688355087_0.png.png imagette208720591740632941/1740632670_599164_1339863048_dd01b12ad84f3434751b6d5bf5070e74_rle_crop_3688355076_0.png.png imagette208720591740632941/1740632670_599164_1339863048_dd01b12ad84f3434751b6d5bf5070e74_rle_crop_3688355069_0.png.png imagette208720591740632941/1740632891_601637_1339863617_b9cc0f478584ea35d04a43042016dbce_rle_crop_3688355643_0.png.png imagette208720591740632941/1740632651_598826_1339863469_f82b41562171040fa2b976b27a5b8c1f_rle_crop_3688354830_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/ce29e0c103d4e3f99669d3b8bd2d390a_15683032.png imagette208720591740632941 20872060 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=20872060 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339863577: '1740632670_599164_1339863474_25a740021ce5f5ed637c57f3a83f5720_rle_crop_3688355041_0.png', 1339863578: '1740632670_599164_1339863048_dd01b12ad84f3434751b6d5bf5070e74_rle_crop_3688355068_0.png', 1339863579: '1740632670_599164_1339863048_dd01b12ad84f3434751b6d5bf5070e74_rle_crop_3688355072_0.png', 1339863580: '1740632670_599164_1339863028_84e3d1d87a79362042d9c3ed1e02eb26_rle_crop_3688355115_0.png', 1339863629: '1740632771_600246_1339863555_7d37980150eca7a416cea073aba8ef4c_rle_crop_3688355352_0.png', 1339863630: '1740632771_600246_1339863507_912c73e17b54427ea3787888debfa1a0_rle_crop_3688355376_0.png', 1339863635: '1740632790_600564_1339863552_c91fb8a59964c1730eb757f97372959d_rle_crop_3688355423_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/423a082a0a96f6c0c688cc9841d196df_39136719.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/334034e9934f1b21bcb63cc1aeec18f8_98608382.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/8b31f17d6e19fd47f6c026d7d0db8474_95137256.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/bdf78679a70748461bff0348a16bbb44_70272630.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/ae1b09a3a62772bb0a0861899d41e7c7_24187250.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/35c4d73af57210d765f829a390c1b485_23985166.png change filename to text .imagette208720601740632941/ imagette208720601740632941/1740632790_600564_1339863552_c91fb8a59964c1730eb757f97372959d_rle_crop_3688355423_0.png.png imagette208720601740632941/1740632670_599164_1339863028_84e3d1d87a79362042d9c3ed1e02eb26_rle_crop_3688355115_0.png.png imagette208720601740632941/1740632771_600246_1339863507_912c73e17b54427ea3787888debfa1a0_rle_crop_3688355376_0.png.png imagette208720601740632941/1740632670_599164_1339863048_dd01b12ad84f3434751b6d5bf5070e74_rle_crop_3688355068_0.png.png imagette208720601740632941/1740632670_599164_1339863048_dd01b12ad84f3434751b6d5bf5070e74_rle_crop_3688355072_0.png.png imagette208720601740632941/1740632771_600246_1339863555_7d37980150eca7a416cea073aba8ef4c_rle_crop_3688355352_0.png.png imagette208720601740632941/1740632670_599164_1339863474_25a740021ce5f5ed637c57f3a83f5720_rle_crop_3688355041_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/ccda0c237ef4df7156ab4b12dde058fc_44825033.png imagette208720601740632941 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20872052 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20872065,20872066,20872067,20872068,20872069,20872070,20872071,20872072,20872073,20872074,20872075,20872076?tags=environnement,papier,kraft,Carton_brun,cartonnette,flou,Teint_Dans_La_Masse,Carton_gris,metal,autre_refus,plastique,mal_croppe your option no_mail is active, we will not send the real mail to your client args[1339863661] : ('0.09079594764972097',) no score found for photo 1339863661 We are sending mail with results at report@fotonower.com args[1339863659] : ('0.09079594764972097',) no score found for photo 1339863659 We are sending mail with results at report@fotonower.com args[1339863656] : ('0.09079594764972097',) no score found for photo 1339863656 We are sending mail with results at report@fotonower.com args[1339863653] : ('0.09079594764972097',) no score found for photo 1339863653 We are sending mail with results at report@fotonower.com args[1339863650] : ('0.09079594764972097',) no score found for photo 1339863650 We are sending mail with results at report@fotonower.com args[1339863628] : ('0.09079594764972097',) no score found for photo 1339863628 We are sending mail with results at report@fotonower.com args[1339863624] : ('0.09079594764972097',) no score found for photo 1339863624 We are sending mail with results at report@fotonower.com args[1339863622] : ('0.09079594764972097',) no score found for photo 1339863622 We are sending mail with results at report@fotonower.com args[1339863620] : ('0.09079594764972097',) no score found for photo 1339863620 We are sending mail with results at report@fotonower.com args[1339863617] : ('0.09079594764972097',) no score found for photo 1339863617 We are sending mail with results at report@fotonower.com args[1339863615] : ('0.09079594764972097',) no score found for photo 1339863615 We are sending mail with results at report@fotonower.com args[1339863602] : ('0.09079594764972097',) no score found for photo 1339863602 We are sending mail with results at report@fotonower.com args[1339863600] : ('0.09079594764972097',) no score found for photo 1339863600 We are sending mail with results at report@fotonower.com args[1339863598] : ('0.09079594764972097',) no score found for photo 1339863598 We are sending mail with results at report@fotonower.com args[1339863595] : ('0.09079594764972097',) no score found for photo 1339863595 We are sending mail with results at report@fotonower.com args[1339863593] : ('0.09079594764972097',) no score found for photo 1339863593 We are sending mail with results at report@fotonower.com args[1339863555] : ('0.09079594764972097',) no score found for photo 1339863555 We are sending mail with results at report@fotonower.com args[1339863552] : ('0.09079594764972097',) no score found for photo 1339863552 We are sending mail with results at report@fotonower.com args[1339863550] : ('0.09079594764972097',) no score found for photo 1339863550 We are sending mail with results at report@fotonower.com args[1339863546] : ('0.09079594764972097',) no score found for photo 1339863546 We are sending mail with results at report@fotonower.com args[1339863543] : ('0.09079594764972097',) no score found for photo 1339863543 We are sending mail with results at report@fotonower.com refus_total : 0.09079594764972097 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=20872052 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_P20872052_27-02-2025_06_09_00.pdf results_Auto_P20872052_27-02-2025_06_09_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20872052_27-02-2025_06_09_00.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','20872052','results_Auto_P20872052_27-02-2025_06_09_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20872052_27-02-2025_06_09_00.pdf','pdf','','0.28','0.09079594764972097') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20872052]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1339863661, 1339863659, 1339863656, 1339863653, 1339863650, 1339863628, 1339863624, 1339863622, 1339863620, 1339863617, 1339863615, 1339863602, 1339863600, 1339863598, 1339863595, 1339863593, 1339863555, 1339863552, 1339863550, 1339863546, 1339863543] map_info['map_portfolio_photo'] : {20872052: [1339863661, 1339863659, 1339863656, 1339863653, 1339863650, 1339863628, 1339863624, 1339863622, 1339863620, 1339863617, 1339863615, 1339863602, 1339863600, 1339863598, 1339863595, 1339863593, 1339863555, 1339863552, 1339863550, 1339863546, 1339863543, 1339863516, 1339863514, 1339863507, 1339863496, 1339863489, 1339863474, 1339863469, 1339863463, 1339863442, 1339863419, 1339863050, 1339863048, 1339863043, 1339863035, 1339863028]} final : False mtd_id 4302 list_pids : [1339863661, 1339863659, 1339863656, 1339863653, 1339863650, 1339863628, 1339863624, 1339863622, 1339863620, 1339863617, 1339863615, 1339863602, 1339863600, 1339863598, 1339863595, 1339863593, 1339863555, 1339863552, 1339863550, 1339863546, 1339863543] 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, '2618923') ('4302', '20872052', '1339863661', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863659', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863656', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863653', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863650', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863628', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863624', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863622', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863620', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863617', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863615', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863602', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863600', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863598', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863595', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863593', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863555', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863552', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863550', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863546', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863543', None, None, None, None, None, '2618923') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 21 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '20872052', '1339863661', None, None, None, None, None, '2618923'), ('4302', '20872052', '1339863659', None, None, None, None, None, '2618923'), ('4302', '20872052', '1339863656', None, None, None, None, None, '2618923'), ('4302', '20872052', '1339863653', None, None, None, None, None, '2618923'), ('4302', '20872052', '1339863650', None, None, None, None, None, '2618923'), ('4302', '20872052', '1339863628', None, None, None, None, None, '2618923'), ('4302', '20872052', '1339863624', None, None, None, None, None, '2618923'), ('4302', '20872052', '1339863622', None, None, None, None, None, '2618923'), ('4302', '20872052', '1339863620', None, None, None, None, None, '2618923'), ('4302', '20872052', '1339863617', None, None, None, None, None, '2618923'), ('4302', '20872052', '1339863615', None, None, None, None, None, '2618923'), ('4302', '20872052', '1339863602', None, None, None, None, None, '2618923'), ('4302', '20872052', '1339863600', None, None, None, None, None, '2618923'), ('4302', '20872052', '1339863598', None, None, None, None, None, '2618923'), ('4302', '20872052', '1339863595', None, None, None, None, None, '2618923'), ('4302', '20872052', '1339863593', None, None, None, None, None, '2618923'), ('4302', '20872052', '1339863555', None, None, None, None, None, '2618923'), ('4302', '20872052', '1339863552', None, None, None, None, None, '2618923'), ('4302', '20872052', '1339863550', None, None, None, None, None, '2618923'), ('4302', '20872052', '1339863546', None, None, None, None, None, '2618923'), ('4302', '20872052', '1339863543', None, None, None, None, None, '2618923')] time used for this insertion : 0.01878643035888672 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.9890811443328857 time spend to save output : 0.01906728744506836 total time spend for step 4 : 4.008148431777954 step5:split_time_score Thu Feb 27 06:09:03 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['20872052'] 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 : [('20872052',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20872052) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1339863661: {'path': 'temp/1740632939_2200585_1339863661_adb1c55e813974e427791a9147fe414b.jpg', 'extension': 'jpg'}, 1339863628: {'path': 'temp/1740632939_2200585_1339863628_28ceb71cd5ac9d5a72763edff5ea57dd.jpg', 'extension': 'jpg'}, 1339863650: {'path': 'temp/1740632939_2200585_1339863650_c52e96d35883dfcd7f762aac2fbba16e.jpg', 'extension': 'jpg'}, 1339863653: {'path': 'temp/1740632939_2200585_1339863653_bfcc4d86b4fe7df5d291eb78c3a7bd62.jpg', 'extension': 'jpg'}, 1339863656: {'path': 'temp/1740632939_2200585_1339863656_ade5e29cb9f81cf0e0c409782ed380b9.jpg', 'extension': 'jpg'}, 1339863659: {'path': 'temp/1740632939_2200585_1339863659_65cd834510c2e3b0e1e2408395684ad3.jpg', 'extension': 'jpg'}, 1339863615: {'path': 'temp/1740632939_2200585_1339863615_9a37135fac69c67196e737e1bf3fc906.jpg', 'extension': 'jpg'}, 1339863617: {'path': 'temp/1740632939_2200585_1339863617_b9cc0f478584ea35d04a43042016dbce.jpg', 'extension': 'jpg'}, 1339863620: {'path': 'temp/1740632939_2200585_1339863620_3f938b1c36f4545cc60e11ad48160381.jpg', 'extension': 'jpg'}, 1339863622: {'path': 'temp/1740632939_2200585_1339863622_ea0e3b6764b43a93fb89c49c86441c93.jpg', 'extension': 'jpg'}, 1339863624: {'path': 'temp/1740632939_2200585_1339863624_eed5c4b2d2f778f756c9806e0893ae1d.jpg', 'extension': 'jpg'}, 1339863593: {'path': 'temp/1740632939_2200585_1339863593_a60962947c1fe1ac611085e2f8d9304e.jpg', 'extension': 'jpg'}, 1339863595: {'path': 'temp/1740632939_2200585_1339863595_3afc176941be5d9b07bf42ee777a3298.jpg', 'extension': 'jpg'}, 1339863598: {'path': 'temp/1740632939_2200585_1339863598_786e33c2e2b4ebc4bce080edb4ded131.jpg', 'extension': 'jpg'}, 1339863600: {'path': 'temp/1740632939_2200585_1339863600_a050498496c7c580ee4313878c9b52d2.jpg', 'extension': 'jpg'}, 1339863602: {'path': 'temp/1740632939_2200585_1339863602_5757ce2ffc7e577fb116f972147dd2c5.jpg', 'extension': 'jpg'}, 1339863543: {'path': 'temp/1740632939_2200585_1339863543_edd98a3702da536e714c814f5f417c2b.jpg', 'extension': 'jpg'}, 1339863546: {'path': 'temp/1740632939_2200585_1339863546_f00c9d336df12f48e905e8280b0c9e73.jpg', 'extension': 'jpg'}, 1339863550: {'path': 'temp/1740632939_2200585_1339863550_ec457dca6318fdd524965a5b68539809.jpg', 'extension': 'jpg'}, 1339863552: {'path': 'temp/1740632939_2200585_1339863552_c91fb8a59964c1730eb757f97372959d.jpg', 'extension': 'jpg'}, 1339863555: {'path': 'temp/1740632939_2200585_1339863555_7d37980150eca7a416cea073aba8ef4c.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 = 20872052; (('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 = 20872052 group by h (('06', 36),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20872052 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 (20872052) 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 (20872052) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 27022025 20872052 Nombre de photos uploadées : 36 / 23040 (0%) 27022025 20872052 Nombre de photos taguées (types de déchets): 0 / 36 (0%) 27022025 20872052 Nombre de photos taguées (volume) : 0 / 36 (0%) [{'photo_id': 1339863050, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/9478a050acfd60982e8ac61eaa6150ef.jpg', 'username': None, 'uploaded_at': 1740632497, 'text': 'image_27022025_06_00_03_010142m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1339863048, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/dd01b12ad84f3434751b6d5bf5070e74.jpg', 'username': None, 'uploaded_at': 1740632497, 'text': 'image_27022025_06_00_14_010134m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1339863043, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/0cd7a691341223ec050c5c0515a1f687.jpg', 'username': None, 'uploaded_at': 1740632497, 'text': 'image_27022025_06_00_24_010135m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1339863035, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/00fdaa126dda53cb3af3dbfb0aef4e36.jpg', 'username': None, 'uploaded_at': 1740632497, 'text': 'image_27022025_06_00_33_009125m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 5.0067901611328125e-06 ???????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.001569509506225586 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20872052, '2025-02-27' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1627066,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.028470754623413086 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= 1627066 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1627066, 'dashboard_run_id': 1635148, 'mtr_portfolio_id': 20870333, 'dashboard_result_id': 9097228, '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_P20870333_27-02-2025_05_25_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20870350, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20870351, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20870352, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20870353, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20870354, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20870355, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20870356, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20870357, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20870358, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20870359, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20870360, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20870361, 'pht': 3726}}"}, {'dashboat_entry_day': 1627066, 'dashboard_run_id': 1635148, 'mtr_portfolio_id': 20870893, 'dashboard_result_id': 9097229, '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_P20870893_27-02-2025_05_49_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20870942, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20870943, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20870944, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20870945, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20870946, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20870947, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20870948, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20870949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20870950, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20870951, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20870952, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20870953, 'pht': 3726}}"}, {'dashboat_entry_day': 1627066, 'dashboard_run_id': 1635148, 'mtr_portfolio_id': 20871369, 'dashboard_result_id': 9097230, '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_P20871369_27-02-2025_06_00_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20871394, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20871395, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20871396, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20871397, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20871398, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20871399, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20871400, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20871401, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20871402, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20871403, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20871404, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20871405, 'pht': 3726}}"}, {'dashboat_entry_day': 1627066, 'dashboard_run_id': 1635148, 'mtr_portfolio_id': 20872052, 'dashboard_result_id': 9097231, '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_P20872052_27-02-2025_06_05_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20872053, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20872054, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20872055, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20872056, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20872057, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20872058, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20872059, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20872060, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20872061, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20872062, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20872063, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20872064, '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 = 20870333 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': 2618693, 'mtr_portfolio_id': 20870333, 'created_at': datetime.datetime(2025, 2, 27, 5, 24, 59), 'result': '0.10561490184574049', 'result_long': None, 'result_double': None}] Qualite : 0.10561490184574049 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20870333 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20870333_27-02-2025_05_25_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20870333 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_P20870333_27-02-2025_05_25_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20870350, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20870351, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20870352, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20870353, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20870354, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20870355, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20870356, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20870357, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20870358, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20870359, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20870360, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20870361, 'pht': 3726}}" where mtr_portfolio_id = 20870333 and dashboard_run_id = 1635148 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`=20870333 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9097228, 0.10561490184574049, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20870333_27-02-2025_05_25_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20870350, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20870351, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20870352, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20870353, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20870354, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20870355, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20870356, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20870357, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20870358, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20870359, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20870360, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20870361, '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 = 20870893 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': 2618855, 'mtr_portfolio_id': 20870893, 'created_at': datetime.datetime(2025, 2, 27, 5, 49, 3), 'result': '0.11854108393072525', 'result_long': None, 'result_double': None}] Qualite : 0.11854108393072525 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20870893 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20870893_27-02-2025_05_49_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20870893 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_P20870893_27-02-2025_05_49_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20870942, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20870943, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20870944, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20870945, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20870946, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20870947, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20870948, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20870949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20870950, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20870951, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20870952, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20870953, 'pht': 3726}}" where mtr_portfolio_id = 20870893 and dashboard_run_id = 1635148 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`=20870893 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9097229, 0.11854108393072525, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20870893_27-02-2025_05_49_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20870942, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20870943, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20870944, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20870945, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20870946, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20870947, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20870948, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20870949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20870950, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20870951, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20870952, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20870953, '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 = 20871369 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': 2618880, 'mtr_portfolio_id': 20871369, 'created_at': datetime.datetime(2025, 2, 27, 6, 0, 58), 'result': '0.1010024022982039', 'result_long': None, 'result_double': None}] Qualite : 0.1010024022982039 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20871369 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20871369_27-02-2025_06_00_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20871369 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_P20871369_27-02-2025_06_00_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20871394, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20871395, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20871396, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20871397, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20871398, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20871399, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20871400, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20871401, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20871402, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20871403, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20871404, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20871405, 'pht': 3726}}" where mtr_portfolio_id = 20871369 and dashboard_run_id = 1635148 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`=20871369 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9097230, 0.1010024022982039, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20871369_27-02-2025_06_00_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20871394, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20871395, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20871396, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20871397, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20871398, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20871399, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20871400, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20871401, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20871402, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20871403, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20871404, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20871405, '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 = 20872052 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': 2618923, 'mtr_portfolio_id': 20872052, 'created_at': datetime.datetime(2025, 2, 27, 6, 8, 59), 'result': '0.09079594764972097', 'result_long': None, 'result_double': None}] Qualite : 0.09079594764972097 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20872052 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20872052_27-02-2025_06_09_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20872052 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_P20872052_27-02-2025_06_09_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20872053, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20872054, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20872055, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20872056, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20872057, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20872058, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20872059, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20872060, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20872061, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20872062, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20872063, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20872064, 'pht': 3726}}" where mtr_portfolio_id = 20872052 and dashboard_run_id = 1635148 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`=20872052 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9097231, 0.09079594764972097, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20872052_27-02-2025_06_09_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20872053, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20872054, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20872055, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20872056, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20872057, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20872058, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20872059, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20872060, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20872061, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20872062, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20872063, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20872064, '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 (20870333,20870893,20871369,20872052) result : ((1339857292,), (1339857300,), (1339857304,), (1339857307,), (1339857332,), (1339857347,), (1339857353,), (1339857356,), (1339857560,), (1339857686,), (1339857797,), (1339857959,), (1339858187,), (1339858190,), (1339858192,), (1339858194,), (1339858196,), (1339858197,), (1339858206,), (1339858209,), (1339858212,), (1339858218,), (1339858223,), (1339858233,), (1339858236,), (1339858240,), (1339858243,), (1339858245,), (1339858281,), (1339858284,), (1339858288,), (1339858291,), (1339858296,), (1339858695,), (1339858758,), (1339858776,), (1339858792,), (1339858794,), (1339858795,), (1339858807,), (1339858810,), (1339858814,), (1339858816,), (1339858836,), (1339858839,), (1339858842,), (1339858845,), (1339858847,), (1339858861,), (1339858878,), (1339858882,), (1339858887,), (1339858890,), (1339858891,), (1339858912,), (1339858913,), (1339858915,), (1339858917,), (1339858927,), (1339858930,), (1339858933,), (1339858935,), (1339858937,), (1339858939,), (1339858979,), (1339858981,), (1339858983,), (1339858985,), (1339858987,), (1339858999,), (1339859003,), (1339859016,), (1339859023,), (1339859025,), (1339859031,), (1339859051,), (1339859039,), (1339859042,), (1339859046,), (1339859048,), (1339859075,), (1339859242,), (1339859387,), (1339859460,), (1339859462,), (1339859466,), (1339859612,), (1339859615,), (1339859619,), (1339859620,), (1339859622,), (1339859630,), (1339859641,), (1339859648,), (1339859649,), (1339859654,), (1339859660,), (1339859757,), (1339859814,), (1339859850,), (1339859853,), (1339859857,), (1339859877,), (1339859881,), (1339859883,), (1339859887,), (1339859917,), (1339859920,), (1339859923,), (1339859945,), (1339859947,), (1339859948,), (1339859962,), (1339859965,), (1339859967,), (1339859969,), (1339859990,), (1339859992,), (1339859995,), (1339859999,), (1339860072,), (1339860146,), (1339860171,), (1339860187,), (1339860190,), (1339860192,), (1339860234,), (1339860237,), (1339860241,), (1339860242,), (1339860244,), (1339860261,), (1339860272,), (1339860274,), (1339860303,), (1339860375,), (1339860408,), (1339860673,), (1339860705,), (1339860709,), (1339860712,), (1339860751,), (1339860858,), (1339860861,), (1339860866,), (1339860867,), (1339860874,), (1339860898,), (1339860901,), (1339860904,), (1339860907,), (1339860910,), (1339861051,), (1339860996,), (1339861025,), (1339861033,), (1339861049,), (1339861119,), (1339861173,), (1339861194,), (1339861196,), (1339861702,), (1339861705,), (1339861707,), (1339861710,), (1339861718,), (1339861720,), (1339861973,), (1339861980,), (1339861984,), (1339862011,), (1339862195,), (1339862199,), (1339862203,), (1339862207,), (1339862213,), (1339862214,), (1339862318,), (1339862332,), (1339862335,), (1339862380,), (1339862385,), (1339862425,), (1339862429,), (1339862432,), (1339862434,), (1339862436,), (1339862484,), (1339862567,), (1339862612,), (1339862617,), (1339862621,), (1339862624,), (1339862635,), (1339862638,), (1339862642,), (1339862644,), (1339862653,), (1339862676,), (1339862680,), (1339862684,), (1339862687,), (1339862691,), (1339862693,), (1339862798,), (1339862816,), (1339862819,), (1339862848,), (1339862886,), (1339862890,), (1339862894,), (1339862897,), (1339862900,), (1339862910,), (1339862914,), (1339862922,), (1339862928,), (1339862931,), (1339862933,), (1339862975,), (1339862977,), (1339862978,), (1339862983,), (1339862986,), (1339862995,), (1339862997,), (1339863002,), (1339863013,), (1339863052,), (1339863028,), (1339863035,), (1339863043,), (1339863048,), (1339863050,), (1339863419,), (1339863442,), (1339863463,), (1339863469,), (1339863474,), (1339863489,), (1339863496,), (1339863507,), (1339863514,), (1339863516,), (1339863543,), (1339863546,), (1339863550,), (1339863552,), (1339863555,), (1339863593,), (1339863595,), (1339863598,), (1339863600,), (1339863602,), (1339863615,), (1339863617,), (1339863620,), (1339863622,), (1339863624,), (1339863628,), (1339863650,), (1339863653,), (1339863656,), (1339863659,), (1339863661,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'27022025': {'nb_upload': 36, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20872052]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1339863661, 1339863659, 1339863656, 1339863653, 1339863650, 1339863628, 1339863624, 1339863622, 1339863620, 1339863617, 1339863615, 1339863602, 1339863600, 1339863598, 1339863595, 1339863593, 1339863555, 1339863552, 1339863550, 1339863546, 1339863543] map_info['map_portfolio_photo'] : {20872052: [1339863661, 1339863659, 1339863656, 1339863653, 1339863650, 1339863628, 1339863624, 1339863622, 1339863620, 1339863617, 1339863615, 1339863602, 1339863600, 1339863598, 1339863595, 1339863593, 1339863555, 1339863552, 1339863550, 1339863546, 1339863543, 1339863516, 1339863514, 1339863507, 1339863496, 1339863489, 1339863474, 1339863469, 1339863463, 1339863442, 1339863419, 1339863050, 1339863048, 1339863043, 1339863035, 1339863028]} final : True mtd_id 4302 list_pids : [1339863661, 1339863659, 1339863656, 1339863653, 1339863650, 1339863628, 1339863624, 1339863622, 1339863620, 1339863617, 1339863615, 1339863602, 1339863600, 1339863598, 1339863595, 1339863593, 1339863555, 1339863552, 1339863550, 1339863546, 1339863543] Looping around the photos to save general results len do output : 1 /20872052Didn'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, '2618923') ('4302', '20872052', '1339863661', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863659', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863656', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863653', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863650', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863628', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863624', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863622', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863620', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863617', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863615', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863602', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863600', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863598', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863595', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863593', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863555', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863552', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863550', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863546', None, None, None, None, None, '2618923') ('4302', None, None, None, None, None, None, None, '2618923') ('4302', '20872052', '1339863543', None, None, None, None, None, '2618923') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 22 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, '20872052', 'None', None, None, None, None, '2618923'), ('4302', '20872052', '1339863661', None, None, None, None, None, '2618923'), ('4302', '20872052', '1339863659', None, None, None, None, None, '2618923'), ('4302', '20872052', '1339863656', None, None, None, None, None, '2618923'), ('4302', '20872052', '1339863653', None, None, None, None, None, '2618923'), ('4302', '20872052', '1339863650', None, None, None, None, None, '2618923'), ('4302', '20872052', '1339863628', None, None, None, None, None, '2618923'), ('4302', '20872052', '1339863624', None, None, None, None, None, '2618923'), ('4302', '20872052', '1339863622', None, None, None, None, None, '2618923'), ('4302', '20872052', '1339863620', None, None, None, None, None, '2618923'), ('4302', '20872052', '1339863617', None, None, None, None, None, '2618923'), ('4302', '20872052', '1339863615', None, None, None, None, None, '2618923'), ('4302', '20872052', '1339863602', None, None, None, None, None, '2618923'), ('4302', '20872052', '1339863600', None, None, None, None, None, '2618923'), ('4302', '20872052', '1339863598', None, None, None, None, None, '2618923'), ('4302', '20872052', '1339863595', None, None, None, None, None, '2618923'), ('4302', '20872052', '1339863593', None, None, None, None, None, '2618923'), ('4302', '20872052', '1339863555', None, None, None, None, None, '2618923'), ('4302', '20872052', '1339863552', None, None, None, None, None, '2618923'), ('4302', '20872052', '1339863550', None, None, None, None, None, '2618923'), ('4302', '20872052', '1339863546', None, None, None, None, None, '2618923'), ('4302', '20872052', '1339863543', None, None, None, None, None, '2618923')] time used for this insertion : 0.020195484161376953 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.33337926864624023 time spend to save output : 0.02244710922241211 total time spend for step 5 : 0.35582637786865234 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 (2618923) 2.33user 2.50system 0:08.69elapsed 55%CPU (0avgtext+0avgdata 158988maxresident)k 320inputs+16904outputs (0major+75212minor)pagefaults 0swaps