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 : 1484338 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 (4142737) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4142737) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29035848 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4142737'] with mtr_portfolio_ids : ['29035848'] and first list_photo_ids : [] new path : /proc/1484338/ Name: python3 Umask: 0002 State: R (running) Tgid: 1484338 Ngid: 0 Pid: 1484338 PPid: 1484337 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1484338 NSpid: 1484338 NSpgid: 1483813 NSsid: 1483813 VmPeak: 1113408 kB VmSize: 1113388 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 105244 kB VmRSS: 105244 kB RssAnon: 66368 kB RssFile: 38876 kB RssShmem: 0 kB VmData: 872116 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 584 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 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: 41 nonvoluntary_ctxt_switches: 141 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1484338', 'Ngid': '0', 'Pid': '1484338', 'PPid': '1484337', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1484338', 'NSpid': '1484338', 'NSpgid': '1483813', 'NSsid': '1483813', 'VmPeak': '1113408 kB', 'VmSize': '1113388 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '105244 kB', 'VmRSS': '105244 kB', 'RssAnon': '66368 kB', 'RssFile': '38876 kB', 'RssShmem': '0 kB', 'VmData': '872116 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '584 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', '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': '41', 'nonvoluntary_ctxt_switches': '141'} ('datou_batch_current', '1484338', '1113408', '0', '1113388', '872116', '105244', b'', 'marlene', '4142737') 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_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (29035848) 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 (4142737 ) ) 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 (29035848) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1397159546, 'portfolio_id': 29035848}, {'photo_id': 1397159544, 'portfolio_id': 29035848}, {'photo_id': 1397159542, 'portfolio_id': 29035848}, {'photo_id': 1397159541, 'portfolio_id': 29035848}, {'photo_id': 1397159518, 'portfolio_id': 29035848}, {'photo_id': 1397159515, 'portfolio_id': 29035848}, {'photo_id': 1397159512, 'portfolio_id': 29035848}, {'photo_id': 1397159510, 'portfolio_id': 29035848}, {'photo_id': 1397159508, 'portfolio_id': 29035848}, {'photo_id': 1397159507, 'portfolio_id': 29035848}, {'photo_id': 1397159499, 'portfolio_id': 29035848}, {'photo_id': 1397159497, 'portfolio_id': 29035848}, {'photo_id': 1397159495, 'portfolio_id': 29035848}, {'photo_id': 1397159493, 'portfolio_id': 29035848}, {'photo_id': 1397159491, 'portfolio_id': 29035848}, {'photo_id': 1397159473, 'portfolio_id': 29035848}, {'photo_id': 1397159470, 'portfolio_id': 29035848}, {'photo_id': 1397159468, 'portfolio_id': 29035848}, {'photo_id': 1397159465, 'portfolio_id': 29035848}, {'photo_id': 1397159458, 'portfolio_id': 29035848}, {'photo_id': 1397159456, 'portfolio_id': 29035848}, {'photo_id': 1397159454, 'portfolio_id': 29035848}, {'photo_id': 1397159453, 'portfolio_id': 29035848}, {'photo_id': 1397159452, 'portfolio_id': 29035848}, {'photo_id': 1397159451, 'portfolio_id': 29035848}, {'photo_id': 1397159425, 'portfolio_id': 29035848}, {'photo_id': 1397159423, 'portfolio_id': 29035848}, {'photo_id': 1397159421, 'portfolio_id': 29035848}, {'photo_id': 1397159420, 'portfolio_id': 29035848}, {'photo_id': 1397159412, 'portfolio_id': 29035848}, {'photo_id': 1397159411, 'portfolio_id': 29035848}, {'photo_id': 1397159410, 'portfolio_id': 29035848}, {'photo_id': 1397159409, 'portfolio_id': 29035848}, {'photo_id': 1397159407, 'portfolio_id': 29035848}, {'photo_id': 1397159406, 'portfolio_id': 29035848}, {'photo_id': 1397159385, 'portfolio_id': 29035848}, {'photo_id': 1397159383, 'portfolio_id': 29035848}, {'photo_id': 1397159381, 'portfolio_id': 29035848}, {'photo_id': 1397159378, 'portfolio_id': 29035848}, {'photo_id': 1397159375, 'portfolio_id': 29035848}, {'photo_id': 1397159372, 'portfolio_id': 29035848}, {'photo_id': 1397159357, 'portfolio_id': 29035848}, {'photo_id': 1397159355, 'portfolio_id': 29035848}] map_portfolio_id_photo_id: {29035848: [1397159546, 1397159544, 1397159542, 1397159541, 1397159518, 1397159515, 1397159512, 1397159510, 1397159508, 1397159507, 1397159499, 1397159497, 1397159495, 1397159493, 1397159491, 1397159473, 1397159470, 1397159468, 1397159465, 1397159458, 1397159456, 1397159454, 1397159453, 1397159452, 1397159451, 1397159425, 1397159423, 1397159421, 1397159420, 1397159412, 1397159411, 1397159410, 1397159409, 1397159407, 1397159406, 1397159385, 1397159383, 1397159381, 1397159378, 1397159375, 1397159372, 1397159357, 1397159355]} ##### 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.02030491828918457 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Mon Dec 1 05:54:29 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 (29035848) 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 : 29035848 get user id for portfolio 29035848 get sub ptf for main ptf 29035848, type 3726 and hashtags ['Teint_Dans_La_Masse', 'Carton_gris', 'cartonnette', 'kraft', 'papier', 'environnement', 'plastique', 'metal', 'mal_croppe', 'flou', 'autre_refus', 'Carton_brun'] 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`=29035848 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','Carton_gris','cartonnette','kraft','papier','environnement','plastique','metal','mal_croppe','flou','autre_refus','Carton_brun')) 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`=29035848 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','Carton_gris','cartonnette','kraft','papier','environnement','plastique','metal','mal_croppe','flou','autre_refus','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 29035848, 'sub_port_id': 29035852, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19732920, 'last_updated_at': datetime.datetime(2025, 12, 1, 5, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 5, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 5, 49, 28)}, 'kraft': {'main_port_id': 29035848, 'sub_port_id': 29035853, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19732921, 'last_updated_at': datetime.datetime(2025, 12, 1, 5, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 5, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 5, 49, 28)}, 'flou': {'main_port_id': 29035848, 'sub_port_id': 29035854, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19732922, 'last_updated_at': datetime.datetime(2025, 12, 1, 5, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 5, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 5, 49, 28)}, 'plastique': {'main_port_id': 29035848, 'sub_port_id': 29035855, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19732923, 'last_updated_at': datetime.datetime(2025, 12, 1, 5, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 5, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 5, 49, 28)}, 'metal': {'main_port_id': 29035848, 'sub_port_id': 29035856, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19732924, 'last_updated_at': datetime.datetime(2025, 12, 1, 5, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 5, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 5, 49, 28)}, 'cartonnette': {'main_port_id': 29035848, 'sub_port_id': 29035857, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19732925, 'last_updated_at': datetime.datetime(2025, 12, 1, 5, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 5, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 5, 49, 28)}, 'mal_croppe': {'main_port_id': 29035848, 'sub_port_id': 29035858, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19732926, 'last_updated_at': datetime.datetime(2025, 12, 1, 5, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 5, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 5, 49, 28)}, 'papier': {'main_port_id': 29035848, 'sub_port_id': 29035859, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19732927, 'last_updated_at': datetime.datetime(2025, 12, 1, 5, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 5, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 5, 49, 28)}, 'autre_refus': {'main_port_id': 29035848, 'sub_port_id': 29035860, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19732928, 'last_updated_at': datetime.datetime(2025, 12, 1, 5, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 5, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 5, 49, 28)}, 'Carton_gris': {'main_port_id': 29035848, 'sub_port_id': 29035861, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19732929, 'last_updated_at': datetime.datetime(2025, 12, 1, 5, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 5, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 5, 49, 28)}, 'environnement': {'main_port_id': 29035848, 'sub_port_id': 29035862, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19732930, 'last_updated_at': datetime.datetime(2025, 12, 1, 5, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 5, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 5, 49, 28)}, 'Carton_brun': {'main_port_id': 29035848, 'sub_port_id': 29035863, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19732931, 'last_updated_at': datetime.datetime(2025, 12, 1, 5, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 5, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 5, 49, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29035852 , 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=29035848 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 (29035852) result : ((1397159438,), (1397159439,), (1397159440,), (1397159441,), (1397159476,), (1397159477,), (1397159522,), (1397159523,), (1397159524,), (1397159533,), (1397159534,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29035848) result : ((1397159355,), (1397159357,), (1397159372,), (1397159375,), (1397159378,), (1397159381,), (1397159383,), (1397159385,), (1397159406,), (1397159407,), (1397159409,), (1397159410,), (1397159411,), (1397159412,), (1397159420,), (1397159421,), (1397159423,), (1397159425,), (1397159451,), (1397159452,), (1397159453,), (1397159454,), (1397159456,), (1397159458,), (1397159465,), (1397159468,), (1397159470,), (1397159473,), (1397159491,), (1397159493,), (1397159495,), (1397159497,), (1397159499,), (1397159507,), (1397159508,), (1397159510,), (1397159512,), (1397159515,), (1397159518,), (1397159541,), (1397159542,), (1397159544,), (1397159546,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29035853 , 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=29035848 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 (29035853) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29035848) result : ((1397159355,), (1397159357,), (1397159372,), (1397159375,), (1397159378,), (1397159381,), (1397159383,), (1397159385,), (1397159406,), (1397159407,), (1397159409,), (1397159410,), (1397159411,), (1397159412,), (1397159420,), (1397159421,), (1397159423,), (1397159425,), (1397159451,), (1397159452,), (1397159453,), (1397159454,), (1397159456,), (1397159458,), (1397159465,), (1397159468,), (1397159470,), (1397159473,), (1397159491,), (1397159493,), (1397159495,), (1397159497,), (1397159499,), (1397159507,), (1397159508,), (1397159510,), (1397159512,), (1397159515,), (1397159518,), (1397159541,), (1397159542,), (1397159544,), (1397159546,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29035854 , 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=29035848 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 (29035854) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29035848) result : ((1397159355,), (1397159357,), (1397159372,), (1397159375,), (1397159378,), (1397159381,), (1397159383,), (1397159385,), (1397159406,), (1397159407,), (1397159409,), (1397159410,), (1397159411,), (1397159412,), (1397159420,), (1397159421,), (1397159423,), (1397159425,), (1397159451,), (1397159452,), (1397159453,), (1397159454,), (1397159456,), (1397159458,), (1397159465,), (1397159468,), (1397159470,), (1397159473,), (1397159491,), (1397159493,), (1397159495,), (1397159497,), (1397159499,), (1397159507,), (1397159508,), (1397159510,), (1397159512,), (1397159515,), (1397159518,), (1397159541,), (1397159542,), (1397159544,), (1397159546,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29035855 , 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=29035848 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 (29035855) result : ((1397159531,), (1397159540,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29035848) result : ((1397159355,), (1397159357,), (1397159372,), (1397159375,), (1397159378,), (1397159381,), (1397159383,), (1397159385,), (1397159406,), (1397159407,), (1397159409,), (1397159410,), (1397159411,), (1397159412,), (1397159420,), (1397159421,), (1397159423,), (1397159425,), (1397159451,), (1397159452,), (1397159453,), (1397159454,), (1397159456,), (1397159458,), (1397159465,), (1397159468,), (1397159470,), (1397159473,), (1397159491,), (1397159493,), (1397159495,), (1397159497,), (1397159499,), (1397159507,), (1397159508,), (1397159510,), (1397159512,), (1397159515,), (1397159518,), (1397159541,), (1397159542,), (1397159544,), (1397159546,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29035856 , 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=29035848 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 (29035856) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29035848) result : ((1397159355,), (1397159357,), (1397159372,), (1397159375,), (1397159378,), (1397159381,), (1397159383,), (1397159385,), (1397159406,), (1397159407,), (1397159409,), (1397159410,), (1397159411,), (1397159412,), (1397159420,), (1397159421,), (1397159423,), (1397159425,), (1397159451,), (1397159452,), (1397159453,), (1397159454,), (1397159456,), (1397159458,), (1397159465,), (1397159468,), (1397159470,), (1397159473,), (1397159491,), (1397159493,), (1397159495,), (1397159497,), (1397159499,), (1397159507,), (1397159508,), (1397159510,), (1397159512,), (1397159515,), (1397159518,), (1397159541,), (1397159542,), (1397159544,), (1397159546,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29035857 , 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=29035848 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 (29035857) result : ((1397159446,), (1397159447,), (1397159448,), (1397159449,), (1397159450,), (1397159526,), (1397159527,), (1397159528,), (1397159529,), (1397159538,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29035848) result : ((1397159355,), (1397159357,), (1397159372,), (1397159375,), (1397159378,), (1397159381,), (1397159383,), (1397159385,), (1397159406,), (1397159407,), (1397159409,), (1397159410,), (1397159411,), (1397159412,), (1397159420,), (1397159421,), (1397159423,), (1397159425,), (1397159451,), (1397159452,), (1397159453,), (1397159454,), (1397159456,), (1397159458,), (1397159465,), (1397159468,), (1397159470,), (1397159473,), (1397159491,), (1397159493,), (1397159495,), (1397159497,), (1397159499,), (1397159507,), (1397159508,), (1397159510,), (1397159512,), (1397159515,), (1397159518,), (1397159541,), (1397159542,), (1397159544,), (1397159546,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29035858 , 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=29035848 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 (29035858) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29035848) result : ((1397159355,), (1397159357,), (1397159372,), (1397159375,), (1397159378,), (1397159381,), (1397159383,), (1397159385,), (1397159406,), (1397159407,), (1397159409,), (1397159410,), (1397159411,), (1397159412,), (1397159420,), (1397159421,), (1397159423,), (1397159425,), (1397159451,), (1397159452,), (1397159453,), (1397159454,), (1397159456,), (1397159458,), (1397159465,), (1397159468,), (1397159470,), (1397159473,), (1397159491,), (1397159493,), (1397159495,), (1397159497,), (1397159499,), (1397159507,), (1397159508,), (1397159510,), (1397159512,), (1397159515,), (1397159518,), (1397159541,), (1397159542,), (1397159544,), (1397159546,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29035859 , 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=29035848 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 (29035859) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29035848) result : ((1397159355,), (1397159357,), (1397159372,), (1397159375,), (1397159378,), (1397159381,), (1397159383,), (1397159385,), (1397159406,), (1397159407,), (1397159409,), (1397159410,), (1397159411,), (1397159412,), (1397159420,), (1397159421,), (1397159423,), (1397159425,), (1397159451,), (1397159452,), (1397159453,), (1397159454,), (1397159456,), (1397159458,), (1397159465,), (1397159468,), (1397159470,), (1397159473,), (1397159491,), (1397159493,), (1397159495,), (1397159497,), (1397159499,), (1397159507,), (1397159508,), (1397159510,), (1397159512,), (1397159515,), (1397159518,), (1397159541,), (1397159542,), (1397159544,), (1397159546,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29035860 , 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=29035848 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 (29035860) result : ((1397159442,), (1397159478,), (1397159483,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29035848) result : ((1397159355,), (1397159357,), (1397159372,), (1397159375,), (1397159378,), (1397159381,), (1397159383,), (1397159385,), (1397159406,), (1397159407,), (1397159409,), (1397159410,), (1397159411,), (1397159412,), (1397159420,), (1397159421,), (1397159423,), (1397159425,), (1397159451,), (1397159452,), (1397159453,), (1397159454,), (1397159456,), (1397159458,), (1397159465,), (1397159468,), (1397159470,), (1397159473,), (1397159491,), (1397159493,), (1397159495,), (1397159497,), (1397159499,), (1397159507,), (1397159508,), (1397159510,), (1397159512,), (1397159515,), (1397159518,), (1397159541,), (1397159542,), (1397159544,), (1397159546,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29035861 , 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=29035848 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 (29035861) result : ((1397159443,), (1397159444,), (1397159445,), (1397159479,), (1397159485,), (1397159486,), (1397159535,), (1397159536,), (1397159537,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29035848) result : ((1397159355,), (1397159357,), (1397159372,), (1397159375,), (1397159378,), (1397159381,), (1397159383,), (1397159385,), (1397159406,), (1397159407,), (1397159409,), (1397159410,), (1397159411,), (1397159412,), (1397159420,), (1397159421,), (1397159423,), (1397159425,), (1397159451,), (1397159452,), (1397159453,), (1397159454,), (1397159456,), (1397159458,), (1397159465,), (1397159468,), (1397159470,), (1397159473,), (1397159491,), (1397159493,), (1397159495,), (1397159497,), (1397159499,), (1397159507,), (1397159508,), (1397159510,), (1397159512,), (1397159515,), (1397159518,), (1397159541,), (1397159542,), (1397159544,), (1397159546,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29035862 , 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=29035848 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 (29035862) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29035848) result : ((1397159355,), (1397159357,), (1397159372,), (1397159375,), (1397159378,), (1397159381,), (1397159383,), (1397159385,), (1397159406,), (1397159407,), (1397159409,), (1397159410,), (1397159411,), (1397159412,), (1397159420,), (1397159421,), (1397159423,), (1397159425,), (1397159451,), (1397159452,), (1397159453,), (1397159454,), (1397159456,), (1397159458,), (1397159465,), (1397159468,), (1397159470,), (1397159473,), (1397159491,), (1397159493,), (1397159495,), (1397159497,), (1397159499,), (1397159507,), (1397159508,), (1397159510,), (1397159512,), (1397159515,), (1397159518,), (1397159541,), (1397159542,), (1397159544,), (1397159546,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29035863 , 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=29035848 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 (29035863) result : ((1397159480,), (1397159530,), (1397159539,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29035848) result : ((1397159355,), (1397159357,), (1397159372,), (1397159375,), (1397159378,), (1397159381,), (1397159383,), (1397159385,), (1397159406,), (1397159407,), (1397159409,), (1397159410,), (1397159411,), (1397159412,), (1397159420,), (1397159421,), (1397159423,), (1397159425,), (1397159451,), (1397159452,), (1397159453,), (1397159454,), (1397159456,), (1397159458,), (1397159465,), (1397159468,), (1397159470,), (1397159473,), (1397159491,), (1397159493,), (1397159495,), (1397159497,), (1397159499,), (1397159507,), (1397159508,), (1397159510,), (1397159512,), (1397159515,), (1397159518,), (1397159541,), (1397159542,), (1397159544,), (1397159546,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") 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`=29035848 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','Carton_gris','cartonnette','kraft','papier','environnement','plastique','metal','mal_croppe','flou','autre_refus','Carton_brun')) 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`=29035848 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','Carton_gris','cartonnette','kraft','papier','environnement','plastique','metal','mal_croppe','flou','autre_refus','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 29035848, 'sub_port_id': 29035864, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19732932, 'last_updated_at': datetime.datetime(2025, 12, 1, 5, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 5, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 5, 49, 30)}, 'kraft': {'main_port_id': 29035848, 'sub_port_id': 29035865, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19732933, 'last_updated_at': datetime.datetime(2025, 12, 1, 5, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 5, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 5, 49, 30)}, 'flou': {'main_port_id': 29035848, 'sub_port_id': 29035866, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19732934, 'last_updated_at': datetime.datetime(2025, 12, 1, 5, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 5, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 5, 49, 30)}, 'plastique': {'main_port_id': 29035848, 'sub_port_id': 29035867, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19732935, 'last_updated_at': datetime.datetime(2025, 12, 1, 5, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 5, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 5, 49, 30)}, 'metal': {'main_port_id': 29035848, 'sub_port_id': 29035868, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19732936, 'last_updated_at': datetime.datetime(2025, 12, 1, 5, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 5, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 5, 49, 30)}, 'cartonnette': {'main_port_id': 29035848, 'sub_port_id': 29035869, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19732937, 'last_updated_at': datetime.datetime(2025, 12, 1, 5, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 5, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 5, 49, 30)}, 'mal_croppe': {'main_port_id': 29035848, 'sub_port_id': 29035870, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19732938, 'last_updated_at': datetime.datetime(2025, 12, 1, 5, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 5, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 5, 49, 30)}, 'papier': {'main_port_id': 29035848, 'sub_port_id': 29035871, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19732939, 'last_updated_at': datetime.datetime(2025, 12, 1, 5, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 5, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 5, 49, 30)}, 'autre_refus': {'main_port_id': 29035848, 'sub_port_id': 29035872, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19732940, 'last_updated_at': datetime.datetime(2025, 12, 1, 5, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 5, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 5, 49, 30)}, 'Carton_gris': {'main_port_id': 29035848, 'sub_port_id': 29035873, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19732941, 'last_updated_at': datetime.datetime(2025, 12, 1, 5, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 5, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 5, 49, 30)}, 'environnement': {'main_port_id': 29035848, 'sub_port_id': 29035874, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19732942, 'last_updated_at': datetime.datetime(2025, 12, 1, 5, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 5, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 5, 49, 30)}, 'Carton_brun': {'main_port_id': 29035848, 'sub_port_id': 29035875, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19732943, 'last_updated_at': datetime.datetime(2025, 12, 1, 5, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 5, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 5, 49, 30)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29035864,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29035852 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29035865,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29035853 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29035866,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29035854 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29035867,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29035855 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29035868,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29035856 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29035869,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29035857 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29035870,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29035858 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29035871,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29035859 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29035872,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29035860 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29035873,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29035861 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29035874,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29035862 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29035875,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29035863 lien utilise dans velours : https://marlene.fotonower.com/velours/29035864,29035865,29035866,29035867,29035868,29035869,29035870,29035871,29035872,29035873,29035874,29035875?tags=Teint_Dans_La_Masse,kraft,flou,plastique,metal,cartonnette,mal_croppe,papier,autre_refus,Carton_gris,environnement,Carton_brun After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29035848]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1397159546, 1397159544, 1397159542, 1397159541, 1397159518, 1397159515, 1397159512, 1397159510, 1397159508, 1397159507, 1397159499, 1397159497, 1397159495, 1397159493, 1397159491] map_info['map_portfolio_photo'] : {29035848: [1397159546, 1397159544, 1397159542, 1397159541, 1397159518, 1397159515, 1397159512, 1397159510, 1397159508, 1397159507, 1397159499, 1397159497, 1397159495, 1397159493, 1397159491, 1397159473, 1397159470, 1397159468, 1397159465, 1397159458, 1397159456, 1397159454, 1397159453, 1397159452, 1397159451, 1397159425, 1397159423, 1397159421, 1397159420, 1397159412, 1397159411, 1397159410, 1397159409, 1397159407, 1397159406, 1397159385, 1397159383, 1397159381, 1397159378, 1397159375, 1397159372, 1397159357, 1397159355]} final : False mtd_id 4302 list_pids : [1397159546, 1397159544, 1397159542, 1397159541, 1397159518, 1397159515, 1397159512, 1397159510, 1397159508, 1397159507, 1397159499, 1397159497, 1397159495, 1397159493, 1397159491] Looping around the photos to save general results len do output : 1 /29035848. 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, '4142737') ('4302', '29035848', '1397159546', None, None, None, None, None, '4142737') ('4302', None, None, None, None, None, None, None, '4142737') ('4302', '29035848', '1397159544', None, None, None, None, None, '4142737') ('4302', None, None, None, None, None, None, None, '4142737') ('4302', '29035848', '1397159542', None, None, None, None, None, '4142737') ('4302', None, None, None, None, None, None, None, '4142737') ('4302', '29035848', '1397159541', None, None, None, None, None, '4142737') ('4302', None, None, None, None, None, None, None, '4142737') ('4302', '29035848', '1397159518', None, None, None, None, None, '4142737') ('4302', None, None, None, None, None, None, None, '4142737') ('4302', '29035848', '1397159515', None, None, None, None, None, '4142737') ('4302', None, None, None, None, None, None, None, '4142737') ('4302', '29035848', '1397159512', None, None, None, None, None, '4142737') ('4302', None, None, None, None, None, None, None, '4142737') ('4302', '29035848', '1397159510', None, None, None, None, None, '4142737') ('4302', None, None, None, None, None, None, None, '4142737') ('4302', '29035848', '1397159508', None, None, None, None, None, '4142737') ('4302', None, None, None, None, None, None, None, '4142737') ('4302', '29035848', '1397159507', None, None, None, None, None, '4142737') ('4302', None, None, None, None, None, None, None, '4142737') ('4302', '29035848', '1397159499', None, None, None, None, None, '4142737') ('4302', None, None, None, None, None, None, None, '4142737') ('4302', '29035848', '1397159497', None, None, None, None, None, '4142737') ('4302', None, None, None, None, None, None, None, '4142737') ('4302', '29035848', '1397159495', None, None, None, None, None, '4142737') ('4302', None, None, None, None, None, None, None, '4142737') ('4302', '29035848', '1397159493', None, None, None, None, None, '4142737') ('4302', None, None, None, None, None, None, None, '4142737') ('4302', '29035848', '1397159491', None, None, None, None, None, '4142737') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 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, '29035848', "{'Teint_Dans_La_Masse': 29035852, 'kraft': 29035853, 'flou': 29035854, 'plastique': 29035855, 'metal': 29035856, 'cartonnette': 29035857, 'mal_croppe': 29035858, 'papier': 29035859, 'autre_refus': 29035860, 'Carton_gris': 29035861, 'environnement': 29035862, 'Carton_brun': 29035863}", None, None, None, None, '4142737'), ('4302', '29035848', '1397159546', None, None, None, None, None, '4142737'), ('4302', '29035848', '1397159544', None, None, None, None, None, '4142737'), ('4302', '29035848', '1397159542', None, None, None, None, None, '4142737'), ('4302', '29035848', '1397159541', None, None, None, None, None, '4142737'), ('4302', '29035848', '1397159518', None, None, None, None, None, '4142737'), ('4302', '29035848', '1397159515', None, None, None, None, None, '4142737'), ('4302', '29035848', '1397159512', None, None, None, None, None, '4142737'), ('4302', '29035848', '1397159510', None, None, None, None, None, '4142737'), ('4302', '29035848', '1397159508', None, None, None, None, None, '4142737'), ('4302', '29035848', '1397159507', None, None, None, None, None, '4142737'), ('4302', '29035848', '1397159499', None, None, None, None, None, '4142737'), ('4302', '29035848', '1397159497', None, None, None, None, None, '4142737'), ('4302', '29035848', '1397159495', None, None, None, None, None, '4142737'), ('4302', '29035848', '1397159493', None, None, None, None, None, '4142737'), ('4302', '29035848', '1397159491', None, None, None, None, None, '4142737')] time used for this insertion : 0.01605391502380371 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.7988226413726807 time spend to save output : 0.017603397369384766 total time spend for step 1 : 1.8164260387420654 step2:final Mon Dec 1 05:54: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 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 (29035848) 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 29035848 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1397159357,1397159355,1397159385,1397159383,1397159381,1397159378,1397159375,1397159372,1397159412,1397159411,1397159410,1397159409,1397159407,1397159406,1397159425,1397159423,1397159421,1397159420,1397159458,1397159456,1397159454,1397159453,1397159452,1397159451,1397159473,1397159470,1397159468,1397159465,1397159499,1397159497,1397159495,1397159493,1397159491,1397159518,1397159515,1397159512,1397159510,1397159508,1397159507,1397159546,1397159544,1397159542,1397159541); 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([29035848]) Inside saveOutput : final : False verbose : True original output for save of step final : {1397159546: ('0.04520781744703106',), 1397159544: ('0.04520781744703106',), 1397159542: ('0.04520781744703106',), 1397159541: ('0.04520781744703106',), 1397159518: ('0.04520781744703106',), 1397159515: ('0.04520781744703106',), 1397159512: ('0.04520781744703106',), 1397159510: ('0.04520781744703106',), 1397159508: ('0.04520781744703106',), 1397159507: ('0.04520781744703106',), 1397159499: ('0.04520781744703106',), 1397159497: ('0.04520781744703106',), 1397159495: ('0.04520781744703106',), 1397159493: ('0.04520781744703106',), 1397159491: ('0.04520781744703106',)} new output for save of step final : {1397159546: ('0.04520781744703106',), 1397159544: ('0.04520781744703106',), 1397159542: ('0.04520781744703106',), 1397159541: ('0.04520781744703106',), 1397159518: ('0.04520781744703106',), 1397159515: ('0.04520781744703106',), 1397159512: ('0.04520781744703106',), 1397159510: ('0.04520781744703106',), 1397159508: ('0.04520781744703106',), 1397159507: ('0.04520781744703106',), 1397159499: ('0.04520781744703106',), 1397159497: ('0.04520781744703106',), 1397159495: ('0.04520781744703106',), 1397159493: ('0.04520781744703106',), 1397159491: ('0.04520781744703106',)} [1397159546, 1397159544, 1397159542, 1397159541, 1397159518, 1397159515, 1397159512, 1397159510, 1397159508, 1397159507, 1397159499, 1397159497, 1397159495, 1397159493, 1397159491] map_info['map_portfolio_photo'] : {29035848: [1397159546, 1397159544, 1397159542, 1397159541, 1397159518, 1397159515, 1397159512, 1397159510, 1397159508, 1397159507, 1397159499, 1397159497, 1397159495, 1397159493, 1397159491, 1397159473, 1397159470, 1397159468, 1397159465, 1397159458, 1397159456, 1397159454, 1397159453, 1397159452, 1397159451, 1397159425, 1397159423, 1397159421, 1397159420, 1397159412, 1397159411, 1397159410, 1397159409, 1397159407, 1397159406, 1397159385, 1397159383, 1397159381, 1397159378, 1397159375, 1397159372, 1397159357, 1397159355]} final : False mtd_id 4302 list_pids : [1397159546, 1397159544, 1397159542, 1397159541, 1397159518, 1397159515, 1397159512, 1397159510, 1397159508, 1397159507, 1397159499, 1397159497, 1397159495, 1397159493, 1397159491] Looping around the photos to save general results len do output : 15 /1397159546.Didn't retrieve data . /1397159544.Didn't retrieve data . /1397159542.Didn't retrieve data . /1397159541.Didn't retrieve data . /1397159518.Didn't retrieve data . /1397159515.Didn't retrieve data . /1397159512.Didn't retrieve data . /1397159510.Didn't retrieve data . /1397159508.Didn't retrieve data . /1397159507.Didn't retrieve data . /1397159499.Didn't retrieve data . /1397159497.Didn't retrieve data . /1397159495.Didn't retrieve data . /1397159493.Didn't retrieve data . /1397159491.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, '4142737') ('4302', '29035848', '1397159546', None, None, None, None, None, '4142737') ('4302', None, None, None, None, None, None, None, '4142737') ('4302', '29035848', '1397159544', None, None, None, None, None, '4142737') ('4302', None, None, None, None, None, None, None, '4142737') ('4302', '29035848', '1397159542', None, None, None, None, None, '4142737') ('4302', None, None, None, None, None, None, None, '4142737') ('4302', '29035848', '1397159541', None, None, None, None, None, '4142737') ('4302', None, None, None, None, None, None, None, '4142737') ('4302', '29035848', '1397159518', None, None, None, None, None, '4142737') ('4302', None, None, None, None, None, None, None, '4142737') ('4302', '29035848', '1397159515', None, None, None, None, None, '4142737') ('4302', None, None, None, None, None, None, None, '4142737') ('4302', '29035848', '1397159512', None, None, None, None, None, '4142737') ('4302', None, None, None, None, None, None, None, '4142737') ('4302', '29035848', '1397159510', None, None, None, None, None, '4142737') ('4302', None, None, None, None, None, None, None, '4142737') ('4302', '29035848', '1397159508', None, None, None, None, None, '4142737') ('4302', None, None, None, None, None, None, None, '4142737') ('4302', '29035848', '1397159507', None, None, None, None, None, '4142737') ('4302', None, None, None, None, None, None, None, '4142737') ('4302', '29035848', '1397159499', None, None, None, None, None, '4142737') ('4302', None, None, None, None, None, None, None, '4142737') ('4302', '29035848', '1397159497', None, None, None, None, None, '4142737') ('4302', None, None, None, None, None, None, None, '4142737') ('4302', '29035848', '1397159495', None, None, None, None, None, '4142737') ('4302', None, None, None, None, None, None, None, '4142737') ('4302', '29035848', '1397159493', None, None, None, None, None, '4142737') ('4302', None, None, None, None, None, None, None, '4142737') ('4302', '29035848', '1397159491', None, None, None, None, None, '4142737') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 45 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', '29035848', '1397159546', '0.04520781744703106', None, None, None, None, '4142737'), ('4302', '29035848', '1397159544', '0.04520781744703106', None, None, None, None, '4142737'), ('4302', '29035848', '1397159542', '0.04520781744703106', None, None, None, None, '4142737'), ('4302', '29035848', '1397159541', '0.04520781744703106', None, None, None, None, '4142737'), ('4302', '29035848', '1397159518', '0.04520781744703106', None, None, None, None, '4142737'), ('4302', '29035848', '1397159515', '0.04520781744703106', None, None, None, None, '4142737'), ('4302', '29035848', '1397159512', '0.04520781744703106', None, None, None, None, '4142737'), ('4302', '29035848', '1397159510', '0.04520781744703106', None, None, None, None, '4142737'), ('4302', '29035848', '1397159508', '0.04520781744703106', None, None, None, None, '4142737'), ('4302', '29035848', '1397159507', '0.04520781744703106', None, None, None, None, '4142737'), ('4302', '29035848', '1397159499', '0.04520781744703106', None, None, None, None, '4142737'), ('4302', '29035848', '1397159497', '0.04520781744703106', None, None, None, None, '4142737'), ('4302', '29035848', '1397159495', '0.04520781744703106', None, None, None, None, '4142737'), ('4302', '29035848', '1397159493', '0.04520781744703106', None, None, None, None, '4142737'), ('4302', '29035848', '1397159491', '0.04520781744703106', None, None, None, None, '4142737')] time used for this insertion : 0.017154216766357422 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08083558082580566 time spend to save output : 0.01789236068725586 total time spend for step 2 : 0.09872794151306152 step3:velours_tree Mon Dec 1 05:54: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 : {29035848: [{'Teint_Dans_La_Masse': 29035852, 'kraft': 29035853, 'flou': 29035854, 'plastique': 29035855, 'metal': 29035856, 'cartonnette': 29035857, 'mal_croppe': 29035858, 'papier': 29035859, 'autre_refus': 29035860, 'Carton_gris': 29035861, 'environnement': 29035862, 'Carton_brun': 29035863}]} input_args_next_step : {29035848: ()} output_args : {29035848: [{'Teint_Dans_La_Masse': 29035852, 'kraft': 29035853, 'flou': 29035854, 'plastique': 29035855, 'metal': 29035856, 'cartonnette': 29035857, 'mal_croppe': 29035858, 'papier': 29035859, 'autre_refus': 29035860, 'Carton_gris': 29035861, 'environnement': 29035862, 'Carton_brun': 29035863}]} args : 29035848 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Teint_Dans_La_Masse': 29035852, 'kraft': 29035853, 'flou': 29035854, 'plastique': 29035855, 'metal': 29035856, 'cartonnette': 29035857, 'mal_croppe': 29035858, 'papier': 29035859, 'autre_refus': 29035860, 'Carton_gris': 29035861, 'environnement': 29035862, 'Carton_brun': 29035863},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29035848) 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([29035848]) 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.2531602382659912 time spend to save output : 4.696846008300781e-05 total time spend for step 3 : 0.2532072067260742 step4:send_mail_cod Mon Dec 1 05:54: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 ! complete output_args for input 2 : {1397159546: ('0.04520781744703106',), 1397159544: ('0.04520781744703106',), 1397159542: ('0.04520781744703106',), 1397159541: ('0.04520781744703106',), 1397159518: ('0.04520781744703106',), 1397159515: ('0.04520781744703106',), 1397159512: ('0.04520781744703106',), 1397159510: ('0.04520781744703106',), 1397159508: ('0.04520781744703106',), 1397159507: ('0.04520781744703106',), 1397159499: ('0.04520781744703106',), 1397159497: ('0.04520781744703106',), 1397159495: ('0.04520781744703106',), 1397159493: ('0.04520781744703106',), 1397159491: ('0.04520781744703106',)} input_args_next_step : {1397159546: ()} output_args : {1397159546: ('0.04520781744703106',), 1397159544: ('0.04520781744703106',), 1397159542: ('0.04520781744703106',), 1397159541: ('0.04520781744703106',), 1397159518: ('0.04520781744703106',), 1397159515: ('0.04520781744703106',), 1397159512: ('0.04520781744703106',), 1397159510: ('0.04520781744703106',), 1397159508: ('0.04520781744703106',), 1397159507: ('0.04520781744703106',), 1397159499: ('0.04520781744703106',), 1397159497: ('0.04520781744703106',), 1397159495: ('0.04520781744703106',), 1397159493: ('0.04520781744703106',), 1397159491: ('0.04520781744703106',)} args : 1397159546 depend.output_id : 0 input_args_next_step : {1397159546: ('0.04520781744703106',), 1397159544: ()} output_args : {1397159546: ('0.04520781744703106',), 1397159544: ('0.04520781744703106',), 1397159542: ('0.04520781744703106',), 1397159541: ('0.04520781744703106',), 1397159518: ('0.04520781744703106',), 1397159515: ('0.04520781744703106',), 1397159512: ('0.04520781744703106',), 1397159510: ('0.04520781744703106',), 1397159508: ('0.04520781744703106',), 1397159507: ('0.04520781744703106',), 1397159499: ('0.04520781744703106',), 1397159497: ('0.04520781744703106',), 1397159495: ('0.04520781744703106',), 1397159493: ('0.04520781744703106',), 1397159491: ('0.04520781744703106',)} args : 1397159544 depend.output_id : 0 input_args_next_step : {1397159546: ('0.04520781744703106',), 1397159544: ('0.04520781744703106',), 1397159542: ()} output_args : {1397159546: ('0.04520781744703106',), 1397159544: ('0.04520781744703106',), 1397159542: ('0.04520781744703106',), 1397159541: ('0.04520781744703106',), 1397159518: ('0.04520781744703106',), 1397159515: ('0.04520781744703106',), 1397159512: ('0.04520781744703106',), 1397159510: ('0.04520781744703106',), 1397159508: ('0.04520781744703106',), 1397159507: ('0.04520781744703106',), 1397159499: ('0.04520781744703106',), 1397159497: ('0.04520781744703106',), 1397159495: ('0.04520781744703106',), 1397159493: ('0.04520781744703106',), 1397159491: ('0.04520781744703106',)} args : 1397159542 depend.output_id : 0 input_args_next_step : {1397159546: ('0.04520781744703106',), 1397159544: ('0.04520781744703106',), 1397159542: ('0.04520781744703106',), 1397159541: ()} output_args : {1397159546: ('0.04520781744703106',), 1397159544: ('0.04520781744703106',), 1397159542: ('0.04520781744703106',), 1397159541: ('0.04520781744703106',), 1397159518: ('0.04520781744703106',), 1397159515: ('0.04520781744703106',), 1397159512: ('0.04520781744703106',), 1397159510: ('0.04520781744703106',), 1397159508: ('0.04520781744703106',), 1397159507: ('0.04520781744703106',), 1397159499: ('0.04520781744703106',), 1397159497: ('0.04520781744703106',), 1397159495: ('0.04520781744703106',), 1397159493: ('0.04520781744703106',), 1397159491: ('0.04520781744703106',)} args : 1397159541 depend.output_id : 0 input_args_next_step : {1397159546: ('0.04520781744703106',), 1397159544: ('0.04520781744703106',), 1397159542: ('0.04520781744703106',), 1397159541: ('0.04520781744703106',), 1397159518: ()} output_args : {1397159546: ('0.04520781744703106',), 1397159544: ('0.04520781744703106',), 1397159542: ('0.04520781744703106',), 1397159541: ('0.04520781744703106',), 1397159518: ('0.04520781744703106',), 1397159515: ('0.04520781744703106',), 1397159512: ('0.04520781744703106',), 1397159510: ('0.04520781744703106',), 1397159508: ('0.04520781744703106',), 1397159507: ('0.04520781744703106',), 1397159499: ('0.04520781744703106',), 1397159497: ('0.04520781744703106',), 1397159495: ('0.04520781744703106',), 1397159493: ('0.04520781744703106',), 1397159491: ('0.04520781744703106',)} args : 1397159518 depend.output_id : 0 input_args_next_step : {1397159546: ('0.04520781744703106',), 1397159544: ('0.04520781744703106',), 1397159542: ('0.04520781744703106',), 1397159541: ('0.04520781744703106',), 1397159518: ('0.04520781744703106',), 1397159515: ()} output_args : {1397159546: ('0.04520781744703106',), 1397159544: ('0.04520781744703106',), 1397159542: ('0.04520781744703106',), 1397159541: ('0.04520781744703106',), 1397159518: ('0.04520781744703106',), 1397159515: ('0.04520781744703106',), 1397159512: ('0.04520781744703106',), 1397159510: ('0.04520781744703106',), 1397159508: ('0.04520781744703106',), 1397159507: ('0.04520781744703106',), 1397159499: ('0.04520781744703106',), 1397159497: ('0.04520781744703106',), 1397159495: ('0.04520781744703106',), 1397159493: ('0.04520781744703106',), 1397159491: ('0.04520781744703106',)} args : 1397159515 depend.output_id : 0 input_args_next_step : {1397159546: ('0.04520781744703106',), 1397159544: ('0.04520781744703106',), 1397159542: ('0.04520781744703106',), 1397159541: ('0.04520781744703106',), 1397159518: ('0.04520781744703106',), 1397159515: ('0.04520781744703106',), 1397159512: ()} output_args : {1397159546: ('0.04520781744703106',), 1397159544: ('0.04520781744703106',), 1397159542: ('0.04520781744703106',), 1397159541: ('0.04520781744703106',), 1397159518: ('0.04520781744703106',), 1397159515: ('0.04520781744703106',), 1397159512: ('0.04520781744703106',), 1397159510: ('0.04520781744703106',), 1397159508: ('0.04520781744703106',), 1397159507: ('0.04520781744703106',), 1397159499: ('0.04520781744703106',), 1397159497: ('0.04520781744703106',), 1397159495: ('0.04520781744703106',), 1397159493: ('0.04520781744703106',), 1397159491: ('0.04520781744703106',)} args : 1397159512 depend.output_id : 0 input_args_next_step : {1397159546: ('0.04520781744703106',), 1397159544: ('0.04520781744703106',), 1397159542: ('0.04520781744703106',), 1397159541: ('0.04520781744703106',), 1397159518: ('0.04520781744703106',), 1397159515: ('0.04520781744703106',), 1397159512: ('0.04520781744703106',), 1397159510: ()} output_args : {1397159546: ('0.04520781744703106',), 1397159544: ('0.04520781744703106',), 1397159542: ('0.04520781744703106',), 1397159541: ('0.04520781744703106',), 1397159518: ('0.04520781744703106',), 1397159515: ('0.04520781744703106',), 1397159512: ('0.04520781744703106',), 1397159510: ('0.04520781744703106',), 1397159508: ('0.04520781744703106',), 1397159507: ('0.04520781744703106',), 1397159499: ('0.04520781744703106',), 1397159497: ('0.04520781744703106',), 1397159495: ('0.04520781744703106',), 1397159493: ('0.04520781744703106',), 1397159491: ('0.04520781744703106',)} args : 1397159510 depend.output_id : 0 input_args_next_step : {1397159546: ('0.04520781744703106',), 1397159544: ('0.04520781744703106',), 1397159542: ('0.04520781744703106',), 1397159541: ('0.04520781744703106',), 1397159518: ('0.04520781744703106',), 1397159515: ('0.04520781744703106',), 1397159512: ('0.04520781744703106',), 1397159510: ('0.04520781744703106',), 1397159508: ()} output_args : {1397159546: ('0.04520781744703106',), 1397159544: ('0.04520781744703106',), 1397159542: ('0.04520781744703106',), 1397159541: ('0.04520781744703106',), 1397159518: ('0.04520781744703106',), 1397159515: ('0.04520781744703106',), 1397159512: ('0.04520781744703106',), 1397159510: ('0.04520781744703106',), 1397159508: ('0.04520781744703106',), 1397159507: ('0.04520781744703106',), 1397159499: ('0.04520781744703106',), 1397159497: ('0.04520781744703106',), 1397159495: ('0.04520781744703106',), 1397159493: ('0.04520781744703106',), 1397159491: ('0.04520781744703106',)} args : 1397159508 depend.output_id : 0 input_args_next_step : {1397159546: ('0.04520781744703106',), 1397159544: ('0.04520781744703106',), 1397159542: ('0.04520781744703106',), 1397159541: ('0.04520781744703106',), 1397159518: ('0.04520781744703106',), 1397159515: ('0.04520781744703106',), 1397159512: ('0.04520781744703106',), 1397159510: ('0.04520781744703106',), 1397159508: ('0.04520781744703106',), 1397159507: ()} output_args : {1397159546: ('0.04520781744703106',), 1397159544: ('0.04520781744703106',), 1397159542: ('0.04520781744703106',), 1397159541: ('0.04520781744703106',), 1397159518: ('0.04520781744703106',), 1397159515: ('0.04520781744703106',), 1397159512: ('0.04520781744703106',), 1397159510: ('0.04520781744703106',), 1397159508: ('0.04520781744703106',), 1397159507: ('0.04520781744703106',), 1397159499: ('0.04520781744703106',), 1397159497: ('0.04520781744703106',), 1397159495: ('0.04520781744703106',), 1397159493: ('0.04520781744703106',), 1397159491: ('0.04520781744703106',)} args : 1397159507 depend.output_id : 0 input_args_next_step : {1397159546: ('0.04520781744703106',), 1397159544: ('0.04520781744703106',), 1397159542: ('0.04520781744703106',), 1397159541: ('0.04520781744703106',), 1397159518: ('0.04520781744703106',), 1397159515: ('0.04520781744703106',), 1397159512: ('0.04520781744703106',), 1397159510: ('0.04520781744703106',), 1397159508: ('0.04520781744703106',), 1397159507: ('0.04520781744703106',), 1397159499: ()} output_args : {1397159546: ('0.04520781744703106',), 1397159544: ('0.04520781744703106',), 1397159542: ('0.04520781744703106',), 1397159541: ('0.04520781744703106',), 1397159518: ('0.04520781744703106',), 1397159515: ('0.04520781744703106',), 1397159512: ('0.04520781744703106',), 1397159510: ('0.04520781744703106',), 1397159508: ('0.04520781744703106',), 1397159507: ('0.04520781744703106',), 1397159499: ('0.04520781744703106',), 1397159497: ('0.04520781744703106',), 1397159495: ('0.04520781744703106',), 1397159493: ('0.04520781744703106',), 1397159491: ('0.04520781744703106',)} args : 1397159499 depend.output_id : 0 input_args_next_step : {1397159546: ('0.04520781744703106',), 1397159544: ('0.04520781744703106',), 1397159542: ('0.04520781744703106',), 1397159541: ('0.04520781744703106',), 1397159518: ('0.04520781744703106',), 1397159515: ('0.04520781744703106',), 1397159512: ('0.04520781744703106',), 1397159510: ('0.04520781744703106',), 1397159508: ('0.04520781744703106',), 1397159507: ('0.04520781744703106',), 1397159499: ('0.04520781744703106',), 1397159497: ()} output_args : {1397159546: ('0.04520781744703106',), 1397159544: ('0.04520781744703106',), 1397159542: ('0.04520781744703106',), 1397159541: ('0.04520781744703106',), 1397159518: ('0.04520781744703106',), 1397159515: ('0.04520781744703106',), 1397159512: ('0.04520781744703106',), 1397159510: ('0.04520781744703106',), 1397159508: ('0.04520781744703106',), 1397159507: ('0.04520781744703106',), 1397159499: ('0.04520781744703106',), 1397159497: ('0.04520781744703106',), 1397159495: ('0.04520781744703106',), 1397159493: ('0.04520781744703106',), 1397159491: ('0.04520781744703106',)} args : 1397159497 depend.output_id : 0 input_args_next_step : {1397159546: ('0.04520781744703106',), 1397159544: ('0.04520781744703106',), 1397159542: ('0.04520781744703106',), 1397159541: ('0.04520781744703106',), 1397159518: ('0.04520781744703106',), 1397159515: ('0.04520781744703106',), 1397159512: ('0.04520781744703106',), 1397159510: ('0.04520781744703106',), 1397159508: ('0.04520781744703106',), 1397159507: ('0.04520781744703106',), 1397159499: ('0.04520781744703106',), 1397159497: ('0.04520781744703106',), 1397159495: ()} output_args : {1397159546: ('0.04520781744703106',), 1397159544: ('0.04520781744703106',), 1397159542: ('0.04520781744703106',), 1397159541: ('0.04520781744703106',), 1397159518: ('0.04520781744703106',), 1397159515: ('0.04520781744703106',), 1397159512: ('0.04520781744703106',), 1397159510: ('0.04520781744703106',), 1397159508: ('0.04520781744703106',), 1397159507: ('0.04520781744703106',), 1397159499: ('0.04520781744703106',), 1397159497: ('0.04520781744703106',), 1397159495: ('0.04520781744703106',), 1397159493: ('0.04520781744703106',), 1397159491: ('0.04520781744703106',)} args : 1397159495 depend.output_id : 0 input_args_next_step : {1397159546: ('0.04520781744703106',), 1397159544: ('0.04520781744703106',), 1397159542: ('0.04520781744703106',), 1397159541: ('0.04520781744703106',), 1397159518: ('0.04520781744703106',), 1397159515: ('0.04520781744703106',), 1397159512: ('0.04520781744703106',), 1397159510: ('0.04520781744703106',), 1397159508: ('0.04520781744703106',), 1397159507: ('0.04520781744703106',), 1397159499: ('0.04520781744703106',), 1397159497: ('0.04520781744703106',), 1397159495: ('0.04520781744703106',), 1397159493: ()} output_args : {1397159546: ('0.04520781744703106',), 1397159544: ('0.04520781744703106',), 1397159542: ('0.04520781744703106',), 1397159541: ('0.04520781744703106',), 1397159518: ('0.04520781744703106',), 1397159515: ('0.04520781744703106',), 1397159512: ('0.04520781744703106',), 1397159510: ('0.04520781744703106',), 1397159508: ('0.04520781744703106',), 1397159507: ('0.04520781744703106',), 1397159499: ('0.04520781744703106',), 1397159497: ('0.04520781744703106',), 1397159495: ('0.04520781744703106',), 1397159493: ('0.04520781744703106',), 1397159491: ('0.04520781744703106',)} args : 1397159493 depend.output_id : 0 input_args_next_step : {1397159546: ('0.04520781744703106',), 1397159544: ('0.04520781744703106',), 1397159542: ('0.04520781744703106',), 1397159541: ('0.04520781744703106',), 1397159518: ('0.04520781744703106',), 1397159515: ('0.04520781744703106',), 1397159512: ('0.04520781744703106',), 1397159510: ('0.04520781744703106',), 1397159508: ('0.04520781744703106',), 1397159507: ('0.04520781744703106',), 1397159499: ('0.04520781744703106',), 1397159497: ('0.04520781744703106',), 1397159495: ('0.04520781744703106',), 1397159493: ('0.04520781744703106',), 1397159491: ()} output_args : {1397159546: ('0.04520781744703106',), 1397159544: ('0.04520781744703106',), 1397159542: ('0.04520781744703106',), 1397159541: ('0.04520781744703106',), 1397159518: ('0.04520781744703106',), 1397159515: ('0.04520781744703106',), 1397159512: ('0.04520781744703106',), 1397159510: ('0.04520781744703106',), 1397159508: ('0.04520781744703106',), 1397159507: ('0.04520781744703106',), 1397159499: ('0.04520781744703106',), 1397159497: ('0.04520781744703106',), 1397159495: ('0.04520781744703106',), 1397159493: ('0.04520781744703106',), 1397159491: ('0.04520781744703106',)} args : 1397159491 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 : {29035848: [{'Teint_Dans_La_Masse': 29035852, 'kraft': 29035853, 'flou': 29035854, 'plastique': 29035855, 'metal': 29035856, 'cartonnette': 29035857, 'mal_croppe': 29035858, 'papier': 29035859, 'autre_refus': 29035860, 'Carton_gris': 29035861, 'environnement': 29035862, 'Carton_brun': 29035863}]} input_args_next_step : {1397159546: ('0.04520781744703106',), 1397159544: ('0.04520781744703106',), 1397159542: ('0.04520781744703106',), 1397159541: ('0.04520781744703106',), 1397159518: ('0.04520781744703106',), 1397159515: ('0.04520781744703106',), 1397159512: ('0.04520781744703106',), 1397159510: ('0.04520781744703106',), 1397159508: ('0.04520781744703106',), 1397159507: ('0.04520781744703106',), 1397159499: ('0.04520781744703106',), 1397159497: ('0.04520781744703106',), 1397159495: ('0.04520781744703106',), 1397159493: ('0.04520781744703106',), 1397159491: ('0.04520781744703106',), 29035848: ()} output_args : {29035848: [{'Teint_Dans_La_Masse': 29035852, 'kraft': 29035853, 'flou': 29035854, 'plastique': 29035855, 'metal': 29035856, 'cartonnette': 29035857, 'mal_croppe': 29035858, 'papier': 29035859, 'autre_refus': 29035860, 'Carton_gris': 29035861, 'environnement': 29035862, 'Carton_brun': 29035863}]} args : 29035848 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 :16, first value : ('0.04520781744703106',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29035848) 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_view ph WHERE photo_id IN (1397159546,1397159544,1397159542,1397159541,1397159518,1397159515,1397159512,1397159510,1397159508,1397159507,1397159499,1397159497,1397159495,1397159493,1397159491) Found this number of photos: 15 ##### Call download_photos : nb_thread : 5 begin to download photo : 1397159491 begin to download photo : 1397159499 begin to download photo : 1397159512 begin to download photo : 1397159542 download finish for photo 1397159542 begin to download photo : 1397159544 download finish for photo 1397159491 begin to download photo : 1397159493 download finish for photo 1397159512 begin to download photo : 1397159515 download finish for photo 1397159499 begin to download photo : 1397159507 download finish for photo 1397159544 begin to download photo : 1397159546 download finish for photo 1397159493 begin to download photo : 1397159495 download finish for photo 1397159515 begin to download photo : 1397159518 download finish for photo 1397159507 begin to download photo : 1397159508 download finish for photo 1397159546 download finish for photo 1397159518 begin to download photo : 1397159541 download finish for photo 1397159495 begin to download photo : 1397159497 download finish for photo 1397159508 begin to download photo : 1397159510 download finish for photo 1397159541 download finish for photo 1397159497 download finish for photo 1397159510 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette290358531764564872/ imagette290358541764564872/ length of list_filenames : 15 ; length of list_pids : 15 ; length of list_args : 15 results_Auto_P29035848_01-12-2025_05_54_32.pdf 29035853 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29035853 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette290358531764564872 29035854 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29035854 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette290358541764564872 29035855 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29035855 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1397159531: '1764564785_2091361_1397159410_4fb9823abc6643e55283a13eb7fbb11c_rle_crop_4053297837_0.png', 1397159540: '1764564805_2091739_1397159465_47596523720861b7811c7f4714fe99cb_rle_crop_4053298020_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/e5bd13d0a60106b73122c53604cefdaa_17574624.png change filename to text .imagette290358551764564872/ imagette290358551764564872/1764564805_2091739_1397159465_47596523720861b7811c7f4714fe99cb_rle_crop_4053298020_0.png.png imagette290358551764564872/1764564785_2091361_1397159410_4fb9823abc6643e55283a13eb7fbb11c_rle_crop_4053297837_0.png.png imagette290358561764564872/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/e0d21bdd16d467c32c417c0b06bcadb2_67934965.png imagette290358551764564872 29035856 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29035856 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette290358561764564872 29035857 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29035857 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1397159446: '1764564565_2080761_1397159381_0afe562eee911ecaf7751509bc113f1f_rle_crop_4053297442_0.png', 1397159447: '1764564565_2080761_1397159378_d51e04413e7c8c0028475daf705bc351_rle_crop_4053297464_0.png', 1397159448: '1764564565_2080761_1397159378_d51e04413e7c8c0028475daf705bc351_rle_crop_4053297463_0.png', 1397159449: '1764564565_2080761_1397159378_d51e04413e7c8c0028475daf705bc351_rle_crop_4053297459_0.png', 1397159450: '1764564565_2080761_1397159375_225b8463160ad9d604eccf506a39b015_rle_crop_4053297474_0.png', 1397159526: '1764564785_2091361_1397159411_2767eb9d1731e1f4074e0e57e156942a_rle_crop_4053297823_0.png', 1397159527: '1764564785_2091361_1397159409_3091382130197490ff67327e511701e4_rle_crop_4053297849_0.png', 1397159528: '1764564785_2091361_1397159407_47b1dd3a0bda27f5383d6fd07afaf7cf_rle_crop_4053297861_0.png', 1397159529: '1764564785_2091361_1397159406_6275d8c3c723daeecabbff6411eb0d0a_rle_crop_4053297975_0.png', 1397159538: '1764564805_2091739_1397159465_47596523720861b7811c7f4714fe99cb_rle_crop_4053298019_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/af48fbec6e4ded37c001da374bee903a_57127132.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/f885c81f93b1228255330257a1123b58_7066135.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/5ef41ef7542363a71edce42fcfb265c9_67985211.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/d22f4dcf05f4fa62d67b65673069e4a5_14060019.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/049374719677853c9305a0d3ac81264a_48471109.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/e81938ed62a55df23df30b3a11e5c50b_19876230.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/383830ea0901e24086722176884049c1_48078402.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/151952b1e7ae7b79cde8827493de75ac_38124093.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/ada0e176f4c1a177011fb055807f9d13_55978299.png change filename to text .imagette290358571764564872/ imagette290358571764564872/1764564565_2080761_1397159378_d51e04413e7c8c0028475daf705bc351_rle_crop_4053297459_0.png.png imagette290358571764564872/1764564565_2080761_1397159378_d51e04413e7c8c0028475daf705bc351_rle_crop_4053297463_0.png.png imagette290358571764564872/1764564785_2091361_1397159411_2767eb9d1731e1f4074e0e57e156942a_rle_crop_4053297823_0.png.png imagette290358571764564872/1764564565_2080761_1397159378_d51e04413e7c8c0028475daf705bc351_rle_crop_4053297464_0.png.png imagette290358571764564872/1764564785_2091361_1397159406_6275d8c3c723daeecabbff6411eb0d0a_rle_crop_4053297975_0.png.png imagette290358571764564872/1764564785_2091361_1397159407_47b1dd3a0bda27f5383d6fd07afaf7cf_rle_crop_4053297861_0.png.png imagette290358571764564872/1764564565_2080761_1397159375_225b8463160ad9d604eccf506a39b015_rle_crop_4053297474_0.png.png imagette290358571764564872/1764564565_2080761_1397159381_0afe562eee911ecaf7751509bc113f1f_rle_crop_4053297442_0.png.png imagette290358571764564872/1764564805_2091739_1397159465_47596523720861b7811c7f4714fe99cb_rle_crop_4053298019_0.png.png imagette290358571764564872/1764564785_2091361_1397159409_3091382130197490ff67327e511701e4_rle_crop_4053297849_0.png.png imagette290358581764564872/ wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/bc8a164963f02e5b205a3a26942dd6db_84234005.png imagette290358571764564872 29035858 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29035858 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette290358581764564872 29035860 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29035860 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1397159442: '1764564565_2080761_1397159378_d51e04413e7c8c0028475daf705bc351_rle_crop_4053297458_0.png', 1397159478: '1764564665_2085747_1397159357_55bcf5899670a18aa5964c4c6654a8a5_rle_crop_4053297548_0.png', 1397159483: '1764564685_2086220_1397159421_21f46ac3fe0c91a6ca75ed51a3453573_rle_crop_4053297637_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/8650ac257b1a2162b6cd5f78ca2b2d84_88925556.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/ab261a747b2dbd3943201a237b8f73e7_46170751.png change filename to text .imagette290358601764564872/ imagette290358601764564872/1764564685_2086220_1397159421_21f46ac3fe0c91a6ca75ed51a3453573_rle_crop_4053297637_0.png.png imagette290358601764564872/1764564665_2085747_1397159357_55bcf5899670a18aa5964c4c6654a8a5_rle_crop_4053297548_0.png.png imagette290358601764564872/1764564565_2080761_1397159378_d51e04413e7c8c0028475daf705bc351_rle_crop_4053297458_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/ec485dc3c02e6cc531e732b28e72feec_15899502.png imagette290358601764564872 29035852 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29035852 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1397159438: '1764564565_2080761_1397159383_d4ac05b5683cb4af564068ac37b0129d_rle_crop_4053297431_0.png', 1397159439: '1764564565_2080761_1397159383_d4ac05b5683cb4af564068ac37b0129d_rle_crop_4053297433_0.png', 1397159440: '1764564565_2080761_1397159381_0afe562eee911ecaf7751509bc113f1f_rle_crop_4053297453_0.png', 1397159441: '1764564565_2080761_1397159381_0afe562eee911ecaf7751509bc113f1f_rle_crop_4053297452_0.png', 1397159476: '1764564665_2085747_1397159357_55bcf5899670a18aa5964c4c6654a8a5_rle_crop_4053297554_0.png', 1397159477: '1764564665_2085747_1397159357_55bcf5899670a18aa5964c4c6654a8a5_rle_crop_4053297552_0.png', 1397159522: '1764564785_2091361_1397159411_2767eb9d1731e1f4074e0e57e156942a_rle_crop_4053297826_0.png', 1397159523: '1764564785_2091361_1397159407_47b1dd3a0bda27f5383d6fd07afaf7cf_rle_crop_4053297864_0.png', 1397159524: '1764564785_2091361_1397159406_6275d8c3c723daeecabbff6411eb0d0a_rle_crop_4053297978_0.png', 1397159533: '1764564805_2091739_1397159470_5f8bf9508e1213e7e001fcead96a6ce9_rle_crop_4053297986_0.png', 1397159534: '1764564805_2091739_1397159468_37c7f4e4d506013e7825fb5452222f42_rle_crop_4053297996_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/ab125134823847572ad4298150015adc_48587164.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/4ad363ac0b9f15e05f07158947342d1b_22670175.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/27470daa6be1cb9efa4211bb321f95b3_44309834.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/cc9cef778c6bbe953021087d4a33bd7d_49167224.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/202c86c0601e55694eb37c23b34d49f8_1382658.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/337fc6e78ed9d07d59967c2b80d15437_96538835.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/cd307bc32319d985c3284122f8ac591d_50676319.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/6c14a016943ab93a6b2219d6e449b454_41852216.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/78570bfaaedcf865027d83345a30853d_56118690.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/4cdd46b92b02f93ce5b18dcaa104b3d0_66844743.png change filename to text .imagette290358521764564873/ imagette290358521764564873/1764564665_2085747_1397159357_55bcf5899670a18aa5964c4c6654a8a5_rle_crop_4053297552_0.png.png imagette290358521764564873/1764564565_2080761_1397159383_d4ac05b5683cb4af564068ac37b0129d_rle_crop_4053297431_0.png.png imagette290358521764564873/1764564665_2085747_1397159357_55bcf5899670a18aa5964c4c6654a8a5_rle_crop_4053297554_0.png.png imagette290358521764564873/1764564565_2080761_1397159381_0afe562eee911ecaf7751509bc113f1f_rle_crop_4053297452_0.png.png imagette290358521764564873/1764564785_2091361_1397159406_6275d8c3c723daeecabbff6411eb0d0a_rle_crop_4053297978_0.png.png imagette290358521764564873/1764564785_2091361_1397159411_2767eb9d1731e1f4074e0e57e156942a_rle_crop_4053297826_0.png.png imagette290358521764564873/1764564805_2091739_1397159468_37c7f4e4d506013e7825fb5452222f42_rle_crop_4053297996_0.png.png imagette290358521764564873/1764564785_2091361_1397159407_47b1dd3a0bda27f5383d6fd07afaf7cf_rle_crop_4053297864_0.png.png imagette290358521764564873/1764564565_2080761_1397159381_0afe562eee911ecaf7751509bc113f1f_rle_crop_4053297453_0.png.png imagette290358521764564873/1764564565_2080761_1397159383_d4ac05b5683cb4af564068ac37b0129d_rle_crop_4053297433_0.png.png imagette290358521764564873/1764564805_2091739_1397159470_5f8bf9508e1213e7e001fcead96a6ce9_rle_crop_4053297986_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/f63369a1eabe1dd455f9f80d0bac3653_5011317.png imagette290358521764564873 29035861 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29035861 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1397159443: '1764564565_2080761_1397159381_0afe562eee911ecaf7751509bc113f1f_rle_crop_4053297446_0.png', 1397159444: '1764564565_2080761_1397159381_0afe562eee911ecaf7751509bc113f1f_rle_crop_4053297443_0.png', 1397159445: '1764564565_2080761_1397159378_d51e04413e7c8c0028475daf705bc351_rle_crop_4053297465_0.png', 1397159479: '1764564665_2085747_1397159355_61ce6417122faf99876ad278b53be020_rle_crop_4053297558_0.png', 1397159485: '1764564685_2086220_1397159421_21f46ac3fe0c91a6ca75ed51a3453573_rle_crop_4053297633_0.png', 1397159486: '1764564685_2086220_1397159420_547300cb5932620049a6d8081594b497_rle_crop_4053297644_0.png', 1397159535: '1764564805_2091739_1397159465_47596523720861b7811c7f4714fe99cb_rle_crop_4053298017_0.png', 1397159536: '1764564805_2091739_1397159465_47596523720861b7811c7f4714fe99cb_rle_crop_4053298016_0.png', 1397159537: '1764564805_2091739_1397159465_47596523720861b7811c7f4714fe99cb_rle_crop_4053298022_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/a9b4ba7bf82c79dc1d3d1fd0347f338d_58048840.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/23811f48e886216f0684929127012ade_12332175.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/2e73b0dc2534f4a91d3f4d019afdaae4_5994451.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/e10c4e428c7956931f8f6c2f409f1f56_41587286.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/6704311d7debb0d5789309214bb0d5a8_94691052.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/2b742dece8c1f3c7c3c8ffe4c167603e_78112361.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/6b3d84ae8d8f93f8bb4821f930267323_55659915.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/f845d50858cebbc36bec016f04bbca66_48147829.png change filename to text .imagette290358611764564873/ imagette290358611764564873/1764564565_2080761_1397159378_d51e04413e7c8c0028475daf705bc351_rle_crop_4053297465_0.png.png imagette290358611764564873/1764564565_2080761_1397159381_0afe562eee911ecaf7751509bc113f1f_rle_crop_4053297446_0.png.png imagette290358611764564873/1764564805_2091739_1397159465_47596523720861b7811c7f4714fe99cb_rle_crop_4053298017_0.png.png imagette290358611764564873/1764564565_2080761_1397159381_0afe562eee911ecaf7751509bc113f1f_rle_crop_4053297443_0.png.png imagette290358611764564873/1764564685_2086220_1397159420_547300cb5932620049a6d8081594b497_rle_crop_4053297644_0.png.png imagette290358611764564873/1764564685_2086220_1397159421_21f46ac3fe0c91a6ca75ed51a3453573_rle_crop_4053297633_0.png.png imagette290358611764564873/1764564805_2091739_1397159465_47596523720861b7811c7f4714fe99cb_rle_crop_4053298022_0.png.png imagette290358611764564873/1764564665_2085747_1397159355_61ce6417122faf99876ad278b53be020_rle_crop_4053297558_0.png.png imagette290358611764564873/1764564805_2091739_1397159465_47596523720861b7811c7f4714fe99cb_rle_crop_4053298016_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/087ad66c2853a8c13e2091589515e386_76520326.png imagette290358611764564873 29035863 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29035863 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1397159480: '1764564665_2085747_1397159357_55bcf5899670a18aa5964c4c6654a8a5_rle_crop_4053297553_0.png', 1397159530: '1764564785_2091361_1397159410_4fb9823abc6643e55283a13eb7fbb11c_rle_crop_4053297843_0.png', 1397159539: '1764564805_2091739_1397159465_47596523720861b7811c7f4714fe99cb_rle_crop_4053298018_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/542ffd48ff565629a7ef4e3f47df545a_29419087.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/05d617b1de1b9dfb48b9c0d68d5e9509_13685343.png change filename to text .imagette290358631764564874/ imagette290358631764564874/1764564805_2091739_1397159465_47596523720861b7811c7f4714fe99cb_rle_crop_4053298018_0.png.png imagette290358631764564874/1764564665_2085747_1397159357_55bcf5899670a18aa5964c4c6654a8a5_rle_crop_4053297553_0.png.png imagette290358631764564874/1764564785_2091361_1397159410_4fb9823abc6643e55283a13eb7fbb11c_rle_crop_4053297843_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/37608c36910962ea843549a5e42b4980_28170802.png imagette290358631764564874 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29035848 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29035864,29035865,29035866,29035867,29035868,29035869,29035870,29035871,29035872,29035873,29035874,29035875?tags=Teint_Dans_La_Masse,kraft,flou,plastique,metal,cartonnette,mal_croppe,papier,autre_refus,Carton_gris,environnement,Carton_brun your option no_mail is active, we will not send the real mail to your client args[1397159546] : ('0.04520781744703106',) no score found for photo 1397159546 We are sending mail with results at report@fotonower.com args[1397159544] : ('0.04520781744703106',) no score found for photo 1397159544 We are sending mail with results at report@fotonower.com args[1397159542] : ('0.04520781744703106',) no score found for photo 1397159542 We are sending mail with results at report@fotonower.com args[1397159541] : ('0.04520781744703106',) no score found for photo 1397159541 We are sending mail with results at report@fotonower.com args[1397159518] : ('0.04520781744703106',) no score found for photo 1397159518 We are sending mail with results at report@fotonower.com args[1397159515] : ('0.04520781744703106',) no score found for photo 1397159515 We are sending mail with results at report@fotonower.com args[1397159512] : ('0.04520781744703106',) no score found for photo 1397159512 We are sending mail with results at report@fotonower.com args[1397159510] : ('0.04520781744703106',) no score found for photo 1397159510 We are sending mail with results at report@fotonower.com args[1397159508] : ('0.04520781744703106',) no score found for photo 1397159508 We are sending mail with results at report@fotonower.com args[1397159507] : ('0.04520781744703106',) no score found for photo 1397159507 We are sending mail with results at report@fotonower.com args[1397159499] : ('0.04520781744703106',) no score found for photo 1397159499 We are sending mail with results at report@fotonower.com args[1397159497] : ('0.04520781744703106',) no score found for photo 1397159497 We are sending mail with results at report@fotonower.com args[1397159495] : ('0.04520781744703106',) no score found for photo 1397159495 We are sending mail with results at report@fotonower.com args[1397159493] : ('0.04520781744703106',) no score found for photo 1397159493 We are sending mail with results at report@fotonower.com args[1397159491] : ('0.04520781744703106',) no score found for photo 1397159491 We are sending mail with results at report@fotonower.com refus_total : 0.04520781744703106 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29035848 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_P29035848_01-12-2025_05_54_32.pdf results_Auto_P29035848_01-12-2025_05_54_32.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29035848_01-12-2025_05_54_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','29035848','results_Auto_P29035848_01-12-2025_05_54_32.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29035848_01-12-2025_05_54_32.pdf','pdf','','0.23','0.04520781744703106') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29035848]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1397159546, 1397159544, 1397159542, 1397159541, 1397159518, 1397159515, 1397159512, 1397159510, 1397159508, 1397159507, 1397159499, 1397159497, 1397159495, 1397159493, 1397159491] map_info['map_portfolio_photo'] : {29035848: [1397159546, 1397159544, 1397159542, 1397159541, 1397159518, 1397159515, 1397159512, 1397159510, 1397159508, 1397159507, 1397159499, 1397159497, 1397159495, 1397159493, 1397159491, 1397159473, 1397159470, 1397159468, 1397159465, 1397159458, 1397159456, 1397159454, 1397159453, 1397159452, 1397159451, 1397159425, 1397159423, 1397159421, 1397159420, 1397159412, 1397159411, 1397159410, 1397159409, 1397159407, 1397159406, 1397159385, 1397159383, 1397159381, 1397159378, 1397159375, 1397159372, 1397159357, 1397159355]} final : False mtd_id 4302 list_pids : [1397159546, 1397159544, 1397159542, 1397159541, 1397159518, 1397159515, 1397159512, 1397159510, 1397159508, 1397159507, 1397159499, 1397159497, 1397159495, 1397159493, 1397159491] 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, '4142737') ('4302', '29035848', '1397159546', None, None, None, None, None, '4142737') ('4302', None, None, None, None, None, None, None, '4142737') ('4302', '29035848', '1397159544', None, None, None, None, None, '4142737') ('4302', None, None, None, None, None, None, None, '4142737') ('4302', '29035848', '1397159542', None, None, None, None, None, '4142737') ('4302', None, None, None, None, None, None, None, '4142737') ('4302', '29035848', '1397159541', None, None, None, None, None, '4142737') ('4302', None, None, None, None, None, None, None, '4142737') ('4302', '29035848', '1397159518', None, None, None, None, None, '4142737') ('4302', None, None, None, None, None, None, None, '4142737') ('4302', '29035848', '1397159515', None, None, None, None, None, '4142737') ('4302', None, None, None, None, None, None, None, '4142737') ('4302', '29035848', '1397159512', None, None, None, None, None, '4142737') ('4302', None, None, None, None, None, None, None, '4142737') ('4302', '29035848', '1397159510', None, None, None, None, None, '4142737') ('4302', None, None, None, None, None, None, None, '4142737') ('4302', '29035848', '1397159508', None, None, None, None, None, '4142737') ('4302', None, None, None, None, None, None, None, '4142737') ('4302', '29035848', '1397159507', None, None, None, None, None, '4142737') ('4302', None, None, None, None, None, None, None, '4142737') ('4302', '29035848', '1397159499', None, None, None, None, None, '4142737') ('4302', None, None, None, None, None, None, None, '4142737') ('4302', '29035848', '1397159497', None, None, None, None, None, '4142737') ('4302', None, None, None, None, None, None, None, '4142737') ('4302', '29035848', '1397159495', None, None, None, None, None, '4142737') ('4302', None, None, None, None, None, None, None, '4142737') ('4302', '29035848', '1397159493', None, None, None, None, None, '4142737') ('4302', None, None, None, None, None, None, None, '4142737') ('4302', '29035848', '1397159491', None, None, None, None, None, '4142737') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 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', '29035848', '1397159546', None, None, None, None, None, '4142737'), ('4302', '29035848', '1397159544', None, None, None, None, None, '4142737'), ('4302', '29035848', '1397159542', None, None, None, None, None, '4142737'), ('4302', '29035848', '1397159541', None, None, None, None, None, '4142737'), ('4302', '29035848', '1397159518', None, None, None, None, None, '4142737'), ('4302', '29035848', '1397159515', None, None, None, None, None, '4142737'), ('4302', '29035848', '1397159512', None, None, None, None, None, '4142737'), ('4302', '29035848', '1397159510', None, None, None, None, None, '4142737'), ('4302', '29035848', '1397159508', None, None, None, None, None, '4142737'), ('4302', '29035848', '1397159507', None, None, None, None, None, '4142737'), ('4302', '29035848', '1397159499', None, None, None, None, None, '4142737'), ('4302', '29035848', '1397159497', None, None, None, None, None, '4142737'), ('4302', '29035848', '1397159495', None, None, None, None, None, '4142737'), ('4302', '29035848', '1397159493', None, None, None, None, None, '4142737'), ('4302', '29035848', '1397159491', None, None, None, None, None, '4142737')] time used for this insertion : 0.019995689392089844 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.69754433631897 time spend to save output : 0.020252704620361328 total time spend for step 4 : 4.717797040939331 step5:split_time_score Mon Dec 1 05:54: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 : ['29035848'] 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 : [('29035848',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29035848) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1397159542: {'path': 'temp/1764564871_1484338_1397159542_07da759930d2e7c4af974741e62f21c4.jpg', 'extension': 'jpg'}, 1397159544: {'path': 'temp/1764564871_1484338_1397159544_bcb22f0ba43182df86bcba64be66fe4f.jpg', 'extension': 'jpg'}, 1397159546: {'path': 'temp/1764564871_1484338_1397159546_f79bc7a9c69af729585b4f9b18f8844d.jpg', 'extension': 'jpg'}, 1397159512: {'path': 'temp/1764564871_1484338_1397159512_9d4fd6515c6eb975143d751147b1bdf8.jpg', 'extension': 'jpg'}, 1397159515: {'path': 'temp/1764564871_1484338_1397159515_e63d7b23fdd510eb694c83943517f8d8.jpg', 'extension': 'jpg'}, 1397159518: {'path': 'temp/1764564871_1484338_1397159518_10e9d11eec097eb2d334060bea3c4fed.jpg', 'extension': 'jpg'}, 1397159541: {'path': 'temp/1764564871_1484338_1397159541_f12e71bf35250c59e300f26642761b9f.jpg', 'extension': 'jpg'}, 1397159491: {'path': 'temp/1764564871_1484338_1397159491_b8eb068c74b49e60e4fdabcdd3819819.jpg', 'extension': 'jpg'}, 1397159493: {'path': 'temp/1764564871_1484338_1397159493_5c4757a094de87192f211574b9fad3eb.jpg', 'extension': 'jpg'}, 1397159495: {'path': 'temp/1764564871_1484338_1397159495_9c4b52eed14c60b0a780ea124e1b097e.jpg', 'extension': 'jpg'}, 1397159497: {'path': 'temp/1764564871_1484338_1397159497_b501b8141985f5517159a25c130e1d0b.jpg', 'extension': 'jpg'}, 1397159499: {'path': 'temp/1764564871_1484338_1397159499_74bf5befc8a3e3ba45e080ab3ddc9a61.jpg', 'extension': 'jpg'}, 1397159507: {'path': 'temp/1764564871_1484338_1397159507_4a2f573f554729c5ee809aa1a56ae5a5.jpg', 'extension': 'jpg'}, 1397159508: {'path': 'temp/1764564871_1484338_1397159508_91f376e0e7c400d8ec2519f152e4d411.jpg', 'extension': 'jpg'}, 1397159510: {'path': 'temp/1764564871_1484338_1397159510_e4dedb9e65d8580351b131ea9ec39d00.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 = 29035848; (('arc_en_ciel_jrm_live',),) 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_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 29035848 group by h (('05', 43),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29035848 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 (29035848) 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 (29035848) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 01122025 29035848 Nombre de photos uploadées : 43 / 23040 (0%) 01122025 29035848 Nombre de photos taguées (types de déchets): 0 / 43 (0%) 01122025 29035848 Nombre de photos taguées (volume) : 0 / 43 (0%) [{'photo_id': 1397159357, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/55bcf5899670a18aa5964c4c6654a8a5.jpg', 'username': None, 'uploaded_at': 1764564372, 'text': 'image_01122025_05_45_04_10148.jpg 1e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1397159355, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/61ce6417122faf99876ad278b53be020.jpg', 'username': None, 'uploaded_at': 1764564372, 'text': 'image_01122025_05_45_14_10137.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1397159385, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/3fe713f0f0c0349e2c3d97eeb071ef83.jpg', 'username': None, 'uploaded_at': 1764564432, 'text': 'image_01122025_05_45_24_10135.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1397159383, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/d4ac05b5683cb4af564068ac37b0129d.jpg', 'username': None, 'uploaded_at': 1764564432, 'text': 'image_01122025_05_46_03_10139.jpg'}] 0 [] elapsed_time : load_data_split_time_score 2.86102294921875e-06 elapsed_time : order_list_meta_photo_and_scores 9.059906005859375e-06 ??????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002070903778076172 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 218, 29035848, '2025-12-01' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 218 and date = '2025-12-01' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2670855,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.24708199501037598 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= 2670855 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2670855, 'dashboard_run_id': 2677913, 'mtr_portfolio_id': 29035031, 'dashboard_result_id': 17890407, '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_P29035031_01-12-2025_05_18_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29035032, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29035033, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29035034, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29035035, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29035036, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29035037, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29035038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29035039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29035040, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29035041, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29035042, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29035043, 'pht': 3726}}"}, {'dashboat_entry_day': 2670855, 'dashboard_run_id': 2677913, 'mtr_portfolio_id': 29035264, 'dashboard_result_id': 17890408, '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_P29035264_01-12-2025_05_41_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29035267, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29035268, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29035269, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29035270, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29035271, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29035272, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29035273, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29035274, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29035275, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29035276, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29035277, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29035278, 'pht': 3726}}"}, {'dashboat_entry_day': 2670855, 'dashboard_run_id': 2677913, 'mtr_portfolio_id': 29035717, 'dashboard_result_id': 17890409, '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_P29035717_01-12-2025_05_49_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29035720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29035721, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29035722, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29035723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29035724, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29035725, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29035726, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29035727, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29035728, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29035729, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29035730, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29035731, 'pht': 3726}}"}, {'dashboat_entry_day': 2670855, 'dashboard_run_id': 2677913, 'mtr_portfolio_id': 29035848, 'dashboard_result_id': 17890410, '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_P29035848_01-12-2025_05_53_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29035852, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29035853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29035854, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29035855, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29035856, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29035857, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29035858, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29035859, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29035860, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29035861, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29035862, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29035863, '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 = 29035031 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': 4142623, 'mtr_portfolio_id': 29035031, 'created_at': datetime.datetime(2025, 12, 1, 5, 18, 59), 'result': '0.052209996136521615', 'result_long': None, 'result_double': None}] Qualite : 0.052209996136521615 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29035031 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29035031_01-12-2025_05_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29035031 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_P29035031_01-12-2025_05_18_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29035032, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29035033, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29035034, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29035035, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29035036, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29035037, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29035038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29035039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29035040, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29035041, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29035042, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29035043, 'pht': 3726}}" where mtr_portfolio_id = 29035031 and dashboard_run_id = 2677913 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`=29035031 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17890407, 0.052209996136521615, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29035031_01-12-2025_05_18_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29035032, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29035033, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29035034, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29035035, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29035036, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29035037, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29035038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29035039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29035040, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29035041, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29035042, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29035043, '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 = 29035264 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': 4142651, 'mtr_portfolio_id': 29035264, 'created_at': datetime.datetime(2025, 12, 1, 5, 41), 'result': '0.04045093731297344', 'result_long': None, 'result_double': None}] Qualite : 0.04045093731297344 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29035264 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29035264_01-12-2025_05_41_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29035264 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_P29035264_01-12-2025_05_41_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29035267, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29035268, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29035269, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29035270, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29035271, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29035272, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29035273, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29035274, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29035275, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29035276, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29035277, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29035278, 'pht': 3726}}" where mtr_portfolio_id = 29035264 and dashboard_run_id = 2677913 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`=29035264 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17890408, 0.04045093731297344, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29035264_01-12-2025_05_41_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29035267, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29035268, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29035269, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29035270, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29035271, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29035272, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29035273, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29035274, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29035275, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29035276, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29035277, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29035278, '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 = 29035717 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': 4142721, 'mtr_portfolio_id': 29035717, 'created_at': datetime.datetime(2025, 12, 1, 5, 49), 'result': '0.044011842645829045', 'result_long': None, 'result_double': None}] Qualite : 0.044011842645829045 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29035717 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29035717_01-12-2025_05_49_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29035717 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_P29035717_01-12-2025_05_49_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29035720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29035721, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29035722, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29035723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29035724, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29035725, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29035726, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29035727, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29035728, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29035729, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29035730, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29035731, 'pht': 3726}}" where mtr_portfolio_id = 29035717 and dashboard_run_id = 2677913 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`=29035717 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17890409, 0.044011842645829045, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29035717_01-12-2025_05_49_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29035720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29035721, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29035722, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29035723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29035724, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29035725, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29035726, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29035727, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29035728, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29035729, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29035730, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29035731, '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 = 29035848 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': 4142737, 'mtr_portfolio_id': 29035848, 'created_at': datetime.datetime(2025, 12, 1, 5, 54, 31), 'result': '0.04520781744703106', 'result_long': None, 'result_double': None}] Qualite : 0.04520781744703106 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29035848 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29035848_01-12-2025_05_54_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29035848 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_P29035848_01-12-2025_05_54_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29035852, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29035853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29035854, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29035855, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29035856, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29035857, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29035858, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29035859, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29035860, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29035861, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29035862, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29035863, 'pht': 3726}}" where mtr_portfolio_id = 29035848 and dashboard_run_id = 2677913 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`=29035848 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17890410, 0.04520781744703106, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29035848_01-12-2025_05_54_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29035852, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29035853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29035854, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29035855, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29035856, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29035857, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29035858, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29035859, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29035860, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29035861, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29035862, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29035863, '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 (29035031,29035264,29035717,29035848) result : ((1397157552,), (1397157615,), (1397157616,), (1397157617,), (1397157618,), (1397157669,), (1397157670,), (1397157688,), (1397157689,), (1397157691,), (1397157693,), (1397157705,), (1397157707,), (1397157709,), (1397157711,), (1397157713,), (1397157739,), (1397157741,), (1397157743,), (1397157754,), (1397157756,), (1397157759,), (1397157762,), (1397157765,), (1397157767,), (1397157774,), (1397157775,), (1397157777,), (1397157780,), (1397157788,), (1397157796,), (1397157798,), (1397157818,), (1397157820,), (1397157821,), (1397157822,), (1397157823,), (1397157824,), (1397157833,), (1397157835,), (1397157836,), (1397157837,), (1397157839,), (1397157876,), (1397157878,), (1397157882,), (1397157883,), (1397157884,), (1397157885,), (1397157868,), (1397157870,), (1397157872,), (1397157874,), (1397157886,), (1397157887,), (1397157912,), (1397157914,), (1397157916,), (1397157918,), (1397157920,), (1397157922,), (1397157980,), (1397158013,), (1397158045,), (1397158078,), (1397158480,), (1397158514,), (1397158537,), (1397158539,), (1397158541,), (1397158543,), (1397158697,), (1397158721,), (1397158726,), (1397158727,), (1397158751,), (1397158846,), (1397158856,), (1397158863,), (1397158880,), (1397158883,), (1397158887,), (1397158891,), (1397158894,), (1397158898,), (1397158940,), (1397158944,), (1397158948,), (1397158950,), (1397158988,), (1397158990,), (1397158992,), (1397158994,), (1397158996,), (1397158998,), (1397159016,), (1397159017,), (1397159018,), (1397159020,), (1397159022,), (1397159024,), (1397159030,), (1397159031,), (1397159032,), (1397159035,), (1397159245,), (1397159239,), (1397159241,), (1397159243,), (1397159256,), (1397159258,), (1397159260,), (1397159262,), (1397159264,), (1397159267,), (1397159279,), (1397159281,), (1397159283,), (1397159295,), (1397159299,), (1397159304,), (1397159306,), (1397159308,), (1397159310,), (1397159311,), (1397159312,), (1397159313,), (1397159325,), (1397159328,), (1397159330,), (1397159334,), (1397159338,), (1397159339,), (1397159340,), (1397159341,), (1397159343,), (1397159344,), (1397159358,), (1397159360,), (1397159362,), (1397159364,), (1397159367,), (1397159368,), (1397159369,), (1397159355,), (1397159357,), (1397159372,), (1397159375,), (1397159378,), (1397159381,), (1397159383,), (1397159385,), (1397159406,), (1397159407,), (1397159409,), (1397159410,), (1397159411,), (1397159412,), (1397159420,), (1397159421,), (1397159423,), (1397159425,), (1397159451,), (1397159452,), (1397159453,), (1397159454,), (1397159456,), (1397159458,), (1397159465,), (1397159468,), (1397159470,), (1397159473,), (1397159491,), (1397159493,), (1397159495,), (1397159497,), (1397159499,), (1397159507,), (1397159508,), (1397159510,), (1397159512,), (1397159515,), (1397159518,), (1397159541,), (1397159542,), (1397159544,), (1397159546,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'01122025': {'nb_upload': 43, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29035848]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1397159546, 1397159544, 1397159542, 1397159541, 1397159518, 1397159515, 1397159512, 1397159510, 1397159508, 1397159507, 1397159499, 1397159497, 1397159495, 1397159493, 1397159491] map_info['map_portfolio_photo'] : {29035848: [1397159546, 1397159544, 1397159542, 1397159541, 1397159518, 1397159515, 1397159512, 1397159510, 1397159508, 1397159507, 1397159499, 1397159497, 1397159495, 1397159493, 1397159491, 1397159473, 1397159470, 1397159468, 1397159465, 1397159458, 1397159456, 1397159454, 1397159453, 1397159452, 1397159451, 1397159425, 1397159423, 1397159421, 1397159420, 1397159412, 1397159411, 1397159410, 1397159409, 1397159407, 1397159406, 1397159385, 1397159383, 1397159381, 1397159378, 1397159375, 1397159372, 1397159357, 1397159355]} final : True mtd_id 4302 list_pids : [1397159546, 1397159544, 1397159542, 1397159541, 1397159518, 1397159515, 1397159512, 1397159510, 1397159508, 1397159507, 1397159499, 1397159497, 1397159495, 1397159493, 1397159491] Looping around the photos to save general results len do output : 1 /29035848Didn'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, '4142737') ('4302', '29035848', '1397159546', None, None, None, None, None, '4142737') ('4302', None, None, None, None, None, None, None, '4142737') ('4302', '29035848', '1397159544', None, None, None, None, None, '4142737') ('4302', None, None, None, None, None, None, None, '4142737') ('4302', '29035848', '1397159542', None, None, None, None, None, '4142737') ('4302', None, None, None, None, None, None, None, '4142737') ('4302', '29035848', '1397159541', None, None, None, None, None, '4142737') ('4302', None, None, None, None, None, None, None, '4142737') ('4302', '29035848', '1397159518', None, None, None, None, None, '4142737') ('4302', None, None, None, None, None, None, None, '4142737') ('4302', '29035848', '1397159515', None, None, None, None, None, '4142737') ('4302', None, None, None, None, None, None, None, '4142737') ('4302', '29035848', '1397159512', None, None, None, None, None, '4142737') ('4302', None, None, None, None, None, None, None, '4142737') ('4302', '29035848', '1397159510', None, None, None, None, None, '4142737') ('4302', None, None, None, None, None, None, None, '4142737') ('4302', '29035848', '1397159508', None, None, None, None, None, '4142737') ('4302', None, None, None, None, None, None, None, '4142737') ('4302', '29035848', '1397159507', None, None, None, None, None, '4142737') ('4302', None, None, None, None, None, None, None, '4142737') ('4302', '29035848', '1397159499', None, None, None, None, None, '4142737') ('4302', None, None, None, None, None, None, None, '4142737') ('4302', '29035848', '1397159497', None, None, None, None, None, '4142737') ('4302', None, None, None, None, None, None, None, '4142737') ('4302', '29035848', '1397159495', None, None, None, None, None, '4142737') ('4302', None, None, None, None, None, None, None, '4142737') ('4302', '29035848', '1397159493', None, None, None, None, None, '4142737') ('4302', None, None, None, None, None, None, None, '4142737') ('4302', '29035848', '1397159491', None, None, None, None, None, '4142737') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 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, '29035848', 'None', None, None, None, None, '4142737'), ('4302', '29035848', '1397159546', None, None, None, None, None, '4142737'), ('4302', '29035848', '1397159544', None, None, None, None, None, '4142737'), ('4302', '29035848', '1397159542', None, None, None, None, None, '4142737'), ('4302', '29035848', '1397159541', None, None, None, None, None, '4142737'), ('4302', '29035848', '1397159518', None, None, None, None, None, '4142737'), ('4302', '29035848', '1397159515', None, None, None, None, None, '4142737'), ('4302', '29035848', '1397159512', None, None, None, None, None, '4142737'), ('4302', '29035848', '1397159510', None, None, None, None, None, '4142737'), ('4302', '29035848', '1397159508', None, None, None, None, None, '4142737'), ('4302', '29035848', '1397159507', None, None, None, None, None, '4142737'), ('4302', '29035848', '1397159499', None, None, None, None, None, '4142737'), ('4302', '29035848', '1397159497', None, None, None, None, None, '4142737'), ('4302', '29035848', '1397159495', None, None, None, None, None, '4142737'), ('4302', '29035848', '1397159493', None, None, None, None, None, '4142737'), ('4302', '29035848', '1397159491', None, None, None, None, None, '4142737')] time used for this insertion : 0.01678919792175293 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.6923534870147705 time spend to save output : 0.017043113708496094 total time spend for step 5 : 0.7093966007232666 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 (4142737) 2.40user 2.33system 0:11.75elapsed 40%CPU (0avgtext+0avgdata 167032maxresident)k 72inputs+12672outputs (1major+81612minor)pagefaults 0swaps