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 : 2495989 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 (2674303) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2674303) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21479541 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2674303'] with mtr_portfolio_ids : ['21479541'] and first list_photo_ids : [] new path : /proc/2495989/ Name: python3 Umask: 0002 State: R (running) Tgid: 2495989 Ngid: 0 Pid: 2495989 PPid: 2495988 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2495989 NSpid: 2495989 NSpgid: 2493165 NSsid: 2493165 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98976 kB VmRSS: 98976 kB RssAnon: 59796 kB RssFile: 39180 kB RssShmem: 0 kB VmData: 865596 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 604 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 1/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: 50 nonvoluntary_ctxt_switches: 92 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2495989', 'Ngid': '0', 'Pid': '2495989', 'PPid': '2495988', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2495989', 'NSpid': '2495989', 'NSpgid': '2493165', 'NSsid': '2493165', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98976 kB', 'VmRSS': '98976 kB', 'RssAnon': '59796 kB', 'RssFile': '39180 kB', 'RssShmem': '0 kB', 'VmData': '865596 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '604 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '1/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': '50', 'nonvoluntary_ctxt_switches': '92'} ('datou_batch_current', '2495989', '1106844', '0', '1106844', '865596', '98976', b'', 'marlene', '2674303') 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 (21479541) 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 (2674303 ) ) 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 (21479541) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1344656530, 'portfolio_id': 21479541}, {'photo_id': 1344656528, 'portfolio_id': 21479541}, {'photo_id': 1344656527, 'portfolio_id': 21479541}, {'photo_id': 1344656525, 'portfolio_id': 21479541}, {'photo_id': 1344656503, 'portfolio_id': 21479541}, {'photo_id': 1344656500, 'portfolio_id': 21479541}, {'photo_id': 1344656497, 'portfolio_id': 21479541}, {'photo_id': 1344656494, 'portfolio_id': 21479541}, {'photo_id': 1344656493, 'portfolio_id': 21479541}, {'photo_id': 1344656491, 'portfolio_id': 21479541}, {'photo_id': 1344656456, 'portfolio_id': 21479541}, {'photo_id': 1344656455, 'portfolio_id': 21479541}, {'photo_id': 1344656453, 'portfolio_id': 21479541}, {'photo_id': 1344656427, 'portfolio_id': 21479541}, {'photo_id': 1344656424, 'portfolio_id': 21479541}, {'photo_id': 1344656421, 'portfolio_id': 21479541}, {'photo_id': 1344656417, 'portfolio_id': 21479541}, {'photo_id': 1344656415, 'portfolio_id': 21479541}, {'photo_id': 1344656413, 'portfolio_id': 21479541}, {'photo_id': 1344656386, 'portfolio_id': 21479541}, {'photo_id': 1344656383, 'portfolio_id': 21479541}, {'photo_id': 1344656382, 'portfolio_id': 21479541}, {'photo_id': 1344656380, 'portfolio_id': 21479541}, {'photo_id': 1344656360, 'portfolio_id': 21479541}, {'photo_id': 1344656357, 'portfolio_id': 21479541}, {'photo_id': 1344656354, 'portfolio_id': 21479541}, {'photo_id': 1344656351, 'portfolio_id': 21479541}, {'photo_id': 1344656347, 'portfolio_id': 21479541}, {'photo_id': 1344656344, 'portfolio_id': 21479541}, {'photo_id': 1344656324, 'portfolio_id': 21479541}, {'photo_id': 1344656321, 'portfolio_id': 21479541}, {'photo_id': 1344656314, 'portfolio_id': 21479541}, {'photo_id': 1344656308, 'portfolio_id': 21479541}, {'photo_id': 1344656306, 'portfolio_id': 21479541}] map_portfolio_id_photo_id: {21479541: [1344656530, 1344656528, 1344656527, 1344656525, 1344656503, 1344656500, 1344656497, 1344656494, 1344656493, 1344656491, 1344656456, 1344656455, 1344656453, 1344656427, 1344656424, 1344656421, 1344656417, 1344656415, 1344656413, 1344656386, 1344656383, 1344656382, 1344656380, 1344656360, 1344656357, 1344656354, 1344656351, 1344656347, 1344656344, 1344656324, 1344656321, 1344656314, 1344656308, 1344656306]} ##### 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.015166759490966797 #### 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 Mon Mar 17 06:23: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 (21479541) 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 : 21479541 get user id for portfolio 21479541 get sub ptf for main ptf 21479541, type 3726 and hashtags ['plastique', 'environnement', 'cartonnette', 'Teint_Dans_La_Masse', 'kraft', 'flou', 'papier', 'mal_croppe', 'autre_refus', 'Carton_brun', 'Carton_gris', 'metal'] 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`=21479541 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','environnement','cartonnette','Teint_Dans_La_Masse','kraft','flou','papier','mal_croppe','autre_refus','Carton_brun','Carton_gris','metal')) 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`=21479541 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','environnement','cartonnette','Teint_Dans_La_Masse','kraft','flou','papier','mal_croppe','autre_refus','Carton_brun','Carton_gris','metal')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 21479541, 'sub_port_id': 21479545, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14044349, 'last_updated_at': datetime.datetime(2025, 3, 17, 6, 21, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 17, 6, 21, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 17, 6, 19, 59)}, 'kraft': {'main_port_id': 21479541, 'sub_port_id': 21479546, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14044350, 'last_updated_at': datetime.datetime(2025, 3, 17, 6, 21, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 17, 6, 21, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 17, 6, 19, 59)}, 'autre_refus': {'main_port_id': 21479541, 'sub_port_id': 21479547, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14044351, 'last_updated_at': datetime.datetime(2025, 3, 17, 6, 21, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 17, 6, 21, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 17, 6, 19, 59)}, 'environnement': {'main_port_id': 21479541, 'sub_port_id': 21479548, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14044352, 'last_updated_at': datetime.datetime(2025, 3, 17, 6, 21, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 17, 6, 21, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 17, 6, 19, 59)}, 'plastique': {'main_port_id': 21479541, 'sub_port_id': 21479549, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14044353, 'last_updated_at': datetime.datetime(2025, 3, 17, 6, 21, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 17, 6, 21, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 17, 6, 19, 59)}, 'Carton_gris': {'main_port_id': 21479541, 'sub_port_id': 21479550, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14044354, 'last_updated_at': datetime.datetime(2025, 3, 17, 6, 21, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 17, 6, 21, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 17, 6, 19, 59)}, 'cartonnette': {'main_port_id': 21479541, 'sub_port_id': 21479551, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14044355, 'last_updated_at': datetime.datetime(2025, 3, 17, 6, 21, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 17, 6, 21, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 17, 6, 19, 59)}, 'metal': {'main_port_id': 21479541, 'sub_port_id': 21479552, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14044356, 'last_updated_at': datetime.datetime(2025, 3, 17, 6, 21, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 17, 6, 21, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 17, 6, 19, 59)}, 'Carton_brun': {'main_port_id': 21479541, 'sub_port_id': 21479553, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14044357, 'last_updated_at': datetime.datetime(2025, 3, 17, 6, 21, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 17, 6, 21, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 17, 6, 19, 59)}, 'mal_croppe': {'main_port_id': 21479541, 'sub_port_id': 21479554, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14044358, 'last_updated_at': datetime.datetime(2025, 3, 17, 6, 21, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 17, 6, 21, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 17, 6, 19, 59)}, 'papier': {'main_port_id': 21479541, 'sub_port_id': 21479555, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14044359, 'last_updated_at': datetime.datetime(2025, 3, 17, 6, 21, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 17, 6, 21, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 17, 6, 19, 59)}, 'flou': {'main_port_id': 21479541, 'sub_port_id': 21479556, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14044360, 'last_updated_at': datetime.datetime(2025, 3, 17, 6, 21, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 17, 6, 21, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 17, 6, 19, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21479545 , 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=21479541 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 (21479545) result : ((1344656540,), (1344656559,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21479541) result : ((1344656306,), (1344656308,), (1344656314,), (1344656321,), (1344656324,), (1344656344,), (1344656347,), (1344656351,), (1344656354,), (1344656357,), (1344656360,), (1344656380,), (1344656382,), (1344656383,), (1344656386,), (1344656413,), (1344656415,), (1344656417,), (1344656421,), (1344656424,), (1344656427,), (1344656453,), (1344656455,), (1344656456,), (1344656491,), (1344656493,), (1344656494,), (1344656497,), (1344656500,), (1344656503,), (1344656525,), (1344656527,), (1344656528,), (1344656530,)) 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 (1344656500) 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 21479546 , 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=21479541 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 (21479546) result : ((1344656552,), (1344656567,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21479541) result : ((1344656306,), (1344656308,), (1344656314,), (1344656321,), (1344656324,), (1344656344,), (1344656347,), (1344656351,), (1344656354,), (1344656357,), (1344656360,), (1344656380,), (1344656382,), (1344656383,), (1344656386,), (1344656413,), (1344656415,), (1344656417,), (1344656421,), (1344656424,), (1344656427,), (1344656453,), (1344656455,), (1344656456,), (1344656491,), (1344656493,), (1344656494,), (1344656497,), (1344656500,), (1344656503,), (1344656525,), (1344656527,), (1344656528,), (1344656530,)) 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 (1344656500) 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 21479547 , 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=21479541 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 (21479547) result : ((1344656446,), (1344656467,), (1344656468,), (1344656541,), (1344656560,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21479541) result : ((1344656306,), (1344656308,), (1344656314,), (1344656321,), (1344656324,), (1344656344,), (1344656347,), (1344656351,), (1344656354,), (1344656357,), (1344656360,), (1344656380,), (1344656382,), (1344656383,), (1344656386,), (1344656413,), (1344656415,), (1344656417,), (1344656421,), (1344656424,), (1344656427,), (1344656453,), (1344656455,), (1344656456,), (1344656491,), (1344656493,), (1344656494,), (1344656497,), (1344656500,), (1344656503,), (1344656525,), (1344656527,), (1344656528,), (1344656530,)) 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 (1344656500) 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 21479548 , 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=21479541 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 (21479548) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21479541) result : ((1344656306,), (1344656308,), (1344656314,), (1344656321,), (1344656324,), (1344656344,), (1344656347,), (1344656351,), (1344656354,), (1344656357,), (1344656360,), (1344656380,), (1344656382,), (1344656383,), (1344656386,), (1344656413,), (1344656415,), (1344656417,), (1344656421,), (1344656424,), (1344656427,), (1344656453,), (1344656455,), (1344656456,), (1344656491,), (1344656493,), (1344656494,), (1344656497,), (1344656500,), (1344656503,), (1344656525,), (1344656527,), (1344656528,), (1344656530,)) 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 (1344656500) 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 21479549 , 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=21479541 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 (21479549) result : ((1344656452,), (1344656551,), (1344656566,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21479541) result : ((1344656306,), (1344656308,), (1344656314,), (1344656321,), (1344656324,), (1344656344,), (1344656347,), (1344656351,), (1344656354,), (1344656357,), (1344656360,), (1344656380,), (1344656382,), (1344656383,), (1344656386,), (1344656413,), (1344656415,), (1344656417,), (1344656421,), (1344656424,), (1344656427,), (1344656453,), (1344656455,), (1344656456,), (1344656491,), (1344656493,), (1344656494,), (1344656497,), (1344656500,), (1344656503,), (1344656525,), (1344656527,), (1344656528,), (1344656530,)) 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 (1344656500) 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 21479550 , 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=21479541 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 (21479550) result : ((1344656471,), (1344656472,), (1344656473,), (1344656474,), (1344656520,), (1344656543,), (1344656544,), (1344656562,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21479541) result : ((1344656306,), (1344656308,), (1344656314,), (1344656321,), (1344656324,), (1344656344,), (1344656347,), (1344656351,), (1344656354,), (1344656357,), (1344656360,), (1344656380,), (1344656382,), (1344656383,), (1344656386,), (1344656413,), (1344656415,), (1344656417,), (1344656421,), (1344656424,), (1344656427,), (1344656453,), (1344656455,), (1344656456,), (1344656491,), (1344656493,), (1344656494,), (1344656497,), (1344656500,), (1344656503,), (1344656525,), (1344656527,), (1344656528,), (1344656530,)) 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 (1344656500) 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 21479551 , 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=21479541 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 (21479551) result : ((1344656448,), (1344656449,), (1344656477,), (1344656521,), (1344656522,), (1344656547,), (1344656548,), (1344656549,), (1344656550,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21479541) result : ((1344656306,), (1344656308,), (1344656314,), (1344656321,), (1344656324,), (1344656344,), (1344656347,), (1344656351,), (1344656354,), (1344656357,), (1344656360,), (1344656380,), (1344656382,), (1344656383,), (1344656386,), (1344656413,), (1344656415,), (1344656417,), (1344656421,), (1344656424,), (1344656427,), (1344656453,), (1344656455,), (1344656456,), (1344656491,), (1344656493,), (1344656494,), (1344656497,), (1344656500,), (1344656503,), (1344656525,), (1344656527,), (1344656528,), (1344656530,)) 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 (1344656500) 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 21479552 , 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=21479541 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 (21479552) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21479541) result : ((1344656306,), (1344656308,), (1344656314,), (1344656321,), (1344656324,), (1344656344,), (1344656347,), (1344656351,), (1344656354,), (1344656357,), (1344656360,), (1344656380,), (1344656382,), (1344656383,), (1344656386,), (1344656413,), (1344656415,), (1344656417,), (1344656421,), (1344656424,), (1344656427,), (1344656453,), (1344656455,), (1344656456,), (1344656491,), (1344656493,), (1344656494,), (1344656497,), (1344656500,), (1344656503,), (1344656525,), (1344656527,), (1344656528,), (1344656530,)) 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 (1344656500) 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 21479553 , 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=21479541 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 (21479553) result : ((1344656450,), (1344656478,), (1344656479,), (1344656564,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21479541) result : ((1344656306,), (1344656308,), (1344656314,), (1344656321,), (1344656324,), (1344656344,), (1344656347,), (1344656351,), (1344656354,), (1344656357,), (1344656360,), (1344656380,), (1344656382,), (1344656383,), (1344656386,), (1344656413,), (1344656415,), (1344656417,), (1344656421,), (1344656424,), (1344656427,), (1344656453,), (1344656455,), (1344656456,), (1344656491,), (1344656493,), (1344656494,), (1344656497,), (1344656500,), (1344656503,), (1344656525,), (1344656527,), (1344656528,), (1344656530,)) 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 (1344656500) 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 21479554 , 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=21479541 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 (21479554) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21479541) result : ((1344656306,), (1344656308,), (1344656314,), (1344656321,), (1344656324,), (1344656344,), (1344656347,), (1344656351,), (1344656354,), (1344656357,), (1344656360,), (1344656380,), (1344656382,), (1344656383,), (1344656386,), (1344656413,), (1344656415,), (1344656417,), (1344656421,), (1344656424,), (1344656427,), (1344656453,), (1344656455,), (1344656456,), (1344656491,), (1344656493,), (1344656494,), (1344656497,), (1344656500,), (1344656503,), (1344656525,), (1344656527,), (1344656528,), (1344656530,)) 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 (1344656500) 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 21479555 , 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=21479541 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 (21479555) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21479541) result : ((1344656306,), (1344656308,), (1344656314,), (1344656321,), (1344656324,), (1344656344,), (1344656347,), (1344656351,), (1344656354,), (1344656357,), (1344656360,), (1344656380,), (1344656382,), (1344656383,), (1344656386,), (1344656413,), (1344656415,), (1344656417,), (1344656421,), (1344656424,), (1344656427,), (1344656453,), (1344656455,), (1344656456,), (1344656491,), (1344656493,), (1344656494,), (1344656497,), (1344656500,), (1344656503,), (1344656525,), (1344656527,), (1344656528,), (1344656530,)) 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 (1344656500) 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 21479556 , 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=21479541 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 (21479556) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21479541) result : ((1344656306,), (1344656308,), (1344656314,), (1344656321,), (1344656324,), (1344656344,), (1344656347,), (1344656351,), (1344656354,), (1344656357,), (1344656360,), (1344656380,), (1344656382,), (1344656383,), (1344656386,), (1344656413,), (1344656415,), (1344656417,), (1344656421,), (1344656424,), (1344656427,), (1344656453,), (1344656455,), (1344656456,), (1344656491,), (1344656493,), (1344656494,), (1344656497,), (1344656500,), (1344656503,), (1344656525,), (1344656527,), (1344656528,), (1344656530,)) 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 (1344656500) 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`=21479541 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','environnement','cartonnette','Teint_Dans_La_Masse','kraft','flou','papier','mal_croppe','autre_refus','Carton_brun','Carton_gris','metal')) 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`=21479541 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','environnement','cartonnette','Teint_Dans_La_Masse','kraft','flou','papier','mal_croppe','autre_refus','Carton_brun','Carton_gris','metal')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 21479541, 'sub_port_id': 21479557, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14044361, 'last_updated_at': datetime.datetime(2025, 3, 17, 6, 20, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 17, 6, 20, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 17, 6, 20, 1)}, 'kraft': {'main_port_id': 21479541, 'sub_port_id': 21479558, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14044362, 'last_updated_at': datetime.datetime(2025, 3, 17, 6, 20, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 17, 6, 20, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 17, 6, 20, 1)}, 'autre_refus': {'main_port_id': 21479541, 'sub_port_id': 21479559, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14044363, 'last_updated_at': datetime.datetime(2025, 3, 17, 6, 20, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 17, 6, 20, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 17, 6, 20, 1)}, 'environnement': {'main_port_id': 21479541, 'sub_port_id': 21479560, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14044364, 'last_updated_at': datetime.datetime(2025, 3, 17, 6, 20, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 17, 6, 20, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 17, 6, 20, 1)}, 'plastique': {'main_port_id': 21479541, 'sub_port_id': 21479561, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14044365, 'last_updated_at': datetime.datetime(2025, 3, 17, 6, 20, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 17, 6, 20, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 17, 6, 20, 1)}, 'Carton_gris': {'main_port_id': 21479541, 'sub_port_id': 21479562, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14044366, 'last_updated_at': datetime.datetime(2025, 3, 17, 6, 20, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 17, 6, 20, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 17, 6, 20, 1)}, 'cartonnette': {'main_port_id': 21479541, 'sub_port_id': 21479563, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14044367, 'last_updated_at': datetime.datetime(2025, 3, 17, 6, 20, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 17, 6, 20, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 17, 6, 20, 1)}, 'metal': {'main_port_id': 21479541, 'sub_port_id': 21479564, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14044368, 'last_updated_at': datetime.datetime(2025, 3, 17, 6, 20, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 17, 6, 20, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 17, 6, 20, 1)}, 'Carton_brun': {'main_port_id': 21479541, 'sub_port_id': 21479565, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14044369, 'last_updated_at': datetime.datetime(2025, 3, 17, 6, 20, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 17, 6, 20, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 17, 6, 20, 1)}, 'mal_croppe': {'main_port_id': 21479541, 'sub_port_id': 21479566, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14044370, 'last_updated_at': datetime.datetime(2025, 3, 17, 6, 20, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 17, 6, 20, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 17, 6, 20, 1)}, 'papier': {'main_port_id': 21479541, 'sub_port_id': 21479567, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14044371, 'last_updated_at': datetime.datetime(2025, 3, 17, 6, 20, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 17, 6, 20, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 17, 6, 20, 1)}, 'flou': {'main_port_id': 21479541, 'sub_port_id': 21479568, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14044372, 'last_updated_at': datetime.datetime(2025, 3, 17, 6, 21, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 17, 6, 21, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 17, 6, 20, 1)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21479557,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21479545 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21479558,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21479546 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21479559,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21479547 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21479560,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21479548 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21479561,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21479549 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21479562,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21479550 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21479563,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21479551 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21479564,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21479552 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21479565,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21479553 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21479566,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21479554 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21479567,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21479555 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21479568,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21479556 lien utilise dans velours : https://www.fotonower.com/velours/21479557,21479558,21479559,21479560,21479561,21479562,21479563,21479564,21479565,21479566,21479567,21479568?tags=Teint_Dans_La_Masse,kraft,autre_refus,environnement,plastique,Carton_gris,cartonnette,metal,Carton_brun,mal_croppe,papier,flou After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21479541]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1344656530, 1344656528, 1344656527, 1344656525, 1344656503, 1344656500, 1344656497, 1344656494, 1344656493, 1344656491] map_info['map_portfolio_photo'] : {21479541: [1344656530, 1344656528, 1344656527, 1344656525, 1344656503, 1344656500, 1344656497, 1344656494, 1344656493, 1344656491, 1344656456, 1344656455, 1344656453, 1344656427, 1344656424, 1344656421, 1344656417, 1344656415, 1344656413, 1344656386, 1344656383, 1344656382, 1344656380, 1344656360, 1344656357, 1344656354, 1344656351, 1344656347, 1344656344, 1344656324, 1344656321, 1344656314, 1344656308, 1344656306]} final : False mtd_id 4302 list_pids : [1344656530, 1344656528, 1344656527, 1344656525, 1344656503, 1344656500, 1344656497, 1344656494, 1344656493, 1344656491] Looping around the photos to save general results len do output : 1 /21479541. 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, '2674303') ('4302', '21479541', '1344656530', None, None, None, None, None, '2674303') ('4302', None, None, None, None, None, None, None, '2674303') ('4302', '21479541', '1344656528', None, None, None, None, None, '2674303') ('4302', None, None, None, None, None, None, None, '2674303') ('4302', '21479541', '1344656527', None, None, None, None, None, '2674303') ('4302', None, None, None, None, None, None, None, '2674303') ('4302', '21479541', '1344656525', None, None, None, None, None, '2674303') ('4302', None, None, None, None, None, None, None, '2674303') ('4302', '21479541', '1344656503', None, None, None, None, None, '2674303') ('4302', None, None, None, None, None, None, None, '2674303') ('4302', '21479541', '1344656500', None, None, None, None, None, '2674303') ('4302', None, None, None, None, None, None, None, '2674303') ('4302', '21479541', '1344656497', None, None, None, None, None, '2674303') ('4302', None, None, None, None, None, None, None, '2674303') ('4302', '21479541', '1344656494', None, None, None, None, None, '2674303') ('4302', None, None, None, None, None, None, None, '2674303') ('4302', '21479541', '1344656493', None, None, None, None, None, '2674303') ('4302', None, None, None, None, None, None, None, '2674303') ('4302', '21479541', '1344656491', None, None, None, None, None, '2674303') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21479541', "{'Teint_Dans_La_Masse': 21479545, 'kraft': 21479546, 'autre_refus': 21479547, 'environnement': 21479548, 'plastique': 21479549, 'Carton_gris': 21479550, 'cartonnette': 21479551, 'metal': 21479552, 'Carton_brun': 21479553, 'mal_croppe': 21479554, 'papier': 21479555, 'flou': 21479556}", None, None, None, None, '2674303'), ('4302', '21479541', '1344656530', None, None, None, None, None, '2674303'), ('4302', '21479541', '1344656528', None, None, None, None, None, '2674303'), ('4302', '21479541', '1344656527', None, None, None, None, None, '2674303'), ('4302', '21479541', '1344656525', None, None, None, None, None, '2674303'), ('4302', '21479541', '1344656503', None, None, None, None, None, '2674303'), ('4302', '21479541', '1344656500', None, None, None, None, None, '2674303'), ('4302', '21479541', '1344656497', None, None, None, None, None, '2674303'), ('4302', '21479541', '1344656494', None, None, None, None, None, '2674303'), ('4302', '21479541', '1344656493', None, None, None, None, None, '2674303'), ('4302', '21479541', '1344656491', None, None, None, None, None, '2674303')] time used for this insertion : 0.013736248016357422 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4564633369445801 time spend to save output : 0.014057159423828125 total time spend for step 1 : 0.4705204963684082 step2:final Mon Mar 17 06:23:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21479541) 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 21479541 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1344656324,1344656321,1344656314,1344656308,1344656306,1344656360,1344656357,1344656354,1344656351,1344656347,1344656344,1344656386,1344656383,1344656382,1344656380,1344656427,1344656424,1344656421,1344656417,1344656415,1344656413,1344656456,1344656455,1344656453,1344656503,1344656500,1344656497,1344656494,1344656493,1344656491,1344656530,1344656528,1344656527,1344656525); 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([21479541]) Inside saveOutput : final : False verbose : True original output for save of step final : {1344656530: ('0.0666054800156156',), 1344656528: ('0.0666054800156156',), 1344656527: ('0.0666054800156156',), 1344656525: ('0.0666054800156156',), 1344656503: ('0.0666054800156156',), 1344656500: ('0.0666054800156156',), 1344656497: ('0.0666054800156156',), 1344656494: ('0.0666054800156156',), 1344656493: ('0.0666054800156156',), 1344656491: ('0.0666054800156156',)} new output for save of step final : {1344656530: ('0.0666054800156156',), 1344656528: ('0.0666054800156156',), 1344656527: ('0.0666054800156156',), 1344656525: ('0.0666054800156156',), 1344656503: ('0.0666054800156156',), 1344656500: ('0.0666054800156156',), 1344656497: ('0.0666054800156156',), 1344656494: ('0.0666054800156156',), 1344656493: ('0.0666054800156156',), 1344656491: ('0.0666054800156156',)} [1344656530, 1344656528, 1344656527, 1344656525, 1344656503, 1344656500, 1344656497, 1344656494, 1344656493, 1344656491] map_info['map_portfolio_photo'] : {21479541: [1344656530, 1344656528, 1344656527, 1344656525, 1344656503, 1344656500, 1344656497, 1344656494, 1344656493, 1344656491, 1344656456, 1344656455, 1344656453, 1344656427, 1344656424, 1344656421, 1344656417, 1344656415, 1344656413, 1344656386, 1344656383, 1344656382, 1344656380, 1344656360, 1344656357, 1344656354, 1344656351, 1344656347, 1344656344, 1344656324, 1344656321, 1344656314, 1344656308, 1344656306]} final : False mtd_id 4302 list_pids : [1344656530, 1344656528, 1344656527, 1344656525, 1344656503, 1344656500, 1344656497, 1344656494, 1344656493, 1344656491] Looping around the photos to save general results len do output : 10 /1344656530.Didn't retrieve data . /1344656528.Didn't retrieve data . /1344656527.Didn't retrieve data . /1344656525.Didn't retrieve data . /1344656503.Didn't retrieve data . /1344656500.Didn't retrieve data . /1344656497.Didn't retrieve data . /1344656494.Didn't retrieve data . /1344656493.Didn't retrieve data . /1344656491.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, '2674303') ('4302', '21479541', '1344656530', None, None, None, None, None, '2674303') ('4302', None, None, None, None, None, None, None, '2674303') ('4302', '21479541', '1344656528', None, None, None, None, None, '2674303') ('4302', None, None, None, None, None, None, None, '2674303') ('4302', '21479541', '1344656527', None, None, None, None, None, '2674303') ('4302', None, None, None, None, None, None, None, '2674303') ('4302', '21479541', '1344656525', None, None, None, None, None, '2674303') ('4302', None, None, None, None, None, None, None, '2674303') ('4302', '21479541', '1344656503', None, None, None, None, None, '2674303') ('4302', None, None, None, None, None, None, None, '2674303') ('4302', '21479541', '1344656500', None, None, None, None, None, '2674303') ('4302', None, None, None, None, None, None, None, '2674303') ('4302', '21479541', '1344656497', None, None, None, None, None, '2674303') ('4302', None, None, None, None, None, None, None, '2674303') ('4302', '21479541', '1344656494', None, None, None, None, None, '2674303') ('4302', None, None, None, None, None, None, None, '2674303') ('4302', '21479541', '1344656493', None, None, None, None, None, '2674303') ('4302', None, None, None, None, None, None, None, '2674303') ('4302', '21479541', '1344656491', None, None, None, None, None, '2674303') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 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', '21479541', '1344656530', '0.0666054800156156', None, None, None, None, '2674303'), ('4302', '21479541', '1344656528', '0.0666054800156156', None, None, None, None, '2674303'), ('4302', '21479541', '1344656527', '0.0666054800156156', None, None, None, None, '2674303'), ('4302', '21479541', '1344656525', '0.0666054800156156', None, None, None, None, '2674303'), ('4302', '21479541', '1344656503', '0.0666054800156156', None, None, None, None, '2674303'), ('4302', '21479541', '1344656500', '0.0666054800156156', None, None, None, None, '2674303'), ('4302', '21479541', '1344656497', '0.0666054800156156', None, None, None, None, '2674303'), ('4302', '21479541', '1344656494', '0.0666054800156156', None, None, None, None, '2674303'), ('4302', '21479541', '1344656493', '0.0666054800156156', None, None, None, None, '2674303'), ('4302', '21479541', '1344656491', '0.0666054800156156', None, None, None, None, '2674303')] time used for this insertion : 0.01259613037109375 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06590723991394043 time spend to save output : 0.013154268264770508 total time spend for step 2 : 0.07906150817871094 step3:velours_tree Mon Mar 17 06:23:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {21479541: [{'Teint_Dans_La_Masse': 21479545, 'kraft': 21479546, 'autre_refus': 21479547, 'environnement': 21479548, 'plastique': 21479549, 'Carton_gris': 21479550, 'cartonnette': 21479551, 'metal': 21479552, 'Carton_brun': 21479553, 'mal_croppe': 21479554, 'papier': 21479555, 'flou': 21479556}]} input_args_next_step : {21479541: ()} output_args : {21479541: [{'Teint_Dans_La_Masse': 21479545, 'kraft': 21479546, 'autre_refus': 21479547, 'environnement': 21479548, 'plastique': 21479549, 'Carton_gris': 21479550, 'cartonnette': 21479551, 'metal': 21479552, 'Carton_brun': 21479553, 'mal_croppe': 21479554, 'papier': 21479555, 'flou': 21479556}]} args : 21479541 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': 21479545, 'kraft': 21479546, 'autre_refus': 21479547, 'environnement': 21479548, 'plastique': 21479549, 'Carton_gris': 21479550, 'cartonnette': 21479551, 'metal': 21479552, 'Carton_brun': 21479553, 'mal_croppe': 21479554, 'papier': 21479555, 'flou': 21479556},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21479541) 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([21479541]) 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.30715417861938477 time spend to save output : 5.14984130859375e-05 total time spend for step 3 : 0.3072056770324707 step4:send_mail_cod Mon Mar 17 06:24: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 : {1344656530: ('0.0666054800156156',), 1344656528: ('0.0666054800156156',), 1344656527: ('0.0666054800156156',), 1344656525: ('0.0666054800156156',), 1344656503: ('0.0666054800156156',), 1344656500: ('0.0666054800156156',), 1344656497: ('0.0666054800156156',), 1344656494: ('0.0666054800156156',), 1344656493: ('0.0666054800156156',), 1344656491: ('0.0666054800156156',)} input_args_next_step : {1344656530: ()} output_args : {1344656530: ('0.0666054800156156',), 1344656528: ('0.0666054800156156',), 1344656527: ('0.0666054800156156',), 1344656525: ('0.0666054800156156',), 1344656503: ('0.0666054800156156',), 1344656500: ('0.0666054800156156',), 1344656497: ('0.0666054800156156',), 1344656494: ('0.0666054800156156',), 1344656493: ('0.0666054800156156',), 1344656491: ('0.0666054800156156',)} args : 1344656530 depend.output_id : 0 input_args_next_step : {1344656530: ('0.0666054800156156',), 1344656528: ()} output_args : {1344656530: ('0.0666054800156156',), 1344656528: ('0.0666054800156156',), 1344656527: ('0.0666054800156156',), 1344656525: ('0.0666054800156156',), 1344656503: ('0.0666054800156156',), 1344656500: ('0.0666054800156156',), 1344656497: ('0.0666054800156156',), 1344656494: ('0.0666054800156156',), 1344656493: ('0.0666054800156156',), 1344656491: ('0.0666054800156156',)} args : 1344656528 depend.output_id : 0 input_args_next_step : {1344656530: ('0.0666054800156156',), 1344656528: ('0.0666054800156156',), 1344656527: ()} output_args : {1344656530: ('0.0666054800156156',), 1344656528: ('0.0666054800156156',), 1344656527: ('0.0666054800156156',), 1344656525: ('0.0666054800156156',), 1344656503: ('0.0666054800156156',), 1344656500: ('0.0666054800156156',), 1344656497: ('0.0666054800156156',), 1344656494: ('0.0666054800156156',), 1344656493: ('0.0666054800156156',), 1344656491: ('0.0666054800156156',)} args : 1344656527 depend.output_id : 0 input_args_next_step : {1344656530: ('0.0666054800156156',), 1344656528: ('0.0666054800156156',), 1344656527: ('0.0666054800156156',), 1344656525: ()} output_args : {1344656530: ('0.0666054800156156',), 1344656528: ('0.0666054800156156',), 1344656527: ('0.0666054800156156',), 1344656525: ('0.0666054800156156',), 1344656503: ('0.0666054800156156',), 1344656500: ('0.0666054800156156',), 1344656497: ('0.0666054800156156',), 1344656494: ('0.0666054800156156',), 1344656493: ('0.0666054800156156',), 1344656491: ('0.0666054800156156',)} args : 1344656525 depend.output_id : 0 input_args_next_step : {1344656530: ('0.0666054800156156',), 1344656528: ('0.0666054800156156',), 1344656527: ('0.0666054800156156',), 1344656525: ('0.0666054800156156',), 1344656503: ()} output_args : {1344656530: ('0.0666054800156156',), 1344656528: ('0.0666054800156156',), 1344656527: ('0.0666054800156156',), 1344656525: ('0.0666054800156156',), 1344656503: ('0.0666054800156156',), 1344656500: ('0.0666054800156156',), 1344656497: ('0.0666054800156156',), 1344656494: ('0.0666054800156156',), 1344656493: ('0.0666054800156156',), 1344656491: ('0.0666054800156156',)} args : 1344656503 depend.output_id : 0 input_args_next_step : {1344656530: ('0.0666054800156156',), 1344656528: ('0.0666054800156156',), 1344656527: ('0.0666054800156156',), 1344656525: ('0.0666054800156156',), 1344656503: ('0.0666054800156156',), 1344656500: ()} output_args : {1344656530: ('0.0666054800156156',), 1344656528: ('0.0666054800156156',), 1344656527: ('0.0666054800156156',), 1344656525: ('0.0666054800156156',), 1344656503: ('0.0666054800156156',), 1344656500: ('0.0666054800156156',), 1344656497: ('0.0666054800156156',), 1344656494: ('0.0666054800156156',), 1344656493: ('0.0666054800156156',), 1344656491: ('0.0666054800156156',)} args : 1344656500 depend.output_id : 0 input_args_next_step : {1344656530: ('0.0666054800156156',), 1344656528: ('0.0666054800156156',), 1344656527: ('0.0666054800156156',), 1344656525: ('0.0666054800156156',), 1344656503: ('0.0666054800156156',), 1344656500: ('0.0666054800156156',), 1344656497: ()} output_args : {1344656530: ('0.0666054800156156',), 1344656528: ('0.0666054800156156',), 1344656527: ('0.0666054800156156',), 1344656525: ('0.0666054800156156',), 1344656503: ('0.0666054800156156',), 1344656500: ('0.0666054800156156',), 1344656497: ('0.0666054800156156',), 1344656494: ('0.0666054800156156',), 1344656493: ('0.0666054800156156',), 1344656491: ('0.0666054800156156',)} args : 1344656497 depend.output_id : 0 input_args_next_step : {1344656530: ('0.0666054800156156',), 1344656528: ('0.0666054800156156',), 1344656527: ('0.0666054800156156',), 1344656525: ('0.0666054800156156',), 1344656503: ('0.0666054800156156',), 1344656500: ('0.0666054800156156',), 1344656497: ('0.0666054800156156',), 1344656494: ()} output_args : {1344656530: ('0.0666054800156156',), 1344656528: ('0.0666054800156156',), 1344656527: ('0.0666054800156156',), 1344656525: ('0.0666054800156156',), 1344656503: ('0.0666054800156156',), 1344656500: ('0.0666054800156156',), 1344656497: ('0.0666054800156156',), 1344656494: ('0.0666054800156156',), 1344656493: ('0.0666054800156156',), 1344656491: ('0.0666054800156156',)} args : 1344656494 depend.output_id : 0 input_args_next_step : {1344656530: ('0.0666054800156156',), 1344656528: ('0.0666054800156156',), 1344656527: ('0.0666054800156156',), 1344656525: ('0.0666054800156156',), 1344656503: ('0.0666054800156156',), 1344656500: ('0.0666054800156156',), 1344656497: ('0.0666054800156156',), 1344656494: ('0.0666054800156156',), 1344656493: ()} output_args : {1344656530: ('0.0666054800156156',), 1344656528: ('0.0666054800156156',), 1344656527: ('0.0666054800156156',), 1344656525: ('0.0666054800156156',), 1344656503: ('0.0666054800156156',), 1344656500: ('0.0666054800156156',), 1344656497: ('0.0666054800156156',), 1344656494: ('0.0666054800156156',), 1344656493: ('0.0666054800156156',), 1344656491: ('0.0666054800156156',)} args : 1344656493 depend.output_id : 0 input_args_next_step : {1344656530: ('0.0666054800156156',), 1344656528: ('0.0666054800156156',), 1344656527: ('0.0666054800156156',), 1344656525: ('0.0666054800156156',), 1344656503: ('0.0666054800156156',), 1344656500: ('0.0666054800156156',), 1344656497: ('0.0666054800156156',), 1344656494: ('0.0666054800156156',), 1344656493: ('0.0666054800156156',), 1344656491: ()} output_args : {1344656530: ('0.0666054800156156',), 1344656528: ('0.0666054800156156',), 1344656527: ('0.0666054800156156',), 1344656525: ('0.0666054800156156',), 1344656503: ('0.0666054800156156',), 1344656500: ('0.0666054800156156',), 1344656497: ('0.0666054800156156',), 1344656494: ('0.0666054800156156',), 1344656493: ('0.0666054800156156',), 1344656491: ('0.0666054800156156',)} args : 1344656491 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 : {21479541: [{'Teint_Dans_La_Masse': 21479545, 'kraft': 21479546, 'autre_refus': 21479547, 'environnement': 21479548, 'plastique': 21479549, 'Carton_gris': 21479550, 'cartonnette': 21479551, 'metal': 21479552, 'Carton_brun': 21479553, 'mal_croppe': 21479554, 'papier': 21479555, 'flou': 21479556}]} input_args_next_step : {1344656530: ('0.0666054800156156',), 1344656528: ('0.0666054800156156',), 1344656527: ('0.0666054800156156',), 1344656525: ('0.0666054800156156',), 1344656503: ('0.0666054800156156',), 1344656500: ('0.0666054800156156',), 1344656497: ('0.0666054800156156',), 1344656494: ('0.0666054800156156',), 1344656493: ('0.0666054800156156',), 1344656491: ('0.0666054800156156',), 21479541: ()} output_args : {21479541: [{'Teint_Dans_La_Masse': 21479545, 'kraft': 21479546, 'autre_refus': 21479547, 'environnement': 21479548, 'plastique': 21479549, 'Carton_gris': 21479550, 'cartonnette': 21479551, 'metal': 21479552, 'Carton_brun': 21479553, 'mal_croppe': 21479554, 'papier': 21479555, 'flou': 21479556}]} args : 21479541 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 :11, first value : ('0.0666054800156156',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21479541) 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 (1344656530,1344656528,1344656527,1344656525,1344656503,1344656500,1344656497,1344656494,1344656493,1344656491) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1344656491 begin to download photo : 1344656497 begin to download photo : 1344656525 begin to download photo : 1344656530 download finish for photo 1344656530 download finish for photo 1344656491 begin to download photo : 1344656493 download finish for photo 1344656525 begin to download photo : 1344656527 download finish for photo 1344656497 begin to download photo : 1344656500 download finish for photo 1344656527 begin to download photo : 1344656528 download finish for photo 1344656493 begin to download photo : 1344656494 download finish for photo 1344656500 begin to download photo : 1344656503 download finish for photo 1344656528 download finish for photo 1344656503 download finish for photo 1344656494 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 : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P21479541_17-03-2025_06_24_00.pdf 21479546 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=21479546 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344656552: '1742188953_2455743_1344656421_e3f950ecfeaae88c6e20899f388c41b9_rle_crop_3714837363_0.png', 1344656567: '1742188973_2455932_1344656306_787f15269acf4e057ebc3a75c2a76778_rle_crop_3714837591_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/17/fbf3383760212a834c98cd8af861a071_72355102.png change filename to text .imagette214795461742189040/ imagette214795461742189040/1742188973_2455932_1344656306_787f15269acf4e057ebc3a75c2a76778_rle_crop_3714837591_0.png.png imagette214795461742189040/1742188953_2455743_1344656421_e3f950ecfeaae88c6e20899f388c41b9_rle_crop_3714837363_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/17/82d5a91f13de88cb1e7e4b961b4351bc_82378625.png imagette214795461742189040 21479547 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=21479547 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344656446: '1742188812_2454567_1344656382_9139077ff52e4256670add1bbdb78252_rle_crop_3714836780_0.png', 1344656467: '1742188832_2454758_1344656354_978beaedcc8e7cfd4506e20a70487a2a_rle_crop_3714836996_0.png', 1344656468: '1742188832_2454758_1344656344_7bf9c1d204604e6c33743511b5731a20_rle_crop_3714837047_0.png', 1344656541: '1742188953_2455743_1344656417_b61b1541ec158754bfb9cd0860403ab1_rle_crop_3714837503_0.png', 1344656560: '1742188973_2455932_1344656321_f7835d1ef29e36bdb3bd4b9af0948beb_rle_crop_3714837551_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/17/6046072cfffa73ec8aac817f7a5df241_13321475.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/17/dc9f47656d10480c70806996ffead6f4_55216790.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/17/e3f5208432c463f7db581bd0379c7902_38753124.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/17/934ecddb244ec3922c6178e6844bc3d2_57231887.png change filename to text .imagette214795471742189040/ imagette214795471742189040/1742188953_2455743_1344656417_b61b1541ec158754bfb9cd0860403ab1_rle_crop_3714837503_0.png.png imagette214795471742189040/1742188973_2455932_1344656321_f7835d1ef29e36bdb3bd4b9af0948beb_rle_crop_3714837551_0.png.png imagette214795471742189040/1742188832_2454758_1344656344_7bf9c1d204604e6c33743511b5731a20_rle_crop_3714837047_0.png.png imagette214795471742189040/1742188832_2454758_1344656354_978beaedcc8e7cfd4506e20a70487a2a_rle_crop_3714836996_0.png.png imagette214795471742189040/1742188812_2454567_1344656382_9139077ff52e4256670add1bbdb78252_rle_crop_3714836780_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/17/664d795da250bbeab9966fffe89cd430_79094507.png imagette214795471742189040 21479549 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=21479549 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344656452: '1742188812_2454567_1344656382_9139077ff52e4256670add1bbdb78252_rle_crop_3714836774_0.png', 1344656551: '1742188953_2455743_1344656413_ac5fe110a9d1e0b136d1276c8641a66a_rle_crop_3714837532_0.png', 1344656566: '1742188973_2455932_1344656360_3e28275f7d2f2f2d85a306fc0994dd09_rle_crop_3714837540_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/17/65197bea997214d2375ee81187a9e1b7_19387944.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/17/68bc2d7a1111a14d11dd3478d9e52d20_16677777.png change filename to text .imagette214795491742189041/ imagette214795491742189041/1742188812_2454567_1344656382_9139077ff52e4256670add1bbdb78252_rle_crop_3714836774_0.png.png imagette214795491742189041/1742188973_2455932_1344656360_3e28275f7d2f2f2d85a306fc0994dd09_rle_crop_3714837540_0.png.png imagette214795491742189041/1742188953_2455743_1344656413_ac5fe110a9d1e0b136d1276c8641a66a_rle_crop_3714837532_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/17/d17cf97f930cae17d0b997165bb2fe23_95596387.png imagette214795491742189041 21479551 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=21479551 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344656448: '1742188812_2454567_1344656382_9139077ff52e4256670add1bbdb78252_rle_crop_3714836773_0.png', 1344656449: '1742188812_2454567_1344656380_958231c571190195b216f54061373716_rle_crop_3714836792_0.png', 1344656477: '1742188832_2454758_1344656351_6b1702bdaec8ecce6e604d77d6c176fc_rle_crop_3714837016_0.png', 1344656521: '1742188946_796910_1344656427_2b6d11d709fe223182527e954dec23e5_rle_crop_3714837181_0.png', 1344656522: '1742188946_796910_1344656427_2b6d11d709fe223182527e954dec23e5_rle_crop_3714837177_0.png', 1344656547: '1742188953_2455743_1344656424_a8d44eb7d77e999c6430b114116df12c_rle_crop_3714837350_0.png', 1344656548: '1742188953_2455743_1344656424_a8d44eb7d77e999c6430b114116df12c_rle_crop_3714837346_0.png', 1344656549: '1742188953_2455743_1344656421_e3f950ecfeaae88c6e20899f388c41b9_rle_crop_3714837357_0.png', 1344656550: '1742188953_2455743_1344656417_b61b1541ec158754bfb9cd0860403ab1_rle_crop_3714837502_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/17/92f8f9401f986ba8f3b4b63f9fcc88ad_60058712.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/17/f68aacfd2515f6f757decdfec4734ba4_45469920.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/17/3b9c681cbaabc3ad50612b6ce4576f4e_45131422.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/17/2ba5aa6c451c2a014f4de1407939f647_60209230.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/17/e288dc55d90ec8bfb837367fd5f296a6_37881323.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/17/64656750ce8e9f0acc0345997085ecc9_88524252.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/17/48df49c857d7682f5c09a2768f4f77f0_20181575.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/17/d0a366ebb8079edd0c3be654c78983ac_31223841.png change filename to text .imagette214795511742189041/ imagette214795511742189041/1742188953_2455743_1344656424_a8d44eb7d77e999c6430b114116df12c_rle_crop_3714837346_0.png.png imagette214795511742189041/1742188812_2454567_1344656382_9139077ff52e4256670add1bbdb78252_rle_crop_3714836773_0.png.png imagette214795511742189041/1742188953_2455743_1344656421_e3f950ecfeaae88c6e20899f388c41b9_rle_crop_3714837357_0.png.png imagette214795511742189041/1742188953_2455743_1344656417_b61b1541ec158754bfb9cd0860403ab1_rle_crop_3714837502_0.png.png imagette214795511742189041/1742188953_2455743_1344656424_a8d44eb7d77e999c6430b114116df12c_rle_crop_3714837350_0.png.png imagette214795511742189041/1742188946_796910_1344656427_2b6d11d709fe223182527e954dec23e5_rle_crop_3714837181_0.png.png imagette214795511742189041/1742188946_796910_1344656427_2b6d11d709fe223182527e954dec23e5_rle_crop_3714837177_0.png.png imagette214795511742189041/1742188832_2454758_1344656351_6b1702bdaec8ecce6e604d77d6c176fc_rle_crop_3714837016_0.png.png imagette214795511742189041/1742188812_2454567_1344656380_958231c571190195b216f54061373716_rle_crop_3714836792_0.png.png imagette214795521742189042/ imagette214795541742189042/ imagette214795561742189042/ wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/17/1187d6dfc946ec6fd4a1bb698abd71f5_9240496.png imagette214795511742189041 21479552 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=21479552 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette214795521742189042 21479554 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=21479554 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette214795541742189042 21479556 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=21479556 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette214795561742189042 21479545 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=21479545 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344656540: '1742188953_2455743_1344656417_b61b1541ec158754bfb9cd0860403ab1_rle_crop_3714837508_0.png', 1344656559: '1742188973_2455932_1344656360_3e28275f7d2f2f2d85a306fc0994dd09_rle_crop_3714837538_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/17/7785ca5269f5478cd7c0f693261b1468_62725868.png change filename to text .imagette214795451742189042/ imagette214795451742189042/1742188973_2455932_1344656360_3e28275f7d2f2f2d85a306fc0994dd09_rle_crop_3714837538_0.png.png imagette214795451742189042/1742188953_2455743_1344656417_b61b1541ec158754bfb9cd0860403ab1_rle_crop_3714837508_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/17/e005d373e26cf0d628a24c3b46286f4c_90740067.png imagette214795451742189042 21479550 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=21479550 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344656471: '1742188832_2454758_1344656354_978beaedcc8e7cfd4506e20a70487a2a_rle_crop_3714836995_0.png', 1344656472: '1742188832_2454758_1344656354_978beaedcc8e7cfd4506e20a70487a2a_rle_crop_3714836997_0.png', 1344656473: '1742188832_2454758_1344656351_6b1702bdaec8ecce6e604d77d6c176fc_rle_crop_3714837020_0.png', 1344656474: '1742188832_2454758_1344656347_b7916172e0c7de41da64a2eace1e35ed_rle_crop_3714837033_0.png', 1344656520: '1742188946_796910_1344656427_2b6d11d709fe223182527e954dec23e5_rle_crop_3714837178_0.png', 1344656543: '1742188953_2455743_1344656424_a8d44eb7d77e999c6430b114116df12c_rle_crop_3714837352_0.png', 1344656544: '1742188953_2455743_1344656413_ac5fe110a9d1e0b136d1276c8641a66a_rle_crop_3714837531_0.png', 1344656562: '1742188973_2455932_1344656308_f0c5475c887a7db16ac60a02fcbc04fd_rle_crop_3714837582_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/17/12f0705dac6d4cc7770801a16998024f_44617559.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/17/5eb5a3ce37f9b1985a61ff638d523668_45338781.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/17/5d1b647225bfeb91632e76dff0f254f5_12082775.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/17/2c45625cd3fa8976d97a2cae2ea5b7fa_31942591.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/17/bec9cafc3db98d079a8c4b0ea6b7db12_73911996.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/17/d52a9bdac78626c72d31280dee071b5e_36560587.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/17/2dd2f7dff174ac0d0d140ba19e3ff577_28491870.png change filename to text .imagette214795501742189042/ imagette214795501742189042/1742188832_2454758_1344656347_b7916172e0c7de41da64a2eace1e35ed_rle_crop_3714837033_0.png.png imagette214795501742189042/1742188953_2455743_1344656424_a8d44eb7d77e999c6430b114116df12c_rle_crop_3714837352_0.png.png imagette214795501742189042/1742188832_2454758_1344656354_978beaedcc8e7cfd4506e20a70487a2a_rle_crop_3714836997_0.png.png imagette214795501742189042/1742188953_2455743_1344656413_ac5fe110a9d1e0b136d1276c8641a66a_rle_crop_3714837531_0.png.png imagette214795501742189042/1742188946_796910_1344656427_2b6d11d709fe223182527e954dec23e5_rle_crop_3714837178_0.png.png imagette214795501742189042/1742188832_2454758_1344656354_978beaedcc8e7cfd4506e20a70487a2a_rle_crop_3714836995_0.png.png imagette214795501742189042/1742188973_2455932_1344656308_f0c5475c887a7db16ac60a02fcbc04fd_rle_crop_3714837582_0.png.png imagette214795501742189042/1742188832_2454758_1344656351_6b1702bdaec8ecce6e604d77d6c176fc_rle_crop_3714837020_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/17/463d47ed1b5b4860a429cec1e786653e_82899873.png imagette214795501742189042 21479553 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=21479553 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344656450: '1742188812_2454567_1344656380_958231c571190195b216f54061373716_rle_crop_3714836794_0.png', 1344656478: '1742188832_2454758_1344656386_19d8fa6238f1452a14c587e799872295_rle_crop_3714836976_0.png', 1344656479: '1742188832_2454758_1344656357_72ee9f033e416d36d0a5ae04a0312de9_rle_crop_3714836989_0.png', 1344656564: '1742188973_2455932_1344656306_787f15269acf4e057ebc3a75c2a76778_rle_crop_3714837601_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/17/c943e9b6dffb69f00c9dbf9838d0ccbe_31707209.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/17/8b1963d8494880d4745bd2102716c234_54295971.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/17/a3a684025c884a6f027ba7fd51ad6291_19084201.png change filename to text .imagette214795531742189042/ imagette214795531742189042/1742188832_2454758_1344656357_72ee9f033e416d36d0a5ae04a0312de9_rle_crop_3714836989_0.png.png imagette214795531742189042/1742188832_2454758_1344656386_19d8fa6238f1452a14c587e799872295_rle_crop_3714836976_0.png.png imagette214795531742189042/1742188973_2455932_1344656306_787f15269acf4e057ebc3a75c2a76778_rle_crop_3714837601_0.png.png imagette214795531742189042/1742188812_2454567_1344656380_958231c571190195b216f54061373716_rle_crop_3714836794_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/17/2c0e1af5634624824f0a7768bf597e3a_60363952.png imagette214795531742189042 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21479541 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21479557,21479558,21479559,21479560,21479561,21479562,21479563,21479564,21479565,21479566,21479567,21479568?tags=Teint_Dans_La_Masse,kraft,autre_refus,environnement,plastique,Carton_gris,cartonnette,metal,Carton_brun,mal_croppe,papier,flou your option no_mail is active, we will not send the real mail to your client args[1344656530] : ('0.0666054800156156',) no score found for photo 1344656530 We are sending mail with results at report@fotonower.com args[1344656528] : ('0.0666054800156156',) no score found for photo 1344656528 We are sending mail with results at report@fotonower.com args[1344656527] : ('0.0666054800156156',) no score found for photo 1344656527 We are sending mail with results at report@fotonower.com args[1344656525] : ('0.0666054800156156',) no score found for photo 1344656525 We are sending mail with results at report@fotonower.com args[1344656503] : ('0.0666054800156156',) no score found for photo 1344656503 We are sending mail with results at report@fotonower.com args[1344656500] : ('0.0666054800156156',) no score found for photo 1344656500 We are sending mail with results at report@fotonower.com args[1344656497] : ('0.0666054800156156',) no score found for photo 1344656497 We are sending mail with results at report@fotonower.com args[1344656494] : ('0.0666054800156156',) no score found for photo 1344656494 We are sending mail with results at report@fotonower.com args[1344656493] : ('0.0666054800156156',) no score found for photo 1344656493 We are sending mail with results at report@fotonower.com args[1344656491] : ('0.0666054800156156',) no score found for photo 1344656491 We are sending mail with results at report@fotonower.com refus_total : 0.0666054800156156 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=21479541 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_P21479541_17-03-2025_06_24_00.pdf results_Auto_P21479541_17-03-2025_06_24_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21479541_17-03-2025_06_24_00.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','21479541','results_Auto_P21479541_17-03-2025_06_24_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21479541_17-03-2025_06_24_00.pdf','pdf','','0.24','0.0666054800156156') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21479541]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1344656530, 1344656528, 1344656527, 1344656525, 1344656503, 1344656500, 1344656497, 1344656494, 1344656493, 1344656491] map_info['map_portfolio_photo'] : {21479541: [1344656530, 1344656528, 1344656527, 1344656525, 1344656503, 1344656500, 1344656497, 1344656494, 1344656493, 1344656491, 1344656456, 1344656455, 1344656453, 1344656427, 1344656424, 1344656421, 1344656417, 1344656415, 1344656413, 1344656386, 1344656383, 1344656382, 1344656380, 1344656360, 1344656357, 1344656354, 1344656351, 1344656347, 1344656344, 1344656324, 1344656321, 1344656314, 1344656308, 1344656306]} final : False mtd_id 4302 list_pids : [1344656530, 1344656528, 1344656527, 1344656525, 1344656503, 1344656500, 1344656497, 1344656494, 1344656493, 1344656491] 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, '2674303') ('4302', '21479541', '1344656530', None, None, None, None, None, '2674303') ('4302', None, None, None, None, None, None, None, '2674303') ('4302', '21479541', '1344656528', None, None, None, None, None, '2674303') ('4302', None, None, None, None, None, None, None, '2674303') ('4302', '21479541', '1344656527', None, None, None, None, None, '2674303') ('4302', None, None, None, None, None, None, None, '2674303') ('4302', '21479541', '1344656525', None, None, None, None, None, '2674303') ('4302', None, None, None, None, None, None, None, '2674303') ('4302', '21479541', '1344656503', None, None, None, None, None, '2674303') ('4302', None, None, None, None, None, None, None, '2674303') ('4302', '21479541', '1344656500', None, None, None, None, None, '2674303') ('4302', None, None, None, None, None, None, None, '2674303') ('4302', '21479541', '1344656497', None, None, None, None, None, '2674303') ('4302', None, None, None, None, None, None, None, '2674303') ('4302', '21479541', '1344656494', None, None, None, None, None, '2674303') ('4302', None, None, None, None, None, None, None, '2674303') ('4302', '21479541', '1344656493', None, None, None, None, None, '2674303') ('4302', None, None, None, None, None, None, None, '2674303') ('4302', '21479541', '1344656491', None, None, None, None, None, '2674303') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 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', '21479541', '1344656530', None, None, None, None, None, '2674303'), ('4302', '21479541', '1344656528', None, None, None, None, None, '2674303'), ('4302', '21479541', '1344656527', None, None, None, None, None, '2674303'), ('4302', '21479541', '1344656525', None, None, None, None, None, '2674303'), ('4302', '21479541', '1344656503', None, None, None, None, None, '2674303'), ('4302', '21479541', '1344656500', None, None, None, None, None, '2674303'), ('4302', '21479541', '1344656497', None, None, None, None, None, '2674303'), ('4302', '21479541', '1344656494', None, None, None, None, None, '2674303'), ('4302', '21479541', '1344656493', None, None, None, None, None, '2674303'), ('4302', '21479541', '1344656491', None, None, None, None, None, '2674303')] time used for this insertion : 0.012790203094482422 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.293440580368042 time spend to save output : 0.013090133666992188 total time spend for step 4 : 4.306530714035034 step5:split_time_score Mon Mar 17 06:24:04 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['21479541'] 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 : [('21479541',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21479541) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1344656530: {'path': 'temp/1742189040_2495989_1344656530_af7910a0106cc97086154349b65e1563.jpg', 'extension': 'jpg'}, 1344656525: {'path': 'temp/1742189040_2495989_1344656525_76eaeaa10975a91e955b2d5e47b079fe.jpg', 'extension': 'jpg'}, 1344656527: {'path': 'temp/1742189040_2495989_1344656527_6d11d0493447e5f89b3688cf7558509f.jpg', 'extension': 'jpg'}, 1344656528: {'path': 'temp/1742189040_2495989_1344656528_8d256c473125c79637ea3b10c4ede77e.jpg', 'extension': 'jpg'}, 1344656497: {'path': 'temp/1742189040_2495989_1344656497_a87526e8d917703400fd5c243430f22d.jpg', 'extension': 'jpg'}, 1344656500: {'path': 'temp/1742189040_2495989_1344656500_0cf98cc28df0cff2eb455d2f03144572.jpg', 'extension': 'jpg'}, 1344656503: {'path': 'temp/1742189040_2495989_1344656503_7933bb9357c2bb22b61c21f75b08eed6.jpg', 'extension': 'jpg'}, 1344656491: {'path': 'temp/1742189040_2495989_1344656491_0aebaa644d8c74327fc072c9f6b54061.jpg', 'extension': 'jpg'}, 1344656493: {'path': 'temp/1742189040_2495989_1344656493_b4627abef25eb1c23896b136b90f190d.jpg', 'extension': 'jpg'}, 1344656494: {'path': 'temp/1742189040_2495989_1344656494_14f1a51825caa038d34dd1c71ad74ac1.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 = 21479541; (('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 = 21479541 group by h (('06', 34),) 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=21479541 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 (21479541) 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 (21479541) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 17032025 21479541 Nombre de photos uploadées : 34 / 23040 (0%) 17032025 21479541 Nombre de photos taguées (types de déchets): 0 / 34 (0%) 17032025 21479541 Nombre de photos taguées (volume) : 0 / 34 (0%) [{'photo_id': 1344656324, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/17/f6cfbb182176315a89f682b8ec95dcb7.jpg', 'username': None, 'uploaded_at': 1742188612, 'text': 'image_17032025_06_15_03_10153.jpg'}, {'photo_id': 1344656321, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/17/f7835d1ef29e36bdb3bd4b9af0948beb.jpg', 'username': None, 'uploaded_at': 1742188612, 'text': 'image_17032025_06_15_13_10138.jpg'}, {'photo_id': 1344656314, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/17/8d9fdf7de4084c2e16fd93142eb4bcf5.jpg', 'username': None, 'uploaded_at': 1742188612, 'text': 'image_17032025_06_15_24_10205.jpg'}, {'photo_id': 1344656308, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/17/f0c5475c887a7db16ac60a02fcbc04fd.jpg', 'username': None, 'uploaded_at': 1742188612, 'text': 'image_17032025_06_15_33_9616.jpg'}] 0 [] elapsed_time : load_data_split_time_score 3.814697265625e-06 elapsed_time : order_list_meta_photo_and_scores 1.0728836059570312e-05 ?????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0016095638275146484 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21479541, '2025-03-17' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1672725,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.0223691463470459 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= 1672725 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1672725, 'dashboard_run_id': 1680288, 'mtr_portfolio_id': 21478409, 'dashboard_result_id': 9482114, '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_P21478409_17-03-2025_05_48_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21478434, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21478435, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21478436, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21478437, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21478438, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21478439, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21478440, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21478441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21478442, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21478443, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21478444, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21478445, 'pht': 3726}}"}, {'dashboat_entry_day': 1672725, 'dashboard_run_id': 1680288, 'mtr_portfolio_id': 21478738, 'dashboard_result_id': 9482115, '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_P21478738_17-03-2025_06_04_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21478739, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21478740, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21478741, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21478742, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21478743, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21478744, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21478745, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21478746, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21478747, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21478748, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21478749, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21478750, 'pht': 3726}}"}, {'dashboat_entry_day': 1672725, 'dashboard_run_id': 1680288, 'mtr_portfolio_id': 21479157, 'dashboard_result_id': 9482116, '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_P21479157_17-03-2025_06_18_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21479160, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21479161, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21479162, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21479163, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21479164, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21479165, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21479166, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21479167, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21479168, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21479169, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21479170, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21479171, 'pht': 3726}}"}, {'dashboat_entry_day': 1672725, 'dashboard_run_id': 1680288, 'mtr_portfolio_id': 21479541, 'dashboard_result_id': 9482117, '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_P21479541_17-03-2025_06_21_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21479545, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21479546, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21479547, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21479548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21479549, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21479550, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21479551, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21479552, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21479553, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21479554, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21479555, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21479556, '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 = 21478409 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': 2674208, 'mtr_portfolio_id': 21478409, 'created_at': datetime.datetime(2025, 3, 17, 5, 48, 58), 'result': '0.05220382644605113', 'result_long': None, 'result_double': None}] Qualite : 0.05220382644605113 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21478409 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21478409_17-03-2025_05_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21478409 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_P21478409_17-03-2025_05_48_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21478434, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21478435, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21478436, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21478437, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21478438, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21478439, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21478440, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21478441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21478442, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21478443, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21478444, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21478445, 'pht': 3726}}" where mtr_portfolio_id = 21478409 and dashboard_run_id = 1680288 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`=21478409 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9482114, 0.05220382644605113, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21478409_17-03-2025_05_48_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21478434, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21478435, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21478436, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21478437, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21478438, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21478439, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21478440, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21478441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21478442, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21478443, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21478444, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21478445, '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 = 21478738 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': 2674234, 'mtr_portfolio_id': 21478738, 'created_at': datetime.datetime(2025, 3, 17, 6, 4), 'result': '0.053282752893137185', 'result_long': None, 'result_double': None}] Qualite : 0.053282752893137185 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21478738 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21478738_17-03-2025_06_04_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21478738 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_P21478738_17-03-2025_06_04_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21478739, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21478740, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21478741, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21478742, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21478743, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21478744, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21478745, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21478746, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21478747, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21478748, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21478749, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21478750, 'pht': 3726}}" where mtr_portfolio_id = 21478738 and dashboard_run_id = 1680288 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`=21478738 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9482115, 0.053282752893137185, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21478738_17-03-2025_06_04_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21478739, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21478740, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21478741, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21478742, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21478743, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21478744, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21478745, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21478746, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21478747, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21478748, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21478749, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21478750, '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 = 21479157 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': 2674273, 'mtr_portfolio_id': 21479157, 'created_at': datetime.datetime(2025, 3, 17, 6, 18, 59), 'result': '0.05075708910385319', 'result_long': None, 'result_double': None}] Qualite : 0.05075708910385319 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21479157 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21479157_17-03-2025_06_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21479157 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_P21479157_17-03-2025_06_18_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21479160, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21479161, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21479162, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21479163, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21479164, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21479165, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21479166, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21479167, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21479168, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21479169, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21479170, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21479171, 'pht': 3726}}" where mtr_portfolio_id = 21479157 and dashboard_run_id = 1680288 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`=21479157 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9482116, 0.05075708910385319, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21479157_17-03-2025_06_18_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21479160, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21479161, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21479162, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21479163, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21479164, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21479165, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21479166, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21479167, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21479168, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21479169, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21479170, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21479171, '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 = 21479541 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': 2674303, 'mtr_portfolio_id': 21479541, 'created_at': datetime.datetime(2025, 3, 17, 6, 23, 59), 'result': '0.0666054800156156', 'result_long': None, 'result_double': None}] Qualite : 0.0666054800156156 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21479541 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21479541_17-03-2025_06_24_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21479541 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_P21479541_17-03-2025_06_24_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21479545, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21479546, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21479547, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21479548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21479549, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21479550, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21479551, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21479552, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21479553, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21479554, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21479555, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21479556, 'pht': 3726}}" where mtr_portfolio_id = 21479541 and dashboard_run_id = 1680288 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`=21479541 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9482117, 0.0666054800156156, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21479541_17-03-2025_06_24_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21479545, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21479546, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21479547, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21479548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21479549, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21479550, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21479551, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21479552, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21479553, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21479554, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21479555, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21479556, '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 (21478409,21478738,21479157,21479541) result : ((1344653747,), (1344653749,), (1344653750,), (1344653753,), (1344653755,), (1344653783,), (1344653786,), (1344653787,), (1344653807,), (1344653810,), (1344653811,), (1344653813,), (1344653815,), (1344653817,), (1344653834,), (1344653836,), (1344653842,), (1344653848,), (1344653850,), (1344653868,), (1344653870,), (1344653872,), (1344653876,), (1344653879,), (1344653882,), (1344653900,), (1344653902,), (1344653904,), (1344653910,), (1344653919,), (1344653942,), (1344653944,), (1344653945,), (1344653946,), (1344653949,), (1344653973,), (1344653975,), (1344653976,), (1344653980,), (1344654010,), (1344654013,), (1344654014,), (1344654015,), (1344654049,), (1344654058,), (1344654059,), (1344654061,), (1344654079,), (1344654111,), (1344654137,), (1344654140,), (1344654142,), (1344654143,), (1344654161,), (1344654164,), (1344654165,), (1344654166,), (1344654169,), (1344654187,), (1344654189,), (1344654191,), (1344654229,), (1344654219,), (1344654222,), (1344654223,), (1344654225,), (1344654227,), (1344654244,), (1344654247,), (1344654248,), (1344654249,), (1344654286,), (1344654289,), (1344654290,), (1344654292,), (1344654294,), (1344654296,), (1344654317,), (1344654320,), (1344654321,), (1344654363,), (1344654368,), (1344654373,), (1344654375,), (1344654376,), (1344654398,), (1344654402,), (1344654403,), (1344654404,), (1344654431,), (1344654441,), (1344654442,), (1344654443,), (1344654444,), (1344654462,), (1344654466,), (1344654467,), (1344654468,), (1344654469,), (1344654486,), (1344654493,), (1344654495,), (1344654918,), (1344655176,), (1344655203,), (1344655236,), (1344655681,), (1344655699,), (1344655844,), (1344655842,), (1344655864,), (1344655866,), (1344655867,), (1344655869,), (1344655871,), (1344655898,), (1344655901,), (1344655902,), (1344655903,), (1344655925,), (1344655928,), (1344655929,), (1344655931,), (1344655933,), (1344655935,), (1344655956,), (1344655959,), (1344655960,), (1344655966,), (1344655970,), (1344655991,), (1344655995,), (1344655997,), (1344656000,), (1344656002,), (1344656004,), (1344656029,), (1344656035,), (1344656036,), (1344656038,), (1344656061,), (1344656063,), (1344656069,), (1344656072,), (1344656075,), (1344656078,), (1344656095,), (1344656097,), (1344656098,), (1344656102,), (1344656122,), (1344656124,), (1344656125,), (1344656128,), (1344656131,), (1344656155,), (1344656156,), (1344656157,), (1344656161,), (1344656169,), (1344656203,), (1344656205,), (1344656207,), (1344656209,), (1344656237,), (1344656243,), (1344656248,), (1344656250,), (1344656253,), (1344656258,), (1344656275,), (1344656276,), (1344656277,), (1344656282,), (1344656286,), (1344656327,), (1344656306,), (1344656308,), (1344656314,), (1344656321,), (1344656324,), (1344656344,), (1344656347,), (1344656351,), (1344656354,), (1344656357,), (1344656360,), (1344656380,), (1344656382,), (1344656383,), (1344656386,), (1344656413,), (1344656415,), (1344656417,), (1344656421,), (1344656424,), (1344656427,), (1344656453,), (1344656455,), (1344656456,), (1344656491,), (1344656493,), (1344656494,), (1344656497,), (1344656500,), (1344656503,), (1344656525,), (1344656527,), (1344656528,), (1344656530,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'17032025': {'nb_upload': 34, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21479541]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1344656530, 1344656528, 1344656527, 1344656525, 1344656503, 1344656500, 1344656497, 1344656494, 1344656493, 1344656491] map_info['map_portfolio_photo'] : {21479541: [1344656530, 1344656528, 1344656527, 1344656525, 1344656503, 1344656500, 1344656497, 1344656494, 1344656493, 1344656491, 1344656456, 1344656455, 1344656453, 1344656427, 1344656424, 1344656421, 1344656417, 1344656415, 1344656413, 1344656386, 1344656383, 1344656382, 1344656380, 1344656360, 1344656357, 1344656354, 1344656351, 1344656347, 1344656344, 1344656324, 1344656321, 1344656314, 1344656308, 1344656306]} final : True mtd_id 4302 list_pids : [1344656530, 1344656528, 1344656527, 1344656525, 1344656503, 1344656500, 1344656497, 1344656494, 1344656493, 1344656491] Looping around the photos to save general results len do output : 1 /21479541Didn'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, '2674303') ('4302', '21479541', '1344656530', None, None, None, None, None, '2674303') ('4302', None, None, None, None, None, None, None, '2674303') ('4302', '21479541', '1344656528', None, None, None, None, None, '2674303') ('4302', None, None, None, None, None, None, None, '2674303') ('4302', '21479541', '1344656527', None, None, None, None, None, '2674303') ('4302', None, None, None, None, None, None, None, '2674303') ('4302', '21479541', '1344656525', None, None, None, None, None, '2674303') ('4302', None, None, None, None, None, None, None, '2674303') ('4302', '21479541', '1344656503', None, None, None, None, None, '2674303') ('4302', None, None, None, None, None, None, None, '2674303') ('4302', '21479541', '1344656500', None, None, None, None, None, '2674303') ('4302', None, None, None, None, None, None, None, '2674303') ('4302', '21479541', '1344656497', None, None, None, None, None, '2674303') ('4302', None, None, None, None, None, None, None, '2674303') ('4302', '21479541', '1344656494', None, None, None, None, None, '2674303') ('4302', None, None, None, None, None, None, None, '2674303') ('4302', '21479541', '1344656493', None, None, None, None, None, '2674303') ('4302', None, None, None, None, None, None, None, '2674303') ('4302', '21479541', '1344656491', None, None, None, None, None, '2674303') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21479541', 'None', None, None, None, None, '2674303'), ('4302', '21479541', '1344656530', None, None, None, None, None, '2674303'), ('4302', '21479541', '1344656528', None, None, None, None, None, '2674303'), ('4302', '21479541', '1344656527', None, None, None, None, None, '2674303'), ('4302', '21479541', '1344656525', None, None, None, None, None, '2674303'), ('4302', '21479541', '1344656503', None, None, None, None, None, '2674303'), ('4302', '21479541', '1344656500', None, None, None, None, None, '2674303'), ('4302', '21479541', '1344656497', None, None, None, None, None, '2674303'), ('4302', '21479541', '1344656494', None, None, None, None, None, '2674303'), ('4302', '21479541', '1344656493', None, None, None, None, None, '2674303'), ('4302', '21479541', '1344656491', None, None, None, None, None, '2674303')] time used for this insertion : 0.013169050216674805 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.33622288703918457 time spend to save output : 0.013430118560791016 total time spend for step 5 : 0.3496530055999756 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 (2674303) 2.13user 2.38system 0:08.72elapsed 51%CPU (0avgtext+0avgdata 160808maxresident)k 256inputs+13592outputs (2major+64093minor)pagefaults 0swaps