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 : 2784473 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 (2784731) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2784731) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22615158 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2784731'] with mtr_portfolio_ids : ['22615158'] and first list_photo_ids : [] new path : /proc/2784473/ Name: python3 Umask: 0002 State: R (running) Tgid: 2784473 Ngid: 0 Pid: 2784473 PPid: 2784472 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2784473 NSpid: 2784473 NSpgid: 2782755 NSsid: 2782755 VmPeak: 1107228 kB VmSize: 1107228 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99988 kB VmRSS: 99988 kB RssAnon: 60240 kB RssFile: 39748 kB RssShmem: 0 kB VmData: 865976 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 552 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 294 nonvoluntary_ctxt_switches: 347 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2784473', 'Ngid': '0', 'Pid': '2784473', 'PPid': '2784472', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2784473', 'NSpid': '2784473', 'NSpgid': '2782755', 'NSsid': '2782755', 'VmPeak': '1107228 kB', 'VmSize': '1107228 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99988 kB', 'VmRSS': '99988 kB', 'RssAnon': '60240 kB', 'RssFile': '39748 kB', 'RssShmem': '0 kB', 'VmData': '865976 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '552 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '294', 'nonvoluntary_ctxt_switches': '347'} ('datou_batch_current', '2784473', '1107228', '0', '1107228', '865976', '99988', b'', 'marlene', '2784731') 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 (22615158) 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 (2784731 ) ) 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 (22615158) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1355420629, 'portfolio_id': 22615158}, {'photo_id': 1355420625, 'portfolio_id': 22615158}, {'photo_id': 1355420621, 'portfolio_id': 22615158}, {'photo_id': 1355420618, 'portfolio_id': 22615158}, {'photo_id': 1355420392, 'portfolio_id': 22615158}, {'photo_id': 1355420343, 'portfolio_id': 22615158}, {'photo_id': 1355420291, 'portfolio_id': 22615158}, {'photo_id': 1355420240, 'portfolio_id': 22615158}, {'photo_id': 1355420180, 'portfolio_id': 22615158}, {'photo_id': 1355419665, 'portfolio_id': 22615158}, {'photo_id': 1355419595, 'portfolio_id': 22615158}, {'photo_id': 1355419533, 'portfolio_id': 22615158}, {'photo_id': 1355419059, 'portfolio_id': 22615158}, {'photo_id': 1355419029, 'portfolio_id': 22615158}, {'photo_id': 1355418984, 'portfolio_id': 22615158}, {'photo_id': 1355418917, 'portfolio_id': 22615158}, {'photo_id': 1355418851, 'portfolio_id': 22615158}, {'photo_id': 1355418777, 'portfolio_id': 22615158}, {'photo_id': 1355418481, 'portfolio_id': 22615158}, {'photo_id': 1355418452, 'portfolio_id': 22615158}, {'photo_id': 1355418422, 'portfolio_id': 22615158}, {'photo_id': 1355418391, 'portfolio_id': 22615158}, {'photo_id': 1355418348, 'portfolio_id': 22615158}, {'photo_id': 1355418200, 'portfolio_id': 22615158}, {'photo_id': 1355418191, 'portfolio_id': 22615158}, {'photo_id': 1355418188, 'portfolio_id': 22615158}, {'photo_id': 1355417897, 'portfolio_id': 22615158}, {'photo_id': 1355417848, 'portfolio_id': 22615158}, {'photo_id': 1355417547, 'portfolio_id': 22615158}, {'photo_id': 1355417533, 'portfolio_id': 22615158}, {'photo_id': 1355417515, 'portfolio_id': 22615158}, {'photo_id': 1355417511, 'portfolio_id': 22615158}, {'photo_id': 1355417470, 'portfolio_id': 22615158}, {'photo_id': 1355417466, 'portfolio_id': 22615158}, {'photo_id': 1355417462, 'portfolio_id': 22615158}, {'photo_id': 1355417426, 'portfolio_id': 22615158}, {'photo_id': 1355417423, 'portfolio_id': 22615158}, {'photo_id': 1355417420, 'portfolio_id': 22615158}, {'photo_id': 1355417415, 'portfolio_id': 22615158}] map_portfolio_id_photo_id: {22615158: [1355420629, 1355420625, 1355420621, 1355420618, 1355420392, 1355420343, 1355420291, 1355420240, 1355420180, 1355419665, 1355419595, 1355419533, 1355419059, 1355419029, 1355418984, 1355418917, 1355418851, 1355418777, 1355418481, 1355418452, 1355418422, 1355418391, 1355418348, 1355418200, 1355418191, 1355418188, 1355417897, 1355417848, 1355417547, 1355417533, 1355417515, 1355417511, 1355417470, 1355417466, 1355417462, 1355417426, 1355417423, 1355417420, 1355417415]} ##### 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.01485896110534668 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Fri May 2 18:56:30 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 (22615158) 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 : 22615158 get user id for portfolio 22615158 get sub ptf for main ptf 22615158, type 3726 and hashtags ['autre_refus', 'Carton_gris', 'kraft', 'plastique', 'cartonnette', 'Teint_Dans_La_Masse', 'papier', 'flou', 'environnement', 'mal_croppe', 'Carton_brun', '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`=22615158 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Carton_gris','kraft','plastique','cartonnette','Teint_Dans_La_Masse','papier','flou','environnement','mal_croppe','Carton_brun','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`=22615158 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Carton_gris','kraft','plastique','cartonnette','Teint_Dans_La_Masse','papier','flou','environnement','mal_croppe','Carton_brun','metal')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 22615158, 'sub_port_id': 22615186, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15043145, 'last_updated_at': datetime.datetime(2025, 5, 2, 18, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 18, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 18, 48, 58)}, 'kraft': {'main_port_id': 22615158, 'sub_port_id': 22615187, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15043146, 'last_updated_at': datetime.datetime(2025, 5, 2, 18, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 18, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 18, 48, 58)}, 'plastique': {'main_port_id': 22615158, 'sub_port_id': 22615188, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15043147, 'last_updated_at': datetime.datetime(2025, 5, 2, 18, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 18, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 18, 48, 58)}, 'Carton_gris': {'main_port_id': 22615158, 'sub_port_id': 22615189, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15043148, 'last_updated_at': datetime.datetime(2025, 5, 2, 18, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 18, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 18, 48, 58)}, 'autre_refus': {'main_port_id': 22615158, 'sub_port_id': 22615190, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15043149, 'last_updated_at': datetime.datetime(2025, 5, 2, 18, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 18, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 18, 48, 58)}, 'cartonnette': {'main_port_id': 22615158, 'sub_port_id': 22615191, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15043150, 'last_updated_at': datetime.datetime(2025, 5, 2, 18, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 18, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 18, 48, 58)}, 'mal_croppe': {'main_port_id': 22615158, 'sub_port_id': 22615192, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15043151, 'last_updated_at': datetime.datetime(2025, 5, 2, 18, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 18, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 18, 48, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 22615158, 'sub_port_id': 22615193, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15043152, 'last_updated_at': datetime.datetime(2025, 5, 2, 18, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 18, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 18, 48, 58)}, 'metal': {'main_port_id': 22615158, 'sub_port_id': 22615194, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15043153, 'last_updated_at': datetime.datetime(2025, 5, 2, 18, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 18, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 18, 48, 58)}, 'papier': {'main_port_id': 22615158, 'sub_port_id': 22615195, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15043154, 'last_updated_at': datetime.datetime(2025, 5, 2, 18, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 18, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 18, 48, 58)}, 'flou': {'main_port_id': 22615158, 'sub_port_id': 22615196, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15043155, 'last_updated_at': datetime.datetime(2025, 5, 2, 18, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 18, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 18, 48, 58)}, 'Carton_brun': {'main_port_id': 22615158, 'sub_port_id': 22615197, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15043156, 'last_updated_at': datetime.datetime(2025, 5, 2, 18, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 18, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 18, 48, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22615186 , 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=22615158 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 (22615186) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22615158) result : ((1355417415,), (1355417420,), (1355417423,), (1355417426,), (1355417462,), (1355417466,), (1355417470,), (1355417511,), (1355417515,), (1355417533,), (1355417547,), (1355417848,), (1355417897,), (1355418188,), (1355418191,), (1355418200,), (1355418348,), (1355418391,), (1355418422,), (1355418452,), (1355418481,), (1355418777,), (1355418851,), (1355418917,), (1355418984,), (1355419029,), (1355419059,), (1355419533,), (1355419595,), (1355419665,), (1355420180,), (1355420240,), (1355420291,), (1355420343,), (1355420392,), (1355420618,), (1355420621,), (1355420625,), (1355420629,)) 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 (1355418200) 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 22615187 , 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=22615158 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 (22615187) result : ((1355418104,), (1355418106,), (1355418107,), (1355418108,), (1355418109,), (1355418178,), (1355418179,), (1355418180,), (1355419982,), (1355420505,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22615158) result : ((1355417415,), (1355417420,), (1355417423,), (1355417426,), (1355417462,), (1355417466,), (1355417470,), (1355417511,), (1355417515,), (1355417533,), (1355417547,), (1355417848,), (1355417897,), (1355418188,), (1355418191,), (1355418200,), (1355418348,), (1355418391,), (1355418422,), (1355418452,), (1355418481,), (1355418777,), (1355418851,), (1355418917,), (1355418984,), (1355419029,), (1355419059,), (1355419533,), (1355419595,), (1355419665,), (1355420180,), (1355420240,), (1355420291,), (1355420343,), (1355420392,), (1355420618,), (1355420621,), (1355420625,), (1355420629,)) 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 (1355418200) 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 22615188 , 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=22615158 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 (22615188) result : ((1355420501,), (1355420761,), (1355420762,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22615158) result : ((1355417415,), (1355417420,), (1355417423,), (1355417426,), (1355417462,), (1355417466,), (1355417470,), (1355417511,), (1355417515,), (1355417533,), (1355417547,), (1355417848,), (1355417897,), (1355418188,), (1355418191,), (1355418200,), (1355418348,), (1355418391,), (1355418422,), (1355418452,), (1355418481,), (1355418777,), (1355418851,), (1355418917,), (1355418984,), (1355419029,), (1355419059,), (1355419533,), (1355419595,), (1355419665,), (1355420180,), (1355420240,), (1355420291,), (1355420343,), (1355420392,), (1355420618,), (1355420621,), (1355420625,), (1355420629,)) 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 (1355418200) 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 22615189 , 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=22615158 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 (22615189) result : ((1355418153,), (1355418154,), (1355418366,), (1355418367,), (1355418368,), (1355418369,), (1355419965,), (1355419966,), (1355420491,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22615158) result : ((1355417415,), (1355417420,), (1355417423,), (1355417426,), (1355417462,), (1355417466,), (1355417470,), (1355417511,), (1355417515,), (1355417533,), (1355417547,), (1355417848,), (1355417897,), (1355418188,), (1355418191,), (1355418200,), (1355418348,), (1355418391,), (1355418422,), (1355418452,), (1355418481,), (1355418777,), (1355418851,), (1355418917,), (1355418984,), (1355419029,), (1355419059,), (1355419533,), (1355419595,), (1355419665,), (1355420180,), (1355420240,), (1355420291,), (1355420343,), (1355420392,), (1355420618,), (1355420621,), (1355420625,), (1355420629,)) 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 (1355418200) 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 22615190 , 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=22615158 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 (22615190) result : ((1355418146,), (1355418351,), (1355418617,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22615158) result : ((1355417415,), (1355417420,), (1355417423,), (1355417426,), (1355417462,), (1355417466,), (1355417470,), (1355417511,), (1355417515,), (1355417533,), (1355417547,), (1355417848,), (1355417897,), (1355418188,), (1355418191,), (1355418200,), (1355418348,), (1355418391,), (1355418422,), (1355418452,), (1355418481,), (1355418777,), (1355418851,), (1355418917,), (1355418984,), (1355419029,), (1355419059,), (1355419533,), (1355419595,), (1355419665,), (1355420180,), (1355420240,), (1355420291,), (1355420343,), (1355420392,), (1355420618,), (1355420621,), (1355420625,), (1355420629,)) 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 (1355418200) 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 22615191 , 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=22615158 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 (22615191) result : ((1355418379,), (1355418380,), (1355418381,), (1355420497,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22615158) result : ((1355417415,), (1355417420,), (1355417423,), (1355417426,), (1355417462,), (1355417466,), (1355417470,), (1355417511,), (1355417515,), (1355417533,), (1355417547,), (1355417848,), (1355417897,), (1355418188,), (1355418191,), (1355418200,), (1355418348,), (1355418391,), (1355418422,), (1355418452,), (1355418481,), (1355418777,), (1355418851,), (1355418917,), (1355418984,), (1355419029,), (1355419059,), (1355419533,), (1355419595,), (1355419665,), (1355420180,), (1355420240,), (1355420291,), (1355420343,), (1355420392,), (1355420618,), (1355420621,), (1355420625,), (1355420629,)) 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 (1355418200) 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 22615192 , 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=22615158 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 (22615192) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22615158) result : ((1355417415,), (1355417420,), (1355417423,), (1355417426,), (1355417462,), (1355417466,), (1355417470,), (1355417511,), (1355417515,), (1355417533,), (1355417547,), (1355417848,), (1355417897,), (1355418188,), (1355418191,), (1355418200,), (1355418348,), (1355418391,), (1355418422,), (1355418452,), (1355418481,), (1355418777,), (1355418851,), (1355418917,), (1355418984,), (1355419029,), (1355419059,), (1355419533,), (1355419595,), (1355419665,), (1355420180,), (1355420240,), (1355420291,), (1355420343,), (1355420392,), (1355420618,), (1355420621,), (1355420625,), (1355420629,)) 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 (1355418200) 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 22615193 , 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=22615158 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 (22615193) result : ((1355418088,), (1355418138,), (1355418139,), (1355418342,), (1355418343,), (1355418344,), (1355418601,), (1355419251,), (1355419959,), (1355419960,), (1355420741,), (1355420742,), (1355420743,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22615158) result : ((1355417415,), (1355417420,), (1355417423,), (1355417426,), (1355417462,), (1355417466,), (1355417470,), (1355417511,), (1355417515,), (1355417533,), (1355417547,), (1355417848,), (1355417897,), (1355418188,), (1355418191,), (1355418200,), (1355418348,), (1355418391,), (1355418422,), (1355418452,), (1355418481,), (1355418777,), (1355418851,), (1355418917,), (1355418984,), (1355419029,), (1355419059,), (1355419533,), (1355419595,), (1355419665,), (1355420180,), (1355420240,), (1355420291,), (1355420343,), (1355420392,), (1355420618,), (1355420621,), (1355420625,), (1355420629,)) 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 (1355418200) 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 22615194 , 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=22615158 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 (22615194) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22615158) result : ((1355417415,), (1355417420,), (1355417423,), (1355417426,), (1355417462,), (1355417466,), (1355417470,), (1355417511,), (1355417515,), (1355417533,), (1355417547,), (1355417848,), (1355417897,), (1355418188,), (1355418191,), (1355418200,), (1355418348,), (1355418391,), (1355418422,), (1355418452,), (1355418481,), (1355418777,), (1355418851,), (1355418917,), (1355418984,), (1355419029,), (1355419059,), (1355419533,), (1355419595,), (1355419665,), (1355420180,), (1355420240,), (1355420291,), (1355420343,), (1355420392,), (1355420618,), (1355420621,), (1355420625,), (1355420629,)) 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 (1355418200) 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 22615195 , 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=22615158 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 (22615195) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22615158) result : ((1355417415,), (1355417420,), (1355417423,), (1355417426,), (1355417462,), (1355417466,), (1355417470,), (1355417511,), (1355417515,), (1355417533,), (1355417547,), (1355417848,), (1355417897,), (1355418188,), (1355418191,), (1355418200,), (1355418348,), (1355418391,), (1355418422,), (1355418452,), (1355418481,), (1355418777,), (1355418851,), (1355418917,), (1355418984,), (1355419029,), (1355419059,), (1355419533,), (1355419595,), (1355419665,), (1355420180,), (1355420240,), (1355420291,), (1355420343,), (1355420392,), (1355420618,), (1355420621,), (1355420625,), (1355420629,)) 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 (1355418200) 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 22615196 , 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=22615158 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 (22615196) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22615158) result : ((1355417415,), (1355417420,), (1355417423,), (1355417426,), (1355417462,), (1355417466,), (1355417470,), (1355417511,), (1355417515,), (1355417533,), (1355417547,), (1355417848,), (1355417897,), (1355418188,), (1355418191,), (1355418200,), (1355418348,), (1355418391,), (1355418422,), (1355418452,), (1355418481,), (1355418777,), (1355418851,), (1355418917,), (1355418984,), (1355419029,), (1355419059,), (1355419533,), (1355419595,), (1355419665,), (1355420180,), (1355420240,), (1355420291,), (1355420343,), (1355420392,), (1355420618,), (1355420621,), (1355420625,), (1355420629,)) 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 (1355418200) 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 22615197 , 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=22615158 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 (22615197) result : ((1355418161,), (1355418388,), (1355418389,), (1355419974,), (1355419975,), (1355419976,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22615158) result : ((1355417415,), (1355417420,), (1355417423,), (1355417426,), (1355417462,), (1355417466,), (1355417470,), (1355417511,), (1355417515,), (1355417533,), (1355417547,), (1355417848,), (1355417897,), (1355418188,), (1355418191,), (1355418200,), (1355418348,), (1355418391,), (1355418422,), (1355418452,), (1355418481,), (1355418777,), (1355418851,), (1355418917,), (1355418984,), (1355419029,), (1355419059,), (1355419533,), (1355419595,), (1355419665,), (1355420180,), (1355420240,), (1355420291,), (1355420343,), (1355420392,), (1355420618,), (1355420621,), (1355420625,), (1355420629,)) 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 (1355418200) 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`=22615158 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Carton_gris','kraft','plastique','cartonnette','Teint_Dans_La_Masse','papier','flou','environnement','mal_croppe','Carton_brun','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`=22615158 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Carton_gris','kraft','plastique','cartonnette','Teint_Dans_La_Masse','papier','flou','environnement','mal_croppe','Carton_brun','metal')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 22615158, 'sub_port_id': 22615198, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15043157, 'last_updated_at': datetime.datetime(2025, 5, 2, 18, 49), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 18, 49), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 18, 49)}, 'kraft': {'main_port_id': 22615158, 'sub_port_id': 22615199, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15043158, 'last_updated_at': datetime.datetime(2025, 5, 2, 18, 49), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 18, 49), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 18, 49)}, 'plastique': {'main_port_id': 22615158, 'sub_port_id': 22615200, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15043159, 'last_updated_at': datetime.datetime(2025, 5, 2, 18, 49), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 18, 49), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 18, 49)}, 'Carton_gris': {'main_port_id': 22615158, 'sub_port_id': 22615201, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15043160, 'last_updated_at': datetime.datetime(2025, 5, 2, 18, 49), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 18, 49), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 18, 49)}, 'autre_refus': {'main_port_id': 22615158, 'sub_port_id': 22615202, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15043161, 'last_updated_at': datetime.datetime(2025, 5, 2, 18, 49), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 18, 49), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 18, 49)}, 'cartonnette': {'main_port_id': 22615158, 'sub_port_id': 22615203, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15043162, 'last_updated_at': datetime.datetime(2025, 5, 2, 18, 49), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 18, 49), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 18, 49)}, 'mal_croppe': {'main_port_id': 22615158, 'sub_port_id': 22615204, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15043163, 'last_updated_at': datetime.datetime(2025, 5, 2, 18, 49), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 18, 49), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 18, 49)}, 'Teint_Dans_La_Masse': {'main_port_id': 22615158, 'sub_port_id': 22615205, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15043164, 'last_updated_at': datetime.datetime(2025, 5, 2, 18, 49), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 18, 49), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 18, 49)}, 'metal': {'main_port_id': 22615158, 'sub_port_id': 22615206, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15043165, 'last_updated_at': datetime.datetime(2025, 5, 2, 18, 49), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 18, 49), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 18, 49)}, 'papier': {'main_port_id': 22615158, 'sub_port_id': 22615207, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15043166, 'last_updated_at': datetime.datetime(2025, 5, 2, 18, 49), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 18, 49), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 18, 49)}, 'flou': {'main_port_id': 22615158, 'sub_port_id': 22615208, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15043167, 'last_updated_at': datetime.datetime(2025, 5, 2, 18, 49), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 18, 49), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 18, 49)}, 'Carton_brun': {'main_port_id': 22615158, 'sub_port_id': 22615209, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15043168, 'last_updated_at': datetime.datetime(2025, 5, 2, 18, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 18, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 18, 49)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22615198,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22615186 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22615199,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22615187 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22615200,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22615188 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22615201,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22615189 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22615202,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22615190 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22615203,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22615191 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22615204,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22615192 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22615205,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22615193 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22615206,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22615194 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22615207,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22615195 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22615208,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22615196 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22615209,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22615197 lien utilise dans velours : https://www.fotonower.com/velours/22615198,22615199,22615200,22615201,22615202,22615203,22615204,22615205,22615206,22615207,22615208,22615209?tags=environnement,kraft,plastique,Carton_gris,autre_refus,cartonnette,mal_croppe,Teint_Dans_La_Masse,metal,papier,flou,Carton_brun After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22615158]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1355420629, 1355420625, 1355420621, 1355420618] map_info['map_portfolio_photo'] : {22615158: [1355420629, 1355420625, 1355420621, 1355420618, 1355420392, 1355420343, 1355420291, 1355420240, 1355420180, 1355419665, 1355419595, 1355419533, 1355419059, 1355419029, 1355418984, 1355418917, 1355418851, 1355418777, 1355418481, 1355418452, 1355418422, 1355418391, 1355418348, 1355418200, 1355418191, 1355418188, 1355417897, 1355417848, 1355417547, 1355417533, 1355417515, 1355417511, 1355417470, 1355417466, 1355417462, 1355417426, 1355417423, 1355417420, 1355417415]} final : False mtd_id 4302 list_pids : [1355420629, 1355420625, 1355420621, 1355420618] Looping around the photos to save general results len do output : 1 /22615158. 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, '2784731') ('4302', '22615158', '1355420629', None, None, None, None, None, '2784731') ('4302', None, None, None, None, None, None, None, '2784731') ('4302', '22615158', '1355420625', None, None, None, None, None, '2784731') ('4302', None, None, None, None, None, None, None, '2784731') ('4302', '22615158', '1355420621', None, None, None, None, None, '2784731') ('4302', None, None, None, None, None, None, None, '2784731') ('4302', '22615158', '1355420618', None, None, None, None, None, '2784731') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 5 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, '22615158', "{'environnement': 22615186, 'kraft': 22615187, 'plastique': 22615188, 'Carton_gris': 22615189, 'autre_refus': 22615190, 'cartonnette': 22615191, 'mal_croppe': 22615192, 'Teint_Dans_La_Masse': 22615193, 'metal': 22615194, 'papier': 22615195, 'flou': 22615196, 'Carton_brun': 22615197}", None, None, None, None, '2784731'), ('4302', '22615158', '1355420629', None, None, None, None, None, '2784731'), ('4302', '22615158', '1355420625', None, None, None, None, None, '2784731'), ('4302', '22615158', '1355420621', None, None, None, None, None, '2784731'), ('4302', '22615158', '1355420618', None, None, None, None, None, '2784731')] time used for this insertion : 0.012609243392944336 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.46201252937316895 time spend to save output : 0.012866735458374023 total time spend for step 1 : 0.47487926483154297 step2:final Fri May 2 18:56:31 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 (22615158) 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 22615158 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1355417426,1355417423,1355417420,1355417415,1355417470,1355417466,1355417462,1355417547,1355417533,1355417515,1355417511,1355417897,1355417848,1355418200,1355418191,1355418188,1355418481,1355418452,1355418422,1355418391,1355418348,1355419059,1355419029,1355418984,1355418917,1355418851,1355418777,1355419665,1355419595,1355419533,1355420392,1355420343,1355420291,1355420240,1355420180,1355420629,1355420625,1355420621,1355420618); 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([22615158]) Inside saveOutput : final : False verbose : True original output for save of step final : {1355420629: ('0.08993174054761299',), 1355420625: ('0.08993174054761299',), 1355420621: ('0.08993174054761299',), 1355420618: ('0.08993174054761299',)} new output for save of step final : {1355420629: ('0.08993174054761299',), 1355420625: ('0.08993174054761299',), 1355420621: ('0.08993174054761299',), 1355420618: ('0.08993174054761299',)} [1355420629, 1355420625, 1355420621, 1355420618] map_info['map_portfolio_photo'] : {22615158: [1355420629, 1355420625, 1355420621, 1355420618, 1355420392, 1355420343, 1355420291, 1355420240, 1355420180, 1355419665, 1355419595, 1355419533, 1355419059, 1355419029, 1355418984, 1355418917, 1355418851, 1355418777, 1355418481, 1355418452, 1355418422, 1355418391, 1355418348, 1355418200, 1355418191, 1355418188, 1355417897, 1355417848, 1355417547, 1355417533, 1355417515, 1355417511, 1355417470, 1355417466, 1355417462, 1355417426, 1355417423, 1355417420, 1355417415]} final : False mtd_id 4302 list_pids : [1355420629, 1355420625, 1355420621, 1355420618] Looping around the photos to save general results len do output : 4 /1355420629.Didn't retrieve data . /1355420625.Didn't retrieve data . /1355420621.Didn't retrieve data . /1355420618.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, '2784731') ('4302', '22615158', '1355420629', None, None, None, None, None, '2784731') ('4302', None, None, None, None, None, None, None, '2784731') ('4302', '22615158', '1355420625', None, None, None, None, None, '2784731') ('4302', None, None, None, None, None, None, None, '2784731') ('4302', '22615158', '1355420621', None, None, None, None, None, '2784731') ('4302', None, None, None, None, None, None, None, '2784731') ('4302', '22615158', '1355420618', None, None, None, None, None, '2784731') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22615158', '1355420629', '0.08993174054761299', None, None, None, None, '2784731'), ('4302', '22615158', '1355420625', '0.08993174054761299', None, None, None, None, '2784731'), ('4302', '22615158', '1355420621', '0.08993174054761299', None, None, None, None, '2784731'), ('4302', '22615158', '1355420618', '0.08993174054761299', None, None, None, None, '2784731')] time used for this insertion : 0.012993812561035156 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0717918872833252 time spend to save output : 0.013287782669067383 total time spend for step 2 : 0.08507966995239258 step3:velours_tree Fri May 2 18:56:31 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 : {22615158: [{'environnement': 22615186, 'kraft': 22615187, 'plastique': 22615188, 'Carton_gris': 22615189, 'autre_refus': 22615190, 'cartonnette': 22615191, 'mal_croppe': 22615192, 'Teint_Dans_La_Masse': 22615193, 'metal': 22615194, 'papier': 22615195, 'flou': 22615196, 'Carton_brun': 22615197}]} input_args_next_step : {22615158: ()} output_args : {22615158: [{'environnement': 22615186, 'kraft': 22615187, 'plastique': 22615188, 'Carton_gris': 22615189, 'autre_refus': 22615190, 'cartonnette': 22615191, 'mal_croppe': 22615192, 'Teint_Dans_La_Masse': 22615193, 'metal': 22615194, 'papier': 22615195, 'flou': 22615196, 'Carton_brun': 22615197}]} args : 22615158 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'environnement': 22615186, 'kraft': 22615187, 'plastique': 22615188, 'Carton_gris': 22615189, 'autre_refus': 22615190, 'cartonnette': 22615191, 'mal_croppe': 22615192, 'Teint_Dans_La_Masse': 22615193, 'metal': 22615194, 'papier': 22615195, 'flou': 22615196, 'Carton_brun': 22615197},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22615158) 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([22615158]) 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.6396763324737549 time spend to save output : 3.790855407714844e-05 total time spend for step 3 : 0.639714241027832 step4:send_mail_cod Fri May 2 18:56:32 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 : {1355420629: ('0.08993174054761299',), 1355420625: ('0.08993174054761299',), 1355420621: ('0.08993174054761299',), 1355420618: ('0.08993174054761299',)} input_args_next_step : {1355420629: ()} output_args : {1355420629: ('0.08993174054761299',), 1355420625: ('0.08993174054761299',), 1355420621: ('0.08993174054761299',), 1355420618: ('0.08993174054761299',)} args : 1355420629 depend.output_id : 0 input_args_next_step : {1355420629: ('0.08993174054761299',), 1355420625: ()} output_args : {1355420629: ('0.08993174054761299',), 1355420625: ('0.08993174054761299',), 1355420621: ('0.08993174054761299',), 1355420618: ('0.08993174054761299',)} args : 1355420625 depend.output_id : 0 input_args_next_step : {1355420629: ('0.08993174054761299',), 1355420625: ('0.08993174054761299',), 1355420621: ()} output_args : {1355420629: ('0.08993174054761299',), 1355420625: ('0.08993174054761299',), 1355420621: ('0.08993174054761299',), 1355420618: ('0.08993174054761299',)} args : 1355420621 depend.output_id : 0 input_args_next_step : {1355420629: ('0.08993174054761299',), 1355420625: ('0.08993174054761299',), 1355420621: ('0.08993174054761299',), 1355420618: ()} output_args : {1355420629: ('0.08993174054761299',), 1355420625: ('0.08993174054761299',), 1355420621: ('0.08993174054761299',), 1355420618: ('0.08993174054761299',)} args : 1355420618 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 : {22615158: [{'environnement': 22615186, 'kraft': 22615187, 'plastique': 22615188, 'Carton_gris': 22615189, 'autre_refus': 22615190, 'cartonnette': 22615191, 'mal_croppe': 22615192, 'Teint_Dans_La_Masse': 22615193, 'metal': 22615194, 'papier': 22615195, 'flou': 22615196, 'Carton_brun': 22615197}]} input_args_next_step : {1355420629: ('0.08993174054761299',), 1355420625: ('0.08993174054761299',), 1355420621: ('0.08993174054761299',), 1355420618: ('0.08993174054761299',), 22615158: ()} output_args : {22615158: [{'environnement': 22615186, 'kraft': 22615187, 'plastique': 22615188, 'Carton_gris': 22615189, 'autre_refus': 22615190, 'cartonnette': 22615191, 'mal_croppe': 22615192, 'Teint_Dans_La_Masse': 22615193, 'metal': 22615194, 'papier': 22615195, 'flou': 22615196, 'Carton_brun': 22615197}]} args : 22615158 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 :5, first value : ('0.08993174054761299',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22615158) 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 (1355420629,1355420625,1355420621,1355420618) Found this number of photos: 4 ##### Call download_photos : nb_thread : 5 begin to download photo : 1355420618 begin to download photo : 1355420621 begin to download photo : 1355420625 begin to download photo : 1355420629 download finish for photo 1355420621 download finish for photo 1355420618 download finish for photo 1355420625 download finish for photo 1355420629 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 : 4 ; length of list_pids : 4 ; length of list_args : 4 results_Auto_P22615158_02-05-2025_18_56_32.pdf 22615187 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=22615187 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1355418104: '1746204541_2839807_1355417533_3c6ddbd35e22ef98e354168a49ddba69_rle_crop_3780427710_0.png', 1355418106: '1746204541_2839807_1355417533_3c6ddbd35e22ef98e354168a49ddba69_rle_crop_3780427708_0.png', 1355418107: '1746204541_2839807_1355417515_3ec77b5c11c979edb6efa2d3f507ab96_rle_crop_3780427716_0.png', 1355418108: '1746204541_2839807_1355417515_3ec77b5c11c979edb6efa2d3f507ab96_rle_crop_3780427722_0.png', 1355418109: '1746204541_2839807_1355417515_3ec77b5c11c979edb6efa2d3f507ab96_rle_crop_3780427725_0.png', 1355418178: '1746204552_2839974_1355417547_5449f6c0adc045c27b04a97cc0bdfd16_rle_crop_3780428061_0.png', 1355418179: '1746204552_2839974_1355417466_3b5ccb3394b4fc140cdc805b9543f65d_rle_crop_3780428319_0.png', 1355418180: '1746204552_2839974_1355417466_3b5ccb3394b4fc140cdc805b9543f65d_rle_crop_3780428320_0.png', 1355419982: '1746204794_2842641_1355418391_9ce42951d39ae3795e546e06aa287f91_rle_crop_3780433876_0.png', 1355420505: '1746204853_2843243_1355417897_c2e94224ec1bcb7cda9dc95da42a7bda_rle_crop_3780433943_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/1b00ccf3e761edb6f39f3991d9376e64_20890016.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/4858c738885ce2e892f1f5d597e811cf_75363067.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/3d76c2b873d444e60256207dbba8c484_55622367.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/b9b00dae62dda57e1e854f28c74ddbb2_99303523.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/e0c3a545a8926c60c799cda2ce6d80a4_75039591.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/d01f66ccf0eb8e6939a78acd07795406_53149622.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/90176aebdfd481b25ed0fba81257e811_42491731.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/828be9fe289f7842c05348a68e9a0064_94640137.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/6ed257b19a371e9c52854f7b4294d9a4_5317567.png change filename to text .imagette226151871746204992/ imagette226151871746204992/1746204552_2839974_1355417466_3b5ccb3394b4fc140cdc805b9543f65d_rle_crop_3780428319_0.png.png imagette226151871746204992/1746204541_2839807_1355417515_3ec77b5c11c979edb6efa2d3f507ab96_rle_crop_3780427725_0.png.png imagette226151871746204992/1746204794_2842641_1355418391_9ce42951d39ae3795e546e06aa287f91_rle_crop_3780433876_0.png.png imagette226151871746204992/1746204541_2839807_1355417533_3c6ddbd35e22ef98e354168a49ddba69_rle_crop_3780427708_0.png.png imagette226151871746204992/1746204853_2843243_1355417897_c2e94224ec1bcb7cda9dc95da42a7bda_rle_crop_3780433943_0.png.png imagette226151871746204992/1746204541_2839807_1355417515_3ec77b5c11c979edb6efa2d3f507ab96_rle_crop_3780427722_0.png.png imagette226151871746204992/1746204552_2839974_1355417547_5449f6c0adc045c27b04a97cc0bdfd16_rle_crop_3780428061_0.png.png imagette226151871746204992/1746204541_2839807_1355417533_3c6ddbd35e22ef98e354168a49ddba69_rle_crop_3780427710_0.png.png imagette226151871746204992/1746204552_2839974_1355417466_3b5ccb3394b4fc140cdc805b9543f65d_rle_crop_3780428320_0.png.png imagette226151871746204992/1746204541_2839807_1355417515_3ec77b5c11c979edb6efa2d3f507ab96_rle_crop_3780427716_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/ff72071f9ad379838561936353caeeae_64694941.png imagette226151871746204992 22615188 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=22615188 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1355420501: '1746204853_2843243_1355417897_c2e94224ec1bcb7cda9dc95da42a7bda_rle_crop_3780433937_0.png', 1355420761: '1746204914_2843862_1355420291_e190322f35ee965fe3db49f9aa1190bb_rle_crop_3780437189_0.png', 1355420762: '1746204914_2843862_1355420240_ef58790257c11bedb1fe64e183545c3c_rle_crop_3780437193_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/d578b24fcdc600ca414bb2c619d43519_50187449.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/627c74db28f0fdbb6802082047a22cb8_93953879.png change filename to text .imagette226151881746204992/ imagette226151881746204992/1746204914_2843862_1355420240_ef58790257c11bedb1fe64e183545c3c_rle_crop_3780437193_0.png.png imagette226151881746204992/1746204853_2843243_1355417897_c2e94224ec1bcb7cda9dc95da42a7bda_rle_crop_3780433937_0.png.png imagette226151881746204992/1746204914_2843862_1355420291_e190322f35ee965fe3db49f9aa1190bb_rle_crop_3780437189_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/bbd797cc95de496d24119ae90bfd190f_5610071.png imagette226151881746204992 22615190 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=22615190 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1355418146: '1746204552_2839974_1355417547_5449f6c0adc045c27b04a97cc0bdfd16_rle_crop_3780428055_0.png', 1355418351: '1746204614_2840702_1355417415_381c71790d16f4462378d12225de7c86_rle_crop_3780430334_0.png', 1355418617: '1746204672_2841383_1355418188_efc73b9b944784f0bcc723e23f371900_rle_crop_3780431838_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/cf012c7713eedaef611a1003c9efadaf_44013804.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/4a4d80b13cc6495cb4c171770a41a888_46343163.png change filename to text .imagette226151901746204993/ imagette226151901746204993/1746204614_2840702_1355417415_381c71790d16f4462378d12225de7c86_rle_crop_3780430334_0.png.png imagette226151901746204993/1746204672_2841383_1355418188_efc73b9b944784f0bcc723e23f371900_rle_crop_3780431838_0.png.png imagette226151901746204993/1746204552_2839974_1355417547_5449f6c0adc045c27b04a97cc0bdfd16_rle_crop_3780428055_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/4ba5850f4f7d734ce2488e177dfcf697_20450839.png imagette226151901746204993 22615191 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=22615191 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1355418379: '1746204614_2840702_1355417470_25b318133be0bf1ee2eb80b04fa060ce_rle_crop_3780430263_0.png', 1355418380: '1746204614_2840702_1355417426_7e46214a90a0f9921b772cdc4795a97b_rle_crop_3780430285_0.png', 1355418381: '1746204614_2840702_1355417423_71d078b41a3fbb18cc9419539abf021b_rle_crop_3780430307_0.png', 1355420497: '1746204853_2843243_1355417897_c2e94224ec1bcb7cda9dc95da42a7bda_rle_crop_3780433932_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/72fec627119b0a95c4f09d08cb5aa88d_87589720.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/5a3440ff5a933a0969ae66b839b51270_5739426.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/a2a6618635bf4c405b869397f46aeaf6_57779040.png change filename to text .imagette226151911746204993/ imagette226151911746204993/1746204853_2843243_1355417897_c2e94224ec1bcb7cda9dc95da42a7bda_rle_crop_3780433932_0.png.png imagette226151911746204993/1746204614_2840702_1355417423_71d078b41a3fbb18cc9419539abf021b_rle_crop_3780430307_0.png.png imagette226151911746204993/1746204614_2840702_1355417470_25b318133be0bf1ee2eb80b04fa060ce_rle_crop_3780430263_0.png.png imagette226151911746204993/1746204614_2840702_1355417426_7e46214a90a0f9921b772cdc4795a97b_rle_crop_3780430285_0.png.png imagette226151921746204993/ imagette226151941746204993/ imagette226151961746204993/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/38d4ad976a3c08fb557fd167c784fc33_88023583.png imagette226151911746204993 22615192 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=22615192 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette226151921746204993 22615194 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=22615194 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette226151941746204993 22615196 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=22615196 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette226151961746204993 22615189 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=22615189 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1355418153: '1746204552_2839974_1355417547_5449f6c0adc045c27b04a97cc0bdfd16_rle_crop_3780428057_0.png', 1355418154: '1746204552_2839974_1355417462_d7a92afb7f6ccf3e3271101237cba026_rle_crop_3780428587_0.png', 1355418366: '1746204614_2840702_1355417470_25b318133be0bf1ee2eb80b04fa060ce_rle_crop_3780430264_0.png', 1355418367: '1746204614_2840702_1355417423_71d078b41a3fbb18cc9419539abf021b_rle_crop_3780430305_0.png', 1355418368: '1746204614_2840702_1355417423_71d078b41a3fbb18cc9419539abf021b_rle_crop_3780430309_0.png', 1355418369: '1746204614_2840702_1355417415_381c71790d16f4462378d12225de7c86_rle_crop_3780430333_0.png', 1355419965: '1746204794_2842641_1355418452_db05ee16d0b0884814ffb19b2e92f8c6_rle_crop_3780433840_0.png', 1355419966: '1746204794_2842641_1355418422_0630f5ed8534c264da4f92503c039514_rle_crop_3780433862_0.png', 1355420491: '1746204853_2843243_1355417897_c2e94224ec1bcb7cda9dc95da42a7bda_rle_crop_3780433939_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/45757cb6aa9c53e1ecda27ca35812358_34637734.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/c18dcb91e95274d0d9b81b8f9099ab65_29556807.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/d2338d17ce9d5ecc5a694abd72dee3f0_16692947.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/aabed1a444fb3840ebede21aa69d2aa9_36898166.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/d6e448e570ae2bf765c3ff8e95238805_91379787.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/e6cfe6ad95168b8c6dc24db8e730944d_81973059.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/f79f838fb086a33ff2e805c528304805_81888220.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/48f36a7dcf1b2c8bf66f564cd85dbfa0_10562842.png change filename to text .imagette226151891746204993/ imagette226151891746204993/1746204552_2839974_1355417462_d7a92afb7f6ccf3e3271101237cba026_rle_crop_3780428587_0.png.png imagette226151891746204993/1746204614_2840702_1355417423_71d078b41a3fbb18cc9419539abf021b_rle_crop_3780430309_0.png.png imagette226151891746204993/1746204853_2843243_1355417897_c2e94224ec1bcb7cda9dc95da42a7bda_rle_crop_3780433939_0.png.png imagette226151891746204993/1746204552_2839974_1355417547_5449f6c0adc045c27b04a97cc0bdfd16_rle_crop_3780428057_0.png.png imagette226151891746204993/1746204614_2840702_1355417423_71d078b41a3fbb18cc9419539abf021b_rle_crop_3780430305_0.png.png imagette226151891746204993/1746204794_2842641_1355418452_db05ee16d0b0884814ffb19b2e92f8c6_rle_crop_3780433840_0.png.png imagette226151891746204993/1746204794_2842641_1355418422_0630f5ed8534c264da4f92503c039514_rle_crop_3780433862_0.png.png imagette226151891746204993/1746204614_2840702_1355417415_381c71790d16f4462378d12225de7c86_rle_crop_3780430333_0.png.png imagette226151891746204993/1746204614_2840702_1355417470_25b318133be0bf1ee2eb80b04fa060ce_rle_crop_3780430264_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/17a0cb14e9a0d2d0fa1b66bdf3a87f9a_85381604.png imagette226151891746204993 22615193 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=22615193 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1355418088: '1746204541_2839807_1355417515_3ec77b5c11c979edb6efa2d3f507ab96_rle_crop_3780427721_0.png', 1355418138: '1746204552_2839974_1355417466_3b5ccb3394b4fc140cdc805b9543f65d_rle_crop_3780428329_0.png', 1355418139: '1746204552_2839974_1355417462_d7a92afb7f6ccf3e3271101237cba026_rle_crop_3780428596_0.png', 1355418342: '1746204614_2840702_1355417420_e414c48e3e5c76615c7ab212d8b88335_rle_crop_3780430326_0.png', 1355418343: '1746204614_2840702_1355417415_381c71790d16f4462378d12225de7c86_rle_crop_3780430347_0.png', 1355418344: '1746204614_2840702_1355417415_381c71790d16f4462378d12225de7c86_rle_crop_3780430343_0.png', 1355418601: '1746204672_2841383_1355418188_efc73b9b944784f0bcc723e23f371900_rle_crop_3780431843_0.png', 1355419251: '1746204731_2842091_1355418200_b44669c0d629ef288421da7927f4abe1_rle_crop_3780433425_0.png', 1355419959: '1746204794_2842641_1355418391_9ce42951d39ae3795e546e06aa287f91_rle_crop_3780433880_0.png', 1355419960: '1746204794_2842641_1355418348_e30be9891383916202dc870b7cfbfb38_rle_crop_3780433891_0.png', 1355420741: '1746204914_2843862_1355420240_ef58790257c11bedb1fe64e183545c3c_rle_crop_3780437197_0.png', 1355420742: '1746204914_2843862_1355420240_ef58790257c11bedb1fe64e183545c3c_rle_crop_3780437199_0.png', 1355420743: '1746204914_2843862_1355420180_56c08454b7b33b3b2f54771fe1d46b27_rle_crop_3780437207_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/c020ef8f56699625569f4b12c97e06e8_90998407.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/0afb2a81905fc708c660b3aea7e7107d_83796728.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/7f54fa7cb9840923bd00a4c2ecd97c34_72080245.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/d527005f8eca67ac07e76d01ad003af4_26531723.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/b647db034511dd7f670ea862de47bcda_63592019.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/67054ff34ca75a62a48a96406baf5224_71222405.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/83e845bc02a0f95058410d4865347704_73945723.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/24fc126497cc1052a3a0d7a3359cd67b_14455306.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/348fa8d3dc96ee33f0ab9220f078c34f_6098947.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/815e7dce6d7090d4ea649cc8ebeb947f_31579171.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/a79872a898b2e7c519e5f58a85551e3c_27737727.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/2a117d7bae60228e8dbcb0e14ed44a8a_94498331.png change filename to text .imagette226151931746204994/ imagette226151931746204994/1746204614_2840702_1355417415_381c71790d16f4462378d12225de7c86_rle_crop_3780430347_0.png.png imagette226151931746204994/1746204672_2841383_1355418188_efc73b9b944784f0bcc723e23f371900_rle_crop_3780431843_0.png.png imagette226151931746204994/1746204914_2843862_1355420240_ef58790257c11bedb1fe64e183545c3c_rle_crop_3780437199_0.png.png imagette226151931746204994/1746204552_2839974_1355417466_3b5ccb3394b4fc140cdc805b9543f65d_rle_crop_3780428329_0.png.png imagette226151931746204994/1746204614_2840702_1355417415_381c71790d16f4462378d12225de7c86_rle_crop_3780430343_0.png.png imagette226151931746204994/1746204794_2842641_1355418348_e30be9891383916202dc870b7cfbfb38_rle_crop_3780433891_0.png.png imagette226151931746204994/1746204552_2839974_1355417462_d7a92afb7f6ccf3e3271101237cba026_rle_crop_3780428596_0.png.png imagette226151931746204994/1746204541_2839807_1355417515_3ec77b5c11c979edb6efa2d3f507ab96_rle_crop_3780427721_0.png.png imagette226151931746204994/1746204614_2840702_1355417420_e414c48e3e5c76615c7ab212d8b88335_rle_crop_3780430326_0.png.png imagette226151931746204994/1746204914_2843862_1355420240_ef58790257c11bedb1fe64e183545c3c_rle_crop_3780437197_0.png.png imagette226151931746204994/1746204914_2843862_1355420180_56c08454b7b33b3b2f54771fe1d46b27_rle_crop_3780437207_0.png.png imagette226151931746204994/1746204731_2842091_1355418200_b44669c0d629ef288421da7927f4abe1_rle_crop_3780433425_0.png.png imagette226151931746204994/1746204794_2842641_1355418391_9ce42951d39ae3795e546e06aa287f91_rle_crop_3780433880_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/f17421b9e6fdfe2efe361469e7a8be3f_56652220.png imagette226151931746204994 22615197 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=22615197 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1355418161: '1746204552_2839974_1355417462_d7a92afb7f6ccf3e3271101237cba026_rle_crop_3780428590_0.png', 1355418388: '1746204614_2840702_1355417426_7e46214a90a0f9921b772cdc4795a97b_rle_crop_3780430289_0.png', 1355418389: '1746204614_2840702_1355417423_71d078b41a3fbb18cc9419539abf021b_rle_crop_3780430306_0.png', 1355419974: '1746204794_2842641_1355418422_0630f5ed8534c264da4f92503c039514_rle_crop_3780433864_0.png', 1355419975: '1746204794_2842641_1355418422_0630f5ed8534c264da4f92503c039514_rle_crop_3780433861_0.png', 1355419976: '1746204794_2842641_1355418348_e30be9891383916202dc870b7cfbfb38_rle_crop_3780433892_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/d0322f43c9825279092583e127d8dd60_24706329.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/d5562d7a304a9f17afed9019197af645_64441954.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/bbe0910c78f9499b54aedda5ffcee7a1_90295607.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/462dddc8f111e9b0d1adc5f9787cebc1_30020468.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/c28cbcf3459e0da18fa6fbf3b6e93dc7_25299204.png change filename to text .imagette226151971746204994/ imagette226151971746204994/1746204614_2840702_1355417423_71d078b41a3fbb18cc9419539abf021b_rle_crop_3780430306_0.png.png imagette226151971746204994/1746204794_2842641_1355418422_0630f5ed8534c264da4f92503c039514_rle_crop_3780433864_0.png.png imagette226151971746204994/1746204614_2840702_1355417426_7e46214a90a0f9921b772cdc4795a97b_rle_crop_3780430289_0.png.png imagette226151971746204994/1746204794_2842641_1355418422_0630f5ed8534c264da4f92503c039514_rle_crop_3780433861_0.png.png imagette226151971746204994/1746204552_2839974_1355417462_d7a92afb7f6ccf3e3271101237cba026_rle_crop_3780428590_0.png.png imagette226151971746204994/1746204794_2842641_1355418348_e30be9891383916202dc870b7cfbfb38_rle_crop_3780433892_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/e7a9d7b17ca61a2b49218bcd872366a4_29807029.png imagette226151971746204994 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22615158 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22615198,22615199,22615200,22615201,22615202,22615203,22615204,22615205,22615206,22615207,22615208,22615209?tags=environnement,kraft,plastique,Carton_gris,autre_refus,cartonnette,mal_croppe,Teint_Dans_La_Masse,metal,papier,flou,Carton_brun your option no_mail is active, we will not send the real mail to your client args[1355420629] : ('0.08993174054761299',) no score found for photo 1355420629 We are sending mail with results at report@fotonower.com args[1355420625] : ('0.08993174054761299',) no score found for photo 1355420625 We are sending mail with results at report@fotonower.com args[1355420621] : ('0.08993174054761299',) no score found for photo 1355420621 We are sending mail with results at report@fotonower.com args[1355420618] : ('0.08993174054761299',) no score found for photo 1355420618 We are sending mail with results at report@fotonower.com refus_total : 0.08993174054761299 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=22615158 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_P22615158_02-05-2025_18_56_32.pdf results_Auto_P22615158_02-05-2025_18_56_32.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22615158_02-05-2025_18_56_32.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','22615158','results_Auto_P22615158_02-05-2025_18_56_32.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22615158_02-05-2025_18_56_32.pdf','pdf','','0.25','0.08993174054761299') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22615158]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1355420629, 1355420625, 1355420621, 1355420618] map_info['map_portfolio_photo'] : {22615158: [1355420629, 1355420625, 1355420621, 1355420618, 1355420392, 1355420343, 1355420291, 1355420240, 1355420180, 1355419665, 1355419595, 1355419533, 1355419059, 1355419029, 1355418984, 1355418917, 1355418851, 1355418777, 1355418481, 1355418452, 1355418422, 1355418391, 1355418348, 1355418200, 1355418191, 1355418188, 1355417897, 1355417848, 1355417547, 1355417533, 1355417515, 1355417511, 1355417470, 1355417466, 1355417462, 1355417426, 1355417423, 1355417420, 1355417415]} final : False mtd_id 4302 list_pids : [1355420629, 1355420625, 1355420621, 1355420618] 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, '2784731') ('4302', '22615158', '1355420629', None, None, None, None, None, '2784731') ('4302', None, None, None, None, None, None, None, '2784731') ('4302', '22615158', '1355420625', None, None, None, None, None, '2784731') ('4302', None, None, None, None, None, None, None, '2784731') ('4302', '22615158', '1355420621', None, None, None, None, None, '2784731') ('4302', None, None, None, None, None, None, None, '2784731') ('4302', '22615158', '1355420618', None, None, None, None, None, '2784731') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 4 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22615158', '1355420629', None, None, None, None, None, '2784731'), ('4302', '22615158', '1355420625', None, None, None, None, None, '2784731'), ('4302', '22615158', '1355420621', None, None, None, None, None, '2784731'), ('4302', '22615158', '1355420618', None, None, None, None, None, '2784731')] time used for this insertion : 0.012516498565673828 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.126091003417969 time spend to save output : 0.012788534164428711 total time spend for step 4 : 4.1388795375823975 step5:split_time_score Fri May 2 18:56:36 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 : ['22615158'] 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 : [('22615158',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22615158) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1355420621: {'path': 'temp/1746204992_2784473_1355420621_31b11aea166b45e688aa86eca0e68dbc.jpg', 'extension': 'jpg'}, 1355420618: {'path': 'temp/1746204992_2784473_1355420618_c10907a013ac9a6dbe00c2afc60ae1bd.jpg', 'extension': 'jpg'}, 1355420625: {'path': 'temp/1746204992_2784473_1355420625_216001cd37614f2eb46d10a8f862dafe.jpg', 'extension': 'jpg'}, 1355420629: {'path': 'temp/1746204992_2784473_1355420629_4f199e62518d481942877b098b86ca8b.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 = 22615158; (('arc_en_ciel_jrm_live',), ('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 = 22615158 group by h (('18', 39),) 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=22615158 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 (22615158) 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 (22615158) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 02052025 22615158 Nombre de photos uploadées : 39 / 23040 (0%) 02052025 22615158 Nombre de photos taguées (types de déchets): 0 / 39 (0%) 02052025 22615158 Nombre de photos taguées (volume) : 0 / 39 (0%) [{'photo_id': 1355417426, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/7e46214a90a0f9921b772cdc4795a97b.jpg', 'username': None, 'uploaded_at': 1746204368, 'text': 'image_02052025_18_45_03_009129m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1355417423, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/71d078b41a3fbb18cc9419539abf021b.jpg', 'username': None, 'uploaded_at': 1746204368, 'text': 'image_02052025_18_45_13_010139m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1355417420, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/e414c48e3e5c76615c7ab212d8b88335.jpg', 'username': None, 'uploaded_at': 1746204368, 'text': 'image_02052025_18_45_34_010138m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1355417415, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/381c71790d16f4462378d12225de7c86.jpg', 'username': None, 'uploaded_at': 1746204368, 'text': 'image_02052025_18_45_44_010139m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.1457672119140625e-06 elapsed_time : order_list_meta_photo_and_scores 6.198883056640625e-06 ??????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0018124580383300781 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22615158, '2025-05-02' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1765550,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02848076820373535 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= 1765550 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1765550, 'dashboard_run_id': 1776132, 'mtr_portfolio_id': 22613023, 'dashboard_result_id': 10250074, '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_P22613023_02-05-2025_18_18_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22613024, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22613025, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22613026, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22613027, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22613028, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22613029, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22613030, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22613031, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22613032, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22613033, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22613034, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22613035, 'pht': 3726}}"}, {'dashboat_entry_day': 1765550, 'dashboard_run_id': 1776132, 'mtr_portfolio_id': 22613686, 'dashboard_result_id': 10250075, '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_P22613686_02-05-2025_18_33_03.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22613770, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22613771, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22613772, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22613773, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22613774, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22613775, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22613776, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22613777, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22613778, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22613779, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22613780, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22613781, 'pht': 3726}}"}, {'dashboat_entry_day': 1765550, 'dashboard_run_id': 1776132, 'mtr_portfolio_id': 22614349, 'dashboard_result_id': 10250076, '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_P22614349_02-05-2025_18_49_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22614374, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22614375, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22614376, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22614377, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22614378, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22614379, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22614380, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22614381, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22614382, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22614383, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22614384, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22614385, 'pht': 3726}}"}, {'dashboat_entry_day': 1765550, 'dashboard_run_id': 1776132, 'mtr_portfolio_id': 22615158, 'dashboard_result_id': 10250077, '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_P22615158_02-05-2025_18_54_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22615186, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22615187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22615188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22615189, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22615190, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22615191, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22615192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22615193, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22615194, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22615195, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22615196, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22615197, '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 = 22613023 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': 2784517, 'mtr_portfolio_id': 22613023, 'created_at': datetime.datetime(2025, 5, 2, 18, 18, 58), 'result': '0.057913960095635965', 'result_long': None, 'result_double': None}] Qualite : 0.057913960095635965 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22613023 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22613023_02-05-2025_18_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22613023 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_P22613023_02-05-2025_18_18_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22613024, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22613025, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22613026, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22613027, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22613028, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22613029, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22613030, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22613031, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22613032, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22613033, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22613034, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22613035, 'pht': 3726}}" where mtr_portfolio_id = 22613023 and dashboard_run_id = 1776132 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`=22613023 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10250074, 0.057913960095635965, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22613023_02-05-2025_18_18_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22613024, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22613025, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22613026, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22613027, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22613028, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22613029, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22613030, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22613031, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22613032, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22613033, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22613034, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22613035, '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 = 22613686 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': 2784579, 'mtr_portfolio_id': 22613686, 'created_at': datetime.datetime(2025, 5, 2, 18, 32, 59), 'result': '0.05084133045107916', 'result_long': None, 'result_double': None}] Qualite : 0.05084133045107916 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22613686 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22613686_02-05-2025_18_33_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22613686 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_P22613686_02-05-2025_18_33_03.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22613770, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22613771, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22613772, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22613773, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22613774, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22613775, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22613776, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22613777, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22613778, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22613779, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22613780, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22613781, 'pht': 3726}}" where mtr_portfolio_id = 22613686 and dashboard_run_id = 1776132 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`=22613686 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10250075, 0.05084133045107916, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22613686_02-05-2025_18_33_03.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22613770, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22613771, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22613772, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22613773, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22613774, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22613775, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22613776, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22613777, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22613778, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22613779, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22613780, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22613781, '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 = 22614349 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': 2784648, 'mtr_portfolio_id': 22614349, 'created_at': datetime.datetime(2025, 5, 2, 18, 49, 31), 'result': '0.052903316785992194', 'result_long': None, 'result_double': None}] Qualite : 0.052903316785992194 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22614349 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22614349_02-05-2025_18_49_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22614349 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_P22614349_02-05-2025_18_49_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22614374, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22614375, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22614376, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22614377, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22614378, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22614379, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22614380, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22614381, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22614382, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22614383, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22614384, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22614385, 'pht': 3726}}" where mtr_portfolio_id = 22614349 and dashboard_run_id = 1776132 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`=22614349 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10250076, 0.052903316785992194, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22614349_02-05-2025_18_49_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22614374, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22614375, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22614376, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22614377, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22614378, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22614379, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22614380, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22614381, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22614382, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22614383, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22614384, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22614385, '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 = 22615158 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': 2784731, 'mtr_portfolio_id': 22615158, 'created_at': datetime.datetime(2025, 5, 2, 18, 56, 31), 'result': '0.08993174054761299', 'result_long': None, 'result_double': None}] Qualite : 0.08993174054761299 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22615158 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22615158_02-05-2025_18_56_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22615158 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_P22615158_02-05-2025_18_56_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22615186, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22615187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22615188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22615189, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22615190, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22615191, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22615192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22615193, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22615194, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22615195, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22615196, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22615197, 'pht': 3726}}" where mtr_portfolio_id = 22615158 and dashboard_run_id = 1776132 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`=22615158 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10250077, 0.08993174054761299, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22615158_02-05-2025_18_56_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22615186, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22615187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22615188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22615189, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22615190, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22615191, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22615192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22615193, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22615194, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22615195, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22615196, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22615197, '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 (22613023,22613686,22614349,22615158) result : ((1355404953,), (1355404959,), (1355405041,), (1355405070,), (1355405096,), (1355405122,), (1355405162,), (1355405211,), (1355405353,), (1355405433,), (1355405724,), (1355405726,), (1355405729,), (1355405733,), (1355405882,), (1355405888,), (1355405904,), (1355405907,), (1355405932,), (1355406042,), (1355406072,), (1355406083,), (1355406255,), (1355406258,), (1355406260,), (1355406264,), (1355406279,), (1355406289,), (1355406351,), (1355406356,), (1355406402,), (1355406404,), (1355406427,), (1355406430,), (1355406617,), (1355406647,), (1355406700,), (1355406883,), (1355406920,), (1355406922,), (1355406925,), (1355407390,), (1355407446,), (1355407674,), (1355408122,), (1355408166,), (1355408197,), (1355408206,), (1355408525,), (1355408464,), (1355408513,), (1355408907,), (1355408951,), (1355408960,), (1355408994,), (1355409607,), (1355409638,), (1355409682,), (1355409709,), (1355409926,), (1355409929,), (1355409936,), (1355409941,), (1355409973,), (1355410006,), (1355410244,), (1355410261,), (1355410265,), (1355410270,), (1355410310,), (1355410312,), (1355410316,), (1355410357,), (1355410359,), (1355410362,), (1355410366,), (1355410425,), (1355410427,), (1355410430,), (1355410433,), (1355410746,), (1355411513,), (1355411543,), (1355411611,), (1355411927,), (1355411981,), (1355412175,), (1355412407,), (1355412533,), (1355412754,), (1355412905,), (1355412990,), (1355413076,), (1355413090,), (1355413095,), (1355413118,), (1355413149,), (1355413191,), (1355413229,), (1355413254,), (1355413266,), (1355413270,), (1355413371,), (1355413378,), (1355413390,), (1355413394,), (1355413717,), (1355413566,), (1355413570,), (1355413797,), (1355413801,), (1355413803,), (1355414066,), (1355414107,), (1355414141,), (1355414174,), (1355414317,), (1355414321,), (1355414347,), (1355414746,), (1355414776,), (1355414840,), (1355415069,), (1355415085,), (1355415094,), (1355415099,), (1355415103,), (1355415235,), (1355415550,), (1355415599,), (1355415633,), (1355415730,), (1355415975,), (1355416005,), (1355416037,), (1355416071,), (1355416101,), (1355416409,), (1355416442,), (1355416902,), (1355416934,), (1355416988,), (1355417308,), (1355417345,), (1355417366,), (1355417372,), (1355417432,), (1355417415,), (1355417420,), (1355417423,), (1355417426,), (1355417462,), (1355417466,), (1355417470,), (1355417511,), (1355417515,), (1355417533,), (1355417547,), (1355417848,), (1355417897,), (1355418188,), (1355418191,), (1355418200,), (1355418348,), (1355418391,), (1355418422,), (1355418452,), (1355418481,), (1355418777,), (1355418851,), (1355418917,), (1355418984,), (1355419029,), (1355419059,), (1355419533,), (1355419595,), (1355419665,), (1355420180,), (1355420240,), (1355420291,), (1355420343,), (1355420392,), (1355420618,), (1355420621,), (1355420625,), (1355420629,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'02052025': {'nb_upload': 39, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22615158]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1355420629, 1355420625, 1355420621, 1355420618] map_info['map_portfolio_photo'] : {22615158: [1355420629, 1355420625, 1355420621, 1355420618, 1355420392, 1355420343, 1355420291, 1355420240, 1355420180, 1355419665, 1355419595, 1355419533, 1355419059, 1355419029, 1355418984, 1355418917, 1355418851, 1355418777, 1355418481, 1355418452, 1355418422, 1355418391, 1355418348, 1355418200, 1355418191, 1355418188, 1355417897, 1355417848, 1355417547, 1355417533, 1355417515, 1355417511, 1355417470, 1355417466, 1355417462, 1355417426, 1355417423, 1355417420, 1355417415]} final : True mtd_id 4302 list_pids : [1355420629, 1355420625, 1355420621, 1355420618] Looping around the photos to save general results len do output : 1 /22615158Didn'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, '2784731') ('4302', '22615158', '1355420629', None, None, None, None, None, '2784731') ('4302', None, None, None, None, None, None, None, '2784731') ('4302', '22615158', '1355420625', None, None, None, None, None, '2784731') ('4302', None, None, None, None, None, None, None, '2784731') ('4302', '22615158', '1355420621', None, None, None, None, None, '2784731') ('4302', None, None, None, None, None, None, None, '2784731') ('4302', '22615158', '1355420618', None, None, None, None, None, '2784731') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 5 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, '22615158', 'None', None, None, None, None, '2784731'), ('4302', '22615158', '1355420629', None, None, None, None, None, '2784731'), ('4302', '22615158', '1355420625', None, None, None, None, None, '2784731'), ('4302', '22615158', '1355420621', None, None, None, None, None, '2784731'), ('4302', '22615158', '1355420618', None, None, None, None, None, '2784731')] time used for this insertion : 0.012982368469238281 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.345120906829834 time spend to save output : 0.013161420822143555 total time spend for step 5 : 0.35828232765197754 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 (2784731) 2.57user 2.38system 0:11.15elapsed 44%CPU (0avgtext+0avgdata 160840maxresident)k 108568inputs+12488outputs (506major+87906minor)pagefaults 0swaps