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 : 3236185 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 (2692816) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2692816) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21729717 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2692816'] with mtr_portfolio_ids : ['21729717'] and first list_photo_ids : [] new path : /proc/3236185/ Name: python3 Umask: 0002 State: R (running) Tgid: 3236185 Ngid: 0 Pid: 3236185 PPid: 3236184 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3236185 NSpid: 3236185 NSpgid: 3232792 NSsid: 3232792 VmPeak: 1106928 kB VmSize: 1106928 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97532 kB VmRSS: 97532 kB RssAnon: 59796 kB RssFile: 37736 kB RssShmem: 0 kB VmData: 865676 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 624 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 1/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 50 nonvoluntary_ctxt_switches: 91 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3236185', 'Ngid': '0', 'Pid': '3236185', 'PPid': '3236184', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3236185', 'NSpid': '3236185', 'NSpgid': '3232792', 'NSsid': '3232792', 'VmPeak': '1106928 kB', 'VmSize': '1106928 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97532 kB', 'VmRSS': '97532 kB', 'RssAnon': '59796 kB', 'RssFile': '37736 kB', 'RssShmem': '0 kB', 'VmData': '865676 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '624 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '1/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '50', 'nonvoluntary_ctxt_switches': '91'} ('datou_batch_current', '3236185', '1106928', '0', '1106928', '865676', '97532', b'', 'marlene', '2692816') 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 (21729717) 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 (2692816 ) ) 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 (21729717) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1347492853, 'portfolio_id': 21729717}, {'photo_id': 1347492829, 'portfolio_id': 21729717}, {'photo_id': 1347492825, 'portfolio_id': 21729717}, {'photo_id': 1347492805, 'portfolio_id': 21729717}, {'photo_id': 1347492798, 'portfolio_id': 21729717}, {'photo_id': 1347492778, 'portfolio_id': 21729717}, {'photo_id': 1347492544, 'portfolio_id': 21729717}, {'photo_id': 1347492522, 'portfolio_id': 21729717}, {'photo_id': 1347492511, 'portfolio_id': 21729717}, {'photo_id': 1347492495, 'portfolio_id': 21729717}, {'photo_id': 1347492473, 'portfolio_id': 21729717}, {'photo_id': 1347492457, 'portfolio_id': 21729717}, {'photo_id': 1347492262, 'portfolio_id': 21729717}, {'photo_id': 1347492237, 'portfolio_id': 21729717}, {'photo_id': 1347492204, 'portfolio_id': 21729717}, {'photo_id': 1347491914, 'portfolio_id': 21729717}, {'photo_id': 1347491881, 'portfolio_id': 21729717}, {'photo_id': 1347491856, 'portfolio_id': 21729717}, {'photo_id': 1347491851, 'portfolio_id': 21729717}, {'photo_id': 1347491843, 'portfolio_id': 21729717}, {'photo_id': 1347491811, 'portfolio_id': 21729717}, {'photo_id': 1347491417, 'portfolio_id': 21729717}, {'photo_id': 1347491403, 'portfolio_id': 21729717}, {'photo_id': 1347491302, 'portfolio_id': 21729717}, {'photo_id': 1347491282, 'portfolio_id': 21729717}, {'photo_id': 1347490741, 'portfolio_id': 21729717}, {'photo_id': 1347490672, 'portfolio_id': 21729717}, {'photo_id': 1347490652, 'portfolio_id': 21729717}, {'photo_id': 1347490590, 'portfolio_id': 21729717}, {'photo_id': 1347490546, 'portfolio_id': 21729717}, {'photo_id': 1347490526, 'portfolio_id': 21729717}, {'photo_id': 1347489960, 'portfolio_id': 21729717}, {'photo_id': 1347489904, 'portfolio_id': 21729717}] map_portfolio_id_photo_id: {21729717: [1347492853, 1347492829, 1347492825, 1347492805, 1347492798, 1347492778, 1347492544, 1347492522, 1347492511, 1347492495, 1347492473, 1347492457, 1347492262, 1347492237, 1347492204, 1347491914, 1347491881, 1347491856, 1347491851, 1347491843, 1347491811, 1347491417, 1347491403, 1347491302, 1347491282, 1347490741, 1347490672, 1347490652, 1347490590, 1347490546, 1347490526, 1347489960, 1347489904]} ##### 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.014360427856445312 #### 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 Wed Mar 26 15:23:57 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 (21729717) 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 : 21729717 get user id for portfolio 21729717 get sub ptf for main ptf 21729717, type 3726 and hashtags ['mal_croppe', 'environnement', 'Carton_brun', 'cartonnette', 'Teint_Dans_La_Masse', 'flou', 'Carton_gris', 'plastique', 'autre_refus', 'kraft', 'papier', 'metal'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21729717 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','environnement','Carton_brun','cartonnette','Teint_Dans_La_Masse','flou','Carton_gris','plastique','autre_refus','kraft','papier','metal')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21729717 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','environnement','Carton_brun','cartonnette','Teint_Dans_La_Masse','flou','Carton_gris','plastique','autre_refus','kraft','papier','metal')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 21729717, 'sub_port_id': 21729742, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14255985, 'last_updated_at': datetime.datetime(2025, 3, 26, 15, 22, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 15, 22, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 15, 19, 56)}, 'environnement': {'main_port_id': 21729717, 'sub_port_id': 21729743, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14255986, 'last_updated_at': datetime.datetime(2025, 3, 26, 15, 22, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 15, 22, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 15, 19, 56)}, 'Teint_Dans_La_Masse': {'main_port_id': 21729717, 'sub_port_id': 21729744, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14255987, 'last_updated_at': datetime.datetime(2025, 3, 26, 15, 22, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 15, 22, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 15, 19, 56)}, 'plastique': {'main_port_id': 21729717, 'sub_port_id': 21729745, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14255988, 'last_updated_at': datetime.datetime(2025, 3, 26, 15, 22, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 15, 22, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 15, 19, 56)}, 'metal': {'main_port_id': 21729717, 'sub_port_id': 21729746, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14255989, 'last_updated_at': datetime.datetime(2025, 3, 26, 15, 22, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 15, 22, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 15, 19, 56)}, 'flou': {'main_port_id': 21729717, 'sub_port_id': 21729747, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14255990, 'last_updated_at': datetime.datetime(2025, 3, 26, 15, 22, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 15, 22, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 15, 19, 56)}, 'kraft': {'main_port_id': 21729717, 'sub_port_id': 21729748, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14255991, 'last_updated_at': datetime.datetime(2025, 3, 26, 15, 22, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 15, 22, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 15, 19, 56)}, 'Carton_gris': {'main_port_id': 21729717, 'sub_port_id': 21729749, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14255992, 'last_updated_at': datetime.datetime(2025, 3, 26, 15, 22, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 15, 22, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 15, 19, 56)}, 'Carton_brun': {'main_port_id': 21729717, 'sub_port_id': 21729750, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14255993, 'last_updated_at': datetime.datetime(2025, 3, 26, 15, 22, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 15, 22, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 15, 19, 56)}, 'papier': {'main_port_id': 21729717, 'sub_port_id': 21729751, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14255994, 'last_updated_at': datetime.datetime(2025, 3, 26, 15, 22, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 15, 22, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 15, 19, 56)}, 'cartonnette': {'main_port_id': 21729717, 'sub_port_id': 21729752, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14255995, 'last_updated_at': datetime.datetime(2025, 3, 26, 15, 22, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 15, 22, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 15, 19, 56)}, 'autre_refus': {'main_port_id': 21729717, 'sub_port_id': 21729753, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14255996, 'last_updated_at': datetime.datetime(2025, 3, 26, 15, 22, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 15, 22, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 15, 19, 56)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21729742 , 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=21729717 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 (21729742) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21729717) result : ((1347489904,), (1347489960,), (1347490526,), (1347490546,), (1347490590,), (1347490652,), (1347490672,), (1347490741,), (1347491282,), (1347491302,), (1347491403,), (1347491417,), (1347491811,), (1347491843,), (1347491851,), (1347491856,), (1347491881,), (1347491914,), (1347492204,), (1347492237,), (1347492262,), (1347492457,), (1347492473,), (1347492495,), (1347492511,), (1347492522,), (1347492544,), (1347492778,), (1347492798,), (1347492805,), (1347492825,), (1347492829,), (1347492853,)) 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 21729743 , 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=21729717 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 (21729743) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21729717) result : ((1347489904,), (1347489960,), (1347490526,), (1347490546,), (1347490590,), (1347490652,), (1347490672,), (1347490741,), (1347491282,), (1347491302,), (1347491403,), (1347491417,), (1347491811,), (1347491843,), (1347491851,), (1347491856,), (1347491881,), (1347491914,), (1347492204,), (1347492237,), (1347492262,), (1347492457,), (1347492473,), (1347492495,), (1347492511,), (1347492522,), (1347492544,), (1347492778,), (1347492798,), (1347492805,), (1347492825,), (1347492829,), (1347492853,)) 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 21729744 , 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=21729717 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 (21729744) result : ((1347491426,), (1347491427,), (1347492449,), (1347492450,), (1347492451,), (1347492845,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21729717) result : ((1347489904,), (1347489960,), (1347490526,), (1347490546,), (1347490590,), (1347490652,), (1347490672,), (1347490741,), (1347491282,), (1347491302,), (1347491403,), (1347491417,), (1347491811,), (1347491843,), (1347491851,), (1347491856,), (1347491881,), (1347491914,), (1347492204,), (1347492237,), (1347492262,), (1347492457,), (1347492473,), (1347492495,), (1347492511,), (1347492522,), (1347492544,), (1347492778,), (1347492798,), (1347492805,), (1347492825,), (1347492829,), (1347492853,)) 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 21729745 , 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=21729717 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 (21729745) result : ((1347491431,), (1347492484,), (1347492485,), (1347492486,), (1347492738,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21729717) result : ((1347489904,), (1347489960,), (1347490526,), (1347490546,), (1347490590,), (1347490652,), (1347490672,), (1347490741,), (1347491282,), (1347491302,), (1347491403,), (1347491417,), (1347491811,), (1347491843,), (1347491851,), (1347491856,), (1347491881,), (1347491914,), (1347492204,), (1347492237,), (1347492262,), (1347492457,), (1347492473,), (1347492495,), (1347492511,), (1347492522,), (1347492544,), (1347492778,), (1347492798,), (1347492805,), (1347492825,), (1347492829,), (1347492853,)) 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 21729746 , 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=21729717 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 (21729746) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21729717) result : ((1347489904,), (1347489960,), (1347490526,), (1347490546,), (1347490590,), (1347490652,), (1347490672,), (1347490741,), (1347491282,), (1347491302,), (1347491403,), (1347491417,), (1347491811,), (1347491843,), (1347491851,), (1347491856,), (1347491881,), (1347491914,), (1347492204,), (1347492237,), (1347492262,), (1347492457,), (1347492473,), (1347492495,), (1347492511,), (1347492522,), (1347492544,), (1347492778,), (1347492798,), (1347492805,), (1347492825,), (1347492829,), (1347492853,)) 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 21729747 , 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=21729717 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 (21729747) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21729717) result : ((1347489904,), (1347489960,), (1347490526,), (1347490546,), (1347490590,), (1347490652,), (1347490672,), (1347490741,), (1347491282,), (1347491302,), (1347491403,), (1347491417,), (1347491811,), (1347491843,), (1347491851,), (1347491856,), (1347491881,), (1347491914,), (1347492204,), (1347492237,), (1347492262,), (1347492457,), (1347492473,), (1347492495,), (1347492511,), (1347492522,), (1347492544,), (1347492778,), (1347492798,), (1347492805,), (1347492825,), (1347492829,), (1347492853,)) 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 21729748 , 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=21729717 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 (21729748) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21729717) result : ((1347489904,), (1347489960,), (1347490526,), (1347490546,), (1347490590,), (1347490652,), (1347490672,), (1347490741,), (1347491282,), (1347491302,), (1347491403,), (1347491417,), (1347491811,), (1347491843,), (1347491851,), (1347491856,), (1347491881,), (1347491914,), (1347492204,), (1347492237,), (1347492262,), (1347492457,), (1347492473,), (1347492495,), (1347492511,), (1347492522,), (1347492544,), (1347492778,), (1347492798,), (1347492805,), (1347492825,), (1347492829,), (1347492853,)) 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 21729749 , 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=21729717 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 (21729749) result : ((1347492464,), (1347492465,), (1347492466,), (1347492871,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21729717) result : ((1347489904,), (1347489960,), (1347490526,), (1347490546,), (1347490590,), (1347490652,), (1347490672,), (1347490741,), (1347491282,), (1347491302,), (1347491403,), (1347491417,), (1347491811,), (1347491843,), (1347491851,), (1347491856,), (1347491881,), (1347491914,), (1347492204,), (1347492237,), (1347492262,), (1347492457,), (1347492473,), (1347492495,), (1347492511,), (1347492522,), (1347492544,), (1347492778,), (1347492798,), (1347492805,), (1347492825,), (1347492829,), (1347492853,)) 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 21729750 , 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=21729717 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 (21729750) result : ((1347491429,), (1347491430,), (1347492476,), (1347492477,), (1347492733,), (1347492887,), (1347492888,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21729717) result : ((1347489904,), (1347489960,), (1347490526,), (1347490546,), (1347490590,), (1347490652,), (1347490672,), (1347490741,), (1347491282,), (1347491302,), (1347491403,), (1347491417,), (1347491811,), (1347491843,), (1347491851,), (1347491856,), (1347491881,), (1347491914,), (1347492204,), (1347492237,), (1347492262,), (1347492457,), (1347492473,), (1347492495,), (1347492511,), (1347492522,), (1347492544,), (1347492778,), (1347492798,), (1347492805,), (1347492825,), (1347492829,), (1347492853,)) 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 21729751 , 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=21729717 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 (21729751) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21729717) result : ((1347489904,), (1347489960,), (1347490526,), (1347490546,), (1347490590,), (1347490652,), (1347490672,), (1347490741,), (1347491282,), (1347491302,), (1347491403,), (1347491417,), (1347491811,), (1347491843,), (1347491851,), (1347491856,), (1347491881,), (1347491914,), (1347492204,), (1347492237,), (1347492262,), (1347492457,), (1347492473,), (1347492495,), (1347492511,), (1347492522,), (1347492544,), (1347492778,), (1347492798,), (1347492805,), (1347492825,), (1347492829,), (1347492853,)) 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 21729752 , 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=21729717 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 (21729752) result : ((1347492313,), (1347492314,), (1347492469,), (1347492470,), (1347492471,), (1347492472,), (1347492872,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21729717) result : ((1347489904,), (1347489960,), (1347490526,), (1347490546,), (1347490590,), (1347490652,), (1347490672,), (1347490741,), (1347491282,), (1347491302,), (1347491403,), (1347491417,), (1347491811,), (1347491843,), (1347491851,), (1347491856,), (1347491881,), (1347491914,), (1347492204,), (1347492237,), (1347492262,), (1347492457,), (1347492473,), (1347492495,), (1347492511,), (1347492522,), (1347492544,), (1347492778,), (1347492798,), (1347492805,), (1347492825,), (1347492829,), (1347492853,)) 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 21729753 , 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=21729717 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 (21729753) result : ((1347492864,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21729717) result : ((1347489904,), (1347489960,), (1347490526,), (1347490546,), (1347490590,), (1347490652,), (1347490672,), (1347490741,), (1347491282,), (1347491302,), (1347491403,), (1347491417,), (1347491811,), (1347491843,), (1347491851,), (1347491856,), (1347491881,), (1347491914,), (1347492204,), (1347492237,), (1347492262,), (1347492457,), (1347492473,), (1347492495,), (1347492511,), (1347492522,), (1347492544,), (1347492778,), (1347492798,), (1347492805,), (1347492825,), (1347492829,), (1347492853,)) 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`=21729717 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','environnement','Carton_brun','cartonnette','Teint_Dans_La_Masse','flou','Carton_gris','plastique','autre_refus','kraft','papier','metal')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21729717 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','environnement','Carton_brun','cartonnette','Teint_Dans_La_Masse','flou','Carton_gris','plastique','autre_refus','kraft','papier','metal')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 21729717, 'sub_port_id': 21729754, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14255997, 'last_updated_at': datetime.datetime(2025, 3, 26, 15, 19, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 15, 19, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 15, 19, 58)}, 'environnement': {'main_port_id': 21729717, 'sub_port_id': 21729755, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14255998, 'last_updated_at': datetime.datetime(2025, 3, 26, 15, 19, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 15, 19, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 15, 19, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 21729717, 'sub_port_id': 21729756, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14255999, 'last_updated_at': datetime.datetime(2025, 3, 26, 15, 19, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 15, 19, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 15, 19, 58)}, 'plastique': {'main_port_id': 21729717, 'sub_port_id': 21729757, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14256000, 'last_updated_at': datetime.datetime(2025, 3, 26, 15, 19, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 15, 19, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 15, 19, 58)}, 'metal': {'main_port_id': 21729717, 'sub_port_id': 21729758, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14256001, 'last_updated_at': datetime.datetime(2025, 3, 26, 15, 19, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 15, 19, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 15, 19, 58)}, 'flou': {'main_port_id': 21729717, 'sub_port_id': 21729759, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14256002, 'last_updated_at': datetime.datetime(2025, 3, 26, 15, 19, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 15, 19, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 15, 19, 58)}, 'kraft': {'main_port_id': 21729717, 'sub_port_id': 21729760, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14256003, 'last_updated_at': datetime.datetime(2025, 3, 26, 15, 19, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 15, 19, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 15, 19, 58)}, 'Carton_gris': {'main_port_id': 21729717, 'sub_port_id': 21729761, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14256004, 'last_updated_at': datetime.datetime(2025, 3, 26, 15, 19, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 15, 19, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 15, 19, 58)}, 'Carton_brun': {'main_port_id': 21729717, 'sub_port_id': 21729762, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14256005, 'last_updated_at': datetime.datetime(2025, 3, 26, 15, 19, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 15, 19, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 15, 19, 58)}, 'papier': {'main_port_id': 21729717, 'sub_port_id': 21729763, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14256006, 'last_updated_at': datetime.datetime(2025, 3, 26, 15, 19, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 15, 19, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 15, 19, 58)}, 'cartonnette': {'main_port_id': 21729717, 'sub_port_id': 21729764, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14256007, 'last_updated_at': datetime.datetime(2025, 3, 26, 15, 19, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 15, 19, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 15, 19, 58)}, 'autre_refus': {'main_port_id': 21729717, 'sub_port_id': 21729765, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14256008, 'last_updated_at': datetime.datetime(2025, 3, 26, 15, 22, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 15, 22, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 15, 19, 58)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21729754,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21729742 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21729755,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21729743 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21729756,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21729744 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21729757,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21729745 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21729758,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21729746 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21729759,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21729747 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21729760,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21729748 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21729761,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21729749 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21729762,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21729750 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21729763,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21729751 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21729764,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21729752 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21729765,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21729753 lien utilise dans velours : https://www.fotonower.com/velours/21729754,21729755,21729756,21729757,21729758,21729759,21729760,21729761,21729762,21729763,21729764,21729765?tags=mal_croppe,environnement,Teint_Dans_La_Masse,plastique,metal,flou,kraft,Carton_gris,Carton_brun,papier,cartonnette,autre_refus After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21729717]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1347492853, 1347492829, 1347492825, 1347492805, 1347492798, 1347492778, 1347492544, 1347492522, 1347492511, 1347492495, 1347492473, 1347492457] map_info['map_portfolio_photo'] : {21729717: [1347492853, 1347492829, 1347492825, 1347492805, 1347492798, 1347492778, 1347492544, 1347492522, 1347492511, 1347492495, 1347492473, 1347492457, 1347492262, 1347492237, 1347492204, 1347491914, 1347491881, 1347491856, 1347491851, 1347491843, 1347491811, 1347491417, 1347491403, 1347491302, 1347491282, 1347490741, 1347490672, 1347490652, 1347490590, 1347490546, 1347490526, 1347489960, 1347489904]} final : False mtd_id 4302 list_pids : [1347492853, 1347492829, 1347492825, 1347492805, 1347492798, 1347492778, 1347492544, 1347492522, 1347492511, 1347492495, 1347492473, 1347492457] Looping around the photos to save general results len do output : 1 /21729717. 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, '2692816') ('4302', '21729717', '1347492853', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347492829', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347492825', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347492805', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347492798', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347492778', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347492544', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347492522', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347492511', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347492495', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347492473', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347492457', None, None, None, None, None, '2692816') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 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, '21729717', "{'mal_croppe': 21729742, 'environnement': 21729743, 'Teint_Dans_La_Masse': 21729744, 'plastique': 21729745, 'metal': 21729746, 'flou': 21729747, 'kraft': 21729748, 'Carton_gris': 21729749, 'Carton_brun': 21729750, 'papier': 21729751, 'cartonnette': 21729752, 'autre_refus': 21729753}", None, None, None, None, '2692816'), ('4302', '21729717', '1347492853', None, None, None, None, None, '2692816'), ('4302', '21729717', '1347492829', None, None, None, None, None, '2692816'), ('4302', '21729717', '1347492825', None, None, None, None, None, '2692816'), ('4302', '21729717', '1347492805', None, None, None, None, None, '2692816'), ('4302', '21729717', '1347492798', None, None, None, None, None, '2692816'), ('4302', '21729717', '1347492778', None, None, None, None, None, '2692816'), ('4302', '21729717', '1347492544', None, None, None, None, None, '2692816'), ('4302', '21729717', '1347492522', None, None, None, None, None, '2692816'), ('4302', '21729717', '1347492511', None, None, None, None, None, '2692816'), ('4302', '21729717', '1347492495', None, None, None, None, None, '2692816'), ('4302', '21729717', '1347492473', None, None, None, None, None, '2692816'), ('4302', '21729717', '1347492457', None, None, None, None, None, '2692816')] time used for this insertion : 1.0790841579437256 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.6507017612457275 time spend to save output : 1.079402208328247 total time spend for step 1 : 2.7301039695739746 step2:final Wed Mar 26 15:24:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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 (21729717) 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 21729717 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1347489960,1347489904,1347490741,1347490672,1347490652,1347490590,1347490546,1347490526,1347491417,1347491403,1347491302,1347491282,1347491914,1347491881,1347491856,1347491851,1347491843,1347491811,1347492262,1347492237,1347492204,1347492544,1347492522,1347492511,1347492495,1347492473,1347492457,1347492853,1347492829,1347492825,1347492805,1347492798,1347492778); 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([21729717]) Inside saveOutput : final : False verbose : True original output for save of step final : {1347492853: ('0.05765139917147728',), 1347492829: ('0.05765139917147728',), 1347492825: ('0.05765139917147728',), 1347492805: ('0.05765139917147728',), 1347492798: ('0.05765139917147728',), 1347492778: ('0.05765139917147728',), 1347492544: ('0.05765139917147728',), 1347492522: ('0.05765139917147728',), 1347492511: ('0.05765139917147728',), 1347492495: ('0.05765139917147728',), 1347492473: ('0.05765139917147728',), 1347492457: ('0.05765139917147728',)} new output for save of step final : {1347492853: ('0.05765139917147728',), 1347492829: ('0.05765139917147728',), 1347492825: ('0.05765139917147728',), 1347492805: ('0.05765139917147728',), 1347492798: ('0.05765139917147728',), 1347492778: ('0.05765139917147728',), 1347492544: ('0.05765139917147728',), 1347492522: ('0.05765139917147728',), 1347492511: ('0.05765139917147728',), 1347492495: ('0.05765139917147728',), 1347492473: ('0.05765139917147728',), 1347492457: ('0.05765139917147728',)} [1347492853, 1347492829, 1347492825, 1347492805, 1347492798, 1347492778, 1347492544, 1347492522, 1347492511, 1347492495, 1347492473, 1347492457] map_info['map_portfolio_photo'] : {21729717: [1347492853, 1347492829, 1347492825, 1347492805, 1347492798, 1347492778, 1347492544, 1347492522, 1347492511, 1347492495, 1347492473, 1347492457, 1347492262, 1347492237, 1347492204, 1347491914, 1347491881, 1347491856, 1347491851, 1347491843, 1347491811, 1347491417, 1347491403, 1347491302, 1347491282, 1347490741, 1347490672, 1347490652, 1347490590, 1347490546, 1347490526, 1347489960, 1347489904]} final : False mtd_id 4302 list_pids : [1347492853, 1347492829, 1347492825, 1347492805, 1347492798, 1347492778, 1347492544, 1347492522, 1347492511, 1347492495, 1347492473, 1347492457] Looping around the photos to save general results len do output : 12 /1347492853.Didn't retrieve data . /1347492829.Didn't retrieve data . /1347492825.Didn't retrieve data . /1347492805.Didn't retrieve data . /1347492798.Didn't retrieve data . /1347492778.Didn't retrieve data . /1347492544.Didn't retrieve data . /1347492522.Didn't retrieve data . /1347492511.Didn't retrieve data . /1347492495.Didn't retrieve data . /1347492473.Didn't retrieve data . /1347492457.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, '2692816') ('4302', '21729717', '1347492853', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347492829', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347492825', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347492805', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347492798', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347492778', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347492544', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347492522', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347492511', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347492495', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347492473', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347492457', None, None, None, None, None, '2692816') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 36 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', '21729717', '1347492853', '0.05765139917147728', None, None, None, None, '2692816'), ('4302', '21729717', '1347492829', '0.05765139917147728', None, None, None, None, '2692816'), ('4302', '21729717', '1347492825', '0.05765139917147728', None, None, None, None, '2692816'), ('4302', '21729717', '1347492805', '0.05765139917147728', None, None, None, None, '2692816'), ('4302', '21729717', '1347492798', '0.05765139917147728', None, None, None, None, '2692816'), ('4302', '21729717', '1347492778', '0.05765139917147728', None, None, None, None, '2692816'), ('4302', '21729717', '1347492544', '0.05765139917147728', None, None, None, None, '2692816'), ('4302', '21729717', '1347492522', '0.05765139917147728', None, None, None, None, '2692816'), ('4302', '21729717', '1347492511', '0.05765139917147728', None, None, None, None, '2692816'), ('4302', '21729717', '1347492495', '0.05765139917147728', None, None, None, None, '2692816'), ('4302', '21729717', '1347492473', '0.05765139917147728', None, None, None, None, '2692816'), ('4302', '21729717', '1347492457', '0.05765139917147728', None, None, None, None, '2692816')] time used for this insertion : 0.016845703125 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07035446166992188 time spend to save output : 0.01743793487548828 total time spend for step 2 : 0.08779239654541016 step3:velours_tree Wed Mar 26 15:24:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {21729717: [{'mal_croppe': 21729742, 'environnement': 21729743, 'Teint_Dans_La_Masse': 21729744, 'plastique': 21729745, 'metal': 21729746, 'flou': 21729747, 'kraft': 21729748, 'Carton_gris': 21729749, 'Carton_brun': 21729750, 'papier': 21729751, 'cartonnette': 21729752, 'autre_refus': 21729753}]} input_args_next_step : {21729717: ()} output_args : {21729717: [{'mal_croppe': 21729742, 'environnement': 21729743, 'Teint_Dans_La_Masse': 21729744, 'plastique': 21729745, 'metal': 21729746, 'flou': 21729747, 'kraft': 21729748, 'Carton_gris': 21729749, 'Carton_brun': 21729750, 'papier': 21729751, 'cartonnette': 21729752, 'autre_refus': 21729753}]} args : 21729717 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 : ({'mal_croppe': 21729742, 'environnement': 21729743, 'Teint_Dans_La_Masse': 21729744, 'plastique': 21729745, 'metal': 21729746, 'flou': 21729747, 'kraft': 21729748, 'Carton_gris': 21729749, 'Carton_brun': 21729750, 'papier': 21729751, 'cartonnette': 21729752, 'autre_refus': 21729753},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21729717) 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([21729717]) 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.35011816024780273 time spend to save output : 8.392333984375e-05 total time spend for step 3 : 0.3502020835876465 step4:send_mail_cod Wed Mar 26 15:24: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 : {1347492853: ('0.05765139917147728',), 1347492829: ('0.05765139917147728',), 1347492825: ('0.05765139917147728',), 1347492805: ('0.05765139917147728',), 1347492798: ('0.05765139917147728',), 1347492778: ('0.05765139917147728',), 1347492544: ('0.05765139917147728',), 1347492522: ('0.05765139917147728',), 1347492511: ('0.05765139917147728',), 1347492495: ('0.05765139917147728',), 1347492473: ('0.05765139917147728',), 1347492457: ('0.05765139917147728',)} input_args_next_step : {1347492853: ()} output_args : {1347492853: ('0.05765139917147728',), 1347492829: ('0.05765139917147728',), 1347492825: ('0.05765139917147728',), 1347492805: ('0.05765139917147728',), 1347492798: ('0.05765139917147728',), 1347492778: ('0.05765139917147728',), 1347492544: ('0.05765139917147728',), 1347492522: ('0.05765139917147728',), 1347492511: ('0.05765139917147728',), 1347492495: ('0.05765139917147728',), 1347492473: ('0.05765139917147728',), 1347492457: ('0.05765139917147728',)} args : 1347492853 depend.output_id : 0 input_args_next_step : {1347492853: ('0.05765139917147728',), 1347492829: ()} output_args : {1347492853: ('0.05765139917147728',), 1347492829: ('0.05765139917147728',), 1347492825: ('0.05765139917147728',), 1347492805: ('0.05765139917147728',), 1347492798: ('0.05765139917147728',), 1347492778: ('0.05765139917147728',), 1347492544: ('0.05765139917147728',), 1347492522: ('0.05765139917147728',), 1347492511: ('0.05765139917147728',), 1347492495: ('0.05765139917147728',), 1347492473: ('0.05765139917147728',), 1347492457: ('0.05765139917147728',)} args : 1347492829 depend.output_id : 0 input_args_next_step : {1347492853: ('0.05765139917147728',), 1347492829: ('0.05765139917147728',), 1347492825: ()} output_args : {1347492853: ('0.05765139917147728',), 1347492829: ('0.05765139917147728',), 1347492825: ('0.05765139917147728',), 1347492805: ('0.05765139917147728',), 1347492798: ('0.05765139917147728',), 1347492778: ('0.05765139917147728',), 1347492544: ('0.05765139917147728',), 1347492522: ('0.05765139917147728',), 1347492511: ('0.05765139917147728',), 1347492495: ('0.05765139917147728',), 1347492473: ('0.05765139917147728',), 1347492457: ('0.05765139917147728',)} args : 1347492825 depend.output_id : 0 input_args_next_step : {1347492853: ('0.05765139917147728',), 1347492829: ('0.05765139917147728',), 1347492825: ('0.05765139917147728',), 1347492805: ()} output_args : {1347492853: ('0.05765139917147728',), 1347492829: ('0.05765139917147728',), 1347492825: ('0.05765139917147728',), 1347492805: ('0.05765139917147728',), 1347492798: ('0.05765139917147728',), 1347492778: ('0.05765139917147728',), 1347492544: ('0.05765139917147728',), 1347492522: ('0.05765139917147728',), 1347492511: ('0.05765139917147728',), 1347492495: ('0.05765139917147728',), 1347492473: ('0.05765139917147728',), 1347492457: ('0.05765139917147728',)} args : 1347492805 depend.output_id : 0 input_args_next_step : {1347492853: ('0.05765139917147728',), 1347492829: ('0.05765139917147728',), 1347492825: ('0.05765139917147728',), 1347492805: ('0.05765139917147728',), 1347492798: ()} output_args : {1347492853: ('0.05765139917147728',), 1347492829: ('0.05765139917147728',), 1347492825: ('0.05765139917147728',), 1347492805: ('0.05765139917147728',), 1347492798: ('0.05765139917147728',), 1347492778: ('0.05765139917147728',), 1347492544: ('0.05765139917147728',), 1347492522: ('0.05765139917147728',), 1347492511: ('0.05765139917147728',), 1347492495: ('0.05765139917147728',), 1347492473: ('0.05765139917147728',), 1347492457: ('0.05765139917147728',)} args : 1347492798 depend.output_id : 0 input_args_next_step : {1347492853: ('0.05765139917147728',), 1347492829: ('0.05765139917147728',), 1347492825: ('0.05765139917147728',), 1347492805: ('0.05765139917147728',), 1347492798: ('0.05765139917147728',), 1347492778: ()} output_args : {1347492853: ('0.05765139917147728',), 1347492829: ('0.05765139917147728',), 1347492825: ('0.05765139917147728',), 1347492805: ('0.05765139917147728',), 1347492798: ('0.05765139917147728',), 1347492778: ('0.05765139917147728',), 1347492544: ('0.05765139917147728',), 1347492522: ('0.05765139917147728',), 1347492511: ('0.05765139917147728',), 1347492495: ('0.05765139917147728',), 1347492473: ('0.05765139917147728',), 1347492457: ('0.05765139917147728',)} args : 1347492778 depend.output_id : 0 input_args_next_step : {1347492853: ('0.05765139917147728',), 1347492829: ('0.05765139917147728',), 1347492825: ('0.05765139917147728',), 1347492805: ('0.05765139917147728',), 1347492798: ('0.05765139917147728',), 1347492778: ('0.05765139917147728',), 1347492544: ()} output_args : {1347492853: ('0.05765139917147728',), 1347492829: ('0.05765139917147728',), 1347492825: ('0.05765139917147728',), 1347492805: ('0.05765139917147728',), 1347492798: ('0.05765139917147728',), 1347492778: ('0.05765139917147728',), 1347492544: ('0.05765139917147728',), 1347492522: ('0.05765139917147728',), 1347492511: ('0.05765139917147728',), 1347492495: ('0.05765139917147728',), 1347492473: ('0.05765139917147728',), 1347492457: ('0.05765139917147728',)} args : 1347492544 depend.output_id : 0 input_args_next_step : {1347492853: ('0.05765139917147728',), 1347492829: ('0.05765139917147728',), 1347492825: ('0.05765139917147728',), 1347492805: ('0.05765139917147728',), 1347492798: ('0.05765139917147728',), 1347492778: ('0.05765139917147728',), 1347492544: ('0.05765139917147728',), 1347492522: ()} output_args : {1347492853: ('0.05765139917147728',), 1347492829: ('0.05765139917147728',), 1347492825: ('0.05765139917147728',), 1347492805: ('0.05765139917147728',), 1347492798: ('0.05765139917147728',), 1347492778: ('0.05765139917147728',), 1347492544: ('0.05765139917147728',), 1347492522: ('0.05765139917147728',), 1347492511: ('0.05765139917147728',), 1347492495: ('0.05765139917147728',), 1347492473: ('0.05765139917147728',), 1347492457: ('0.05765139917147728',)} args : 1347492522 depend.output_id : 0 input_args_next_step : {1347492853: ('0.05765139917147728',), 1347492829: ('0.05765139917147728',), 1347492825: ('0.05765139917147728',), 1347492805: ('0.05765139917147728',), 1347492798: ('0.05765139917147728',), 1347492778: ('0.05765139917147728',), 1347492544: ('0.05765139917147728',), 1347492522: ('0.05765139917147728',), 1347492511: ()} output_args : {1347492853: ('0.05765139917147728',), 1347492829: ('0.05765139917147728',), 1347492825: ('0.05765139917147728',), 1347492805: ('0.05765139917147728',), 1347492798: ('0.05765139917147728',), 1347492778: ('0.05765139917147728',), 1347492544: ('0.05765139917147728',), 1347492522: ('0.05765139917147728',), 1347492511: ('0.05765139917147728',), 1347492495: ('0.05765139917147728',), 1347492473: ('0.05765139917147728',), 1347492457: ('0.05765139917147728',)} args : 1347492511 depend.output_id : 0 input_args_next_step : {1347492853: ('0.05765139917147728',), 1347492829: ('0.05765139917147728',), 1347492825: ('0.05765139917147728',), 1347492805: ('0.05765139917147728',), 1347492798: ('0.05765139917147728',), 1347492778: ('0.05765139917147728',), 1347492544: ('0.05765139917147728',), 1347492522: ('0.05765139917147728',), 1347492511: ('0.05765139917147728',), 1347492495: ()} output_args : {1347492853: ('0.05765139917147728',), 1347492829: ('0.05765139917147728',), 1347492825: ('0.05765139917147728',), 1347492805: ('0.05765139917147728',), 1347492798: ('0.05765139917147728',), 1347492778: ('0.05765139917147728',), 1347492544: ('0.05765139917147728',), 1347492522: ('0.05765139917147728',), 1347492511: ('0.05765139917147728',), 1347492495: ('0.05765139917147728',), 1347492473: ('0.05765139917147728',), 1347492457: ('0.05765139917147728',)} args : 1347492495 depend.output_id : 0 input_args_next_step : {1347492853: ('0.05765139917147728',), 1347492829: ('0.05765139917147728',), 1347492825: ('0.05765139917147728',), 1347492805: ('0.05765139917147728',), 1347492798: ('0.05765139917147728',), 1347492778: ('0.05765139917147728',), 1347492544: ('0.05765139917147728',), 1347492522: ('0.05765139917147728',), 1347492511: ('0.05765139917147728',), 1347492495: ('0.05765139917147728',), 1347492473: ()} output_args : {1347492853: ('0.05765139917147728',), 1347492829: ('0.05765139917147728',), 1347492825: ('0.05765139917147728',), 1347492805: ('0.05765139917147728',), 1347492798: ('0.05765139917147728',), 1347492778: ('0.05765139917147728',), 1347492544: ('0.05765139917147728',), 1347492522: ('0.05765139917147728',), 1347492511: ('0.05765139917147728',), 1347492495: ('0.05765139917147728',), 1347492473: ('0.05765139917147728',), 1347492457: ('0.05765139917147728',)} args : 1347492473 depend.output_id : 0 input_args_next_step : {1347492853: ('0.05765139917147728',), 1347492829: ('0.05765139917147728',), 1347492825: ('0.05765139917147728',), 1347492805: ('0.05765139917147728',), 1347492798: ('0.05765139917147728',), 1347492778: ('0.05765139917147728',), 1347492544: ('0.05765139917147728',), 1347492522: ('0.05765139917147728',), 1347492511: ('0.05765139917147728',), 1347492495: ('0.05765139917147728',), 1347492473: ('0.05765139917147728',), 1347492457: ()} output_args : {1347492853: ('0.05765139917147728',), 1347492829: ('0.05765139917147728',), 1347492825: ('0.05765139917147728',), 1347492805: ('0.05765139917147728',), 1347492798: ('0.05765139917147728',), 1347492778: ('0.05765139917147728',), 1347492544: ('0.05765139917147728',), 1347492522: ('0.05765139917147728',), 1347492511: ('0.05765139917147728',), 1347492495: ('0.05765139917147728',), 1347492473: ('0.05765139917147728',), 1347492457: ('0.05765139917147728',)} args : 1347492457 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 : {21729717: [{'mal_croppe': 21729742, 'environnement': 21729743, 'Teint_Dans_La_Masse': 21729744, 'plastique': 21729745, 'metal': 21729746, 'flou': 21729747, 'kraft': 21729748, 'Carton_gris': 21729749, 'Carton_brun': 21729750, 'papier': 21729751, 'cartonnette': 21729752, 'autre_refus': 21729753}]} input_args_next_step : {1347492853: ('0.05765139917147728',), 1347492829: ('0.05765139917147728',), 1347492825: ('0.05765139917147728',), 1347492805: ('0.05765139917147728',), 1347492798: ('0.05765139917147728',), 1347492778: ('0.05765139917147728',), 1347492544: ('0.05765139917147728',), 1347492522: ('0.05765139917147728',), 1347492511: ('0.05765139917147728',), 1347492495: ('0.05765139917147728',), 1347492473: ('0.05765139917147728',), 1347492457: ('0.05765139917147728',), 21729717: ()} output_args : {21729717: [{'mal_croppe': 21729742, 'environnement': 21729743, 'Teint_Dans_La_Masse': 21729744, 'plastique': 21729745, 'metal': 21729746, 'flou': 21729747, 'kraft': 21729748, 'Carton_gris': 21729749, 'Carton_brun': 21729750, 'papier': 21729751, 'cartonnette': 21729752, 'autre_refus': 21729753}]} args : 21729717 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 :13, first value : ('0.05765139917147728',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21729717) 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 (1347492853,1347492829,1347492825,1347492805,1347492798,1347492778,1347492544,1347492522,1347492511,1347492495,1347492473,1347492457) Found this number of photos: 12 ##### Call download_photos : nb_thread : 5 begin to download photo : 1347492457 begin to download photo : 1347492511 begin to download photo : 1347492778 begin to download photo : 1347492825 download finish for photo 1347492778 begin to download photo : 1347492798 download finish for photo 1347492511 begin to download photo : 1347492522 download finish for photo 1347492825 begin to download photo : 1347492829 download finish for photo 1347492457 begin to download photo : 1347492473 download finish for photo 1347492522 begin to download photo : 1347492544 download finish for photo 1347492473 begin to download photo : 1347492495 download finish for photo 1347492829 begin to download photo : 1347492853 download finish for photo 1347492798 begin to download photo : 1347492805 download finish for photo 1347492544 download finish for photo 1347492805 download finish for photo 1347492853 download finish for photo 1347492495 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette217297421742999041/ length of list_filenames : 12 ; length of list_pids : 12 ; length of list_args : 12 results_Auto_P21729717_26-03-2025_15_24_01.pdf 21729742 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=21729742 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217297421742999041 21729745 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=21729745 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347491431: '1742998732_1679128_1347489960_0329de311d3578d8007c547c9bea0c53_rle_crop_3731094916_0.png', 1347492484: '1742998873_1680943_1347490672_07a8e47364f6d791ba3c80815fa446e1_rle_crop_3731102005_0.png', 1347492485: '1742998873_1680943_1347490672_07a8e47364f6d791ba3c80815fa446e1_rle_crop_3731102002_0.png', 1347492486: '1742998873_1680943_1347490652_6b06e5b08628a768c3bf84571f8f2418_rle_crop_3731103345_0.png', 1347492738: '1742998952_1681907_1347492237_addbc268330e268ae51fd92d96cf011c_rle_crop_3731105722_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/107c3c1eb1d523cdc71672bea1e475e0_87637823.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/90adce14c01cbda57e21bd7817cafa15_26138111.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/1f7993dcc2b07597a46fac0a6af70ae6_90881066.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/9b1aad3763ed1a118d10e34b63491a49_29853942.png change filename to text .imagette217297451742999041/ imagette217297451742999041/1742998873_1680943_1347490672_07a8e47364f6d791ba3c80815fa446e1_rle_crop_3731102005_0.png.png imagette217297451742999041/1742998952_1681907_1347492237_addbc268330e268ae51fd92d96cf011c_rle_crop_3731105722_0.png.png imagette217297451742999041/1742998732_1679128_1347489960_0329de311d3578d8007c547c9bea0c53_rle_crop_3731094916_0.png.png imagette217297451742999041/1742998873_1680943_1347490652_6b06e5b08628a768c3bf84571f8f2418_rle_crop_3731103345_0.png.png imagette217297451742999041/1742998873_1680943_1347490672_07a8e47364f6d791ba3c80815fa446e1_rle_crop_3731102002_0.png.png imagette217297461742999041/ imagette217297471742999041/ imagette217297481742999041/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/96687d341016bcdcd35efd351872a484_7211350.png imagette217297451742999041 21729746 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=21729746 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217297461742999041 21729747 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=21729747 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217297471742999041 21729748 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=21729748 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217297481742999041 21729752 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=21729752 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347492313: '1742998852_1680648_1347491403_40133a6163a8d8355c1de84b91df2db2_rle_crop_3731098157_0.png', 1347492314: '1742998852_1680648_1347491403_40133a6163a8d8355c1de84b91df2db2_rle_crop_3731098159_0.png', 1347492469: '1742998873_1680943_1347491417_010c8ef26a300417443352753653afff_rle_crop_3731098664_0.png', 1347492470: '1742998873_1680943_1347490672_07a8e47364f6d791ba3c80815fa446e1_rle_crop_3731102006_0.png', 1347492471: '1742998873_1680943_1347490652_6b06e5b08628a768c3bf84571f8f2418_rle_crop_3731103337_0.png', 1347492472: '1742998873_1680943_1347490526_453819fd69bc6f0fb13aa7c9164e83b9_rle_crop_3731103408_0.png', 1347492872: '1742998972_1682138_1347491881_0b7473761eb96b0f8ab8aad3de787961_rle_crop_3731109619_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/604af38de5cc7d4514309aebc57deeff_48922983.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/15a0f30692ec46a08d2f7e301a8212ea_1786216.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/7754ab41f80b909b79f5785e8ba22de5_93661549.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/5eae43a4502a8ce30c71d9050398d8f0_30426623.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/11fa66c2465e99e3660f41db0f7733e8_54586278.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/11862996a5c6e5f509c046c5d6eb071d_39443318.png change filename to text .imagette217297521742999041/ imagette217297521742999041/1742998972_1682138_1347491881_0b7473761eb96b0f8ab8aad3de787961_rle_crop_3731109619_0.png.png imagette217297521742999041/1742998873_1680943_1347490526_453819fd69bc6f0fb13aa7c9164e83b9_rle_crop_3731103408_0.png.png imagette217297521742999041/1742998873_1680943_1347490652_6b06e5b08628a768c3bf84571f8f2418_rle_crop_3731103337_0.png.png imagette217297521742999041/1742998852_1680648_1347491403_40133a6163a8d8355c1de84b91df2db2_rle_crop_3731098157_0.png.png imagette217297521742999041/1742998873_1680943_1347490672_07a8e47364f6d791ba3c80815fa446e1_rle_crop_3731102006_0.png.png imagette217297521742999041/1742998873_1680943_1347491417_010c8ef26a300417443352753653afff_rle_crop_3731098664_0.png.png imagette217297521742999041/1742998852_1680648_1347491403_40133a6163a8d8355c1de84b91df2db2_rle_crop_3731098159_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/e41a3bf123b7e769857eab411ec922e3_97227926.png imagette217297521742999041 21729753 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=21729753 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347492864: '1742998972_1682138_1347492262_a0bd922ba3dfa01e3b6ee6191436a55d_rle_crop_3731109600_0.png'} change filename to text .imagette217297531742999042/ imagette217297531742999042/1742998972_1682138_1347492262_a0bd922ba3dfa01e3b6ee6191436a55d_rle_crop_3731109600_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/e106be5ec5f677be7f69ef8a22415896_27866328.png imagette217297531742999042 21729744 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=21729744 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347491426: '1742998732_1679128_1347489960_0329de311d3578d8007c547c9bea0c53_rle_crop_3731094922_0.png', 1347491427: '1742998732_1679128_1347489904_442bf0174f923b40427dab310dcf3318_rle_crop_3731094958_0.png', 1347492449: '1742998873_1680943_1347490672_07a8e47364f6d791ba3c80815fa446e1_rle_crop_3731102003_0.png', 1347492450: '1742998873_1680943_1347490590_6513b44c44aac8011f857556216118b9_rle_crop_3731103370_0.png', 1347492451: '1742998873_1680943_1347490590_6513b44c44aac8011f857556216118b9_rle_crop_3731103368_0.png', 1347492845: '1742998972_1682138_1347491881_0b7473761eb96b0f8ab8aad3de787961_rle_crop_3731109621_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/5ed71aa1d331be1081cea90dbc21988f_83067392.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/548980d12eac1470981f9d4e488c2bd0_4831250.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/6b72ec1d20c1bc9e46f81e088df4654e_52033992.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/3b9c6a3d07e5528c4e638955fcce8744_91322235.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/1c0e78dbf8353b3e6454daecbd0f1479_2369307.png change filename to text .imagette217297441742999042/ imagette217297441742999042/1742998732_1679128_1347489960_0329de311d3578d8007c547c9bea0c53_rle_crop_3731094922_0.png.png imagette217297441742999042/1742998873_1680943_1347490672_07a8e47364f6d791ba3c80815fa446e1_rle_crop_3731102003_0.png.png imagette217297441742999042/1742998873_1680943_1347490590_6513b44c44aac8011f857556216118b9_rle_crop_3731103370_0.png.png imagette217297441742999042/1742998972_1682138_1347491881_0b7473761eb96b0f8ab8aad3de787961_rle_crop_3731109621_0.png.png imagette217297441742999042/1742998873_1680943_1347490590_6513b44c44aac8011f857556216118b9_rle_crop_3731103368_0.png.png imagette217297441742999042/1742998732_1679128_1347489904_442bf0174f923b40427dab310dcf3318_rle_crop_3731094958_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/5685c103ef0c04e4bd9b779323937bef_4131919.png imagette217297441742999042 21729749 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=21729749 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347492464: '1742998873_1680943_1347490672_07a8e47364f6d791ba3c80815fa446e1_rle_crop_3731102001_0.png', 1347492465: '1742998873_1680943_1347490652_6b06e5b08628a768c3bf84571f8f2418_rle_crop_3731103341_0.png', 1347492466: '1742998873_1680943_1347490526_453819fd69bc6f0fb13aa7c9164e83b9_rle_crop_3731103407_0.png', 1347492871: '1742998972_1682138_1347491881_0b7473761eb96b0f8ab8aad3de787961_rle_crop_3731109615_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/fde7fef5990fb30f77be287fb0d2e1f1_31244346.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/b4ea1b14e3b26f0dc272814ef0d2cc39_12987901.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/2f7c8c8866e9cf804ffb7aaff9160ae9_48691866.png change filename to text .imagette217297491742999042/ imagette217297491742999042/1742998972_1682138_1347491881_0b7473761eb96b0f8ab8aad3de787961_rle_crop_3731109615_0.png.png imagette217297491742999042/1742998873_1680943_1347490652_6b06e5b08628a768c3bf84571f8f2418_rle_crop_3731103341_0.png.png imagette217297491742999042/1742998873_1680943_1347490526_453819fd69bc6f0fb13aa7c9164e83b9_rle_crop_3731103407_0.png.png imagette217297491742999042/1742998873_1680943_1347490672_07a8e47364f6d791ba3c80815fa446e1_rle_crop_3731102001_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/2d15bd483d2be61420b88e07021f7528_34934432.png imagette217297491742999042 21729750 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=21729750 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347491429: '1742998732_1679128_1347489960_0329de311d3578d8007c547c9bea0c53_rle_crop_3731094920_0.png', 1347491430: '1742998732_1679128_1347489904_442bf0174f923b40427dab310dcf3318_rle_crop_3731094954_0.png', 1347492476: '1742998873_1680943_1347490652_6b06e5b08628a768c3bf84571f8f2418_rle_crop_3731103336_0.png', 1347492477: '1742998873_1680943_1347490526_453819fd69bc6f0fb13aa7c9164e83b9_rle_crop_3731103409_0.png', 1347492733: '1742998952_1681907_1347492237_addbc268330e268ae51fd92d96cf011c_rle_crop_3731105727_0.png', 1347492887: '1742998972_1682138_1347491881_0b7473761eb96b0f8ab8aad3de787961_rle_crop_3731109620_0.png', 1347492888: '1742998972_1682138_1347491856_f45f4d16ac3c6a1baebfd1a0ab26a5f6_rle_crop_3731109627_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/c22528002459b03d4a57cd5066c5bbbb_62066878.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/f1c4f295c5d5077a993042512757ab6d_3761227.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/f4f1c6b8305a14865b197d9d7dd4b282_59589096.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/8267207e7f0217da3f2be79171e067cf_95382099.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/330f9b46f922fc1630cfdafe212a31d8_80857817.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/49048891f8947e2f167cfab57e5f97bf_71202897.png change filename to text .imagette217297501742999042/ imagette217297501742999042/1742998972_1682138_1347491856_f45f4d16ac3c6a1baebfd1a0ab26a5f6_rle_crop_3731109627_0.png.png imagette217297501742999042/1742998952_1681907_1347492237_addbc268330e268ae51fd92d96cf011c_rle_crop_3731105727_0.png.png imagette217297501742999042/1742998873_1680943_1347490652_6b06e5b08628a768c3bf84571f8f2418_rle_crop_3731103336_0.png.png imagette217297501742999042/1742998732_1679128_1347489960_0329de311d3578d8007c547c9bea0c53_rle_crop_3731094920_0.png.png imagette217297501742999042/1742998873_1680943_1347490526_453819fd69bc6f0fb13aa7c9164e83b9_rle_crop_3731103409_0.png.png imagette217297501742999042/1742998732_1679128_1347489904_442bf0174f923b40427dab310dcf3318_rle_crop_3731094954_0.png.png imagette217297501742999042/1742998972_1682138_1347491881_0b7473761eb96b0f8ab8aad3de787961_rle_crop_3731109620_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/782fc0535d4d9c417f845df03d816976_64438447.png imagette217297501742999042 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21729717 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21729754,21729755,21729756,21729757,21729758,21729759,21729760,21729761,21729762,21729763,21729764,21729765?tags=mal_croppe,environnement,Teint_Dans_La_Masse,plastique,metal,flou,kraft,Carton_gris,Carton_brun,papier,cartonnette,autre_refus your option no_mail is active, we will not send the real mail to your client args[1347492853] : ('0.05765139917147728',) no score found for photo 1347492853 We are sending mail with results at report@fotonower.com args[1347492829] : ('0.05765139917147728',) no score found for photo 1347492829 We are sending mail with results at report@fotonower.com args[1347492825] : ('0.05765139917147728',) no score found for photo 1347492825 We are sending mail with results at report@fotonower.com args[1347492805] : ('0.05765139917147728',) no score found for photo 1347492805 We are sending mail with results at report@fotonower.com args[1347492798] : ('0.05765139917147728',) no score found for photo 1347492798 We are sending mail with results at report@fotonower.com args[1347492778] : ('0.05765139917147728',) no score found for photo 1347492778 We are sending mail with results at report@fotonower.com args[1347492544] : ('0.05765139917147728',) no score found for photo 1347492544 We are sending mail with results at report@fotonower.com args[1347492522] : ('0.05765139917147728',) no score found for photo 1347492522 We are sending mail with results at report@fotonower.com args[1347492511] : ('0.05765139917147728',) no score found for photo 1347492511 We are sending mail with results at report@fotonower.com args[1347492495] : ('0.05765139917147728',) no score found for photo 1347492495 We are sending mail with results at report@fotonower.com args[1347492473] : ('0.05765139917147728',) no score found for photo 1347492473 We are sending mail with results at report@fotonower.com args[1347492457] : ('0.05765139917147728',) no score found for photo 1347492457 We are sending mail with results at report@fotonower.com refus_total : 0.05765139917147728 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=21729717 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_P21729717_26-03-2025_15_24_01.pdf results_Auto_P21729717_26-03-2025_15_24_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21729717_26-03-2025_15_24_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','21729717','results_Auto_P21729717_26-03-2025_15_24_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21729717_26-03-2025_15_24_01.pdf','pdf','','0.19','0.05765139917147728') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21729717]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1347492853, 1347492829, 1347492825, 1347492805, 1347492798, 1347492778, 1347492544, 1347492522, 1347492511, 1347492495, 1347492473, 1347492457] map_info['map_portfolio_photo'] : {21729717: [1347492853, 1347492829, 1347492825, 1347492805, 1347492798, 1347492778, 1347492544, 1347492522, 1347492511, 1347492495, 1347492473, 1347492457, 1347492262, 1347492237, 1347492204, 1347491914, 1347491881, 1347491856, 1347491851, 1347491843, 1347491811, 1347491417, 1347491403, 1347491302, 1347491282, 1347490741, 1347490672, 1347490652, 1347490590, 1347490546, 1347490526, 1347489960, 1347489904]} final : False mtd_id 4302 list_pids : [1347492853, 1347492829, 1347492825, 1347492805, 1347492798, 1347492778, 1347492544, 1347492522, 1347492511, 1347492495, 1347492473, 1347492457] 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, '2692816') ('4302', '21729717', '1347492853', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347492829', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347492825', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347492805', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347492798', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347492778', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347492544', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347492522', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347492511', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347492495', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347492473', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347492457', None, None, None, None, None, '2692816') 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', '21729717', '1347492853', None, None, None, None, None, '2692816'), ('4302', '21729717', '1347492829', None, None, None, None, None, '2692816'), ('4302', '21729717', '1347492825', None, None, None, None, None, '2692816'), ('4302', '21729717', '1347492805', None, None, None, None, None, '2692816'), ('4302', '21729717', '1347492798', None, None, None, None, None, '2692816'), ('4302', '21729717', '1347492778', None, None, None, None, None, '2692816'), ('4302', '21729717', '1347492544', None, None, None, None, None, '2692816'), ('4302', '21729717', '1347492522', None, None, None, None, None, '2692816'), ('4302', '21729717', '1347492511', None, None, None, None, None, '2692816'), ('4302', '21729717', '1347492495', None, None, None, None, None, '2692816'), ('4302', '21729717', '1347492473', None, None, None, None, None, '2692816'), ('4302', '21729717', '1347492457', None, None, None, None, None, '2692816')] time used for this insertion : 0.021752119064331055 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.2347159385681152 time spend to save output : 0.02194833755493164 total time spend for step 4 : 3.256664276123047 step5:split_time_score Wed Mar 26 15:24:04 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['21729717'] 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 : [('21729717',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21729717) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1347492511: {'path': 'temp/1742999041_3236185_1347492511_cc2d4d823eaac75be08fe8e0a32f1da4.jpg', 'extension': 'jpg'}, 1347492522: {'path': 'temp/1742999041_3236185_1347492522_d4b8e26b116380ad1e0d626cc17ffdce.jpg', 'extension': 'jpg'}, 1347492544: {'path': 'temp/1742999041_3236185_1347492544_5762236c725c9e914fff4202c3276b58.jpg', 'extension': 'jpg'}, 1347492778: {'path': 'temp/1742999041_3236185_1347492778_89e9d133f857a108a1b495a2c316ccf2.jpg', 'extension': 'jpg'}, 1347492798: {'path': 'temp/1742999041_3236185_1347492798_00c904f9e7ee224c947ad605896c115d.jpg', 'extension': 'jpg'}, 1347492805: {'path': 'temp/1742999041_3236185_1347492805_c38cc8ac37d6357303b2126cb3fd9006.jpg', 'extension': 'jpg'}, 1347492825: {'path': 'temp/1742999041_3236185_1347492825_4f713d097b5f77cee88de9c2153a3210.jpg', 'extension': 'jpg'}, 1347492829: {'path': 'temp/1742999041_3236185_1347492829_f71961b108e53b668380d89e1819925c.jpg', 'extension': 'jpg'}, 1347492853: {'path': 'temp/1742999041_3236185_1347492853_d960b2d40cb6aa6411134fe2461497dc.jpg', 'extension': 'jpg'}, 1347492457: {'path': 'temp/1742999041_3236185_1347492457_b0f3f8ba5b335df605954831f4a4e2a4.jpg', 'extension': 'jpg'}, 1347492473: {'path': 'temp/1742999041_3236185_1347492473_1f5d1e7bf789de7bcbb937186ba22390.jpg', 'extension': 'jpg'}, 1347492495: {'path': 'temp/1742999041_3236185_1347492495_7a1deeb7faf0a7463aa5cd71e7fb41f8.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 = 21729717; (('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 = 21729717 group by h (('15', 33),) 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=21729717 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 (21729717) 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 (21729717) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 26032025 21729717 Nombre de photos uploadées : 33 / 23040 (0%) 26032025 21729717 Nombre de photos taguées (types de déchets): 0 / 33 (0%) 26032025 21729717 Nombre de photos taguées (volume) : 0 / 33 (0%) [{'photo_id': 1347489960, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/0329de311d3578d8007c547c9bea0c53.jpg', 'username': None, 'uploaded_at': 1742998635, 'text': 'image_26032025_15_15_34_10133.jpg'}, {'photo_id': 1347489904, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/442bf0174f923b40427dab310dcf3318.jpg', 'username': None, 'uploaded_at': 1742998635, 'text': 'image_26032025_15_15_44_10135.jpg'}, {'photo_id': 1347490741, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/c40c823347cec215aa972aa08f7f37b4.jpg', 'username': None, 'uploaded_at': 1742998694, 'text': 'image_26032025_15_15_53_9124.jpg'}, {'photo_id': 1347490672, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/07a8e47364f6d791ba3c80815fa446e1.jpg', 'username': None, 'uploaded_at': 1742998694, 'text': 'image_26032025_15_16_04_010149m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 5.245208740234375e-06 ????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002582550048828125 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21729717, '2025-03-26' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1689284,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02559041976928711 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= 1689284 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1689284, 'dashboard_run_id': 1697967, 'mtr_portfolio_id': 21726952, 'dashboard_result_id': 9636146, '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_P21726952_26-03-2025_14_48_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21726983, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21726984, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21726985, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21726986, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21726987, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21726988, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21726989, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21726990, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21726991, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21726992, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21726993, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21726994, 'pht': 3726}}"}, {'dashboat_entry_day': 1689284, 'dashboard_run_id': 1697967, 'mtr_portfolio_id': 21728821, 'dashboard_result_id': 9636148, '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_P21728821_26-03-2025_15_19_05.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21728846, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21728847, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21728848, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21728849, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21728850, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21728851, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21728852, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21728853, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21728854, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21728855, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21728856, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21728857, 'pht': 3726}}"}, {'dashboat_entry_day': 1689284, 'dashboard_run_id': 1697967, 'mtr_portfolio_id': 21729717, 'dashboard_result_id': 9636149, '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_P21729717_26-03-2025_15_22_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21729742, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21729743, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21729744, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21729745, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21729746, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21729747, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21729748, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21729749, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21729750, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21729751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21729752, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21729753, '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 = 21726952 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': 2692533, 'mtr_portfolio_id': 21726952, 'created_at': datetime.datetime(2025, 3, 26, 14, 48, 59), 'result': '0.04561189147009174', 'result_long': None, 'result_double': None}] Qualite : 0.04561189147009174 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21726952 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21726952_26-03-2025_14_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21726952 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_P21726952_26-03-2025_14_48_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21726983, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21726984, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21726985, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21726986, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21726987, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21726988, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21726989, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21726990, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21726991, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21726992, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21726993, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21726994, 'pht': 3726}}" where mtr_portfolio_id = 21726952 and dashboard_run_id = 1697967 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`=21726952 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9636146, 0.04561189147009174, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21726952_26-03-2025_14_48_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21726983, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21726984, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21726985, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21726986, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21726987, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21726988, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21726989, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21726990, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21726991, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21726992, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21726993, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21726994, '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 = 21728821 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': 2692782, 'mtr_portfolio_id': 21728821, 'created_at': datetime.datetime(2025, 3, 26, 15, 19, 4), 'result': '0.03826357938052577', 'result_long': None, 'result_double': None}] Qualite : 0.03826357938052577 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21728821 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21728821_26-03-2025_15_19_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21728821 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_P21728821_26-03-2025_15_19_05.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21728846, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21728847, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21728848, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21728849, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21728850, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21728851, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21728852, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21728853, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21728854, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21728855, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21728856, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21728857, 'pht': 3726}}" where mtr_portfolio_id = 21728821 and dashboard_run_id = 1697967 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`=21728821 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9636148, 0.03826357938052577, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21728821_26-03-2025_15_19_05.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21728846, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21728847, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21728848, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21728849, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21728850, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21728851, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21728852, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21728853, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21728854, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21728855, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21728856, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21728857, '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 = 21729717 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': 2692816, 'mtr_portfolio_id': 21729717, 'created_at': datetime.datetime(2025, 3, 26, 15, 24), 'result': '0.05765139917147728', 'result_long': None, 'result_double': None}] Qualite : 0.05765139917147728 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21729717 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21729717_26-03-2025_15_24_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21729717 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_P21729717_26-03-2025_15_24_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21729742, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21729743, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21729744, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21729745, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21729746, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21729747, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21729748, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21729749, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21729750, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21729751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21729752, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21729753, 'pht': 3726}}" where mtr_portfolio_id = 21729717 and dashboard_run_id = 1697967 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`=21729717 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9636149, 0.05765139917147728, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21729717_26-03-2025_15_24_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21729742, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21729743, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21729744, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21729745, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21729746, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21729747, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21729748, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21729749, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21729750, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21729751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21729752, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21729753, '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 (21726952,21728821,21729717) result : ((1347470415,), (1347470776,), (1347470788,), (1347470796,), (1347471049,), (1347471085,), (1347471168,), (1347471487,), (1347471507,), (1347471522,), (1347471546,), (1347471554,), (1347471721,), (1347471742,), (1347471755,), (1347471758,), (1347471833,), (1347471843,), (1347471860,), (1347471881,), (1347472049,), (1347472075,), (1347472092,), (1347472278,), (1347472304,), (1347472315,), (1347472321,), (1347472327,), (1347472358,), (1347472360,), (1347472362,), (1347472388,), (1347472483,), (1347472486,), (1347472493,), (1347472497,), (1347472502,), (1347472830,), (1347472913,), (1347472992,), (1347473065,), (1347473215,), (1347473225,), (1347473235,), (1347473407,), (1347473411,), (1347473441,), (1347473469,), (1347473500,), (1347473529,), (1347473577,), (1347473599,), (1347473607,), (1347473612,), (1347473617,), (1347473646,), (1347473648,), (1347473657,), (1347473676,), (1347473679,), (1347474142,), (1347478250,), (1347478279,), (1347478712,), (1347478763,), (1347479359,), (1347479381,), (1347479883,), (1347479972,), (1347480019,), (1347480069,), (1347480140,), (1347480555,), (1347480594,), (1347480650,), (1347480781,), (1347480866,), (1347481357,), (1347481427,), (1347481529,), (1347482736,), (1347482819,), (1347482889,), (1347484675,), (1347484808,), (1347484898,), (1347484951,), (1347485005,), (1347485592,), (1347485693,), (1347485808,), (1347485907,), (1347486125,), (1347486335,), (1347486985,), (1347487008,), (1347487148,), (1347487836,), (1347487932,), (1347487979,), (1347488033,), (1347488087,), (1347488138,), (1347488541,), (1347488599,), (1347488641,), (1347488684,), (1347488747,), (1347489389,), (1347489416,), (1347489453,), (1347489470,), (1347489514,), (1347489572,), (1347489576,), (1347489581,), (1347489585,), (1347489589,), (1347489592,), (1347490014,), (1347489904,), (1347489960,), (1347490526,), (1347490546,), (1347490590,), (1347490652,), (1347490672,), (1347490741,), (1347491282,), (1347491302,), (1347491403,), (1347491417,), (1347491811,), (1347491843,), (1347491851,), (1347491856,), (1347491881,), (1347491914,), (1347492204,), (1347492237,), (1347492262,), (1347492457,), (1347492473,), (1347492495,), (1347492511,), (1347492522,), (1347492544,), (1347492778,), (1347492798,), (1347492805,), (1347492825,), (1347492829,), (1347492853,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'26032025': {'nb_upload': 33, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21729717]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1347492853, 1347492829, 1347492825, 1347492805, 1347492798, 1347492778, 1347492544, 1347492522, 1347492511, 1347492495, 1347492473, 1347492457] map_info['map_portfolio_photo'] : {21729717: [1347492853, 1347492829, 1347492825, 1347492805, 1347492798, 1347492778, 1347492544, 1347492522, 1347492511, 1347492495, 1347492473, 1347492457, 1347492262, 1347492237, 1347492204, 1347491914, 1347491881, 1347491856, 1347491851, 1347491843, 1347491811, 1347491417, 1347491403, 1347491302, 1347491282, 1347490741, 1347490672, 1347490652, 1347490590, 1347490546, 1347490526, 1347489960, 1347489904]} final : True mtd_id 4302 list_pids : [1347492853, 1347492829, 1347492825, 1347492805, 1347492798, 1347492778, 1347492544, 1347492522, 1347492511, 1347492495, 1347492473, 1347492457] Looping around the photos to save general results len do output : 1 /21729717Didn'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, '2692816') ('4302', '21729717', '1347492853', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347492829', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347492825', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347492805', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347492798', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347492778', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347492544', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347492522', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347492511', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347492495', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347492473', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347492457', None, None, None, None, None, '2692816') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 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, '21729717', 'None', None, None, None, None, '2692816'), ('4302', '21729717', '1347492853', None, None, None, None, None, '2692816'), ('4302', '21729717', '1347492829', None, None, None, None, None, '2692816'), ('4302', '21729717', '1347492825', None, None, None, None, None, '2692816'), ('4302', '21729717', '1347492805', None, None, None, None, None, '2692816'), ('4302', '21729717', '1347492798', None, None, None, None, None, '2692816'), ('4302', '21729717', '1347492778', None, None, None, None, None, '2692816'), ('4302', '21729717', '1347492544', None, None, None, None, None, '2692816'), ('4302', '21729717', '1347492522', None, None, None, None, None, '2692816'), ('4302', '21729717', '1347492511', None, None, None, None, None, '2692816'), ('4302', '21729717', '1347492495', None, None, None, None, None, '2692816'), ('4302', '21729717', '1347492473', None, None, None, None, None, '2692816'), ('4302', '21729717', '1347492457', None, None, None, None, None, '2692816')] time used for this insertion : 0.022959470748901367 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.29233217239379883 time spend to save output : 0.02315831184387207 total time spend for step 5 : 0.3154904842376709 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 (2692816) 2.05user 2.20system 0:09.76elapsed 43%CPU (0avgtext+0avgdata 158792maxresident)k 2328inputs+11600outputs (68major+78359minor)pagefaults 0swaps