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 : 307481 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 (2657698) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2657698) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21275965 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2657698'] with mtr_portfolio_ids : ['21275965'] and first list_photo_ids : [] new path : /proc/307481/ Name: python3 Umask: 0002 State: R (running) Tgid: 307481 Ngid: 0 Pid: 307481 PPid: 307480 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 307481 NSpid: 307481 NSpgid: 305045 NSsid: 305045 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98324 kB VmRSS: 98324 kB RssAnon: 59756 kB RssFile: 38568 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 596 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 57 nonvoluntary_ctxt_switches: 194 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '307481', 'Ngid': '0', 'Pid': '307481', 'PPid': '307480', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '307481', 'NSpid': '307481', 'NSpgid': '305045', 'NSsid': '305045', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98324 kB', 'VmRSS': '98324 kB', 'RssAnon': '59756 kB', 'RssFile': '38568 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '596 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '57', 'nonvoluntary_ctxt_switches': '194'} ('datou_batch_current', '307481', '1106844', '0', '1106844', '865592', '98324', b'', 'marlene', '2657698') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (21275965) 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 (2657698 ) ) 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 (21275965) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1342945456, 'portfolio_id': 21275965}, {'photo_id': 1342945419, 'portfolio_id': 21275965}, {'photo_id': 1342945359, 'portfolio_id': 21275965}, {'photo_id': 1342945284, 'portfolio_id': 21275965}, {'photo_id': 1342945170, 'portfolio_id': 21275965}, {'photo_id': 1342944920, 'portfolio_id': 21275965}, {'photo_id': 1342944789, 'portfolio_id': 21275965}, {'photo_id': 1342944730, 'portfolio_id': 21275965}, {'photo_id': 1342944659, 'portfolio_id': 21275965}, {'photo_id': 1342944603, 'portfolio_id': 21275965}, {'photo_id': 1342944568, 'portfolio_id': 21275965}, {'photo_id': 1342943658, 'portfolio_id': 21275965}, {'photo_id': 1342943595, 'portfolio_id': 21275965}, {'photo_id': 1342943488, 'portfolio_id': 21275965}, {'photo_id': 1342943394, 'portfolio_id': 21275965}, {'photo_id': 1342943236, 'portfolio_id': 21275965}, {'photo_id': 1342943215, 'portfolio_id': 21275965}, {'photo_id': 1342943174, 'portfolio_id': 21275965}, {'photo_id': 1342943106, 'portfolio_id': 21275965}, {'photo_id': 1342943031, 'portfolio_id': 21275965}, {'photo_id': 1342942924, 'portfolio_id': 21275965}, {'photo_id': 1342942409, 'portfolio_id': 21275965}, {'photo_id': 1342942329, 'portfolio_id': 21275965}, {'photo_id': 1342942260, 'portfolio_id': 21275965}, {'photo_id': 1342942205, 'portfolio_id': 21275965}, {'photo_id': 1342941517, 'portfolio_id': 21275965}, {'photo_id': 1342941511, 'portfolio_id': 21275965}, {'photo_id': 1342941505, 'portfolio_id': 21275965}, {'photo_id': 1342941484, 'portfolio_id': 21275965}, {'photo_id': 1342941426, 'portfolio_id': 21275965}, {'photo_id': 1342941188, 'portfolio_id': 21275965}, {'photo_id': 1342941073, 'portfolio_id': 21275965}, {'photo_id': 1342940951, 'portfolio_id': 21275965}, {'photo_id': 1342940783, 'portfolio_id': 21275965}, {'photo_id': 1342940718, 'portfolio_id': 21275965}, {'photo_id': 1342940185, 'portfolio_id': 21275965}, {'photo_id': 1342940104, 'portfolio_id': 21275965}, {'photo_id': 1342940007, 'portfolio_id': 21275965}, {'photo_id': 1342939934, 'portfolio_id': 21275965}, {'photo_id': 1342939861, 'portfolio_id': 21275965}, {'photo_id': 1342939458, 'portfolio_id': 21275965}, {'photo_id': 1342939381, 'portfolio_id': 21275965}, {'photo_id': 1342939301, 'portfolio_id': 21275965}, {'photo_id': 1342939213, 'portfolio_id': 21275965}, {'photo_id': 1342939115, 'portfolio_id': 21275965}, {'photo_id': 1342939057, 'portfolio_id': 21275965}, {'photo_id': 1342938375, 'portfolio_id': 21275965}, {'photo_id': 1342938341, 'portfolio_id': 21275965}, {'photo_id': 1342938317, 'portfolio_id': 21275965}] map_portfolio_id_photo_id: {21275965: [1342945456, 1342945419, 1342945359, 1342945284, 1342945170, 1342944920, 1342944789, 1342944730, 1342944659, 1342944603, 1342944568, 1342943658, 1342943595, 1342943488, 1342943394, 1342943236, 1342943215, 1342943174, 1342943106, 1342943031, 1342942924, 1342942409, 1342942329, 1342942260, 1342942205, 1342941517, 1342941511, 1342941505, 1342941484, 1342941426, 1342941188, 1342941073, 1342940951, 1342940783, 1342940718, 1342940185, 1342940104, 1342940007, 1342939934, 1342939861, 1342939458, 1342939381, 1342939301, 1342939213, 1342939115, 1342939057, 1342938375, 1342938341, 1342938317]} ##### 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.017467260360717773 #### 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 Tue Mar 11 11:11:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21275965) 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 : 21275965 get user id for portfolio 21275965 get sub ptf for main ptf 21275965, type 3726 and hashtags ['mal_croppe', 'metal', 'papier', 'autre_refus', 'environnement', 'plastique', 'flou', 'kraft', 'Carton_brun', 'Carton_gris', 'cartonnette', 'Teint_Dans_La_Masse'] 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`=21275965 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','metal','papier','autre_refus','environnement','plastique','flou','kraft','Carton_brun','Carton_gris','cartonnette','Teint_Dans_La_Masse')) 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`=21275965 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','metal','papier','autre_refus','environnement','plastique','flou','kraft','Carton_brun','Carton_gris','cartonnette','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 21275965, 'sub_port_id': 21275966, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13862462, 'last_updated_at': datetime.datetime(2025, 3, 11, 11, 9, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 11, 9, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 11, 4, 56)}, 'Carton_gris': {'main_port_id': 21275965, 'sub_port_id': 21275967, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13862463, 'last_updated_at': datetime.datetime(2025, 3, 11, 11, 9, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 11, 9, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 11, 4, 56)}, 'autre_refus': {'main_port_id': 21275965, 'sub_port_id': 21275968, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13862464, 'last_updated_at': datetime.datetime(2025, 3, 11, 11, 9, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 11, 9, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 11, 4, 56)}, 'environnement': {'main_port_id': 21275965, 'sub_port_id': 21275969, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13862465, 'last_updated_at': datetime.datetime(2025, 3, 11, 11, 9, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 11, 9, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 11, 4, 56)}, 'mal_croppe': {'main_port_id': 21275965, 'sub_port_id': 21275970, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13862466, 'last_updated_at': datetime.datetime(2025, 3, 11, 11, 9, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 11, 9, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 11, 4, 56)}, 'flou': {'main_port_id': 21275965, 'sub_port_id': 21275971, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13862467, 'last_updated_at': datetime.datetime(2025, 3, 11, 11, 9, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 11, 9, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 11, 4, 56)}, 'metal': {'main_port_id': 21275965, 'sub_port_id': 21275972, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13862468, 'last_updated_at': datetime.datetime(2025, 3, 11, 11, 9, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 11, 9, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 11, 4, 56)}, 'cartonnette': {'main_port_id': 21275965, 'sub_port_id': 21275973, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13862469, 'last_updated_at': datetime.datetime(2025, 3, 11, 11, 9, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 11, 9, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 11, 4, 56)}, 'papier': {'main_port_id': 21275965, 'sub_port_id': 21275974, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13862470, 'last_updated_at': datetime.datetime(2025, 3, 11, 11, 9, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 11, 9, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 11, 4, 56)}, 'plastique': {'main_port_id': 21275965, 'sub_port_id': 21275975, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13862471, 'last_updated_at': datetime.datetime(2025, 3, 11, 11, 9, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 11, 9, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 11, 4, 56)}, 'Carton_brun': {'main_port_id': 21275965, 'sub_port_id': 21275976, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13862472, 'last_updated_at': datetime.datetime(2025, 3, 11, 11, 9, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 11, 9, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 11, 4, 56)}, 'kraft': {'main_port_id': 21275965, 'sub_port_id': 21275977, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13862473, 'last_updated_at': datetime.datetime(2025, 3, 11, 11, 9, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 11, 9, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 11, 4, 56)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21275966 , 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=21275965 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 (21275966) result : ((1342943464,), (1342943470,), (1342944944,), (1342944945,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21275965) result : ((1342938317,), (1342938341,), (1342938375,), (1342939057,), (1342939115,), (1342939213,), (1342939301,), (1342939381,), (1342939458,), (1342939861,), (1342939934,), (1342940007,), (1342940104,), (1342940185,), (1342940718,), (1342940783,), (1342940951,), (1342941073,), (1342941188,), (1342941426,), (1342941484,), (1342941505,), (1342941511,), (1342941517,), (1342942205,), (1342942260,), (1342942329,), (1342942409,), (1342942924,), (1342943031,), (1342943106,), (1342943174,), (1342943215,), (1342943236,), (1342943394,), (1342943488,), (1342943595,), (1342943658,), (1342944568,), (1342944603,), (1342944659,), (1342944730,), (1342944789,), (1342944920,), (1342945170,), (1342945284,), (1342945359,), (1342945419,), (1342945456,)) 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 21275967 , 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=21275965 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 (21275967) result : ((1342943554,), (1342944977,), (1342945683,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21275965) result : ((1342938317,), (1342938341,), (1342938375,), (1342939057,), (1342939115,), (1342939213,), (1342939301,), (1342939381,), (1342939458,), (1342939861,), (1342939934,), (1342940007,), (1342940104,), (1342940185,), (1342940718,), (1342940783,), (1342940951,), (1342941073,), (1342941188,), (1342941426,), (1342941484,), (1342941505,), (1342941511,), (1342941517,), (1342942205,), (1342942260,), (1342942329,), (1342942409,), (1342942924,), (1342943031,), (1342943106,), (1342943174,), (1342943215,), (1342943236,), (1342943394,), (1342943488,), (1342943595,), (1342943658,), (1342944568,), (1342944603,), (1342944659,), (1342944730,), (1342944789,), (1342944920,), (1342945170,), (1342945284,), (1342945359,), (1342945419,), (1342945456,)) 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 21275968 , 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=21275965 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 (21275968) result : ((1342941563,), (1342941567,), (1342941569,), (1342941570,), (1342941574,), (1342941578,), (1342943511,), (1342943519,), (1342944946,), (1342944947,), (1342944948,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21275965) result : ((1342938317,), (1342938341,), (1342938375,), (1342939057,), (1342939115,), (1342939213,), (1342939301,), (1342939381,), (1342939458,), (1342939861,), (1342939934,), (1342940007,), (1342940104,), (1342940185,), (1342940718,), (1342940783,), (1342940951,), (1342941073,), (1342941188,), (1342941426,), (1342941484,), (1342941505,), (1342941511,), (1342941517,), (1342942205,), (1342942260,), (1342942329,), (1342942409,), (1342942924,), (1342943031,), (1342943106,), (1342943174,), (1342943215,), (1342943236,), (1342943394,), (1342943488,), (1342943595,), (1342943658,), (1342944568,), (1342944603,), (1342944659,), (1342944730,), (1342944789,), (1342944920,), (1342945170,), (1342945284,), (1342945359,), (1342945419,), (1342945456,)) 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 21275969 , 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=21275965 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 (21275969) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21275965) result : ((1342938317,), (1342938341,), (1342938375,), (1342939057,), (1342939115,), (1342939213,), (1342939301,), (1342939381,), (1342939458,), (1342939861,), (1342939934,), (1342940007,), (1342940104,), (1342940185,), (1342940718,), (1342940783,), (1342940951,), (1342941073,), (1342941188,), (1342941426,), (1342941484,), (1342941505,), (1342941511,), (1342941517,), (1342942205,), (1342942260,), (1342942329,), (1342942409,), (1342942924,), (1342943031,), (1342943106,), (1342943174,), (1342943215,), (1342943236,), (1342943394,), (1342943488,), (1342943595,), (1342943658,), (1342944568,), (1342944603,), (1342944659,), (1342944730,), (1342944789,), (1342944920,), (1342945170,), (1342945284,), (1342945359,), (1342945419,), (1342945456,)) 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 21275970 , 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=21275965 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 (21275970) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21275965) result : ((1342938317,), (1342938341,), (1342938375,), (1342939057,), (1342939115,), (1342939213,), (1342939301,), (1342939381,), (1342939458,), (1342939861,), (1342939934,), (1342940007,), (1342940104,), (1342940185,), (1342940718,), (1342940783,), (1342940951,), (1342941073,), (1342941188,), (1342941426,), (1342941484,), (1342941505,), (1342941511,), (1342941517,), (1342942205,), (1342942260,), (1342942329,), (1342942409,), (1342942924,), (1342943031,), (1342943106,), (1342943174,), (1342943215,), (1342943236,), (1342943394,), (1342943488,), (1342943595,), (1342943658,), (1342944568,), (1342944603,), (1342944659,), (1342944730,), (1342944789,), (1342944920,), (1342945170,), (1342945284,), (1342945359,), (1342945419,), (1342945456,)) 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 21275971 , 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=21275965 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 (21275971) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21275965) result : ((1342938317,), (1342938341,), (1342938375,), (1342939057,), (1342939115,), (1342939213,), (1342939301,), (1342939381,), (1342939458,), (1342939861,), (1342939934,), (1342940007,), (1342940104,), (1342940185,), (1342940718,), (1342940783,), (1342940951,), (1342941073,), (1342941188,), (1342941426,), (1342941484,), (1342941505,), (1342941511,), (1342941517,), (1342942205,), (1342942260,), (1342942329,), (1342942409,), (1342942924,), (1342943031,), (1342943106,), (1342943174,), (1342943215,), (1342943236,), (1342943394,), (1342943488,), (1342943595,), (1342943658,), (1342944568,), (1342944603,), (1342944659,), (1342944730,), (1342944789,), (1342944920,), (1342945170,), (1342945284,), (1342945359,), (1342945419,), (1342945456,)) 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 21275972 , 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=21275965 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 (21275972) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21275965) result : ((1342938317,), (1342938341,), (1342938375,), (1342939057,), (1342939115,), (1342939213,), (1342939301,), (1342939381,), (1342939458,), (1342939861,), (1342939934,), (1342940007,), (1342940104,), (1342940185,), (1342940718,), (1342940783,), (1342940951,), (1342941073,), (1342941188,), (1342941426,), (1342941484,), (1342941505,), (1342941511,), (1342941517,), (1342942205,), (1342942260,), (1342942329,), (1342942409,), (1342942924,), (1342943031,), (1342943106,), (1342943174,), (1342943215,), (1342943236,), (1342943394,), (1342943488,), (1342943595,), (1342943658,), (1342944568,), (1342944603,), (1342944659,), (1342944730,), (1342944789,), (1342944920,), (1342945170,), (1342945284,), (1342945359,), (1342945419,), (1342945456,)) 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 21275973 , 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=21275965 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 (21275973) result : ((1342941603,), (1342941605,), (1342941606,), (1342945000,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21275965) result : ((1342938317,), (1342938341,), (1342938375,), (1342939057,), (1342939115,), (1342939213,), (1342939301,), (1342939381,), (1342939458,), (1342939861,), (1342939934,), (1342940007,), (1342940104,), (1342940185,), (1342940718,), (1342940783,), (1342940951,), (1342941073,), (1342941188,), (1342941426,), (1342941484,), (1342941505,), (1342941511,), (1342941517,), (1342942205,), (1342942260,), (1342942329,), (1342942409,), (1342942924,), (1342943031,), (1342943106,), (1342943174,), (1342943215,), (1342943236,), (1342943394,), (1342943488,), (1342943595,), (1342943658,), (1342944568,), (1342944603,), (1342944659,), (1342944730,), (1342944789,), (1342944920,), (1342945170,), (1342945284,), (1342945359,), (1342945419,), (1342945456,)) 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 21275974 , 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=21275965 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 (21275974) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21275965) result : ((1342938317,), (1342938341,), (1342938375,), (1342939057,), (1342939115,), (1342939213,), (1342939301,), (1342939381,), (1342939458,), (1342939861,), (1342939934,), (1342940007,), (1342940104,), (1342940185,), (1342940718,), (1342940783,), (1342940951,), (1342941073,), (1342941188,), (1342941426,), (1342941484,), (1342941505,), (1342941511,), (1342941517,), (1342942205,), (1342942260,), (1342942329,), (1342942409,), (1342942924,), (1342943031,), (1342943106,), (1342943174,), (1342943215,), (1342943236,), (1342943394,), (1342943488,), (1342943595,), (1342943658,), (1342944568,), (1342944603,), (1342944659,), (1342944730,), (1342944789,), (1342944920,), (1342945170,), (1342945284,), (1342945359,), (1342945419,), (1342945456,)) 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 21275975 , 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=21275965 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 (21275975) result : ((1342941765,), (1342943621,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21275965) result : ((1342938317,), (1342938341,), (1342938375,), (1342939057,), (1342939115,), (1342939213,), (1342939301,), (1342939381,), (1342939458,), (1342939861,), (1342939934,), (1342940007,), (1342940104,), (1342940185,), (1342940718,), (1342940783,), (1342940951,), (1342941073,), (1342941188,), (1342941426,), (1342941484,), (1342941505,), (1342941511,), (1342941517,), (1342942205,), (1342942260,), (1342942329,), (1342942409,), (1342942924,), (1342943031,), (1342943106,), (1342943174,), (1342943215,), (1342943236,), (1342943394,), (1342943488,), (1342943595,), (1342943658,), (1342944568,), (1342944603,), (1342944659,), (1342944730,), (1342944789,), (1342944920,), (1342945170,), (1342945284,), (1342945359,), (1342945419,), (1342945456,)) 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 21275976 , 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=21275965 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 (21275976) result : ((1342943598,), (1342945026,), (1342945706,), (1342945709,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21275965) result : ((1342938317,), (1342938341,), (1342938375,), (1342939057,), (1342939115,), (1342939213,), (1342939301,), (1342939381,), (1342939458,), (1342939861,), (1342939934,), (1342940007,), (1342940104,), (1342940185,), (1342940718,), (1342940783,), (1342940951,), (1342941073,), (1342941188,), (1342941426,), (1342941484,), (1342941505,), (1342941511,), (1342941517,), (1342942205,), (1342942260,), (1342942329,), (1342942409,), (1342942924,), (1342943031,), (1342943106,), (1342943174,), (1342943215,), (1342943236,), (1342943394,), (1342943488,), (1342943595,), (1342943658,), (1342944568,), (1342944603,), (1342944659,), (1342944730,), (1342944789,), (1342944920,), (1342945170,), (1342945284,), (1342945359,), (1342945419,), (1342945456,)) 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 21275977 , 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=21275965 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 (21275977) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21275965) result : ((1342938317,), (1342938341,), (1342938375,), (1342939057,), (1342939115,), (1342939213,), (1342939301,), (1342939381,), (1342939458,), (1342939861,), (1342939934,), (1342940007,), (1342940104,), (1342940185,), (1342940718,), (1342940783,), (1342940951,), (1342941073,), (1342941188,), (1342941426,), (1342941484,), (1342941505,), (1342941511,), (1342941517,), (1342942205,), (1342942260,), (1342942329,), (1342942409,), (1342942924,), (1342943031,), (1342943106,), (1342943174,), (1342943215,), (1342943236,), (1342943394,), (1342943488,), (1342943595,), (1342943658,), (1342944568,), (1342944603,), (1342944659,), (1342944730,), (1342944789,), (1342944920,), (1342945170,), (1342945284,), (1342945359,), (1342945419,), (1342945456,)) 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`=21275965 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','metal','papier','autre_refus','environnement','plastique','flou','kraft','Carton_brun','Carton_gris','cartonnette','Teint_Dans_La_Masse')) 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`=21275965 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','metal','papier','autre_refus','environnement','plastique','flou','kraft','Carton_brun','Carton_gris','cartonnette','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 21275965, 'sub_port_id': 21275978, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13862474, 'last_updated_at': datetime.datetime(2025, 3, 11, 11, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 11, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 11, 4, 58)}, 'Carton_gris': {'main_port_id': 21275965, 'sub_port_id': 21275979, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13862475, 'last_updated_at': datetime.datetime(2025, 3, 11, 11, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 11, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 11, 4, 58)}, 'autre_refus': {'main_port_id': 21275965, 'sub_port_id': 21275980, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13862476, 'last_updated_at': datetime.datetime(2025, 3, 11, 11, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 11, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 11, 4, 58)}, 'environnement': {'main_port_id': 21275965, 'sub_port_id': 21275981, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13862477, 'last_updated_at': datetime.datetime(2025, 3, 11, 11, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 11, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 11, 4, 58)}, 'mal_croppe': {'main_port_id': 21275965, 'sub_port_id': 21275982, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13862478, 'last_updated_at': datetime.datetime(2025, 3, 11, 11, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 11, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 11, 4, 58)}, 'flou': {'main_port_id': 21275965, 'sub_port_id': 21275983, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13862479, 'last_updated_at': datetime.datetime(2025, 3, 11, 11, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 11, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 11, 4, 58)}, 'metal': {'main_port_id': 21275965, 'sub_port_id': 21275984, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13862480, 'last_updated_at': datetime.datetime(2025, 3, 11, 11, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 11, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 11, 4, 58)}, 'cartonnette': {'main_port_id': 21275965, 'sub_port_id': 21275985, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13862481, 'last_updated_at': datetime.datetime(2025, 3, 11, 11, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 11, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 11, 4, 58)}, 'papier': {'main_port_id': 21275965, 'sub_port_id': 21275986, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13862482, 'last_updated_at': datetime.datetime(2025, 3, 11, 11, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 11, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 11, 4, 58)}, 'plastique': {'main_port_id': 21275965, 'sub_port_id': 21275987, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13862483, 'last_updated_at': datetime.datetime(2025, 3, 11, 11, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 11, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 11, 4, 58)}, 'Carton_brun': {'main_port_id': 21275965, 'sub_port_id': 21275988, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13862484, 'last_updated_at': datetime.datetime(2025, 3, 11, 11, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 11, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 11, 4, 58)}, 'kraft': {'main_port_id': 21275965, 'sub_port_id': 21275989, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13862485, 'last_updated_at': datetime.datetime(2025, 3, 11, 11, 9, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 11, 9, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 11, 4, 58)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21275978,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21275966 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21275979,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21275967 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21275980,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21275968 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21275981,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21275969 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21275982,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21275970 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21275983,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21275971 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21275984,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21275972 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21275985,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21275973 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21275986,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21275974 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21275987,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21275975 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21275988,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21275976 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21275989,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21275977 lien utilise dans velours : https://www.fotonower.com/velours/21275978,21275979,21275980,21275981,21275982,21275983,21275984,21275985,21275986,21275987,21275988,21275989?tags=Teint_Dans_La_Masse,Carton_gris,autre_refus,environnement,mal_croppe,flou,metal,cartonnette,papier,plastique,Carton_brun,kraft After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21275965]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1342945456, 1342945419, 1342945359, 1342945284, 1342945170, 1342944920, 1342944789, 1342944730, 1342944659, 1342944603, 1342944568] map_info['map_portfolio_photo'] : {21275965: [1342945456, 1342945419, 1342945359, 1342945284, 1342945170, 1342944920, 1342944789, 1342944730, 1342944659, 1342944603, 1342944568, 1342943658, 1342943595, 1342943488, 1342943394, 1342943236, 1342943215, 1342943174, 1342943106, 1342943031, 1342942924, 1342942409, 1342942329, 1342942260, 1342942205, 1342941517, 1342941511, 1342941505, 1342941484, 1342941426, 1342941188, 1342941073, 1342940951, 1342940783, 1342940718, 1342940185, 1342940104, 1342940007, 1342939934, 1342939861, 1342939458, 1342939381, 1342939301, 1342939213, 1342939115, 1342939057, 1342938375, 1342938341, 1342938317]} final : False mtd_id 4302 list_pids : [1342945456, 1342945419, 1342945359, 1342945284, 1342945170, 1342944920, 1342944789, 1342944730, 1342944659, 1342944603, 1342944568] Looping around the photos to save general results len do output : 1 /21275965. 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, '2657698') ('4302', '21275965', '1342945456', None, None, None, None, None, '2657698') ('4302', None, None, None, None, None, None, None, '2657698') ('4302', '21275965', '1342945419', None, None, None, None, None, '2657698') ('4302', None, None, None, None, None, None, None, '2657698') ('4302', '21275965', '1342945359', None, None, None, None, None, '2657698') ('4302', None, None, None, None, None, None, None, '2657698') ('4302', '21275965', '1342945284', None, None, None, None, None, '2657698') ('4302', None, None, None, None, None, None, None, '2657698') ('4302', '21275965', '1342945170', None, None, None, None, None, '2657698') ('4302', None, None, None, None, None, None, None, '2657698') ('4302', '21275965', '1342944920', None, None, None, None, None, '2657698') ('4302', None, None, None, None, None, None, None, '2657698') ('4302', '21275965', '1342944789', None, None, None, None, None, '2657698') ('4302', None, None, None, None, None, None, None, '2657698') ('4302', '21275965', '1342944730', None, None, None, None, None, '2657698') ('4302', None, None, None, None, None, None, None, '2657698') ('4302', '21275965', '1342944659', None, None, None, None, None, '2657698') ('4302', None, None, None, None, None, None, None, '2657698') ('4302', '21275965', '1342944603', None, None, None, None, None, '2657698') ('4302', None, None, None, None, None, None, None, '2657698') ('4302', '21275965', '1342944568', None, None, None, None, None, '2657698') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21275965', "{'Teint_Dans_La_Masse': 21275966, 'Carton_gris': 21275967, 'autre_refus': 21275968, 'environnement': 21275969, 'mal_croppe': 21275970, 'flou': 21275971, 'metal': 21275972, 'cartonnette': 21275973, 'papier': 21275974, 'plastique': 21275975, 'Carton_brun': 21275976, 'kraft': 21275977}", None, None, None, None, '2657698'), ('4302', '21275965', '1342945456', None, None, None, None, None, '2657698'), ('4302', '21275965', '1342945419', None, None, None, None, None, '2657698'), ('4302', '21275965', '1342945359', None, None, None, None, None, '2657698'), ('4302', '21275965', '1342945284', None, None, None, None, None, '2657698'), ('4302', '21275965', '1342945170', None, None, None, None, None, '2657698'), ('4302', '21275965', '1342944920', None, None, None, None, None, '2657698'), ('4302', '21275965', '1342944789', None, None, None, None, None, '2657698'), ('4302', '21275965', '1342944730', None, None, None, None, None, '2657698'), ('4302', '21275965', '1342944659', None, None, None, None, None, '2657698'), ('4302', '21275965', '1342944603', None, None, None, None, None, '2657698'), ('4302', '21275965', '1342944568', None, None, None, None, None, '2657698')] time used for this insertion : 0.021558284759521484 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.6958386898040771 time spend to save output : 0.021917343139648438 total time spend for step 1 : 1.7177560329437256 step2:final Tue Mar 11 11:12:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21275965) 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 21275965 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1342938375,1342938341,1342938317,1342939458,1342939381,1342939301,1342939213,1342939115,1342939057,1342940185,1342940104,1342940007,1342939934,1342939861,1342941188,1342941073,1342940951,1342940783,1342940718,1342941517,1342941511,1342941505,1342941484,1342941426,1342942409,1342942329,1342942260,1342942205,1342943236,1342943215,1342943174,1342943106,1342943031,1342942924,1342943658,1342943595,1342943488,1342943394,1342944920,1342944789,1342944730,1342944659,1342944603,1342944568,1342945456,1342945419,1342945359,1342945284,1342945170); 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([21275965]) Inside saveOutput : final : False verbose : True original output for save of step final : {1342945456: ('0.07352368492476671',), 1342945419: ('0.07352368492476671',), 1342945359: ('0.07352368492476671',), 1342945284: ('0.07352368492476671',), 1342945170: ('0.07352368492476671',), 1342944920: ('0.07352368492476671',), 1342944789: ('0.07352368492476671',), 1342944730: ('0.07352368492476671',), 1342944659: ('0.07352368492476671',), 1342944603: ('0.07352368492476671',), 1342944568: ('0.07352368492476671',)} new output for save of step final : {1342945456: ('0.07352368492476671',), 1342945419: ('0.07352368492476671',), 1342945359: ('0.07352368492476671',), 1342945284: ('0.07352368492476671',), 1342945170: ('0.07352368492476671',), 1342944920: ('0.07352368492476671',), 1342944789: ('0.07352368492476671',), 1342944730: ('0.07352368492476671',), 1342944659: ('0.07352368492476671',), 1342944603: ('0.07352368492476671',), 1342944568: ('0.07352368492476671',)} [1342945456, 1342945419, 1342945359, 1342945284, 1342945170, 1342944920, 1342944789, 1342944730, 1342944659, 1342944603, 1342944568] map_info['map_portfolio_photo'] : {21275965: [1342945456, 1342945419, 1342945359, 1342945284, 1342945170, 1342944920, 1342944789, 1342944730, 1342944659, 1342944603, 1342944568, 1342943658, 1342943595, 1342943488, 1342943394, 1342943236, 1342943215, 1342943174, 1342943106, 1342943031, 1342942924, 1342942409, 1342942329, 1342942260, 1342942205, 1342941517, 1342941511, 1342941505, 1342941484, 1342941426, 1342941188, 1342941073, 1342940951, 1342940783, 1342940718, 1342940185, 1342940104, 1342940007, 1342939934, 1342939861, 1342939458, 1342939381, 1342939301, 1342939213, 1342939115, 1342939057, 1342938375, 1342938341, 1342938317]} final : False mtd_id 4302 list_pids : [1342945456, 1342945419, 1342945359, 1342945284, 1342945170, 1342944920, 1342944789, 1342944730, 1342944659, 1342944603, 1342944568] Looping around the photos to save general results len do output : 11 /1342945456.Didn't retrieve data . /1342945419.Didn't retrieve data . /1342945359.Didn't retrieve data . /1342945284.Didn't retrieve data . /1342945170.Didn't retrieve data . /1342944920.Didn't retrieve data . /1342944789.Didn't retrieve data . /1342944730.Didn't retrieve data . /1342944659.Didn't retrieve data . /1342944603.Didn't retrieve data . /1342944568.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, '2657698') ('4302', '21275965', '1342945456', None, None, None, None, None, '2657698') ('4302', None, None, None, None, None, None, None, '2657698') ('4302', '21275965', '1342945419', None, None, None, None, None, '2657698') ('4302', None, None, None, None, None, None, None, '2657698') ('4302', '21275965', '1342945359', None, None, None, None, None, '2657698') ('4302', None, None, None, None, None, None, None, '2657698') ('4302', '21275965', '1342945284', None, None, None, None, None, '2657698') ('4302', None, None, None, None, None, None, None, '2657698') ('4302', '21275965', '1342945170', None, None, None, None, None, '2657698') ('4302', None, None, None, None, None, None, None, '2657698') ('4302', '21275965', '1342944920', None, None, None, None, None, '2657698') ('4302', None, None, None, None, None, None, None, '2657698') ('4302', '21275965', '1342944789', None, None, None, None, None, '2657698') ('4302', None, None, None, None, None, None, None, '2657698') ('4302', '21275965', '1342944730', None, None, None, None, None, '2657698') ('4302', None, None, None, None, None, None, None, '2657698') ('4302', '21275965', '1342944659', None, None, None, None, None, '2657698') ('4302', None, None, None, None, None, None, None, '2657698') ('4302', '21275965', '1342944603', None, None, None, None, None, '2657698') ('4302', None, None, None, None, None, None, None, '2657698') ('4302', '21275965', '1342944568', None, None, None, None, None, '2657698') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 33 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', '21275965', '1342945456', '0.07352368492476671', None, None, None, None, '2657698'), ('4302', '21275965', '1342945419', '0.07352368492476671', None, None, None, None, '2657698'), ('4302', '21275965', '1342945359', '0.07352368492476671', None, None, None, None, '2657698'), ('4302', '21275965', '1342945284', '0.07352368492476671', None, None, None, None, '2657698'), ('4302', '21275965', '1342945170', '0.07352368492476671', None, None, None, None, '2657698'), ('4302', '21275965', '1342944920', '0.07352368492476671', None, None, None, None, '2657698'), ('4302', '21275965', '1342944789', '0.07352368492476671', None, None, None, None, '2657698'), ('4302', '21275965', '1342944730', '0.07352368492476671', None, None, None, None, '2657698'), ('4302', '21275965', '1342944659', '0.07352368492476671', None, None, None, None, '2657698'), ('4302', '21275965', '1342944603', '0.07352368492476671', None, None, None, None, '2657698'), ('4302', '21275965', '1342944568', '0.07352368492476671', None, None, None, None, '2657698')] time used for this insertion : 0.013738870620727539 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06790614128112793 time spend to save output : 0.01466226577758789 total time spend for step 2 : 0.08256840705871582 step3:velours_tree Tue Mar 11 11:12:01 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 : {21275965: [{'Teint_Dans_La_Masse': 21275966, 'Carton_gris': 21275967, 'autre_refus': 21275968, 'environnement': 21275969, 'mal_croppe': 21275970, 'flou': 21275971, 'metal': 21275972, 'cartonnette': 21275973, 'papier': 21275974, 'plastique': 21275975, 'Carton_brun': 21275976, 'kraft': 21275977}]} input_args_next_step : {21275965: ()} output_args : {21275965: [{'Teint_Dans_La_Masse': 21275966, 'Carton_gris': 21275967, 'autre_refus': 21275968, 'environnement': 21275969, 'mal_croppe': 21275970, 'flou': 21275971, 'metal': 21275972, 'cartonnette': 21275973, 'papier': 21275974, 'plastique': 21275975, 'Carton_brun': 21275976, 'kraft': 21275977}]} args : 21275965 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': 21275966, 'Carton_gris': 21275967, 'autre_refus': 21275968, 'environnement': 21275969, 'mal_croppe': 21275970, 'flou': 21275971, 'metal': 21275972, 'cartonnette': 21275973, 'papier': 21275974, 'plastique': 21275975, 'Carton_brun': 21275976, 'kraft': 21275977},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21275965) 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([21275965]) 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.35547447204589844 time spend to save output : 8.225440979003906e-05 total time spend for step 3 : 0.3555567264556885 step4:send_mail_cod Tue Mar 11 11:12:01 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 : {1342945456: ('0.07352368492476671',), 1342945419: ('0.07352368492476671',), 1342945359: ('0.07352368492476671',), 1342945284: ('0.07352368492476671',), 1342945170: ('0.07352368492476671',), 1342944920: ('0.07352368492476671',), 1342944789: ('0.07352368492476671',), 1342944730: ('0.07352368492476671',), 1342944659: ('0.07352368492476671',), 1342944603: ('0.07352368492476671',), 1342944568: ('0.07352368492476671',)} input_args_next_step : {1342945456: ()} output_args : {1342945456: ('0.07352368492476671',), 1342945419: ('0.07352368492476671',), 1342945359: ('0.07352368492476671',), 1342945284: ('0.07352368492476671',), 1342945170: ('0.07352368492476671',), 1342944920: ('0.07352368492476671',), 1342944789: ('0.07352368492476671',), 1342944730: ('0.07352368492476671',), 1342944659: ('0.07352368492476671',), 1342944603: ('0.07352368492476671',), 1342944568: ('0.07352368492476671',)} args : 1342945456 depend.output_id : 0 input_args_next_step : {1342945456: ('0.07352368492476671',), 1342945419: ()} output_args : {1342945456: ('0.07352368492476671',), 1342945419: ('0.07352368492476671',), 1342945359: ('0.07352368492476671',), 1342945284: ('0.07352368492476671',), 1342945170: ('0.07352368492476671',), 1342944920: ('0.07352368492476671',), 1342944789: ('0.07352368492476671',), 1342944730: ('0.07352368492476671',), 1342944659: ('0.07352368492476671',), 1342944603: ('0.07352368492476671',), 1342944568: ('0.07352368492476671',)} args : 1342945419 depend.output_id : 0 input_args_next_step : {1342945456: ('0.07352368492476671',), 1342945419: ('0.07352368492476671',), 1342945359: ()} output_args : {1342945456: ('0.07352368492476671',), 1342945419: ('0.07352368492476671',), 1342945359: ('0.07352368492476671',), 1342945284: ('0.07352368492476671',), 1342945170: ('0.07352368492476671',), 1342944920: ('0.07352368492476671',), 1342944789: ('0.07352368492476671',), 1342944730: ('0.07352368492476671',), 1342944659: ('0.07352368492476671',), 1342944603: ('0.07352368492476671',), 1342944568: ('0.07352368492476671',)} args : 1342945359 depend.output_id : 0 input_args_next_step : {1342945456: ('0.07352368492476671',), 1342945419: ('0.07352368492476671',), 1342945359: ('0.07352368492476671',), 1342945284: ()} output_args : {1342945456: ('0.07352368492476671',), 1342945419: ('0.07352368492476671',), 1342945359: ('0.07352368492476671',), 1342945284: ('0.07352368492476671',), 1342945170: ('0.07352368492476671',), 1342944920: ('0.07352368492476671',), 1342944789: ('0.07352368492476671',), 1342944730: ('0.07352368492476671',), 1342944659: ('0.07352368492476671',), 1342944603: ('0.07352368492476671',), 1342944568: ('0.07352368492476671',)} args : 1342945284 depend.output_id : 0 input_args_next_step : {1342945456: ('0.07352368492476671',), 1342945419: ('0.07352368492476671',), 1342945359: ('0.07352368492476671',), 1342945284: ('0.07352368492476671',), 1342945170: ()} output_args : {1342945456: ('0.07352368492476671',), 1342945419: ('0.07352368492476671',), 1342945359: ('0.07352368492476671',), 1342945284: ('0.07352368492476671',), 1342945170: ('0.07352368492476671',), 1342944920: ('0.07352368492476671',), 1342944789: ('0.07352368492476671',), 1342944730: ('0.07352368492476671',), 1342944659: ('0.07352368492476671',), 1342944603: ('0.07352368492476671',), 1342944568: ('0.07352368492476671',)} args : 1342945170 depend.output_id : 0 input_args_next_step : {1342945456: ('0.07352368492476671',), 1342945419: ('0.07352368492476671',), 1342945359: ('0.07352368492476671',), 1342945284: ('0.07352368492476671',), 1342945170: ('0.07352368492476671',), 1342944920: ()} output_args : {1342945456: ('0.07352368492476671',), 1342945419: ('0.07352368492476671',), 1342945359: ('0.07352368492476671',), 1342945284: ('0.07352368492476671',), 1342945170: ('0.07352368492476671',), 1342944920: ('0.07352368492476671',), 1342944789: ('0.07352368492476671',), 1342944730: ('0.07352368492476671',), 1342944659: ('0.07352368492476671',), 1342944603: ('0.07352368492476671',), 1342944568: ('0.07352368492476671',)} args : 1342944920 depend.output_id : 0 input_args_next_step : {1342945456: ('0.07352368492476671',), 1342945419: ('0.07352368492476671',), 1342945359: ('0.07352368492476671',), 1342945284: ('0.07352368492476671',), 1342945170: ('0.07352368492476671',), 1342944920: ('0.07352368492476671',), 1342944789: ()} output_args : {1342945456: ('0.07352368492476671',), 1342945419: ('0.07352368492476671',), 1342945359: ('0.07352368492476671',), 1342945284: ('0.07352368492476671',), 1342945170: ('0.07352368492476671',), 1342944920: ('0.07352368492476671',), 1342944789: ('0.07352368492476671',), 1342944730: ('0.07352368492476671',), 1342944659: ('0.07352368492476671',), 1342944603: ('0.07352368492476671',), 1342944568: ('0.07352368492476671',)} args : 1342944789 depend.output_id : 0 input_args_next_step : {1342945456: ('0.07352368492476671',), 1342945419: ('0.07352368492476671',), 1342945359: ('0.07352368492476671',), 1342945284: ('0.07352368492476671',), 1342945170: ('0.07352368492476671',), 1342944920: ('0.07352368492476671',), 1342944789: ('0.07352368492476671',), 1342944730: ()} output_args : {1342945456: ('0.07352368492476671',), 1342945419: ('0.07352368492476671',), 1342945359: ('0.07352368492476671',), 1342945284: ('0.07352368492476671',), 1342945170: ('0.07352368492476671',), 1342944920: ('0.07352368492476671',), 1342944789: ('0.07352368492476671',), 1342944730: ('0.07352368492476671',), 1342944659: ('0.07352368492476671',), 1342944603: ('0.07352368492476671',), 1342944568: ('0.07352368492476671',)} args : 1342944730 depend.output_id : 0 input_args_next_step : {1342945456: ('0.07352368492476671',), 1342945419: ('0.07352368492476671',), 1342945359: ('0.07352368492476671',), 1342945284: ('0.07352368492476671',), 1342945170: ('0.07352368492476671',), 1342944920: ('0.07352368492476671',), 1342944789: ('0.07352368492476671',), 1342944730: ('0.07352368492476671',), 1342944659: ()} output_args : {1342945456: ('0.07352368492476671',), 1342945419: ('0.07352368492476671',), 1342945359: ('0.07352368492476671',), 1342945284: ('0.07352368492476671',), 1342945170: ('0.07352368492476671',), 1342944920: ('0.07352368492476671',), 1342944789: ('0.07352368492476671',), 1342944730: ('0.07352368492476671',), 1342944659: ('0.07352368492476671',), 1342944603: ('0.07352368492476671',), 1342944568: ('0.07352368492476671',)} args : 1342944659 depend.output_id : 0 input_args_next_step : {1342945456: ('0.07352368492476671',), 1342945419: ('0.07352368492476671',), 1342945359: ('0.07352368492476671',), 1342945284: ('0.07352368492476671',), 1342945170: ('0.07352368492476671',), 1342944920: ('0.07352368492476671',), 1342944789: ('0.07352368492476671',), 1342944730: ('0.07352368492476671',), 1342944659: ('0.07352368492476671',), 1342944603: ()} output_args : {1342945456: ('0.07352368492476671',), 1342945419: ('0.07352368492476671',), 1342945359: ('0.07352368492476671',), 1342945284: ('0.07352368492476671',), 1342945170: ('0.07352368492476671',), 1342944920: ('0.07352368492476671',), 1342944789: ('0.07352368492476671',), 1342944730: ('0.07352368492476671',), 1342944659: ('0.07352368492476671',), 1342944603: ('0.07352368492476671',), 1342944568: ('0.07352368492476671',)} args : 1342944603 depend.output_id : 0 input_args_next_step : {1342945456: ('0.07352368492476671',), 1342945419: ('0.07352368492476671',), 1342945359: ('0.07352368492476671',), 1342945284: ('0.07352368492476671',), 1342945170: ('0.07352368492476671',), 1342944920: ('0.07352368492476671',), 1342944789: ('0.07352368492476671',), 1342944730: ('0.07352368492476671',), 1342944659: ('0.07352368492476671',), 1342944603: ('0.07352368492476671',), 1342944568: ()} output_args : {1342945456: ('0.07352368492476671',), 1342945419: ('0.07352368492476671',), 1342945359: ('0.07352368492476671',), 1342945284: ('0.07352368492476671',), 1342945170: ('0.07352368492476671',), 1342944920: ('0.07352368492476671',), 1342944789: ('0.07352368492476671',), 1342944730: ('0.07352368492476671',), 1342944659: ('0.07352368492476671',), 1342944603: ('0.07352368492476671',), 1342944568: ('0.07352368492476671',)} args : 1342944568 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 : {21275965: [{'Teint_Dans_La_Masse': 21275966, 'Carton_gris': 21275967, 'autre_refus': 21275968, 'environnement': 21275969, 'mal_croppe': 21275970, 'flou': 21275971, 'metal': 21275972, 'cartonnette': 21275973, 'papier': 21275974, 'plastique': 21275975, 'Carton_brun': 21275976, 'kraft': 21275977}]} input_args_next_step : {1342945456: ('0.07352368492476671',), 1342945419: ('0.07352368492476671',), 1342945359: ('0.07352368492476671',), 1342945284: ('0.07352368492476671',), 1342945170: ('0.07352368492476671',), 1342944920: ('0.07352368492476671',), 1342944789: ('0.07352368492476671',), 1342944730: ('0.07352368492476671',), 1342944659: ('0.07352368492476671',), 1342944603: ('0.07352368492476671',), 1342944568: ('0.07352368492476671',), 21275965: ()} output_args : {21275965: [{'Teint_Dans_La_Masse': 21275966, 'Carton_gris': 21275967, 'autre_refus': 21275968, 'environnement': 21275969, 'mal_croppe': 21275970, 'flou': 21275971, 'metal': 21275972, 'cartonnette': 21275973, 'papier': 21275974, 'plastique': 21275975, 'Carton_brun': 21275976, 'kraft': 21275977}]} args : 21275965 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 :12, first value : ('0.07352368492476671',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21275965) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1342945456,1342945419,1342945359,1342945284,1342945170,1342944920,1342944789,1342944730,1342944659,1342944603,1342944568) Found this number of photos: 11 ##### Call download_photos : nb_thread : 5 begin to download photo : 1342944568 begin to download photo : 1342944730 begin to download photo : 1342945170 begin to download photo : 1342945419 download finish for photo 1342945170 begin to download photo : 1342945284 download finish for photo 1342944568 begin to download photo : 1342944603 download finish for photo 1342945419 begin to download photo : 1342945456 download finish for photo 1342944730 begin to download photo : 1342944789 download finish for photo 1342945284 begin to download photo : 1342945359 download finish for photo 1342944789 begin to download photo : 1342944920 download finish for photo 1342945456 download finish for photo 1342944603 begin to download photo : 1342944659 download finish for photo 1342945359 download finish for photo 1342944920 download finish for photo 1342944659 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 11 ; length of list_pids : 11 ; length of list_args : 11 results_Auto_P21275965_11-03-2025_11_12_01.pdf 21275968 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21275968 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342941563: '1741687473_917656_1342939458_01d2d4798551828fbec8ed3b0ff5a73a_rle_crop_3704931999_0.png', 1342941567: '1741687473_917656_1342939458_01d2d4798551828fbec8ed3b0ff5a73a_rle_crop_3704932003_0.png', 1342941569: '1741687473_917656_1342938375_df561b2d960d68a6b0127d51f229ca8f_rle_crop_3704932042_0.png', 1342941570: '1741687473_917656_1342938341_c3a76dda7cea789596866c084e91c5aa_rle_crop_3704932107_0.png', 1342941574: '1741687473_917656_1342938317_ae4b0880370ae85b5ecd2b92cc4a5789_rle_crop_3704932797_0.png', 1342941578: '1741687473_917656_1342938317_ae4b0880370ae85b5ecd2b92cc4a5789_rle_crop_3704932800_0.png', 1342943511: '1741687586_1460708_1342940104_300bdd5519db6117f2b7521d968dd9ff_rle_crop_3704938336_0.png', 1342943519: '1741687586_1460708_1342939861_26477f4f09cb1549b00da7ecbb0c87c5_rle_crop_3704939216_0.png', 1342944946: '1741687705_1462853_1342942409_4ca3f53f7b4a0f7f124f3feead4a9fc0_rle_crop_3704940189_0.png', 1342944947: '1741687705_1462853_1342941511_e8dac3c98afc20ee510594bee1b4144f_rle_crop_3704940272_0.png', 1342944948: '1741687705_1462853_1342941505_6f1f69d7714349e30fe553a17a04d647_rle_crop_3704940319_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/801d8981c1f226b4359dcfe431b0e3f5_64955707.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/eb0417935ab1805922a193203bae39d3_33248220.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/ac1576ccebb7b5e65a03f40e699e6a48_57822612.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/39003cabb966ccfb47accda27b0e98d5_67260449.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/c33c61aee849b53e67f68be7cc01c0de_34882640.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/0f3be4e28ef6efb0e5645f99608d59c2_20740988.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/69f180deb978d1ec3327da850831a213_92507420.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/a4f204dd991b6a9d7ef24655048f4d83_39073001.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/c5a99a2605411bcf990a0d63b9f8640b_56265949.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/e72766368f58789b214744b8d53c5e41_53874166.png change filename to text .imagette212759681741687921/ imagette212759681741687921/1741687586_1460708_1342940104_300bdd5519db6117f2b7521d968dd9ff_rle_crop_3704938336_0.png.png imagette212759681741687921/1741687473_917656_1342939458_01d2d4798551828fbec8ed3b0ff5a73a_rle_crop_3704932003_0.png.png imagette212759681741687921/1741687586_1460708_1342939861_26477f4f09cb1549b00da7ecbb0c87c5_rle_crop_3704939216_0.png.png imagette212759681741687921/1741687473_917656_1342938341_c3a76dda7cea789596866c084e91c5aa_rle_crop_3704932107_0.png.png imagette212759681741687921/1741687473_917656_1342938317_ae4b0880370ae85b5ecd2b92cc4a5789_rle_crop_3704932800_0.png.png imagette212759681741687921/1741687705_1462853_1342942409_4ca3f53f7b4a0f7f124f3feead4a9fc0_rle_crop_3704940189_0.png.png imagette212759681741687921/1741687473_917656_1342938317_ae4b0880370ae85b5ecd2b92cc4a5789_rle_crop_3704932797_0.png.png imagette212759681741687921/1741687705_1462853_1342941505_6f1f69d7714349e30fe553a17a04d647_rle_crop_3704940319_0.png.png imagette212759681741687921/1741687705_1462853_1342941511_e8dac3c98afc20ee510594bee1b4144f_rle_crop_3704940272_0.png.png imagette212759681741687921/1741687473_917656_1342938375_df561b2d960d68a6b0127d51f229ca8f_rle_crop_3704932042_0.png.png imagette212759681741687921/1741687473_917656_1342939458_01d2d4798551828fbec8ed3b0ff5a73a_rle_crop_3704931999_0.png.png imagette212759701741687922/ imagette212759711741687922/ imagette212759721741687922/ wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/47fa4eda0541808c6ea7100c97ac84bc_65331521.png imagette212759681741687921 21275970 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21275970 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212759701741687922 21275971 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21275971 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212759711741687922 21275972 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21275972 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212759721741687922 21275973 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21275973 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342941603: '1741687473_917656_1342939458_01d2d4798551828fbec8ed3b0ff5a73a_rle_crop_3704931997_0.png', 1342941605: '1741687473_917656_1342938341_c3a76dda7cea789596866c084e91c5aa_rle_crop_3704932108_0.png', 1342941606: '1741687473_917656_1342938317_ae4b0880370ae85b5ecd2b92cc4a5789_rle_crop_3704932801_0.png', 1342945000: '1741687705_1462853_1342941511_e8dac3c98afc20ee510594bee1b4144f_rle_crop_3704940269_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/eef5b2bd9d265957da4257a792a6ef90_41733808.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/5e6ffb9116d46888b7642b789c10d4e2_56138843.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/3c989293c9fffbcd3ac4f8f0fe3d05a7_39688514.png change filename to text .imagette212759731741687922/ imagette212759731741687922/1741687705_1462853_1342941511_e8dac3c98afc20ee510594bee1b4144f_rle_crop_3704940269_0.png.png imagette212759731741687922/1741687473_917656_1342938341_c3a76dda7cea789596866c084e91c5aa_rle_crop_3704932108_0.png.png imagette212759731741687922/1741687473_917656_1342938317_ae4b0880370ae85b5ecd2b92cc4a5789_rle_crop_3704932801_0.png.png imagette212759731741687922/1741687473_917656_1342939458_01d2d4798551828fbec8ed3b0ff5a73a_rle_crop_3704931997_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/a11254c931eb40afd4bf6dbf7a7eaaf4_37327129.png imagette212759731741687922 21275975 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21275975 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342941765: '1741687473_917656_1342938317_ae4b0880370ae85b5ecd2b92cc4a5789_rle_crop_3704932794_0.png', 1342943621: '1741687586_1460708_1342940007_994b63235169dd214480c1910dbfd172_rle_crop_3704938916_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/de2a1261c8022092bbacd5cfe58f4387_99096025.png change filename to text .imagette212759751741687922/ imagette212759751741687922/1741687586_1460708_1342940007_994b63235169dd214480c1910dbfd172_rle_crop_3704938916_0.png.png imagette212759751741687922/1741687473_917656_1342938317_ae4b0880370ae85b5ecd2b92cc4a5789_rle_crop_3704932794_0.png.png imagette212759771741687922/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/ae84ecdfae84da14ec308ef221af7e55_25720357.png imagette212759751741687922 21275977 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21275977 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212759771741687922 21275966 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21275966 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342943464: '1741687586_1460708_1342940007_994b63235169dd214480c1910dbfd172_rle_crop_3704938922_0.png', 1342943470: '1741687586_1460708_1342940007_994b63235169dd214480c1910dbfd172_rle_crop_3704938915_0.png', 1342944944: '1741687705_1462853_1342942409_4ca3f53f7b4a0f7f124f3feead4a9fc0_rle_crop_3704940198_0.png', 1342944945: '1741687705_1462853_1342941511_e8dac3c98afc20ee510594bee1b4144f_rle_crop_3704940268_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/6e8636157ff6ab7fbcb8d539e34707f4_78168903.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/43951635de13c0f17e506c57e14395db_15236162.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/d49d8310d7c32201cd8e6406f4671cd7_37238362.png change filename to text .imagette212759661741687922/ imagette212759661741687922/1741687705_1462853_1342941511_e8dac3c98afc20ee510594bee1b4144f_rle_crop_3704940268_0.png.png imagette212759661741687922/1741687586_1460708_1342940007_994b63235169dd214480c1910dbfd172_rle_crop_3704938922_0.png.png imagette212759661741687922/1741687705_1462853_1342942409_4ca3f53f7b4a0f7f124f3feead4a9fc0_rle_crop_3704940198_0.png.png imagette212759661741687922/1741687586_1460708_1342940007_994b63235169dd214480c1910dbfd172_rle_crop_3704938915_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/ede7fe0221283cac8112dbe4ebf48f4a_36243515.png imagette212759661741687922 21275967 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21275967 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342943554: '1741687586_1460708_1342939934_6bf63c356664c4a1fb4e1480ab556d47_rle_crop_3704938955_0.png', 1342944977: '1741687705_1462853_1342942409_4ca3f53f7b4a0f7f124f3feead4a9fc0_rle_crop_3704940196_0.png', 1342945683: '1741687827_384502_1342943595_2165bd3edda1d91c5d551f651204475f_rle_crop_3704942359_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/21ed4bc25287acc914e5657fe6161174_97891198.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/5fc238ef6396b43a836bc7230aaea4de_38990525.png change filename to text .imagette212759671741687922/ imagette212759671741687922/1741687705_1462853_1342942409_4ca3f53f7b4a0f7f124f3feead4a9fc0_rle_crop_3704940196_0.png.png imagette212759671741687922/1741687827_384502_1342943595_2165bd3edda1d91c5d551f651204475f_rle_crop_3704942359_0.png.png imagette212759671741687922/1741687586_1460708_1342939934_6bf63c356664c4a1fb4e1480ab556d47_rle_crop_3704938955_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/8fb17ac20bcd5910dcca21e89c601bce_18229841.png imagette212759671741687922 21275976 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21275976 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342943598: '1741687586_1460708_1342939934_6bf63c356664c4a1fb4e1480ab556d47_rle_crop_3704938959_0.png', 1342945026: '1741687705_1462853_1342941484_83924a3eb080874dc3e6133959d33f7c_rle_crop_3704940340_0.png', 1342945706: '1741687827_384502_1342943488_9360774d56cfca5ed4765a54b98f60de_rle_crop_3704942375_0.png', 1342945709: '1741687827_384502_1342943394_bbae19efa4f1b9dbbf9b62f51ae9cde8_rle_crop_3704943106_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/25f2d3a08631cd5a57ec8a403343788e_37099739.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/204be3325763c6b543dba5121f44f17b_10751126.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/32cf7052fba2beadbb9c8e62abffeb17_39300044.png change filename to text .imagette212759761741687923/ imagette212759761741687923/1741687586_1460708_1342939934_6bf63c356664c4a1fb4e1480ab556d47_rle_crop_3704938959_0.png.png imagette212759761741687923/1741687827_384502_1342943394_bbae19efa4f1b9dbbf9b62f51ae9cde8_rle_crop_3704943106_0.png.png imagette212759761741687923/1741687827_384502_1342943488_9360774d56cfca5ed4765a54b98f60de_rle_crop_3704942375_0.png.png imagette212759761741687923/1741687705_1462853_1342941484_83924a3eb080874dc3e6133959d33f7c_rle_crop_3704940340_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/6fea4fd3118b70b099c1ba122e74c315_43313115.png imagette212759761741687923 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21275965 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21275978,21275979,21275980,21275981,21275982,21275983,21275984,21275985,21275986,21275987,21275988,21275989?tags=Teint_Dans_La_Masse,Carton_gris,autre_refus,environnement,mal_croppe,flou,metal,cartonnette,papier,plastique,Carton_brun,kraft your option no_mail is active, we will not send the real mail to your client args[1342945456] : ('0.07352368492476671',) no score found for photo 1342945456 We are sending mail with results at report@fotonower.com args[1342945419] : ('0.07352368492476671',) no score found for photo 1342945419 We are sending mail with results at report@fotonower.com args[1342945359] : ('0.07352368492476671',) no score found for photo 1342945359 We are sending mail with results at report@fotonower.com args[1342945284] : ('0.07352368492476671',) no score found for photo 1342945284 We are sending mail with results at report@fotonower.com args[1342945170] : ('0.07352368492476671',) no score found for photo 1342945170 We are sending mail with results at report@fotonower.com args[1342944920] : ('0.07352368492476671',) no score found for photo 1342944920 We are sending mail with results at report@fotonower.com args[1342944789] : ('0.07352368492476671',) no score found for photo 1342944789 We are sending mail with results at report@fotonower.com args[1342944730] : ('0.07352368492476671',) no score found for photo 1342944730 We are sending mail with results at report@fotonower.com args[1342944659] : ('0.07352368492476671',) no score found for photo 1342944659 We are sending mail with results at report@fotonower.com args[1342944603] : ('0.07352368492476671',) no score found for photo 1342944603 We are sending mail with results at report@fotonower.com args[1342944568] : ('0.07352368492476671',) no score found for photo 1342944568 We are sending mail with results at report@fotonower.com refus_total : 0.07352368492476671 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21275965 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_P21275965_11-03-2025_11_12_01.pdf results_Auto_P21275965_11-03-2025_11_12_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21275965_11-03-2025_11_12_01.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','21275965','results_Auto_P21275965_11-03-2025_11_12_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21275965_11-03-2025_11_12_01.pdf','pdf','','0.2','0.07352368492476671') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21275965]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1342945456, 1342945419, 1342945359, 1342945284, 1342945170, 1342944920, 1342944789, 1342944730, 1342944659, 1342944603, 1342944568] map_info['map_portfolio_photo'] : {21275965: [1342945456, 1342945419, 1342945359, 1342945284, 1342945170, 1342944920, 1342944789, 1342944730, 1342944659, 1342944603, 1342944568, 1342943658, 1342943595, 1342943488, 1342943394, 1342943236, 1342943215, 1342943174, 1342943106, 1342943031, 1342942924, 1342942409, 1342942329, 1342942260, 1342942205, 1342941517, 1342941511, 1342941505, 1342941484, 1342941426, 1342941188, 1342941073, 1342940951, 1342940783, 1342940718, 1342940185, 1342940104, 1342940007, 1342939934, 1342939861, 1342939458, 1342939381, 1342939301, 1342939213, 1342939115, 1342939057, 1342938375, 1342938341, 1342938317]} final : False mtd_id 4302 list_pids : [1342945456, 1342945419, 1342945359, 1342945284, 1342945170, 1342944920, 1342944789, 1342944730, 1342944659, 1342944603, 1342944568] 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, '2657698') ('4302', '21275965', '1342945456', None, None, None, None, None, '2657698') ('4302', None, None, None, None, None, None, None, '2657698') ('4302', '21275965', '1342945419', None, None, None, None, None, '2657698') ('4302', None, None, None, None, None, None, None, '2657698') ('4302', '21275965', '1342945359', None, None, None, None, None, '2657698') ('4302', None, None, None, None, None, None, None, '2657698') ('4302', '21275965', '1342945284', None, None, None, None, None, '2657698') ('4302', None, None, None, None, None, None, None, '2657698') ('4302', '21275965', '1342945170', None, None, None, None, None, '2657698') ('4302', None, None, None, None, None, None, None, '2657698') ('4302', '21275965', '1342944920', None, None, None, None, None, '2657698') ('4302', None, None, None, None, None, None, None, '2657698') ('4302', '21275965', '1342944789', None, None, None, None, None, '2657698') ('4302', None, None, None, None, None, None, None, '2657698') ('4302', '21275965', '1342944730', None, None, None, None, None, '2657698') ('4302', None, None, None, None, None, None, None, '2657698') ('4302', '21275965', '1342944659', None, None, None, None, None, '2657698') ('4302', None, None, None, None, None, None, None, '2657698') ('4302', '21275965', '1342944603', None, None, None, None, None, '2657698') ('4302', None, None, None, None, None, None, None, '2657698') ('4302', '21275965', '1342944568', None, None, None, None, None, '2657698') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21275965', '1342945456', None, None, None, None, None, '2657698'), ('4302', '21275965', '1342945419', None, None, None, None, None, '2657698'), ('4302', '21275965', '1342945359', None, None, None, None, None, '2657698'), ('4302', '21275965', '1342945284', None, None, None, None, None, '2657698'), ('4302', '21275965', '1342945170', None, None, None, None, None, '2657698'), ('4302', '21275965', '1342944920', None, None, None, None, None, '2657698'), ('4302', '21275965', '1342944789', None, None, None, None, None, '2657698'), ('4302', '21275965', '1342944730', None, None, None, None, None, '2657698'), ('4302', '21275965', '1342944659', None, None, None, None, None, '2657698'), ('4302', '21275965', '1342944603', None, None, None, None, None, '2657698'), ('4302', '21275965', '1342944568', None, None, None, None, None, '2657698')] time used for this insertion : 3.6498451232910156 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.030904531478882 time spend to save output : 3.6500871181488037 total time spend for step 4 : 6.6809916496276855 step5:split_time_score Tue Mar 11 11:12:08 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 : ['21275965'] 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 : [('21275965',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21275965) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1342945419: {'path': 'temp/1741687921_307481_1342945419_ff9665cd981122e879d6ff85079305fc.jpg', 'extension': 'jpg'}, 1342945456: {'path': 'temp/1741687921_307481_1342945456_14ba7723d8d73cf0dfbc7632be20f4bc.jpg', 'extension': 'jpg'}, 1342945170: {'path': 'temp/1741687921_307481_1342945170_c329c0c7cf9f2c109933f69a9a552172.jpg', 'extension': 'jpg'}, 1342945284: {'path': 'temp/1741687921_307481_1342945284_2b938472ae9e31a67eca4a49e429a725.jpg', 'extension': 'jpg'}, 1342945359: {'path': 'temp/1741687921_307481_1342945359_d737f4ef6e31515e348d7315d21bfb87.jpg', 'extension': 'jpg'}, 1342944730: {'path': 'temp/1741687921_307481_1342944730_67bce361faf3999f6bf24eb472a5aa58.jpg', 'extension': 'jpg'}, 1342944789: {'path': 'temp/1741687921_307481_1342944789_5c645db5ab2a177c2e0e0adfc857a8a1.jpg', 'extension': 'jpg'}, 1342944920: {'path': 'temp/1741687921_307481_1342944920_e2178fc45f7edb97bb8f47a2c76ffcfe.jpg', 'extension': 'jpg'}, 1342944568: {'path': 'temp/1741687921_307481_1342944568_043fbc1bfbc85444eb078978bdd4e38d.jpg', 'extension': 'jpg'}, 1342944603: {'path': 'temp/1741687921_307481_1342944603_a561bd4f513277e2d886730c5019710b.jpg', 'extension': 'jpg'}, 1342944659: {'path': 'temp/1741687921_307481_1342944659_e1cec9ac73f5d95f14847930b0934c79.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 = 21275965; (('arc_en_ciel_jrm',),) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 21275965 group by h (('11', 49),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21275965 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 (21275965) 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 (21275965) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 11032025 21275965 Nombre de photos uploadées : 49 / 23040 (0%) 11032025 21275965 Nombre de photos taguées (types de déchets): 0 / 49 (0%) 11032025 21275965 Nombre de photos taguées (volume) : 0 / 49 (0%) [{'photo_id': 1342938375, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/df561b2d960d68a6b0127d51f229ca8f.jpg', 'username': None, 'uploaded_at': 1741687298, 'text': 'image_11032025_11_00_14_010134m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1342938341, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/c3a76dda7cea789596866c084e91c5aa.jpg', 'username': None, 'uploaded_at': 1741687298, 'text': 'image_11032025_11_00_33_009125m0.jpg 2e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1342938317, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/ae4b0880370ae85b5ecd2b92cc4a5789.jpg', 'username': None, 'uploaded_at': 1741687298, 'text': 'image_11032025_11_00_43_010138m0.jpg 3.0000000000000004e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1342939458, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/01d2d4798551828fbec8ed3b0ff5a73a.jpg', 'username': None, 'uploaded_at': 1741687358, 'text': 'image_11032025_11_00_53_010137m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.1920928955078125e-06 elapsed_time : order_list_meta_photo_and_scores 3.0994415283203125e-06 ????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0019502639770507812 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21275965, '2025-03-11' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1656727,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02493453025817871 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= 1656727 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1656727, 'dashboard_run_id': 1665977, 'mtr_portfolio_id': 21274348, 'dashboard_result_id': 9342531, '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_P21274348_11-03-2025_10_48_05.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21274349, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21274350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21274351, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21274353, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21274355, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21274357, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21274359, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21274361, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21274363, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21274365, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21274367, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21274370, 'pht': 3726}}"}, {'dashboat_entry_day': 1656727, 'dashboard_run_id': 1665977, 'mtr_portfolio_id': 21274952, 'dashboard_result_id': 9342532, '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_P21274952_11-03-2025_11_03_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21274981, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21274982, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21274983, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21274984, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21274985, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21274986, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21274987, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21274988, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21274989, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21274990, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21274991, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21274992, 'pht': 3726}}"}, {'dashboat_entry_day': 1656727, 'dashboard_run_id': 1665977, 'mtr_portfolio_id': 21275965, 'dashboard_result_id': 9342533, '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_P21275965_11-03-2025_11_09_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21275966, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21275967, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21275968, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21275969, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21275970, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21275971, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21275972, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21275973, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21275974, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21275975, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21275976, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21275977, '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 = 21274348 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': 2657604, 'mtr_portfolio_id': 21274348, 'created_at': datetime.datetime(2025, 3, 11, 10, 48, 5), 'result': '0.1083951317170957', 'result_long': None, 'result_double': None}] Qualite : 0.1083951317170957 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21274348 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21274348_11-03-2025_10_48_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21274348 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_P21274348_11-03-2025_10_48_05.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21274349, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21274350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21274351, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21274353, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21274355, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21274357, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21274359, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21274361, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21274363, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21274365, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21274367, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21274370, 'pht': 3726}}" where mtr_portfolio_id = 21274348 and dashboard_run_id = 1665977 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`=21274348 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9342531, 0.1083951317170957, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21274348_11-03-2025_10_48_05.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21274349, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21274350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21274351, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21274353, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21274355, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21274357, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21274359, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21274361, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21274363, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21274365, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21274367, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21274370, '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 = 21274952 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': 2657627, 'mtr_portfolio_id': 21274952, 'created_at': datetime.datetime(2025, 3, 11, 11, 3, 2), 'result': '0.061270237211016196', 'result_long': None, 'result_double': None}] Qualite : 0.061270237211016196 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21274952 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21274952_11-03-2025_11_03_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21274952 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_P21274952_11-03-2025_11_03_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21274981, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21274982, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21274983, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21274984, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21274985, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21274986, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21274987, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21274988, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21274989, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21274990, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21274991, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21274992, 'pht': 3726}}" where mtr_portfolio_id = 21274952 and dashboard_run_id = 1665977 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`=21274952 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9342532, 0.061270237211016196, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21274952_11-03-2025_11_03_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21274981, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21274982, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21274983, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21274984, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21274985, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21274986, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21274987, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21274988, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21274989, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21274990, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21274991, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21274992, '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 = 21275965 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': 2657698, 'mtr_portfolio_id': 21275965, 'created_at': datetime.datetime(2025, 3, 11, 11, 12, 1), 'result': '0.07352368492476671', 'result_long': None, 'result_double': None}] Qualite : 0.07352368492476671 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21275965 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21275965_11-03-2025_11_12_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21275965 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_P21275965_11-03-2025_11_12_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21275966, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21275967, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21275968, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21275969, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21275970, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21275971, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21275972, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21275973, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21275974, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21275975, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21275976, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21275977, 'pht': 3726}}" where mtr_portfolio_id = 21275965 and dashboard_run_id = 1665977 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`=21275965 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9342533, 0.07352368492476671, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21275965_11-03-2025_11_12_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21275966, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21275967, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21275968, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21275969, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21275970, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21275971, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21275972, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21275973, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21275974, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21275975, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21275976, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21275977, '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 (21274348,21274952,21275965) result : ((1342927352,), (1342927605,), (1342928561,), (1342928726,), (1342928796,), (1342928856,), (1342928922,), (1342928994,), (1342929349,), (1342929398,), (1342929439,), (1342929486,), (1342929576,), (1342929926,), (1342930007,), (1342930066,), (1342930115,), (1342930659,), (1342930704,), (1342930755,), (1342930860,), (1342930957,), (1342931397,), (1342931433,), (1342931460,), (1342931515,), (1342932100,), (1342932183,), (1342932278,), (1342933009,), (1342933064,), (1342933103,), (1342933833,), (1342933542,), (1342933647,), (1342933696,), (1342934254,), (1342934305,), (1342934353,), (1342934389,), (1342934425,), (1342934525,), (1342934639,), (1342934659,), (1342934715,), (1342934762,), (1342935006,), (1342935033,), (1342935094,), (1342935340,), (1342935370,), (1342935393,), (1342935427,), (1342935447,), (1342935470,), (1342935525,), (1342935538,), (1342935553,), (1342935560,), (1342935684,), (1342935717,), (1342935726,), (1342935776,), (1342935798,), (1342935813,), (1342935821,), (1342935827,), (1342935997,), (1342936015,), (1342936019,), (1342936028,), (1342936044,), (1342936187,), (1342936219,), (1342936231,), (1342936251,), (1342936267,), (1342936387,), (1342936395,), (1342936422,), (1342936446,), (1342936470,), (1342936489,), (1342936604,), (1342936635,), (1342936647,), (1342936652,), (1342936654,), (1342936661,), (1342936748,), (1342936764,), (1342936808,), (1342936847,), (1342937452,), (1342937534,), (1342937630,), (1342937714,), (1342937795,), (1342937848,), (1342937941,), (1342938007,), (1342938052,), (1342938444,), (1342938317,), (1342938341,), (1342938375,), (1342939057,), (1342939115,), (1342939213,), (1342939301,), (1342939381,), (1342939458,), (1342939861,), (1342939934,), (1342940007,), (1342940104,), (1342940185,), (1342940718,), (1342940783,), (1342940951,), (1342941073,), (1342941188,), (1342941426,), (1342941484,), (1342941505,), (1342941511,), (1342941517,), (1342942205,), (1342942260,), (1342942329,), (1342942409,), (1342942924,), (1342943031,), (1342943106,), (1342943174,), (1342943215,), (1342943236,), (1342943394,), (1342943488,), (1342943595,), (1342943658,), (1342944568,), (1342944603,), (1342944659,), (1342944730,), (1342944789,), (1342944920,), (1342945170,), (1342945284,), (1342945359,), (1342945419,), (1342945456,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'11032025': {'nb_upload': 49, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21275965]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1342945456, 1342945419, 1342945359, 1342945284, 1342945170, 1342944920, 1342944789, 1342944730, 1342944659, 1342944603, 1342944568] map_info['map_portfolio_photo'] : {21275965: [1342945456, 1342945419, 1342945359, 1342945284, 1342945170, 1342944920, 1342944789, 1342944730, 1342944659, 1342944603, 1342944568, 1342943658, 1342943595, 1342943488, 1342943394, 1342943236, 1342943215, 1342943174, 1342943106, 1342943031, 1342942924, 1342942409, 1342942329, 1342942260, 1342942205, 1342941517, 1342941511, 1342941505, 1342941484, 1342941426, 1342941188, 1342941073, 1342940951, 1342940783, 1342940718, 1342940185, 1342940104, 1342940007, 1342939934, 1342939861, 1342939458, 1342939381, 1342939301, 1342939213, 1342939115, 1342939057, 1342938375, 1342938341, 1342938317]} final : True mtd_id 4302 list_pids : [1342945456, 1342945419, 1342945359, 1342945284, 1342945170, 1342944920, 1342944789, 1342944730, 1342944659, 1342944603, 1342944568] Looping around the photos to save general results len do output : 1 /21275965Didn'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, '2657698') ('4302', '21275965', '1342945456', None, None, None, None, None, '2657698') ('4302', None, None, None, None, None, None, None, '2657698') ('4302', '21275965', '1342945419', None, None, None, None, None, '2657698') ('4302', None, None, None, None, None, None, None, '2657698') ('4302', '21275965', '1342945359', None, None, None, None, None, '2657698') ('4302', None, None, None, None, None, None, None, '2657698') ('4302', '21275965', '1342945284', None, None, None, None, None, '2657698') ('4302', None, None, None, None, None, None, None, '2657698') ('4302', '21275965', '1342945170', None, None, None, None, None, '2657698') ('4302', None, None, None, None, None, None, None, '2657698') ('4302', '21275965', '1342944920', None, None, None, None, None, '2657698') ('4302', None, None, None, None, None, None, None, '2657698') ('4302', '21275965', '1342944789', None, None, None, None, None, '2657698') ('4302', None, None, None, None, None, None, None, '2657698') ('4302', '21275965', '1342944730', None, None, None, None, None, '2657698') ('4302', None, None, None, None, None, None, None, '2657698') ('4302', '21275965', '1342944659', None, None, None, None, None, '2657698') ('4302', None, None, None, None, None, None, None, '2657698') ('4302', '21275965', '1342944603', None, None, None, None, None, '2657698') ('4302', None, None, None, None, None, None, None, '2657698') ('4302', '21275965', '1342944568', None, None, None, None, None, '2657698') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21275965', 'None', None, None, None, None, '2657698'), ('4302', '21275965', '1342945456', None, None, None, None, None, '2657698'), ('4302', '21275965', '1342945419', None, None, None, None, None, '2657698'), ('4302', '21275965', '1342945359', None, None, None, None, None, '2657698'), ('4302', '21275965', '1342945284', None, None, None, None, None, '2657698'), ('4302', '21275965', '1342945170', None, None, None, None, None, '2657698'), ('4302', '21275965', '1342944920', None, None, None, None, None, '2657698'), ('4302', '21275965', '1342944789', None, None, None, None, None, '2657698'), ('4302', '21275965', '1342944730', None, None, None, None, None, '2657698'), ('4302', '21275965', '1342944659', None, None, None, None, None, '2657698'), ('4302', '21275965', '1342944603', None, None, None, None, None, '2657698'), ('4302', '21275965', '1342944568', None, None, None, None, None, '2657698')] time used for this insertion : 0.01611948013305664 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.2804906368255615 time spend to save output : 0.016469955444335938 total time spend for step 5 : 0.29696059226989746 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 (2657698) 2.20user 2.50system 0:12.22elapsed 38%CPU (0avgtext+0avgdata 159708maxresident)k 10104inputs+11392outputs (145major+76390minor)pagefaults 0swaps