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 : 3101337 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 (2737046) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2737046) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22197824 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2737046'] with mtr_portfolio_ids : ['22197824'] and first list_photo_ids : [] new path : /proc/3101337/ Name: python3 Umask: 0002 State: R (running) Tgid: 3101337 Ngid: 0 Pid: 3101337 PPid: 3101336 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3101337 NSpid: 3101337 NSpgid: 3096339 NSsid: 3096339 VmPeak: 1106936 kB VmSize: 1106936 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98340 kB VmRSS: 98340 kB RssAnon: 59804 kB RssFile: 38536 kB RssShmem: 0 kB VmData: 865684 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 612 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 46 nonvoluntary_ctxt_switches: 103 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3101337', 'Ngid': '0', 'Pid': '3101337', 'PPid': '3101336', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3101337', 'NSpid': '3101337', 'NSpgid': '3096339', 'NSsid': '3096339', 'VmPeak': '1106936 kB', 'VmSize': '1106936 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98340 kB', 'VmRSS': '98340 kB', 'RssAnon': '59804 kB', 'RssFile': '38536 kB', 'RssShmem': '0 kB', 'VmData': '865684 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '612 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '46', 'nonvoluntary_ctxt_switches': '103'} ('datou_batch_current', '3101337', '1106936', '0', '1106936', '865684', '98340', b'', 'marlene', '2737046') 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 (22197824) 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 (2737046 ) ) 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 (22197824) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1351116980, 'portfolio_id': 22197824}, {'photo_id': 1351116920, 'portfolio_id': 22197824}, {'photo_id': 1351116862, 'portfolio_id': 22197824}, {'photo_id': 1351114638, 'portfolio_id': 22197824}, {'photo_id': 1351113013, 'portfolio_id': 22197824}, {'photo_id': 1351113011, 'portfolio_id': 22197824}, {'photo_id': 1351113010, 'portfolio_id': 22197824}, {'photo_id': 1351113002, 'portfolio_id': 22197824}, {'photo_id': 1351112987, 'portfolio_id': 22197824}, {'photo_id': 1351112852, 'portfolio_id': 22197824}, {'photo_id': 1351112821, 'portfolio_id': 22197824}, {'photo_id': 1351112794, 'portfolio_id': 22197824}, {'photo_id': 1351112792, 'portfolio_id': 22197824}, {'photo_id': 1351112787, 'portfolio_id': 22197824}, {'photo_id': 1351112590, 'portfolio_id': 22197824}, {'photo_id': 1351112561, 'portfolio_id': 22197824}, {'photo_id': 1351112529, 'portfolio_id': 22197824}, {'photo_id': 1351112325, 'portfolio_id': 22197824}, {'photo_id': 1351112300, 'portfolio_id': 22197824}, {'photo_id': 1351112295, 'portfolio_id': 22197824}, {'photo_id': 1351111949, 'portfolio_id': 22197824}, {'photo_id': 1351111903, 'portfolio_id': 22197824}, {'photo_id': 1351111874, 'portfolio_id': 22197824}, {'photo_id': 1351111582, 'portfolio_id': 22197824}, {'photo_id': 1351111549, 'portfolio_id': 22197824}, {'photo_id': 1351111511, 'portfolio_id': 22197824}, {'photo_id': 1351111463, 'portfolio_id': 22197824}, {'photo_id': 1351111415, 'portfolio_id': 22197824}, {'photo_id': 1351111362, 'portfolio_id': 22197824}, {'photo_id': 1351110261, 'portfolio_id': 22197824}, {'photo_id': 1351110189, 'portfolio_id': 22197824}] map_portfolio_id_photo_id: {22197824: [1351116980, 1351116920, 1351116862, 1351114638, 1351113013, 1351113011, 1351113010, 1351113002, 1351112987, 1351112852, 1351112821, 1351112794, 1351112792, 1351112787, 1351112590, 1351112561, 1351112529, 1351112325, 1351112300, 1351112295, 1351111949, 1351111903, 1351111874, 1351111582, 1351111549, 1351111511, 1351111463, 1351111415, 1351111362, 1351110261, 1351110189]} ##### 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.015143156051635742 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Fri Apr 18 14:30: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 After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22197824) 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 : 22197824 get user id for portfolio 22197824 get sub ptf for main ptf 22197824, type 3726 and hashtags ['plastique', 'autre_refus', 'cartonnette', 'Carton_brun', 'flou', 'kraft', 'papier', 'mal_croppe', 'Teint_Dans_La_Masse', 'environnement', 'metal', 'Carton_gris'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22197824 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','autre_refus','cartonnette','Carton_brun','flou','kraft','papier','mal_croppe','Teint_Dans_La_Masse','environnement','metal','Carton_gris')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22197824 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','autre_refus','cartonnette','Carton_brun','flou','kraft','papier','mal_croppe','Teint_Dans_La_Masse','environnement','metal','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 22197824, 'sub_port_id': 22197828, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14672105, 'last_updated_at': datetime.datetime(2025, 4, 18, 14, 28, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 14, 28, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 14, 22, 57)}, 'cartonnette': {'main_port_id': 22197824, 'sub_port_id': 22197829, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14672106, 'last_updated_at': datetime.datetime(2025, 4, 18, 14, 28, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 14, 28, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 14, 22, 57)}, 'environnement': {'main_port_id': 22197824, 'sub_port_id': 22197830, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14672107, 'last_updated_at': datetime.datetime(2025, 4, 18, 14, 28, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 14, 28, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 14, 22, 57)}, 'papier': {'main_port_id': 22197824, 'sub_port_id': 22197831, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14672108, 'last_updated_at': datetime.datetime(2025, 4, 18, 14, 28, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 14, 28, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 14, 22, 57)}, 'autre_refus': {'main_port_id': 22197824, 'sub_port_id': 22197832, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14672109, 'last_updated_at': datetime.datetime(2025, 4, 18, 14, 28, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 14, 28, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 14, 22, 57)}, 'Carton_gris': {'main_port_id': 22197824, 'sub_port_id': 22197833, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14672110, 'last_updated_at': datetime.datetime(2025, 4, 18, 14, 28, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 14, 28, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 14, 22, 57)}, 'flou': {'main_port_id': 22197824, 'sub_port_id': 22197834, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14672111, 'last_updated_at': datetime.datetime(2025, 4, 18, 14, 28, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 14, 28, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 14, 22, 57)}, 'plastique': {'main_port_id': 22197824, 'sub_port_id': 22197835, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14672112, 'last_updated_at': datetime.datetime(2025, 4, 18, 14, 28, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 14, 28, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 14, 22, 57)}, 'metal': {'main_port_id': 22197824, 'sub_port_id': 22197836, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14672113, 'last_updated_at': datetime.datetime(2025, 4, 18, 14, 28, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 14, 28, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 14, 22, 57)}, 'Carton_brun': {'main_port_id': 22197824, 'sub_port_id': 22197837, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14672114, 'last_updated_at': datetime.datetime(2025, 4, 18, 14, 28, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 14, 28, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 14, 22, 57)}, 'mal_croppe': {'main_port_id': 22197824, 'sub_port_id': 22197838, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14672115, 'last_updated_at': datetime.datetime(2025, 4, 18, 14, 28, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 14, 28, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 14, 22, 57)}, 'kraft': {'main_port_id': 22197824, 'sub_port_id': 22197839, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14672116, 'last_updated_at': datetime.datetime(2025, 4, 18, 14, 28, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 14, 28, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 14, 22, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22197828 , 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=22197824 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 (22197828) result : ((1351112752,), (1351112753,), (1351112977,), (1351115207,), (1351115208,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22197824) result : ((1351110189,), (1351110261,), (1351111362,), (1351111415,), (1351111463,), (1351111511,), (1351111549,), (1351111582,), (1351111874,), (1351111903,), (1351111949,), (1351112295,), (1351112300,), (1351112325,), (1351112529,), (1351112561,), (1351112590,), (1351112787,), (1351112792,), (1351112794,), (1351112821,), (1351112852,), (1351112987,), (1351113002,), (1351113010,), (1351113011,), (1351113013,), (1351114638,), (1351116862,), (1351116920,), (1351116980,)) 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 (1351112300) 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 22197829 , 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=22197824 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 (22197829) result : ((1351112788,), (1351112988,), (1351112989,), (1351112990,), (1351112991,), (1351113019,), (1351115223,), (1351115224,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22197824) result : ((1351110189,), (1351110261,), (1351111362,), (1351111415,), (1351111463,), (1351111511,), (1351111549,), (1351111582,), (1351111874,), (1351111903,), (1351111949,), (1351112295,), (1351112300,), (1351112325,), (1351112529,), (1351112561,), (1351112590,), (1351112787,), (1351112792,), (1351112794,), (1351112821,), (1351112852,), (1351112987,), (1351113002,), (1351113010,), (1351113011,), (1351113013,), (1351114638,), (1351116862,), (1351116920,), (1351116980,)) 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 (1351112300) 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 22197830 , 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=22197824 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 (22197830) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22197824) result : ((1351110189,), (1351110261,), (1351111362,), (1351111415,), (1351111463,), (1351111511,), (1351111549,), (1351111582,), (1351111874,), (1351111903,), (1351111949,), (1351112295,), (1351112300,), (1351112325,), (1351112529,), (1351112561,), (1351112590,), (1351112787,), (1351112792,), (1351112794,), (1351112821,), (1351112852,), (1351112987,), (1351113002,), (1351113010,), (1351113011,), (1351113013,), (1351114638,), (1351116862,), (1351116920,), (1351116980,)) 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 (1351112300) 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 22197831 , 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=22197824 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 (22197831) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22197824) result : ((1351110189,), (1351110261,), (1351111362,), (1351111415,), (1351111463,), (1351111511,), (1351111549,), (1351111582,), (1351111874,), (1351111903,), (1351111949,), (1351112295,), (1351112300,), (1351112325,), (1351112529,), (1351112561,), (1351112590,), (1351112787,), (1351112792,), (1351112794,), (1351112821,), (1351112852,), (1351112987,), (1351113002,), (1351113010,), (1351113011,), (1351113013,), (1351114638,), (1351116862,), (1351116920,), (1351116980,)) 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 (1351112300) 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 22197832 , 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=22197824 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 (22197832) result : ((1351112755,), (1351112979,), (1351112980,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22197824) result : ((1351110189,), (1351110261,), (1351111362,), (1351111415,), (1351111463,), (1351111511,), (1351111549,), (1351111582,), (1351111874,), (1351111903,), (1351111949,), (1351112295,), (1351112300,), (1351112325,), (1351112529,), (1351112561,), (1351112590,), (1351112787,), (1351112792,), (1351112794,), (1351112821,), (1351112852,), (1351112987,), (1351113002,), (1351113010,), (1351113011,), (1351113013,), (1351114638,), (1351116862,), (1351116920,), (1351116980,)) 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 (1351112300) 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 22197833 , 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=22197824 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 (22197833) result : ((1351112756,), (1351112785,), (1351112981,), (1351112982,), (1351112983,), (1351112984,), (1351112985,), (1351112986,), (1351116757,), (1351116758,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22197824) result : ((1351110189,), (1351110261,), (1351111362,), (1351111415,), (1351111463,), (1351111511,), (1351111549,), (1351111582,), (1351111874,), (1351111903,), (1351111949,), (1351112295,), (1351112300,), (1351112325,), (1351112529,), (1351112561,), (1351112590,), (1351112787,), (1351112792,), (1351112794,), (1351112821,), (1351112852,), (1351112987,), (1351113002,), (1351113010,), (1351113011,), (1351113013,), (1351114638,), (1351116862,), (1351116920,), (1351116980,)) 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 (1351112300) 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 22197834 , 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=22197824 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 (22197834) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22197824) result : ((1351110189,), (1351110261,), (1351111362,), (1351111415,), (1351111463,), (1351111511,), (1351111549,), (1351111582,), (1351111874,), (1351111903,), (1351111949,), (1351112295,), (1351112300,), (1351112325,), (1351112529,), (1351112561,), (1351112590,), (1351112787,), (1351112792,), (1351112794,), (1351112821,), (1351112852,), (1351112987,), (1351113002,), (1351113010,), (1351113011,), (1351113013,), (1351114638,), (1351116862,), (1351116920,), (1351116980,)) 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 (1351112300) 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 22197835 , 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=22197824 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 (22197835) result : ((1351112762,), (1351112789,), (1351113004,), (1351113005,), (1351113006,), (1351113007,), (1351113008,), (1351113009,), (1351113021,), (1351115272,), (1351115273,), (1351116798,), (1351116799,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22197824) result : ((1351110189,), (1351110261,), (1351111362,), (1351111415,), (1351111463,), (1351111511,), (1351111549,), (1351111582,), (1351111874,), (1351111903,), (1351111949,), (1351112295,), (1351112300,), (1351112325,), (1351112529,), (1351112561,), (1351112590,), (1351112787,), (1351112792,), (1351112794,), (1351112821,), (1351112852,), (1351112987,), (1351113002,), (1351113010,), (1351113011,), (1351113013,), (1351114638,), (1351116862,), (1351116920,), (1351116980,)) 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 (1351112300) 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 22197836 , 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=22197824 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 (22197836) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22197824) result : ((1351110189,), (1351110261,), (1351111362,), (1351111415,), (1351111463,), (1351111511,), (1351111549,), (1351111582,), (1351111874,), (1351111903,), (1351111949,), (1351112295,), (1351112300,), (1351112325,), (1351112529,), (1351112561,), (1351112590,), (1351112787,), (1351112792,), (1351112794,), (1351112821,), (1351112852,), (1351112987,), (1351113002,), (1351113010,), (1351113011,), (1351113013,), (1351114638,), (1351116862,), (1351116920,), (1351116980,)) 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 (1351112300) 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 22197837 , 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=22197824 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 (22197837) result : ((1351112995,), (1351112996,), (1351112997,), (1351112998,), (1351112999,), (1351113000,), (1351113001,), (1351115244,), (1351115247,), (1351115248,), (1351116779,), (1351116781,), (1351116782,), (1351116783,), (1351116784,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22197824) result : ((1351110189,), (1351110261,), (1351111362,), (1351111415,), (1351111463,), (1351111511,), (1351111549,), (1351111582,), (1351111874,), (1351111903,), (1351111949,), (1351112295,), (1351112300,), (1351112325,), (1351112529,), (1351112561,), (1351112590,), (1351112787,), (1351112792,), (1351112794,), (1351112821,), (1351112852,), (1351112987,), (1351113002,), (1351113010,), (1351113011,), (1351113013,), (1351114638,), (1351116862,), (1351116920,), (1351116980,)) 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 (1351112300) 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 22197838 , 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=22197824 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 (22197838) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22197824) result : ((1351110189,), (1351110261,), (1351111362,), (1351111415,), (1351111463,), (1351111511,), (1351111549,), (1351111582,), (1351111874,), (1351111903,), (1351111949,), (1351112295,), (1351112300,), (1351112325,), (1351112529,), (1351112561,), (1351112590,), (1351112787,), (1351112792,), (1351112794,), (1351112821,), (1351112852,), (1351112987,), (1351113002,), (1351113010,), (1351113011,), (1351113013,), (1351114638,), (1351116862,), (1351116920,), (1351116980,)) 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 (1351112300) 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 22197839 , 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=22197824 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 (22197839) result : ((1351112770,), (1351112771,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22197824) result : ((1351110189,), (1351110261,), (1351111362,), (1351111415,), (1351111463,), (1351111511,), (1351111549,), (1351111582,), (1351111874,), (1351111903,), (1351111949,), (1351112295,), (1351112300,), (1351112325,), (1351112529,), (1351112561,), (1351112590,), (1351112787,), (1351112792,), (1351112794,), (1351112821,), (1351112852,), (1351112987,), (1351113002,), (1351113010,), (1351113011,), (1351113013,), (1351114638,), (1351116862,), (1351116920,), (1351116980,)) 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 (1351112300) 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`=22197824 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','autre_refus','cartonnette','Carton_brun','flou','kraft','papier','mal_croppe','Teint_Dans_La_Masse','environnement','metal','Carton_gris')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22197824 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','autre_refus','cartonnette','Carton_brun','flou','kraft','papier','mal_croppe','Teint_Dans_La_Masse','environnement','metal','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 22197824, 'sub_port_id': 22197840, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14672117, 'last_updated_at': datetime.datetime(2025, 4, 18, 14, 22, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 14, 22, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 14, 22, 57)}, 'cartonnette': {'main_port_id': 22197824, 'sub_port_id': 22197841, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14672118, 'last_updated_at': datetime.datetime(2025, 4, 18, 14, 22, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 14, 22, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 14, 22, 57)}, 'environnement': {'main_port_id': 22197824, 'sub_port_id': 22197842, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14672119, 'last_updated_at': datetime.datetime(2025, 4, 18, 14, 22, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 14, 22, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 14, 22, 57)}, 'papier': {'main_port_id': 22197824, 'sub_port_id': 22197843, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14672120, 'last_updated_at': datetime.datetime(2025, 4, 18, 14, 22, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 14, 22, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 14, 22, 57)}, 'autre_refus': {'main_port_id': 22197824, 'sub_port_id': 22197844, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14672121, 'last_updated_at': datetime.datetime(2025, 4, 18, 14, 22, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 14, 22, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 14, 22, 57)}, 'Carton_gris': {'main_port_id': 22197824, 'sub_port_id': 22197845, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14672122, 'last_updated_at': datetime.datetime(2025, 4, 18, 14, 22, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 14, 22, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 14, 22, 57)}, 'flou': {'main_port_id': 22197824, 'sub_port_id': 22197846, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14672123, 'last_updated_at': datetime.datetime(2025, 4, 18, 14, 22, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 14, 22, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 14, 22, 57)}, 'plastique': {'main_port_id': 22197824, 'sub_port_id': 22197847, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14672124, 'last_updated_at': datetime.datetime(2025, 4, 18, 14, 22, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 14, 22, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 14, 22, 57)}, 'metal': {'main_port_id': 22197824, 'sub_port_id': 22197848, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14672125, 'last_updated_at': datetime.datetime(2025, 4, 18, 14, 22, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 14, 22, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 14, 22, 57)}, 'Carton_brun': {'main_port_id': 22197824, 'sub_port_id': 22197849, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14672126, 'last_updated_at': datetime.datetime(2025, 4, 18, 14, 22, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 14, 22, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 14, 22, 57)}, 'mal_croppe': {'main_port_id': 22197824, 'sub_port_id': 22197850, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14672127, 'last_updated_at': datetime.datetime(2025, 4, 18, 14, 22, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 14, 22, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 14, 22, 57)}, 'kraft': {'main_port_id': 22197824, 'sub_port_id': 22197851, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14672128, 'last_updated_at': datetime.datetime(2025, 4, 18, 14, 28, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 14, 28, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 14, 22, 57)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22197840,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22197828 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22197841,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22197829 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22197842,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22197830 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22197843,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22197831 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22197844,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22197832 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22197845,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22197833 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22197846,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22197834 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22197847,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22197835 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22197848,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22197836 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22197849,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22197837 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22197850,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22197838 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22197851,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22197839 lien utilise dans velours : https://www.fotonower.com/velours/22197840,22197841,22197842,22197843,22197844,22197845,22197846,22197847,22197848,22197849,22197850,22197851?tags=Teint_Dans_La_Masse,cartonnette,environnement,papier,autre_refus,Carton_gris,flou,plastique,metal,Carton_brun,mal_croppe,kraft After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22197824]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1351116980, 1351116920, 1351116862] map_info['map_portfolio_photo'] : {22197824: [1351116980, 1351116920, 1351116862, 1351114638, 1351113013, 1351113011, 1351113010, 1351113002, 1351112987, 1351112852, 1351112821, 1351112794, 1351112792, 1351112787, 1351112590, 1351112561, 1351112529, 1351112325, 1351112300, 1351112295, 1351111949, 1351111903, 1351111874, 1351111582, 1351111549, 1351111511, 1351111463, 1351111415, 1351111362, 1351110261, 1351110189]} final : False mtd_id 4302 list_pids : [1351116980, 1351116920, 1351116862] Looping around the photos to save general results len do output : 1 /22197824. 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, '2737046') ('4302', '22197824', '1351116980', None, None, None, None, None, '2737046') ('4302', None, None, None, None, None, None, None, '2737046') ('4302', '22197824', '1351116920', None, None, None, None, None, '2737046') ('4302', None, None, None, None, None, None, None, '2737046') ('4302', '22197824', '1351116862', None, None, None, None, None, '2737046') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 4 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22197824', "{'Teint_Dans_La_Masse': 22197828, 'cartonnette': 22197829, 'environnement': 22197830, 'papier': 22197831, 'autre_refus': 22197832, 'Carton_gris': 22197833, 'flou': 22197834, 'plastique': 22197835, 'metal': 22197836, 'Carton_brun': 22197837, 'mal_croppe': 22197838, 'kraft': 22197839}", None, None, None, None, '2737046'), ('4302', '22197824', '1351116980', None, None, None, None, None, '2737046'), ('4302', '22197824', '1351116920', None, None, None, None, None, '2737046'), ('4302', '22197824', '1351116862', None, None, None, None, None, '2737046')] time used for this insertion : 0.012523651123046875 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5155649185180664 time spend to save output : 0.012786626815795898 total time spend for step 1 : 0.5283515453338623 step2:final Fri Apr 18 14:31:00 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 (22197824) 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 22197824 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1351110261,1351110189,1351111582,1351111549,1351111511,1351111463,1351111415,1351111362,1351111949,1351111903,1351111874,1351112325,1351112300,1351112295,1351112590,1351112561,1351112529,1351112852,1351112821,1351112794,1351112792,1351112787,1351113013,1351113011,1351113010,1351113002,1351112987,1351114638,1351116980,1351116920,1351116862); 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([22197824]) Inside saveOutput : final : False verbose : True original output for save of step final : {1351116980: ('0.04845589493529913',), 1351116920: ('0.04845589493529913',), 1351116862: ('0.04845589493529913',)} new output for save of step final : {1351116980: ('0.04845589493529913',), 1351116920: ('0.04845589493529913',), 1351116862: ('0.04845589493529913',)} [1351116980, 1351116920, 1351116862] map_info['map_portfolio_photo'] : {22197824: [1351116980, 1351116920, 1351116862, 1351114638, 1351113013, 1351113011, 1351113010, 1351113002, 1351112987, 1351112852, 1351112821, 1351112794, 1351112792, 1351112787, 1351112590, 1351112561, 1351112529, 1351112325, 1351112300, 1351112295, 1351111949, 1351111903, 1351111874, 1351111582, 1351111549, 1351111511, 1351111463, 1351111415, 1351111362, 1351110261, 1351110189]} final : False mtd_id 4302 list_pids : [1351116980, 1351116920, 1351116862] Looping around the photos to save general results len do output : 3 /1351116980.Didn't retrieve data . /1351116920.Didn't retrieve data . /1351116862.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, '2737046') ('4302', '22197824', '1351116980', None, None, None, None, None, '2737046') ('4302', None, None, None, None, None, None, None, '2737046') ('4302', '22197824', '1351116920', None, None, None, None, None, '2737046') ('4302', None, None, None, None, None, None, None, '2737046') ('4302', '22197824', '1351116862', None, None, None, None, None, '2737046') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 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', '22197824', '1351116980', '0.04845589493529913', None, None, None, None, '2737046'), ('4302', '22197824', '1351116920', '0.04845589493529913', None, None, None, None, '2737046'), ('4302', '22197824', '1351116862', '0.04845589493529913', None, None, None, None, '2737046')] time used for this insertion : 0.011811494827270508 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07303905487060547 time spend to save output : 0.012018442153930664 total time spend for step 2 : 0.08505749702453613 step3:velours_tree Fri Apr 18 14:31:00 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 : {22197824: [{'Teint_Dans_La_Masse': 22197828, 'cartonnette': 22197829, 'environnement': 22197830, 'papier': 22197831, 'autre_refus': 22197832, 'Carton_gris': 22197833, 'flou': 22197834, 'plastique': 22197835, 'metal': 22197836, 'Carton_brun': 22197837, 'mal_croppe': 22197838, 'kraft': 22197839}]} input_args_next_step : {22197824: ()} output_args : {22197824: [{'Teint_Dans_La_Masse': 22197828, 'cartonnette': 22197829, 'environnement': 22197830, 'papier': 22197831, 'autre_refus': 22197832, 'Carton_gris': 22197833, 'flou': 22197834, 'plastique': 22197835, 'metal': 22197836, 'Carton_brun': 22197837, 'mal_croppe': 22197838, 'kraft': 22197839}]} args : 22197824 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Teint_Dans_La_Masse': 22197828, 'cartonnette': 22197829, 'environnement': 22197830, 'papier': 22197831, 'autre_refus': 22197832, 'Carton_gris': 22197833, 'flou': 22197834, 'plastique': 22197835, 'metal': 22197836, 'Carton_brun': 22197837, 'mal_croppe': 22197838, 'kraft': 22197839},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22197824) 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([22197824]) 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.3900425434112549 time spend to save output : 9.202957153320312e-05 total time spend for step 3 : 0.3901345729827881 step4:send_mail_cod Fri Apr 18 14:31:00 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 : {1351116980: ('0.04845589493529913',), 1351116920: ('0.04845589493529913',), 1351116862: ('0.04845589493529913',)} input_args_next_step : {1351116980: ()} output_args : {1351116980: ('0.04845589493529913',), 1351116920: ('0.04845589493529913',), 1351116862: ('0.04845589493529913',)} args : 1351116980 depend.output_id : 0 input_args_next_step : {1351116980: ('0.04845589493529913',), 1351116920: ()} output_args : {1351116980: ('0.04845589493529913',), 1351116920: ('0.04845589493529913',), 1351116862: ('0.04845589493529913',)} args : 1351116920 depend.output_id : 0 input_args_next_step : {1351116980: ('0.04845589493529913',), 1351116920: ('0.04845589493529913',), 1351116862: ()} output_args : {1351116980: ('0.04845589493529913',), 1351116920: ('0.04845589493529913',), 1351116862: ('0.04845589493529913',)} args : 1351116862 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 : {22197824: [{'Teint_Dans_La_Masse': 22197828, 'cartonnette': 22197829, 'environnement': 22197830, 'papier': 22197831, 'autre_refus': 22197832, 'Carton_gris': 22197833, 'flou': 22197834, 'plastique': 22197835, 'metal': 22197836, 'Carton_brun': 22197837, 'mal_croppe': 22197838, 'kraft': 22197839}]} input_args_next_step : {1351116980: ('0.04845589493529913',), 1351116920: ('0.04845589493529913',), 1351116862: ('0.04845589493529913',), 22197824: ()} output_args : {22197824: [{'Teint_Dans_La_Masse': 22197828, 'cartonnette': 22197829, 'environnement': 22197830, 'papier': 22197831, 'autre_refus': 22197832, 'Carton_gris': 22197833, 'flou': 22197834, 'plastique': 22197835, 'metal': 22197836, 'Carton_brun': 22197837, 'mal_croppe': 22197838, 'kraft': 22197839}]} args : 22197824 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 :4, first value : ('0.04845589493529913',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22197824) 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 (1351116980,1351116920,1351116862) Found this number of photos: 3 ##### Call download_photos : nb_thread : 5 begin to download photo : 1351116862 begin to download photo : 1351116920 begin to download photo : 1351116980 download finish for photo 1351116980 download finish for photo 1351116862 download finish for photo 1351116920 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 : 3 ; length of list_pids : 3 ; length of list_args : 3 results_Auto_P22197824_18-04-2025_14_31_01.pdf 22197829 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=22197829 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351112788: '1744979021_2685649_1351111903_4b0331a1334823151ed0123f914f9cb3_rle_crop_3754264995_0.png', 1351112988: '1744979054_4133616_1351111949_f9254baa1f5762e38728b30382810c82_rle_crop_3754272932_0.png', 1351112989: '1744979054_4133616_1351111511_c66899574a9d7cb96ed9efd3b34a6270_rle_crop_3754272953_0.png', 1351112990: '1744979054_4133616_1351111463_65605fc354faf6740b4de29fbe4d2113_rle_crop_3754272972_0.png', 1351112991: '1744979054_4133616_1351111362_2060dfc1989b50a3a19d971ffcffefc0_rle_crop_3754273037_0.png', 1351113019: '1744979101_4134323_1351112561_f026ec56cfb0f00745bd240cbc8816a8_rle_crop_3754274038_0.png', 1351115223: '1744979231_4135874_1351112821_03b7fb451bc17d29c640c7644ce9ea08_rle_crop_3754283171_0.png', 1351115224: '1744979231_4135874_1351112787_5c0f6da20fef8959b83b0f3c16d541a5_rle_crop_3754283247_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/c880bda0cef3eb926904af53347ebbc1_61282166.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/75fd1ccee920d56b7526fc9d8a7937cf_56725853.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/0fae8c2e2888e55814ca55ebd40193a8_85306309.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/d8c18aa9860c03610292ebea4768a04d_67932103.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/042d92ec1834fa0b9fb3c7a7aefdaed3_43003013.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/6ff7ec2147cda53c57030bfc747dc156_91479620.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/2632c3fde98e2d787961e34324b6bfed_3647280.png change filename to text .imagette221978291744979461/ imagette221978291744979461/1744979231_4135874_1351112787_5c0f6da20fef8959b83b0f3c16d541a5_rle_crop_3754283247_0.png.png imagette221978291744979461/1744979054_4133616_1351111949_f9254baa1f5762e38728b30382810c82_rle_crop_3754272932_0.png.png imagette221978291744979461/1744979231_4135874_1351112821_03b7fb451bc17d29c640c7644ce9ea08_rle_crop_3754283171_0.png.png imagette221978291744979461/1744979054_4133616_1351111463_65605fc354faf6740b4de29fbe4d2113_rle_crop_3754272972_0.png.png imagette221978291744979461/1744979101_4134323_1351112561_f026ec56cfb0f00745bd240cbc8816a8_rle_crop_3754274038_0.png.png imagette221978291744979461/1744979021_2685649_1351111903_4b0331a1334823151ed0123f914f9cb3_rle_crop_3754264995_0.png.png imagette221978291744979461/1744979054_4133616_1351111511_c66899574a9d7cb96ed9efd3b34a6270_rle_crop_3754272953_0.png.png imagette221978291744979461/1744979054_4133616_1351111362_2060dfc1989b50a3a19d971ffcffefc0_rle_crop_3754273037_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/e5244126d6cba2dde87f21cddf892424_54202117.png imagette221978291744979461 22197832 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=22197832 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351112755: '1744978990_4132892_1351112295_f327480a0d38e75e50db61b44622fb46_rle_crop_3754255858_0.png', 1351112979: '1744979054_4133616_1351111415_0e33c58fcbe63d2b11a0411a6e805511_rle_crop_3754272992_0.png', 1351112980: '1744979054_4133616_1351111362_2060dfc1989b50a3a19d971ffcffefc0_rle_crop_3754273026_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/b5aaf2111bb8750185652e49e908e423_81127521.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/a5ffe7b301bbac517f4163f8e069feab_75730405.png change filename to text .imagette221978321744979461/ imagette221978321744979461/1744978990_4132892_1351112295_f327480a0d38e75e50db61b44622fb46_rle_crop_3754255858_0.png.png imagette221978321744979461/1744979054_4133616_1351111415_0e33c58fcbe63d2b11a0411a6e805511_rle_crop_3754272992_0.png.png imagette221978321744979461/1744979054_4133616_1351111362_2060dfc1989b50a3a19d971ffcffefc0_rle_crop_3754273026_0.png.png imagette221978341744979461/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/9fe3855d56dc015b8a0853640cfa4e46_56916870.png imagette221978321744979461 22197834 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=22197834 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221978341744979461 22197835 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=22197835 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351112762: '1744978990_4132892_1351112300_c8ade58690356723825f04c60b8e1629_rle_crop_3754255847_0.png', 1351112789: '1744979021_2685649_1351111903_4b0331a1334823151ed0123f914f9cb3_rle_crop_3754264991_0.png', 1351113004: '1744979054_4133616_1351111949_f9254baa1f5762e38728b30382810c82_rle_crop_3754272937_0.png', 1351113005: '1744979054_4133616_1351111549_79161234911fa4c4fbc0084cc55c08ec_rle_crop_3754272949_0.png', 1351113006: '1744979054_4133616_1351111511_c66899574a9d7cb96ed9efd3b34a6270_rle_crop_3754272959_0.png', 1351113007: '1744979054_4133616_1351111463_65605fc354faf6740b4de29fbe4d2113_rle_crop_3754272966_0.png', 1351113008: '1744979054_4133616_1351111463_65605fc354faf6740b4de29fbe4d2113_rle_crop_3754272969_0.png', 1351113009: '1744979054_4133616_1351111415_0e33c58fcbe63d2b11a0411a6e805511_rle_crop_3754272991_0.png', 1351113021: '1744979101_4134323_1351112561_f026ec56cfb0f00745bd240cbc8816a8_rle_crop_3754274040_0.png', 1351115272: '1744979231_4135874_1351112821_03b7fb451bc17d29c640c7644ce9ea08_rle_crop_3754283179_0.png', 1351115273: '1744979231_4135874_1351112794_c8cc3739df1eb6d5db901d94aea37ba1_rle_crop_3754283218_0.png', 1351116798: '1744979352_4137136_1351113002_56857361305d8a5c0260f409db34677b_rle_crop_3754283474_0.png', 1351116799: '1744979352_4137136_1351112987_d5e68e17bd6a9c1bc169f02670f4a250_rle_crop_3754283501_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/30cceefa529bb156fbe57755e355d04c_80353458.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/f3b04ff77e4c671ec8e10a1f48dff8e9_77110104.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/66b007542636faf3be4c9cb68d8a60d9_82144456.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/b36107f3ddd099ab397f89936d7a5343_56437373.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/5e8c3b2b7b30185f060811a62bc0778e_12730018.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/55fd2b09b5cf052429450a17f694d923_89932712.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/2262e158bd62b796b54e74e4293f9054_44069682.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/9829a5fcd08e39a7f3d07ca70178206b_73552675.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/f74802f333191ba113c30fe2b068dd9e_56947053.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/9471ee3202b77071d8865a19bde721b1_98521739.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/05ecf2652293d9fc1d50acdb8ecfe0b4_48496996.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/5251348d9015d789e72ff342c2e7ecd4_51989430.png change filename to text .imagette221978351744979461/ imagette221978351744979461/1744979101_4134323_1351112561_f026ec56cfb0f00745bd240cbc8816a8_rle_crop_3754274040_0.png.png imagette221978351744979461/1744979054_4133616_1351111463_65605fc354faf6740b4de29fbe4d2113_rle_crop_3754272969_0.png.png imagette221978351744979461/1744979054_4133616_1351111949_f9254baa1f5762e38728b30382810c82_rle_crop_3754272937_0.png.png imagette221978351744979461/1744979352_4137136_1351113002_56857361305d8a5c0260f409db34677b_rle_crop_3754283474_0.png.png imagette221978351744979461/1744979054_4133616_1351111463_65605fc354faf6740b4de29fbe4d2113_rle_crop_3754272966_0.png.png imagette221978351744979461/1744979054_4133616_1351111549_79161234911fa4c4fbc0084cc55c08ec_rle_crop_3754272949_0.png.png imagette221978351744979461/1744979231_4135874_1351112794_c8cc3739df1eb6d5db901d94aea37ba1_rle_crop_3754283218_0.png.png imagette221978351744979461/1744979352_4137136_1351112987_d5e68e17bd6a9c1bc169f02670f4a250_rle_crop_3754283501_0.png.png imagette221978351744979461/1744979054_4133616_1351111415_0e33c58fcbe63d2b11a0411a6e805511_rle_crop_3754272991_0.png.png imagette221978351744979461/1744978990_4132892_1351112300_c8ade58690356723825f04c60b8e1629_rle_crop_3754255847_0.png.png imagette221978351744979461/1744979054_4133616_1351111511_c66899574a9d7cb96ed9efd3b34a6270_rle_crop_3754272959_0.png.png imagette221978351744979461/1744979231_4135874_1351112821_03b7fb451bc17d29c640c7644ce9ea08_rle_crop_3754283179_0.png.png imagette221978351744979461/1744979021_2685649_1351111903_4b0331a1334823151ed0123f914f9cb3_rle_crop_3754264991_0.png.png imagette221978361744979462/ imagette221978381744979462/ wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/8b7a994aaf2433bab49cb66b0131d833_73233661.png imagette221978351744979461 22197836 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=22197836 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221978361744979462 22197838 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=22197838 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221978381744979462 22197839 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=22197839 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351112770: '1744978990_4132892_1351112300_c8ade58690356723825f04c60b8e1629_rle_crop_3754255846_0.png', 1351112771: '1744978990_4132892_1351112295_f327480a0d38e75e50db61b44622fb46_rle_crop_3754255860_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/44ee1a23f9a393fb6cb9b8cc3b83a535_99667549.png change filename to text .imagette221978391744979462/ imagette221978391744979462/1744978990_4132892_1351112300_c8ade58690356723825f04c60b8e1629_rle_crop_3754255846_0.png.png imagette221978391744979462/1744978990_4132892_1351112295_f327480a0d38e75e50db61b44622fb46_rle_crop_3754255860_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/6c4eb098bc5fb45f9f1a7019590e0728_99261300.png imagette221978391744979462 22197828 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=22197828 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351112752: '1744978990_4132892_1351112295_f327480a0d38e75e50db61b44622fb46_rle_crop_3754255864_0.png', 1351112753: '1744978990_4132892_1351112295_f327480a0d38e75e50db61b44622fb46_rle_crop_3754255861_0.png', 1351112977: '1744979054_4133616_1351111549_79161234911fa4c4fbc0084cc55c08ec_rle_crop_3754272943_0.png', 1351115207: '1744979231_4135874_1351112794_c8cc3739df1eb6d5db901d94aea37ba1_rle_crop_3754283212_0.png', 1351115208: '1744979231_4135874_1351112794_c8cc3739df1eb6d5db901d94aea37ba1_rle_crop_3754283208_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/60ef1629d464a402ddbf05db2d5ccb16_92146197.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/5aadbb22bb1317f5cd1e9bdd4008f23f_44501246.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/5e57ade1968544542798a3eb60fdcb69_92675344.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/d6ef0bbde17b213f2087edaf67a58b65_19206460.png change filename to text .imagette221978281744979462/ imagette221978281744979462/1744979231_4135874_1351112794_c8cc3739df1eb6d5db901d94aea37ba1_rle_crop_3754283208_0.png.png imagette221978281744979462/1744979231_4135874_1351112794_c8cc3739df1eb6d5db901d94aea37ba1_rle_crop_3754283212_0.png.png imagette221978281744979462/1744978990_4132892_1351112295_f327480a0d38e75e50db61b44622fb46_rle_crop_3754255864_0.png.png imagette221978281744979462/1744978990_4132892_1351112295_f327480a0d38e75e50db61b44622fb46_rle_crop_3754255861_0.png.png imagette221978281744979462/1744979054_4133616_1351111549_79161234911fa4c4fbc0084cc55c08ec_rle_crop_3754272943_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/82450485502a9717411730aa2ae2f8d8_26604558.png imagette221978281744979462 22197833 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=22197833 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351112756: '1744978990_4132892_1351112295_f327480a0d38e75e50db61b44622fb46_rle_crop_3754255853_0.png', 1351112785: '1744979021_2685649_1351111903_4b0331a1334823151ed0123f914f9cb3_rle_crop_3754264992_0.png', 1351112981: '1744979054_4133616_1351111949_f9254baa1f5762e38728b30382810c82_rle_crop_3754272930_0.png', 1351112982: '1744979054_4133616_1351111463_65605fc354faf6740b4de29fbe4d2113_rle_crop_3754272970_0.png', 1351112983: '1744979054_4133616_1351111415_0e33c58fcbe63d2b11a0411a6e805511_rle_crop_3754272994_0.png', 1351112984: '1744979054_4133616_1351111415_0e33c58fcbe63d2b11a0411a6e805511_rle_crop_3754272993_0.png', 1351112985: '1744979054_4133616_1351111362_2060dfc1989b50a3a19d971ffcffefc0_rle_crop_3754273027_0.png', 1351112986: '1744979054_4133616_1351111362_2060dfc1989b50a3a19d971ffcffefc0_rle_crop_3754273024_0.png', 1351116757: '1744979352_4137136_1351113011_13d4ed65adeb7e841ed2ae55d2a8f5c5_rle_crop_3754283445_0.png', 1351116758: '1744979352_4137136_1351112987_d5e68e17bd6a9c1bc169f02670f4a250_rle_crop_3754283498_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/34255a1b4933c00b89e415107b321270_91665106.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/7807fb8a44bed6ce7c8889a5a7b1d6c3_46766062.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/ce01202e04f1bbdd018b1ff30bbf7ca7_59119897.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/51368617909ddbe40bc24a4ff2ca471b_82385365.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/b4da62bc21c0d95d7d7da19a4a584024_17514762.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/b0f62e67473247be1fb725e76ecd3bcc_39982035.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/bd7f78e93974a39d918db5c75e515e93_15669695.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/ec811359e69fa1359e348579d2219d0b_82211835.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/47c27a16da4be2f68d55cb0cdc531080_55588497.png change filename to text .imagette221978331744979462/ imagette221978331744979462/1744979054_4133616_1351111463_65605fc354faf6740b4de29fbe4d2113_rle_crop_3754272970_0.png.png imagette221978331744979462/1744978990_4132892_1351112295_f327480a0d38e75e50db61b44622fb46_rle_crop_3754255853_0.png.png imagette221978331744979462/1744979054_4133616_1351111949_f9254baa1f5762e38728b30382810c82_rle_crop_3754272930_0.png.png imagette221978331744979462/1744979352_4137136_1351112987_d5e68e17bd6a9c1bc169f02670f4a250_rle_crop_3754283498_0.png.png imagette221978331744979462/1744979054_4133616_1351111362_2060dfc1989b50a3a19d971ffcffefc0_rle_crop_3754273027_0.png.png imagette221978331744979462/1744979054_4133616_1351111362_2060dfc1989b50a3a19d971ffcffefc0_rle_crop_3754273024_0.png.png imagette221978331744979462/1744979021_2685649_1351111903_4b0331a1334823151ed0123f914f9cb3_rle_crop_3754264992_0.png.png imagette221978331744979462/1744979352_4137136_1351113011_13d4ed65adeb7e841ed2ae55d2a8f5c5_rle_crop_3754283445_0.png.png imagette221978331744979462/1744979054_4133616_1351111415_0e33c58fcbe63d2b11a0411a6e805511_rle_crop_3754272994_0.png.png imagette221978331744979462/1744979054_4133616_1351111415_0e33c58fcbe63d2b11a0411a6e805511_rle_crop_3754272993_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/2b90613485fdd8bde2831278e06b6569_19440714.png imagette221978331744979462 22197837 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=22197837 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351112995: '1744979054_4133616_1351111549_79161234911fa4c4fbc0084cc55c08ec_rle_crop_3754272948_0.png', 1351112996: '1744979054_4133616_1351111549_79161234911fa4c4fbc0084cc55c08ec_rle_crop_3754272942_0.png', 1351112997: '1744979054_4133616_1351111415_0e33c58fcbe63d2b11a0411a6e805511_rle_crop_3754273004_0.png', 1351112998: '1744979054_4133616_1351111415_0e33c58fcbe63d2b11a0411a6e805511_rle_crop_3754273003_0.png', 1351112999: '1744979054_4133616_1351111415_0e33c58fcbe63d2b11a0411a6e805511_rle_crop_3754272998_0.png', 1351113000: '1744979054_4133616_1351111362_2060dfc1989b50a3a19d971ffcffefc0_rle_crop_3754273036_0.png', 1351113001: '1744979054_4133616_1351111362_2060dfc1989b50a3a19d971ffcffefc0_rle_crop_3754273035_0.png', 1351115244: '1744979231_4135874_1351112821_03b7fb451bc17d29c640c7644ce9ea08_rle_crop_3754283174_0.png', 1351115247: '1744979231_4135874_1351112821_03b7fb451bc17d29c640c7644ce9ea08_rle_crop_3754283176_0.png', 1351115248: '1744979231_4135874_1351112794_c8cc3739df1eb6d5db901d94aea37ba1_rle_crop_3754283207_0.png', 1351116779: '1744979352_4137136_1351113011_13d4ed65adeb7e841ed2ae55d2a8f5c5_rle_crop_3754283448_0.png', 1351116781: '1744979352_4137136_1351113010_32d79f40ff56313b6361f8f09e5b107a_rle_crop_3754283463_0.png', 1351116782: '1744979352_4137136_1351113002_56857361305d8a5c0260f409db34677b_rle_crop_3754283481_0.png', 1351116783: '1744979352_4137136_1351112987_d5e68e17bd6a9c1bc169f02670f4a250_rle_crop_3754283502_0.png', 1351116784: '1744979352_4137136_1351112987_d5e68e17bd6a9c1bc169f02670f4a250_rle_crop_3754283499_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/008a87932d5c54cc655df15801870942_23604323.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/652d455809cbc155d2e31d898af1d8ae_11181252.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/c91201fc809bbbc1a2d48058ea57def2_55428557.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/3d717bf8f6056dbefb4bb15cd18cf377_34419969.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/ff388d9825e7d9b5d56912a6ead2fbfc_79757655.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/c1608403d329351ad1c0c9a3956c3127_86784724.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/68262916bdf2362183df725ea5cb207a_30071352.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/4b35cf9eff38caef1f349e1bd514b192_77960192.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/44a797deeb6a765f52ca6abbc3d2687d_16980304.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/c76165ffe19e78068ba58c15c9af52f9_11281279.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/41274919d47afb9a31d09cfa78358d1f_44088562.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/308c23b9d07aac01b5768e9ac59d4725_6959141.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/4d08245f8f18aeba98221b8bfce2e5bd_50009396.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/ad694aa2df2153016db46c427f398b8c_33613455.png change filename to text .imagette221978371744979463/ imagette221978371744979463/1744979231_4135874_1351112794_c8cc3739df1eb6d5db901d94aea37ba1_rle_crop_3754283207_0.png.png imagette221978371744979463/1744979054_4133616_1351111549_79161234911fa4c4fbc0084cc55c08ec_rle_crop_3754272942_0.png.png imagette221978371744979463/1744979352_4137136_1351113011_13d4ed65adeb7e841ed2ae55d2a8f5c5_rle_crop_3754283448_0.png.png imagette221978371744979463/1744979054_4133616_1351111415_0e33c58fcbe63d2b11a0411a6e805511_rle_crop_3754272998_0.png.png imagette221978371744979463/1744979352_4137136_1351112987_d5e68e17bd6a9c1bc169f02670f4a250_rle_crop_3754283502_0.png.png imagette221978371744979463/1744979054_4133616_1351111415_0e33c58fcbe63d2b11a0411a6e805511_rle_crop_3754273003_0.png.png imagette221978371744979463/1744979352_4137136_1351112987_d5e68e17bd6a9c1bc169f02670f4a250_rle_crop_3754283499_0.png.png imagette221978371744979463/1744979352_4137136_1351113010_32d79f40ff56313b6361f8f09e5b107a_rle_crop_3754283463_0.png.png imagette221978371744979463/1744979054_4133616_1351111549_79161234911fa4c4fbc0084cc55c08ec_rle_crop_3754272948_0.png.png imagette221978371744979463/1744979054_4133616_1351111362_2060dfc1989b50a3a19d971ffcffefc0_rle_crop_3754273036_0.png.png imagette221978371744979463/1744979231_4135874_1351112821_03b7fb451bc17d29c640c7644ce9ea08_rle_crop_3754283174_0.png.png imagette221978371744979463/1744979231_4135874_1351112821_03b7fb451bc17d29c640c7644ce9ea08_rle_crop_3754283176_0.png.png imagette221978371744979463/1744979054_4133616_1351111362_2060dfc1989b50a3a19d971ffcffefc0_rle_crop_3754273035_0.png.png imagette221978371744979463/1744979352_4137136_1351113002_56857361305d8a5c0260f409db34677b_rle_crop_3754283481_0.png.png imagette221978371744979463/1744979054_4133616_1351111415_0e33c58fcbe63d2b11a0411a6e805511_rle_crop_3754273004_0.png.png wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/0c0829e96423f8ef23bfe921e1a2bbbf_34030377.png imagette221978371744979463 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22197824 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22197840,22197841,22197842,22197843,22197844,22197845,22197846,22197847,22197848,22197849,22197850,22197851?tags=Teint_Dans_La_Masse,cartonnette,environnement,papier,autre_refus,Carton_gris,flou,plastique,metal,Carton_brun,mal_croppe,kraft your option no_mail is active, we will not send the real mail to your client args[1351116980] : ('0.04845589493529913',) no score found for photo 1351116980 We are sending mail with results at report@fotonower.com args[1351116920] : ('0.04845589493529913',) no score found for photo 1351116920 We are sending mail with results at report@fotonower.com args[1351116862] : ('0.04845589493529913',) no score found for photo 1351116862 We are sending mail with results at report@fotonower.com refus_total : 0.04845589493529913 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=22197824 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_P22197824_18-04-2025_14_31_01.pdf results_Auto_P22197824_18-04-2025_14_31_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22197824_18-04-2025_14_31_01.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','22197824','results_Auto_P22197824_18-04-2025_14_31_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22197824_18-04-2025_14_31_01.pdf','pdf','','0.2','0.04845589493529913') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22197824]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1351116980, 1351116920, 1351116862] map_info['map_portfolio_photo'] : {22197824: [1351116980, 1351116920, 1351116862, 1351114638, 1351113013, 1351113011, 1351113010, 1351113002, 1351112987, 1351112852, 1351112821, 1351112794, 1351112792, 1351112787, 1351112590, 1351112561, 1351112529, 1351112325, 1351112300, 1351112295, 1351111949, 1351111903, 1351111874, 1351111582, 1351111549, 1351111511, 1351111463, 1351111415, 1351111362, 1351110261, 1351110189]} final : False mtd_id 4302 list_pids : [1351116980, 1351116920, 1351116862] 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, '2737046') ('4302', '22197824', '1351116980', None, None, None, None, None, '2737046') ('4302', None, None, None, None, None, None, None, '2737046') ('4302', '22197824', '1351116920', None, None, None, None, None, '2737046') ('4302', None, None, None, None, None, None, None, '2737046') ('4302', '22197824', '1351116862', None, None, None, None, None, '2737046') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 3 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', '22197824', '1351116980', None, None, None, None, None, '2737046'), ('4302', '22197824', '1351116920', None, None, None, None, None, '2737046'), ('4302', '22197824', '1351116862', None, None, None, None, None, '2737046')] time used for this insertion : 0.013231039047241211 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.812010288238525 time spend to save output : 0.01362299919128418 total time spend for step 4 : 6.82563328742981 step5:split_time_score Fri Apr 18 14:31:07 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 : ['22197824'] 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 : [('22197824',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22197824) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1351116980: {'path': 'temp/1744979460_3101337_1351116980_4756c5e7ad7a052eb9d7346115a8bfc0.jpg', 'extension': 'jpg'}, 1351116862: {'path': 'temp/1744979460_3101337_1351116862_a919ae32c97abf61893277dde8fcf1a5.jpg', 'extension': 'jpg'}, 1351116920: {'path': 'temp/1744979460_3101337_1351116920_071f22dad1bd4382634ea55f9fc56917.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 = 22197824; (('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 = 22197824 group by h (('14', 31),) 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=22197824 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 (22197824) 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 (22197824) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 18042025 22197824 Nombre de photos uploadées : 31 / 23040 (0%) 18042025 22197824 Nombre de photos taguées (types de déchets): 0 / 31 (0%) 18042025 22197824 Nombre de photos taguées (volume) : 0 / 31 (0%) [{'photo_id': 1351110261, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/ba2fa5b32a4297b75f3287029dbc36ce.jpg', 'username': None, 'uploaded_at': 1744978747, 'text': 'image_18042025_14_15_25_10137.jpg'}, {'photo_id': 1351110189, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/38c9374067fe292b55bbaaee7bbc29bc.jpg', 'username': None, 'uploaded_at': 1744978747, 'text': 'image_18042025_14_18_24_10135.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1351111582, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/bc5f70b3681c14bb0a4b5eb1fae291fc.jpg', 'username': None, 'uploaded_at': 1744978807, 'text': 'image_18042025_14_18_34_10135.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1351111549, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/79161234911fa4c4fbc0084cc55c08ec.jpg', 'username': None, 'uploaded_at': 1744978807, 'text': 'image_18042025_14_19_05_10150.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 5.245208740234375e-06 elapsed_time : order_list_meta_photo_and_scores 1.2159347534179688e-05 ??????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0015192031860351562 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22197824, '2025-04-18' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1725253,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.024501800537109375 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= 1725253 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1725253, 'dashboard_run_id': 1735085, 'mtr_portfolio_id': 22195476, 'dashboard_result_id': 9980604, '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_P22195476_18-04-2025_13_48_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22195477, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22195478, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22195479, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22195480, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22195481, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22195482, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22195483, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22195484, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22195485, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22195486, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22195487, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22195488, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1735085, 'mtr_portfolio_id': 22195829, 'dashboard_result_id': 9980605, '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_P22195829_18-04-2025_14_02_50.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22195859, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22195860, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22195861, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22195862, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22195863, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22195864, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22195865, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22195866, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22195867, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22195868, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22195869, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22195870, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1735085, 'mtr_portfolio_id': 22196748, 'dashboard_result_id': 9980606, '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_P22196748_18-04-2025_14_16_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22196830, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22196831, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22196832, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22196833, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22196834, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22196835, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22196836, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22196837, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22196838, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22196839, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22196840, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22196841, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1735085, 'mtr_portfolio_id': 22197824, 'dashboard_result_id': 9980607, '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_P22197824_18-04-2025_14_28_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22197828, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22197829, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22197830, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22197831, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22197832, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22197833, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22197834, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22197835, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22197836, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22197837, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22197838, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22197839, '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 = 22195476 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': 2736843, 'mtr_portfolio_id': 22195476, 'created_at': datetime.datetime(2025, 4, 18, 13, 48, 58), 'result': '0.04424045782602438', 'result_long': None, 'result_double': None}] Qualite : 0.04424045782602438 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22195476 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22195476_18-04-2025_13_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22195476 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_P22195476_18-04-2025_13_48_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22195477, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22195478, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22195479, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22195480, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22195481, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22195482, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22195483, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22195484, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22195485, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22195486, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22195487, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22195488, 'pht': 3726}}" where mtr_portfolio_id = 22195476 and dashboard_run_id = 1735085 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`=22195476 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9980604, 0.04424045782602438, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22195476_18-04-2025_13_48_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22195477, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22195478, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22195479, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22195480, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22195481, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22195482, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22195483, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22195484, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22195485, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22195486, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22195487, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22195488, '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 = 22195829 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': 2736859, 'mtr_portfolio_id': 22195829, 'created_at': datetime.datetime(2025, 4, 18, 14, 2, 49), 'result': '0.041465983159170966', 'result_long': None, 'result_double': None}] Qualite : 0.041465983159170966 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22195829 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22195829_18-04-2025_14_02_50.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22195829 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_P22195829_18-04-2025_14_02_50.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22195859, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22195860, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22195861, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22195862, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22195863, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22195864, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22195865, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22195866, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22195867, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22195868, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22195869, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22195870, 'pht': 3726}}" where mtr_portfolio_id = 22195829 and dashboard_run_id = 1735085 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`=22195829 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9980605, 0.041465983159170966, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22195829_18-04-2025_14_02_50.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22195859, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22195860, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22195861, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22195862, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22195863, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22195864, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22195865, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22195866, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22195867, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22195868, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22195869, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22195870, '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 = 22196748 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': 2736960, 'mtr_portfolio_id': 22196748, 'created_at': datetime.datetime(2025, 4, 18, 14, 16, 56), 'result': '0.059163368933889265', 'result_long': None, 'result_double': None}] Qualite : 0.059163368933889265 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22196748 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22196748_18-04-2025_14_16_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22196748 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_P22196748_18-04-2025_14_16_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22196830, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22196831, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22196832, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22196833, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22196834, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22196835, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22196836, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22196837, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22196838, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22196839, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22196840, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22196841, 'pht': 3726}}" where mtr_portfolio_id = 22196748 and dashboard_run_id = 1735085 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`=22196748 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9980606, 0.059163368933889265, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22196748_18-04-2025_14_16_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22196830, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22196831, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22196832, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22196833, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22196834, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22196835, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22196836, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22196837, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22196838, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22196839, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22196840, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22196841, '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 = 22197824 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': 2737046, 'mtr_portfolio_id': 22197824, 'created_at': datetime.datetime(2025, 4, 18, 14, 31), 'result': '0.04845589493529913', 'result_long': None, 'result_double': None}] Qualite : 0.04845589493529913 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22197824 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22197824_18-04-2025_14_31_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22197824 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_P22197824_18-04-2025_14_31_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22197828, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22197829, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22197830, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22197831, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22197832, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22197833, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22197834, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22197835, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22197836, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22197837, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22197838, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22197839, 'pht': 3726}}" where mtr_portfolio_id = 22197824 and dashboard_run_id = 1735085 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`=22197824 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9980607, 0.04845589493529913, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22197824_18-04-2025_14_31_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22197828, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22197829, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22197830, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22197831, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22197832, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22197833, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22197834, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22197835, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22197836, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22197837, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22197838, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22197839, '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 (22195476,22195829,22196748,22197824) result : ((1351084757,), (1351084818,), (1351084882,), (1351085486,), (1351085521,), (1351085553,), (1351085990,), (1351086873,), (1351086901,), (1351087240,), (1351087243,), (1351087253,), (1351087299,), (1351087369,), (1351087381,), (1351087470,), (1351087472,), (1351087474,), (1351087973,), (1351088064,), (1351088926,), (1351088999,), (1351089049,), (1351089078,), (1351089106,), (1351089137,), (1351089826,), (1351089532,), (1351089612,), (1351089683,), (1351089750,), (1351089821,), (1351090080,), (1351090094,), (1351090110,), (1351090125,), (1351090282,), (1351090327,), (1351090384,), (1351091201,), (1351091203,), (1351091206,), (1351091228,), (1351091255,), (1351091572,), (1351091575,), (1351091612,), (1351091778,), (1351091785,), (1351092060,), (1351092086,), (1351092104,), (1351092115,), (1351092416,), (1351092438,), (1351092443,), (1351092459,), (1351092480,), (1351092876,), (1351092878,), (1351092920,), (1351092960,), (1351092991,), (1351093022,), (1351093131,), (1351093159,), (1351093187,), (1351093191,), (1351093195,), (1351093198,), (1351093201,), (1351093206,), (1351093486,), (1351093513,), (1351093541,), (1351093569,), (1351093594,), (1351093622,), (1351093768,), (1351093793,), (1351093814,), (1351094031,), (1351094034,), (1351094037,), (1351094040,), (1351094044,), (1351094411,), (1351094472,), (1351094532,), (1351094605,), (1351095274,), (1351096250,), (1351096325,), (1351096397,), (1351097225,), (1351097300,), (1351097384,), (1351097471,), (1351097572,), (1351098424,), (1351098476,), (1351098546,), (1351099116,), (1351099145,), (1351099156,), (1351099162,), (1351099176,), (1351099185,), (1351099237,), (1351099261,), (1351099277,), (1351099287,), (1351099304,), (1351099609,), (1351099636,), (1351099658,), (1351099697,), (1351099726,), (1351100160,), (1351100212,), (1351101083,), (1351101176,), (1351101236,), (1351101266,), (1351101294,), (1351101795,), (1351101829,), (1351101858,), (1351101887,), (1351101919,), (1351101970,), (1351102318,), (1351102342,), (1351102371,), (1351102394,), (1351103347,), (1351103405,), (1351103436,), (1351103474,), (1351103539,), (1351104277,), (1351104377,), (1351104479,), (1351104556,), (1351104625,), (1351104692,), (1351105193,), (1351105357,), (1351105419,), (1351105464,), (1351107202,), (1351110189,), (1351110261,), (1351111362,), (1351111415,), (1351111463,), (1351111511,), (1351111549,), (1351111582,), (1351111874,), (1351111903,), (1351111949,), (1351112295,), (1351112300,), (1351112325,), (1351112529,), (1351112561,), (1351112590,), (1351112787,), (1351112792,), (1351112794,), (1351112821,), (1351112852,), (1351112987,), (1351113002,), (1351113010,), (1351113011,), (1351113013,), (1351114638,), (1351116862,), (1351116920,), (1351116980,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'18042025': {'nb_upload': 31, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22197824]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1351116980, 1351116920, 1351116862] map_info['map_portfolio_photo'] : {22197824: [1351116980, 1351116920, 1351116862, 1351114638, 1351113013, 1351113011, 1351113010, 1351113002, 1351112987, 1351112852, 1351112821, 1351112794, 1351112792, 1351112787, 1351112590, 1351112561, 1351112529, 1351112325, 1351112300, 1351112295, 1351111949, 1351111903, 1351111874, 1351111582, 1351111549, 1351111511, 1351111463, 1351111415, 1351111362, 1351110261, 1351110189]} final : True mtd_id 4302 list_pids : [1351116980, 1351116920, 1351116862] Looping around the photos to save general results len do output : 1 /22197824Didn'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, '2737046') ('4302', '22197824', '1351116980', None, None, None, None, None, '2737046') ('4302', None, None, None, None, None, None, None, '2737046') ('4302', '22197824', '1351116920', None, None, None, None, None, '2737046') ('4302', None, None, None, None, None, None, None, '2737046') ('4302', '22197824', '1351116862', None, None, None, None, None, '2737046') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 4 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22197824', 'None', None, None, None, None, '2737046'), ('4302', '22197824', '1351116980', None, None, None, None, None, '2737046'), ('4302', '22197824', '1351116920', None, None, None, None, None, '2737046'), ('4302', '22197824', '1351116862', None, None, None, None, None, '2737046')] time used for this insertion : 0.015550613403320312 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3693239688873291 time spend to save output : 0.016000747680664062 total time spend for step 5 : 0.38532471656799316 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 (2737046) 2.50user 2.05system 0:12.93elapsed 35%CPU (0avgtext+0avgdata 157492maxresident)k 30664inputs+9416outputs (149major+76328minor)pagefaults 0swaps