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 : 3316175 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 (2684345) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2684345) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21632901 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2684345'] with mtr_portfolio_ids : ['21632901'] and first list_photo_ids : [] new path : /proc/3316175/ Name: python3 Umask: 0002 State: R (running) Tgid: 3316175 Ngid: 0 Pid: 3316175 PPid: 3316174 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3316175 NSpid: 3316175 NSpgid: 3313041 NSsid: 3313041 VmPeak: 1106936 kB VmSize: 1106936 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99228 kB VmRSS: 99228 kB RssAnon: 59772 kB RssFile: 39456 kB RssShmem: 0 kB VmData: 865684 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 608 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 48 nonvoluntary_ctxt_switches: 103 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3316175', 'Ngid': '0', 'Pid': '3316175', 'PPid': '3316174', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3316175', 'NSpid': '3316175', 'NSpgid': '3313041', 'NSsid': '3313041', 'VmPeak': '1106936 kB', 'VmSize': '1106936 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99228 kB', 'VmRSS': '99228 kB', 'RssAnon': '59772 kB', 'RssFile': '39456 kB', 'RssShmem': '0 kB', 'VmData': '865684 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '608 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '48', 'nonvoluntary_ctxt_switches': '103'} ('datou_batch_current', '3316175', '1106936', '0', '1106936', '865684', '99228', b'', 'marlene', '2684345') 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 (21632901) 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 (2684345 ) ) 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 (21632901) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1346725626, 'portfolio_id': 21632901}, {'photo_id': 1346725621, 'portfolio_id': 21632901}, {'photo_id': 1346725593, 'portfolio_id': 21632901}, {'photo_id': 1346725569, 'portfolio_id': 21632901}, {'photo_id': 1346725567, 'portfolio_id': 21632901}, {'photo_id': 1346725436, 'portfolio_id': 21632901}, {'photo_id': 1346725432, 'portfolio_id': 21632901}, {'photo_id': 1346725428, 'portfolio_id': 21632901}, {'photo_id': 1346725322, 'portfolio_id': 21632901}, {'photo_id': 1346725310, 'portfolio_id': 21632901}, {'photo_id': 1346725140, 'portfolio_id': 21632901}, {'photo_id': 1346725132, 'portfolio_id': 21632901}, {'photo_id': 1346725127, 'portfolio_id': 21632901}, {'photo_id': 1346725099, 'portfolio_id': 21632901}, {'photo_id': 1346724936, 'portfolio_id': 21632901}, {'photo_id': 1346724924, 'portfolio_id': 21632901}, {'photo_id': 1346724917, 'portfolio_id': 21632901}, {'photo_id': 1346724914, 'portfolio_id': 21632901}, {'photo_id': 1346724911, 'portfolio_id': 21632901}, {'photo_id': 1346724907, 'portfolio_id': 21632901}, {'photo_id': 1346724780, 'portfolio_id': 21632901}, {'photo_id': 1346724746, 'portfolio_id': 21632901}, {'photo_id': 1346724740, 'portfolio_id': 21632901}, {'photo_id': 1346724731, 'portfolio_id': 21632901}] map_portfolio_id_photo_id: {21632901: [1346725626, 1346725621, 1346725593, 1346725569, 1346725567, 1346725436, 1346725432, 1346725428, 1346725322, 1346725310, 1346725140, 1346725132, 1346725127, 1346725099, 1346724936, 1346724924, 1346724917, 1346724914, 1346724911, 1346724907, 1346724780, 1346724746, 1346724740, 1346724731]} ##### 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.01485133171081543 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Mon Mar 24 08:22: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 (21632901) 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 : 21632901 get user id for portfolio 21632901 get sub ptf for main ptf 21632901, type 3726 and hashtags ['cartonnette', 'metal', 'environnement', 'autre_refus', 'Carton_brun', 'Teint_Dans_La_Masse', 'plastique', 'Carton_gris', 'papier', 'mal_croppe', 'flou', 'kraft'] 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`=21632901 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','metal','environnement','autre_refus','Carton_brun','Teint_Dans_La_Masse','plastique','Carton_gris','papier','mal_croppe','flou','kraft')) 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`=21632901 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','metal','environnement','autre_refus','Carton_brun','Teint_Dans_La_Masse','plastique','Carton_gris','papier','mal_croppe','flou','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 21632901, 'sub_port_id': 21632926, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14170980, 'last_updated_at': datetime.datetime(2025, 3, 24, 8, 19, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 8, 19, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 8, 19, 56)}, 'flou': {'main_port_id': 21632901, 'sub_port_id': 21632927, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14170981, 'last_updated_at': datetime.datetime(2025, 3, 24, 8, 19, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 8, 19, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 8, 19, 56)}, 'autre_refus': {'main_port_id': 21632901, 'sub_port_id': 21632928, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14170982, 'last_updated_at': datetime.datetime(2025, 3, 24, 8, 19, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 8, 19, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 8, 19, 56)}, 'metal': {'main_port_id': 21632901, 'sub_port_id': 21632929, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14170983, 'last_updated_at': datetime.datetime(2025, 3, 24, 8, 19, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 8, 19, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 8, 19, 56)}, 'Carton_gris': {'main_port_id': 21632901, 'sub_port_id': 21632930, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14170984, 'last_updated_at': datetime.datetime(2025, 3, 24, 8, 19, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 8, 19, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 8, 19, 56)}, 'Carton_brun': {'main_port_id': 21632901, 'sub_port_id': 21632931, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14170985, 'last_updated_at': datetime.datetime(2025, 3, 24, 8, 19, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 8, 19, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 8, 19, 56)}, 'environnement': {'main_port_id': 21632901, 'sub_port_id': 21632932, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14170986, 'last_updated_at': datetime.datetime(2025, 3, 24, 8, 19, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 8, 19, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 8, 19, 56)}, 'kraft': {'main_port_id': 21632901, 'sub_port_id': 21632933, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14170987, 'last_updated_at': datetime.datetime(2025, 3, 24, 8, 19, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 8, 19, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 8, 19, 56)}, 'papier': {'main_port_id': 21632901, 'sub_port_id': 21632934, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14170988, 'last_updated_at': datetime.datetime(2025, 3, 24, 8, 19, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 8, 19, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 8, 19, 56)}, 'cartonnette': {'main_port_id': 21632901, 'sub_port_id': 21632935, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14170989, 'last_updated_at': datetime.datetime(2025, 3, 24, 8, 19, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 8, 19, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 8, 19, 56)}, 'plastique': {'main_port_id': 21632901, 'sub_port_id': 21632936, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14170990, 'last_updated_at': datetime.datetime(2025, 3, 24, 8, 19, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 8, 19, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 8, 19, 56)}, 'Teint_Dans_La_Masse': {'main_port_id': 21632901, 'sub_port_id': 21632937, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14170991, 'last_updated_at': datetime.datetime(2025, 3, 24, 8, 19, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 8, 19, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 8, 19, 56)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21632926 , 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=21632901 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 (21632926) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21632901) result : ((1346724731,), (1346724740,), (1346724746,), (1346724780,), (1346724907,), (1346724911,), (1346724914,), (1346724917,), (1346724924,), (1346724936,), (1346725099,), (1346725127,), (1346725132,), (1346725140,), (1346725310,), (1346725322,), (1346725428,), (1346725432,), (1346725436,), (1346725567,), (1346725569,), (1346725593,), (1346725621,), (1346725626,)) 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 21632927 , 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=21632901 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 (21632927) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21632901) result : ((1346724731,), (1346724740,), (1346724746,), (1346724780,), (1346724907,), (1346724911,), (1346724914,), (1346724917,), (1346724924,), (1346724936,), (1346725099,), (1346725127,), (1346725132,), (1346725140,), (1346725310,), (1346725322,), (1346725428,), (1346725432,), (1346725436,), (1346725567,), (1346725569,), (1346725593,), (1346725621,), (1346725626,)) 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 21632928 , 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=21632901 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 (21632928) result : ((1346725491,), (1346725492,), (1346725494,), (1346725642,), (1346725643,), (1346725644,), (1346725645,), (1346725646,), (1346725647,), (1346725648,), (1346725682,), (1346725683,), (1346725684,), (1346725685,), (1346725686,), (1346725687,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21632901) result : ((1346724731,), (1346724740,), (1346724746,), (1346724780,), (1346724907,), (1346724911,), (1346724914,), (1346724917,), (1346724924,), (1346724936,), (1346725099,), (1346725127,), (1346725132,), (1346725140,), (1346725310,), (1346725322,), (1346725428,), (1346725432,), (1346725436,), (1346725567,), (1346725569,), (1346725593,), (1346725621,), (1346725626,)) 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 21632929 , 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=21632901 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 (21632929) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21632901) result : ((1346724731,), (1346724740,), (1346724746,), (1346724780,), (1346724907,), (1346724911,), (1346724914,), (1346724917,), (1346724924,), (1346724936,), (1346725099,), (1346725127,), (1346725132,), (1346725140,), (1346725310,), (1346725322,), (1346725428,), (1346725432,), (1346725436,), (1346725567,), (1346725569,), (1346725593,), (1346725621,), (1346725626,)) 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 21632930 , 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=21632901 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 (21632930) result : ((1346725650,), (1346725651,), (1346725652,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21632901) result : ((1346724731,), (1346724740,), (1346724746,), (1346724780,), (1346724907,), (1346724911,), (1346724914,), (1346724917,), (1346724924,), (1346724936,), (1346725099,), (1346725127,), (1346725132,), (1346725140,), (1346725310,), (1346725322,), (1346725428,), (1346725432,), (1346725436,), (1346725567,), (1346725569,), (1346725593,), (1346725621,), (1346725626,)) 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 21632931 , 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=21632901 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 (21632931) result : ((1346725500,), (1346725501,), (1346725660,), (1346725661,), (1346725662,), (1346725663,), (1346725664,), (1346725665,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21632901) result : ((1346724731,), (1346724740,), (1346724746,), (1346724780,), (1346724907,), (1346724911,), (1346724914,), (1346724917,), (1346724924,), (1346724936,), (1346725099,), (1346725127,), (1346725132,), (1346725140,), (1346725310,), (1346725322,), (1346725428,), (1346725432,), (1346725436,), (1346725567,), (1346725569,), (1346725593,), (1346725621,), (1346725626,)) 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 21632932 , 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=21632901 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 (21632932) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21632901) result : ((1346724731,), (1346724740,), (1346724746,), (1346724780,), (1346724907,), (1346724911,), (1346724914,), (1346724917,), (1346724924,), (1346724936,), (1346725099,), (1346725127,), (1346725132,), (1346725140,), (1346725310,), (1346725322,), (1346725428,), (1346725432,), (1346725436,), (1346725567,), (1346725569,), (1346725593,), (1346725621,), (1346725626,)) 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 21632933 , 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=21632901 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 (21632933) result : ((1346725672,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21632901) result : ((1346724731,), (1346724740,), (1346724746,), (1346724780,), (1346724907,), (1346724911,), (1346724914,), (1346724917,), (1346724924,), (1346724936,), (1346725099,), (1346725127,), (1346725132,), (1346725140,), (1346725310,), (1346725322,), (1346725428,), (1346725432,), (1346725436,), (1346725567,), (1346725569,), (1346725593,), (1346725621,), (1346725626,)) 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 21632934 , 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=21632901 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 (21632934) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21632901) result : ((1346724731,), (1346724740,), (1346724746,), (1346724780,), (1346724907,), (1346724911,), (1346724914,), (1346724917,), (1346724924,), (1346724936,), (1346725099,), (1346725127,), (1346725132,), (1346725140,), (1346725310,), (1346725322,), (1346725428,), (1346725432,), (1346725436,), (1346725567,), (1346725569,), (1346725593,), (1346725621,), (1346725626,)) 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 21632935 , 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=21632901 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 (21632935) result : ((1346725654,), (1346725655,), (1346725656,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21632901) result : ((1346724731,), (1346724740,), (1346724746,), (1346724780,), (1346724907,), (1346724911,), (1346724914,), (1346724917,), (1346724924,), (1346724936,), (1346725099,), (1346725127,), (1346725132,), (1346725140,), (1346725310,), (1346725322,), (1346725428,), (1346725432,), (1346725436,), (1346725567,), (1346725569,), (1346725593,), (1346725621,), (1346725626,)) 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 21632936 , 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=21632901 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 (21632936) result : ((1346725668,), (1346725669,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21632901) result : ((1346724731,), (1346724740,), (1346724746,), (1346724780,), (1346724907,), (1346724911,), (1346724914,), (1346724917,), (1346724924,), (1346724936,), (1346725099,), (1346725127,), (1346725132,), (1346725140,), (1346725310,), (1346725322,), (1346725428,), (1346725432,), (1346725436,), (1346725567,), (1346725569,), (1346725593,), (1346725621,), (1346725626,)) 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 21632937 , 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=21632901 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 (21632937) result : ((1346725485,), (1346725486,), (1346725487,), (1346725488,), (1346725489,), (1346725634,), (1346725635,), (1346725636,), (1346725674,), (1346725675,), (1346725676,), (1346725677,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21632901) result : ((1346724731,), (1346724740,), (1346724746,), (1346724780,), (1346724907,), (1346724911,), (1346724914,), (1346724917,), (1346724924,), (1346724936,), (1346725099,), (1346725127,), (1346725132,), (1346725140,), (1346725310,), (1346725322,), (1346725428,), (1346725432,), (1346725436,), (1346725567,), (1346725569,), (1346725593,), (1346725621,), (1346725626,)) 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`=21632901 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','metal','environnement','autre_refus','Carton_brun','Teint_Dans_La_Masse','plastique','Carton_gris','papier','mal_croppe','flou','kraft')) 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`=21632901 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','metal','environnement','autre_refus','Carton_brun','Teint_Dans_La_Masse','plastique','Carton_gris','papier','mal_croppe','flou','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 21632901, 'sub_port_id': 21632939, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14170992, 'last_updated_at': datetime.datetime(2025, 3, 24, 8, 20, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 8, 20, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 8, 20, 2)}, 'flou': {'main_port_id': 21632901, 'sub_port_id': 21632940, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14170993, 'last_updated_at': datetime.datetime(2025, 3, 24, 8, 20, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 8, 20, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 8, 20, 2)}, 'autre_refus': {'main_port_id': 21632901, 'sub_port_id': 21632941, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14170994, 'last_updated_at': datetime.datetime(2025, 3, 24, 8, 20, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 8, 20, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 8, 20, 2)}, 'metal': {'main_port_id': 21632901, 'sub_port_id': 21632942, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14170995, 'last_updated_at': datetime.datetime(2025, 3, 24, 8, 20, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 8, 20, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 8, 20, 2)}, 'Carton_gris': {'main_port_id': 21632901, 'sub_port_id': 21632943, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14170996, 'last_updated_at': datetime.datetime(2025, 3, 24, 8, 20, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 8, 20, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 8, 20, 2)}, 'Carton_brun': {'main_port_id': 21632901, 'sub_port_id': 21632944, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14170997, 'last_updated_at': datetime.datetime(2025, 3, 24, 8, 20, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 8, 20, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 8, 20, 2)}, 'environnement': {'main_port_id': 21632901, 'sub_port_id': 21632945, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14170998, 'last_updated_at': datetime.datetime(2025, 3, 24, 8, 20, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 8, 20, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 8, 20, 2)}, 'kraft': {'main_port_id': 21632901, 'sub_port_id': 21632946, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14170999, 'last_updated_at': datetime.datetime(2025, 3, 24, 8, 20, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 8, 20, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 8, 20, 2)}, 'papier': {'main_port_id': 21632901, 'sub_port_id': 21632947, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14171000, 'last_updated_at': datetime.datetime(2025, 3, 24, 8, 20, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 8, 20, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 8, 20, 2)}, 'cartonnette': {'main_port_id': 21632901, 'sub_port_id': 21632948, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14171001, 'last_updated_at': datetime.datetime(2025, 3, 24, 8, 20, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 8, 20, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 8, 20, 2)}, 'plastique': {'main_port_id': 21632901, 'sub_port_id': 21632949, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14171002, 'last_updated_at': datetime.datetime(2025, 3, 24, 8, 20, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 8, 20, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 8, 20, 2)}, 'Teint_Dans_La_Masse': {'main_port_id': 21632901, 'sub_port_id': 21632950, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14171003, 'last_updated_at': datetime.datetime(2025, 3, 24, 8, 20, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 8, 20, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 8, 20, 2)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21632939,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21632926 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21632940,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21632927 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21632941,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21632928 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21632942,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21632929 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21632943,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21632930 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21632944,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21632931 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21632945,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21632932 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21632946,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21632933 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21632947,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21632934 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21632948,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21632935 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21632949,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21632936 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21632950,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21632937 lien utilise dans velours : https://www.fotonower.com/velours/21632939,21632940,21632941,21632942,21632943,21632944,21632945,21632946,21632947,21632948,21632949,21632950?tags=mal_croppe,flou,autre_refus,metal,Carton_gris,Carton_brun,environnement,kraft,papier,cartonnette,plastique,Teint_Dans_La_Masse After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21632901]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1346725626, 1346725621, 1346725593, 1346725569, 1346725567, 1346725436, 1346725432, 1346725428, 1346725322, 1346725310, 1346725140, 1346725132, 1346725127, 1346725099] map_info['map_portfolio_photo'] : {21632901: [1346725626, 1346725621, 1346725593, 1346725569, 1346725567, 1346725436, 1346725432, 1346725428, 1346725322, 1346725310, 1346725140, 1346725132, 1346725127, 1346725099, 1346724936, 1346724924, 1346724917, 1346724914, 1346724911, 1346724907, 1346724780, 1346724746, 1346724740, 1346724731]} final : False mtd_id 4302 list_pids : [1346725626, 1346725621, 1346725593, 1346725569, 1346725567, 1346725436, 1346725432, 1346725428, 1346725322, 1346725310, 1346725140, 1346725132, 1346725127, 1346725099] Looping around the photos to save general results len do output : 1 /21632901. 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, '2684345') ('4302', '21632901', '1346725626', None, None, None, None, None, '2684345') ('4302', None, None, None, None, None, None, None, '2684345') ('4302', '21632901', '1346725621', None, None, None, None, None, '2684345') ('4302', None, None, None, None, None, None, None, '2684345') ('4302', '21632901', '1346725593', None, None, None, None, None, '2684345') ('4302', None, None, None, None, None, None, None, '2684345') ('4302', '21632901', '1346725569', None, None, None, None, None, '2684345') ('4302', None, None, None, None, None, None, None, '2684345') ('4302', '21632901', '1346725567', None, None, None, None, None, '2684345') ('4302', None, None, None, None, None, None, None, '2684345') ('4302', '21632901', '1346725436', None, None, None, None, None, '2684345') ('4302', None, None, None, None, None, None, None, '2684345') ('4302', '21632901', '1346725432', None, None, None, None, None, '2684345') ('4302', None, None, None, None, None, None, None, '2684345') ('4302', '21632901', '1346725428', None, None, None, None, None, '2684345') ('4302', None, None, None, None, None, None, None, '2684345') ('4302', '21632901', '1346725322', None, None, None, None, None, '2684345') ('4302', None, None, None, None, None, None, None, '2684345') ('4302', '21632901', '1346725310', None, None, None, None, None, '2684345') ('4302', None, None, None, None, None, None, None, '2684345') ('4302', '21632901', '1346725140', None, None, None, None, None, '2684345') ('4302', None, None, None, None, None, None, None, '2684345') ('4302', '21632901', '1346725132', None, None, None, None, None, '2684345') ('4302', None, None, None, None, None, None, None, '2684345') ('4302', '21632901', '1346725127', None, None, None, None, None, '2684345') ('4302', None, None, None, None, None, None, None, '2684345') ('4302', '21632901', '1346725099', None, None, None, None, None, '2684345') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21632901', "{'mal_croppe': 21632926, 'flou': 21632927, 'autre_refus': 21632928, 'metal': 21632929, 'Carton_gris': 21632930, 'Carton_brun': 21632931, 'environnement': 21632932, 'kraft': 21632933, 'papier': 21632934, 'cartonnette': 21632935, 'plastique': 21632936, 'Teint_Dans_La_Masse': 21632937}", None, None, None, None, '2684345'), ('4302', '21632901', '1346725626', None, None, None, None, None, '2684345'), ('4302', '21632901', '1346725621', None, None, None, None, None, '2684345'), ('4302', '21632901', '1346725593', None, None, None, None, None, '2684345'), ('4302', '21632901', '1346725569', None, None, None, None, None, '2684345'), ('4302', '21632901', '1346725567', None, None, None, None, None, '2684345'), ('4302', '21632901', '1346725436', None, None, None, None, None, '2684345'), ('4302', '21632901', '1346725432', None, None, None, None, None, '2684345'), ('4302', '21632901', '1346725428', None, None, None, None, None, '2684345'), ('4302', '21632901', '1346725322', None, None, None, None, None, '2684345'), ('4302', '21632901', '1346725310', None, None, None, None, None, '2684345'), ('4302', '21632901', '1346725140', None, None, None, None, None, '2684345'), ('4302', '21632901', '1346725132', None, None, None, None, None, '2684345'), ('4302', '21632901', '1346725127', None, None, None, None, None, '2684345'), ('4302', '21632901', '1346725099', None, None, None, None, None, '2684345')] time used for this insertion : 0.014611482620239258 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4774820804595947 time spend to save output : 0.014985084533691406 total time spend for step 1 : 1.4924671649932861 step2:final Mon Mar 24 08:22:58 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 (21632901) 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 21632901 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1346724780,1346724746,1346724740,1346724731,1346724936,1346724924,1346724917,1346724914,1346724911,1346724907,1346725140,1346725132,1346725127,1346725099,1346725322,1346725310,1346725436,1346725432,1346725428,1346725626,1346725621,1346725593,1346725569,1346725567); 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([21632901]) Inside saveOutput : final : False verbose : True original output for save of step final : {1346725626: ('0.08052797531434697',), 1346725621: ('0.08052797531434697',), 1346725593: ('0.08052797531434697',), 1346725569: ('0.08052797531434697',), 1346725567: ('0.08052797531434697',), 1346725436: ('0.08052797531434697',), 1346725432: ('0.08052797531434697',), 1346725428: ('0.08052797531434697',), 1346725322: ('0.08052797531434697',), 1346725310: ('0.08052797531434697',), 1346725140: ('0.08052797531434697',), 1346725132: ('0.08052797531434697',), 1346725127: ('0.08052797531434697',), 1346725099: ('0.08052797531434697',)} new output for save of step final : {1346725626: ('0.08052797531434697',), 1346725621: ('0.08052797531434697',), 1346725593: ('0.08052797531434697',), 1346725569: ('0.08052797531434697',), 1346725567: ('0.08052797531434697',), 1346725436: ('0.08052797531434697',), 1346725432: ('0.08052797531434697',), 1346725428: ('0.08052797531434697',), 1346725322: ('0.08052797531434697',), 1346725310: ('0.08052797531434697',), 1346725140: ('0.08052797531434697',), 1346725132: ('0.08052797531434697',), 1346725127: ('0.08052797531434697',), 1346725099: ('0.08052797531434697',)} [1346725626, 1346725621, 1346725593, 1346725569, 1346725567, 1346725436, 1346725432, 1346725428, 1346725322, 1346725310, 1346725140, 1346725132, 1346725127, 1346725099] map_info['map_portfolio_photo'] : {21632901: [1346725626, 1346725621, 1346725593, 1346725569, 1346725567, 1346725436, 1346725432, 1346725428, 1346725322, 1346725310, 1346725140, 1346725132, 1346725127, 1346725099, 1346724936, 1346724924, 1346724917, 1346724914, 1346724911, 1346724907, 1346724780, 1346724746, 1346724740, 1346724731]} final : False mtd_id 4302 list_pids : [1346725626, 1346725621, 1346725593, 1346725569, 1346725567, 1346725436, 1346725432, 1346725428, 1346725322, 1346725310, 1346725140, 1346725132, 1346725127, 1346725099] Looping around the photos to save general results len do output : 14 /1346725626.Didn't retrieve data . /1346725621.Didn't retrieve data . /1346725593.Didn't retrieve data . /1346725569.Didn't retrieve data . /1346725567.Didn't retrieve data . /1346725436.Didn't retrieve data . /1346725432.Didn't retrieve data . /1346725428.Didn't retrieve data . /1346725322.Didn't retrieve data . /1346725310.Didn't retrieve data . /1346725140.Didn't retrieve data . /1346725132.Didn't retrieve data . /1346725127.Didn't retrieve data . /1346725099.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, '2684345') ('4302', '21632901', '1346725626', None, None, None, None, None, '2684345') ('4302', None, None, None, None, None, None, None, '2684345') ('4302', '21632901', '1346725621', None, None, None, None, None, '2684345') ('4302', None, None, None, None, None, None, None, '2684345') ('4302', '21632901', '1346725593', None, None, None, None, None, '2684345') ('4302', None, None, None, None, None, None, None, '2684345') ('4302', '21632901', '1346725569', None, None, None, None, None, '2684345') ('4302', None, None, None, None, None, None, None, '2684345') ('4302', '21632901', '1346725567', None, None, None, None, None, '2684345') ('4302', None, None, None, None, None, None, None, '2684345') ('4302', '21632901', '1346725436', None, None, None, None, None, '2684345') ('4302', None, None, None, None, None, None, None, '2684345') ('4302', '21632901', '1346725432', None, None, None, None, None, '2684345') ('4302', None, None, None, None, None, None, None, '2684345') ('4302', '21632901', '1346725428', None, None, None, None, None, '2684345') ('4302', None, None, None, None, None, None, None, '2684345') ('4302', '21632901', '1346725322', None, None, None, None, None, '2684345') ('4302', None, None, None, None, None, None, None, '2684345') ('4302', '21632901', '1346725310', None, None, None, None, None, '2684345') ('4302', None, None, None, None, None, None, None, '2684345') ('4302', '21632901', '1346725140', None, None, None, None, None, '2684345') ('4302', None, None, None, None, None, None, None, '2684345') ('4302', '21632901', '1346725132', None, None, None, None, None, '2684345') ('4302', None, None, None, None, None, None, None, '2684345') ('4302', '21632901', '1346725127', None, None, None, None, None, '2684345') ('4302', None, None, None, None, None, None, None, '2684345') ('4302', '21632901', '1346725099', None, None, None, None, None, '2684345') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 42 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', '21632901', '1346725626', '0.08052797531434697', None, None, None, None, '2684345'), ('4302', '21632901', '1346725621', '0.08052797531434697', None, None, None, None, '2684345'), ('4302', '21632901', '1346725593', '0.08052797531434697', None, None, None, None, '2684345'), ('4302', '21632901', '1346725569', '0.08052797531434697', None, None, None, None, '2684345'), ('4302', '21632901', '1346725567', '0.08052797531434697', None, None, None, None, '2684345'), ('4302', '21632901', '1346725436', '0.08052797531434697', None, None, None, None, '2684345'), ('4302', '21632901', '1346725432', '0.08052797531434697', None, None, None, None, '2684345'), ('4302', '21632901', '1346725428', '0.08052797531434697', None, None, None, None, '2684345'), ('4302', '21632901', '1346725322', '0.08052797531434697', None, None, None, None, '2684345'), ('4302', '21632901', '1346725310', '0.08052797531434697', None, None, None, None, '2684345'), ('4302', '21632901', '1346725140', '0.08052797531434697', None, None, None, None, '2684345'), ('4302', '21632901', '1346725132', '0.08052797531434697', None, None, None, None, '2684345'), ('4302', '21632901', '1346725127', '0.08052797531434697', None, None, None, None, '2684345'), ('4302', '21632901', '1346725099', '0.08052797531434697', None, None, None, None, '2684345')] time used for this insertion : 0.013506412506103516 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0661005973815918 time spend to save output : 0.014080286026000977 total time spend for step 2 : 0.08018088340759277 step3:velours_tree Mon Mar 24 08:22:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {21632901: [{'mal_croppe': 21632926, 'flou': 21632927, 'autre_refus': 21632928, 'metal': 21632929, 'Carton_gris': 21632930, 'Carton_brun': 21632931, 'environnement': 21632932, 'kraft': 21632933, 'papier': 21632934, 'cartonnette': 21632935, 'plastique': 21632936, 'Teint_Dans_La_Masse': 21632937}]} input_args_next_step : {21632901: ()} output_args : {21632901: [{'mal_croppe': 21632926, 'flou': 21632927, 'autre_refus': 21632928, 'metal': 21632929, 'Carton_gris': 21632930, 'Carton_brun': 21632931, 'environnement': 21632932, 'kraft': 21632933, 'papier': 21632934, 'cartonnette': 21632935, 'plastique': 21632936, 'Teint_Dans_La_Masse': 21632937}]} args : 21632901 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': 21632926, 'flou': 21632927, 'autre_refus': 21632928, 'metal': 21632929, 'Carton_gris': 21632930, 'Carton_brun': 21632931, 'environnement': 21632932, 'kraft': 21632933, 'papier': 21632934, 'cartonnette': 21632935, 'plastique': 21632936, 'Teint_Dans_La_Masse': 21632937},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21632901) 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([21632901]) 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.31647372245788574 time spend to save output : 7.152557373046875e-05 total time spend for step 3 : 0.3165452480316162 step4:send_mail_cod Mon Mar 24 08:22:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1346725626: ('0.08052797531434697',), 1346725621: ('0.08052797531434697',), 1346725593: ('0.08052797531434697',), 1346725569: ('0.08052797531434697',), 1346725567: ('0.08052797531434697',), 1346725436: ('0.08052797531434697',), 1346725432: ('0.08052797531434697',), 1346725428: ('0.08052797531434697',), 1346725322: ('0.08052797531434697',), 1346725310: ('0.08052797531434697',), 1346725140: ('0.08052797531434697',), 1346725132: ('0.08052797531434697',), 1346725127: ('0.08052797531434697',), 1346725099: ('0.08052797531434697',)} input_args_next_step : {1346725626: ()} output_args : {1346725626: ('0.08052797531434697',), 1346725621: ('0.08052797531434697',), 1346725593: ('0.08052797531434697',), 1346725569: ('0.08052797531434697',), 1346725567: ('0.08052797531434697',), 1346725436: ('0.08052797531434697',), 1346725432: ('0.08052797531434697',), 1346725428: ('0.08052797531434697',), 1346725322: ('0.08052797531434697',), 1346725310: ('0.08052797531434697',), 1346725140: ('0.08052797531434697',), 1346725132: ('0.08052797531434697',), 1346725127: ('0.08052797531434697',), 1346725099: ('0.08052797531434697',)} args : 1346725626 depend.output_id : 0 input_args_next_step : {1346725626: ('0.08052797531434697',), 1346725621: ()} output_args : {1346725626: ('0.08052797531434697',), 1346725621: ('0.08052797531434697',), 1346725593: ('0.08052797531434697',), 1346725569: ('0.08052797531434697',), 1346725567: ('0.08052797531434697',), 1346725436: ('0.08052797531434697',), 1346725432: ('0.08052797531434697',), 1346725428: ('0.08052797531434697',), 1346725322: ('0.08052797531434697',), 1346725310: ('0.08052797531434697',), 1346725140: ('0.08052797531434697',), 1346725132: ('0.08052797531434697',), 1346725127: ('0.08052797531434697',), 1346725099: ('0.08052797531434697',)} args : 1346725621 depend.output_id : 0 input_args_next_step : {1346725626: ('0.08052797531434697',), 1346725621: ('0.08052797531434697',), 1346725593: ()} output_args : {1346725626: ('0.08052797531434697',), 1346725621: ('0.08052797531434697',), 1346725593: ('0.08052797531434697',), 1346725569: ('0.08052797531434697',), 1346725567: ('0.08052797531434697',), 1346725436: ('0.08052797531434697',), 1346725432: ('0.08052797531434697',), 1346725428: ('0.08052797531434697',), 1346725322: ('0.08052797531434697',), 1346725310: ('0.08052797531434697',), 1346725140: ('0.08052797531434697',), 1346725132: ('0.08052797531434697',), 1346725127: ('0.08052797531434697',), 1346725099: ('0.08052797531434697',)} args : 1346725593 depend.output_id : 0 input_args_next_step : {1346725626: ('0.08052797531434697',), 1346725621: ('0.08052797531434697',), 1346725593: ('0.08052797531434697',), 1346725569: ()} output_args : {1346725626: ('0.08052797531434697',), 1346725621: ('0.08052797531434697',), 1346725593: ('0.08052797531434697',), 1346725569: ('0.08052797531434697',), 1346725567: ('0.08052797531434697',), 1346725436: ('0.08052797531434697',), 1346725432: ('0.08052797531434697',), 1346725428: ('0.08052797531434697',), 1346725322: ('0.08052797531434697',), 1346725310: ('0.08052797531434697',), 1346725140: ('0.08052797531434697',), 1346725132: ('0.08052797531434697',), 1346725127: ('0.08052797531434697',), 1346725099: ('0.08052797531434697',)} args : 1346725569 depend.output_id : 0 input_args_next_step : {1346725626: ('0.08052797531434697',), 1346725621: ('0.08052797531434697',), 1346725593: ('0.08052797531434697',), 1346725569: ('0.08052797531434697',), 1346725567: ()} output_args : {1346725626: ('0.08052797531434697',), 1346725621: ('0.08052797531434697',), 1346725593: ('0.08052797531434697',), 1346725569: ('0.08052797531434697',), 1346725567: ('0.08052797531434697',), 1346725436: ('0.08052797531434697',), 1346725432: ('0.08052797531434697',), 1346725428: ('0.08052797531434697',), 1346725322: ('0.08052797531434697',), 1346725310: ('0.08052797531434697',), 1346725140: ('0.08052797531434697',), 1346725132: ('0.08052797531434697',), 1346725127: ('0.08052797531434697',), 1346725099: ('0.08052797531434697',)} args : 1346725567 depend.output_id : 0 input_args_next_step : {1346725626: ('0.08052797531434697',), 1346725621: ('0.08052797531434697',), 1346725593: ('0.08052797531434697',), 1346725569: ('0.08052797531434697',), 1346725567: ('0.08052797531434697',), 1346725436: ()} output_args : {1346725626: ('0.08052797531434697',), 1346725621: ('0.08052797531434697',), 1346725593: ('0.08052797531434697',), 1346725569: ('0.08052797531434697',), 1346725567: ('0.08052797531434697',), 1346725436: ('0.08052797531434697',), 1346725432: ('0.08052797531434697',), 1346725428: ('0.08052797531434697',), 1346725322: ('0.08052797531434697',), 1346725310: ('0.08052797531434697',), 1346725140: ('0.08052797531434697',), 1346725132: ('0.08052797531434697',), 1346725127: ('0.08052797531434697',), 1346725099: ('0.08052797531434697',)} args : 1346725436 depend.output_id : 0 input_args_next_step : {1346725626: ('0.08052797531434697',), 1346725621: ('0.08052797531434697',), 1346725593: ('0.08052797531434697',), 1346725569: ('0.08052797531434697',), 1346725567: ('0.08052797531434697',), 1346725436: ('0.08052797531434697',), 1346725432: ()} output_args : {1346725626: ('0.08052797531434697',), 1346725621: ('0.08052797531434697',), 1346725593: ('0.08052797531434697',), 1346725569: ('0.08052797531434697',), 1346725567: ('0.08052797531434697',), 1346725436: ('0.08052797531434697',), 1346725432: ('0.08052797531434697',), 1346725428: ('0.08052797531434697',), 1346725322: ('0.08052797531434697',), 1346725310: ('0.08052797531434697',), 1346725140: ('0.08052797531434697',), 1346725132: ('0.08052797531434697',), 1346725127: ('0.08052797531434697',), 1346725099: ('0.08052797531434697',)} args : 1346725432 depend.output_id : 0 input_args_next_step : {1346725626: ('0.08052797531434697',), 1346725621: ('0.08052797531434697',), 1346725593: ('0.08052797531434697',), 1346725569: ('0.08052797531434697',), 1346725567: ('0.08052797531434697',), 1346725436: ('0.08052797531434697',), 1346725432: ('0.08052797531434697',), 1346725428: ()} output_args : {1346725626: ('0.08052797531434697',), 1346725621: ('0.08052797531434697',), 1346725593: ('0.08052797531434697',), 1346725569: ('0.08052797531434697',), 1346725567: ('0.08052797531434697',), 1346725436: ('0.08052797531434697',), 1346725432: ('0.08052797531434697',), 1346725428: ('0.08052797531434697',), 1346725322: ('0.08052797531434697',), 1346725310: ('0.08052797531434697',), 1346725140: ('0.08052797531434697',), 1346725132: ('0.08052797531434697',), 1346725127: ('0.08052797531434697',), 1346725099: ('0.08052797531434697',)} args : 1346725428 depend.output_id : 0 input_args_next_step : {1346725626: ('0.08052797531434697',), 1346725621: ('0.08052797531434697',), 1346725593: ('0.08052797531434697',), 1346725569: ('0.08052797531434697',), 1346725567: ('0.08052797531434697',), 1346725436: ('0.08052797531434697',), 1346725432: ('0.08052797531434697',), 1346725428: ('0.08052797531434697',), 1346725322: ()} output_args : {1346725626: ('0.08052797531434697',), 1346725621: ('0.08052797531434697',), 1346725593: ('0.08052797531434697',), 1346725569: ('0.08052797531434697',), 1346725567: ('0.08052797531434697',), 1346725436: ('0.08052797531434697',), 1346725432: ('0.08052797531434697',), 1346725428: ('0.08052797531434697',), 1346725322: ('0.08052797531434697',), 1346725310: ('0.08052797531434697',), 1346725140: ('0.08052797531434697',), 1346725132: ('0.08052797531434697',), 1346725127: ('0.08052797531434697',), 1346725099: ('0.08052797531434697',)} args : 1346725322 depend.output_id : 0 input_args_next_step : {1346725626: ('0.08052797531434697',), 1346725621: ('0.08052797531434697',), 1346725593: ('0.08052797531434697',), 1346725569: ('0.08052797531434697',), 1346725567: ('0.08052797531434697',), 1346725436: ('0.08052797531434697',), 1346725432: ('0.08052797531434697',), 1346725428: ('0.08052797531434697',), 1346725322: ('0.08052797531434697',), 1346725310: ()} output_args : {1346725626: ('0.08052797531434697',), 1346725621: ('0.08052797531434697',), 1346725593: ('0.08052797531434697',), 1346725569: ('0.08052797531434697',), 1346725567: ('0.08052797531434697',), 1346725436: ('0.08052797531434697',), 1346725432: ('0.08052797531434697',), 1346725428: ('0.08052797531434697',), 1346725322: ('0.08052797531434697',), 1346725310: ('0.08052797531434697',), 1346725140: ('0.08052797531434697',), 1346725132: ('0.08052797531434697',), 1346725127: ('0.08052797531434697',), 1346725099: ('0.08052797531434697',)} args : 1346725310 depend.output_id : 0 input_args_next_step : {1346725626: ('0.08052797531434697',), 1346725621: ('0.08052797531434697',), 1346725593: ('0.08052797531434697',), 1346725569: ('0.08052797531434697',), 1346725567: ('0.08052797531434697',), 1346725436: ('0.08052797531434697',), 1346725432: ('0.08052797531434697',), 1346725428: ('0.08052797531434697',), 1346725322: ('0.08052797531434697',), 1346725310: ('0.08052797531434697',), 1346725140: ()} output_args : {1346725626: ('0.08052797531434697',), 1346725621: ('0.08052797531434697',), 1346725593: ('0.08052797531434697',), 1346725569: ('0.08052797531434697',), 1346725567: ('0.08052797531434697',), 1346725436: ('0.08052797531434697',), 1346725432: ('0.08052797531434697',), 1346725428: ('0.08052797531434697',), 1346725322: ('0.08052797531434697',), 1346725310: ('0.08052797531434697',), 1346725140: ('0.08052797531434697',), 1346725132: ('0.08052797531434697',), 1346725127: ('0.08052797531434697',), 1346725099: ('0.08052797531434697',)} args : 1346725140 depend.output_id : 0 input_args_next_step : {1346725626: ('0.08052797531434697',), 1346725621: ('0.08052797531434697',), 1346725593: ('0.08052797531434697',), 1346725569: ('0.08052797531434697',), 1346725567: ('0.08052797531434697',), 1346725436: ('0.08052797531434697',), 1346725432: ('0.08052797531434697',), 1346725428: ('0.08052797531434697',), 1346725322: ('0.08052797531434697',), 1346725310: ('0.08052797531434697',), 1346725140: ('0.08052797531434697',), 1346725132: ()} output_args : {1346725626: ('0.08052797531434697',), 1346725621: ('0.08052797531434697',), 1346725593: ('0.08052797531434697',), 1346725569: ('0.08052797531434697',), 1346725567: ('0.08052797531434697',), 1346725436: ('0.08052797531434697',), 1346725432: ('0.08052797531434697',), 1346725428: ('0.08052797531434697',), 1346725322: ('0.08052797531434697',), 1346725310: ('0.08052797531434697',), 1346725140: ('0.08052797531434697',), 1346725132: ('0.08052797531434697',), 1346725127: ('0.08052797531434697',), 1346725099: ('0.08052797531434697',)} args : 1346725132 depend.output_id : 0 input_args_next_step : {1346725626: ('0.08052797531434697',), 1346725621: ('0.08052797531434697',), 1346725593: ('0.08052797531434697',), 1346725569: ('0.08052797531434697',), 1346725567: ('0.08052797531434697',), 1346725436: ('0.08052797531434697',), 1346725432: ('0.08052797531434697',), 1346725428: ('0.08052797531434697',), 1346725322: ('0.08052797531434697',), 1346725310: ('0.08052797531434697',), 1346725140: ('0.08052797531434697',), 1346725132: ('0.08052797531434697',), 1346725127: ()} output_args : {1346725626: ('0.08052797531434697',), 1346725621: ('0.08052797531434697',), 1346725593: ('0.08052797531434697',), 1346725569: ('0.08052797531434697',), 1346725567: ('0.08052797531434697',), 1346725436: ('0.08052797531434697',), 1346725432: ('0.08052797531434697',), 1346725428: ('0.08052797531434697',), 1346725322: ('0.08052797531434697',), 1346725310: ('0.08052797531434697',), 1346725140: ('0.08052797531434697',), 1346725132: ('0.08052797531434697',), 1346725127: ('0.08052797531434697',), 1346725099: ('0.08052797531434697',)} args : 1346725127 depend.output_id : 0 input_args_next_step : {1346725626: ('0.08052797531434697',), 1346725621: ('0.08052797531434697',), 1346725593: ('0.08052797531434697',), 1346725569: ('0.08052797531434697',), 1346725567: ('0.08052797531434697',), 1346725436: ('0.08052797531434697',), 1346725432: ('0.08052797531434697',), 1346725428: ('0.08052797531434697',), 1346725322: ('0.08052797531434697',), 1346725310: ('0.08052797531434697',), 1346725140: ('0.08052797531434697',), 1346725132: ('0.08052797531434697',), 1346725127: ('0.08052797531434697',), 1346725099: ()} output_args : {1346725626: ('0.08052797531434697',), 1346725621: ('0.08052797531434697',), 1346725593: ('0.08052797531434697',), 1346725569: ('0.08052797531434697',), 1346725567: ('0.08052797531434697',), 1346725436: ('0.08052797531434697',), 1346725432: ('0.08052797531434697',), 1346725428: ('0.08052797531434697',), 1346725322: ('0.08052797531434697',), 1346725310: ('0.08052797531434697',), 1346725140: ('0.08052797531434697',), 1346725132: ('0.08052797531434697',), 1346725127: ('0.08052797531434697',), 1346725099: ('0.08052797531434697',)} args : 1346725099 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 : {21632901: [{'mal_croppe': 21632926, 'flou': 21632927, 'autre_refus': 21632928, 'metal': 21632929, 'Carton_gris': 21632930, 'Carton_brun': 21632931, 'environnement': 21632932, 'kraft': 21632933, 'papier': 21632934, 'cartonnette': 21632935, 'plastique': 21632936, 'Teint_Dans_La_Masse': 21632937}]} input_args_next_step : {1346725626: ('0.08052797531434697',), 1346725621: ('0.08052797531434697',), 1346725593: ('0.08052797531434697',), 1346725569: ('0.08052797531434697',), 1346725567: ('0.08052797531434697',), 1346725436: ('0.08052797531434697',), 1346725432: ('0.08052797531434697',), 1346725428: ('0.08052797531434697',), 1346725322: ('0.08052797531434697',), 1346725310: ('0.08052797531434697',), 1346725140: ('0.08052797531434697',), 1346725132: ('0.08052797531434697',), 1346725127: ('0.08052797531434697',), 1346725099: ('0.08052797531434697',), 21632901: ()} output_args : {21632901: [{'mal_croppe': 21632926, 'flou': 21632927, 'autre_refus': 21632928, 'metal': 21632929, 'Carton_gris': 21632930, 'Carton_brun': 21632931, 'environnement': 21632932, 'kraft': 21632933, 'papier': 21632934, 'cartonnette': 21632935, 'plastique': 21632936, 'Teint_Dans_La_Masse': 21632937}]} args : 21632901 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 :15, first value : ('0.08052797531434697',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21632901) 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 (1346725626,1346725621,1346725593,1346725569,1346725567,1346725436,1346725432,1346725428,1346725322,1346725310,1346725140,1346725132,1346725127,1346725099) Found this number of photos: 14 ##### Call download_photos : nb_thread : 5 begin to download photo : 1346725099 begin to download photo : 1346725140 begin to download photo : 1346725428 begin to download photo : 1346725567 begin to download photo : 1346725621 download finish for photo 1346725099 begin to download photo : 1346725127 download finish for photo 1346725140 begin to download photo : 1346725310 download finish for photo 1346725428 begin to download photo : 1346725432 download finish for photo 1346725567 begin to download photo : 1346725569 download finish for photo 1346725621 begin to download photo : 1346725626 download finish for photo 1346725432 begin to download photo : 1346725436 download finish for photo 1346725127 begin to download photo : 1346725132 download finish for photo 1346725626 download finish for photo 1346725310 begin to download photo : 1346725322 download finish for photo 1346725569 begin to download photo : 1346725593 download finish for photo 1346725132 download finish for photo 1346725436 download finish for photo 1346725322 download finish for photo 1346725593 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette216329261742800979/ imagette216329271742800979/ length of list_filenames : 14 ; length of list_pids : 14 ; length of list_args : 14 results_Auto_P21632901_24-03-2025_08_22_59.pdf 21632926 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=21632926 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette216329261742800979 21632927 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=21632927 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette216329271742800979 21632928 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=21632928 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346725491: '1742800853_2665668_1346725132_dc8438bdde7587b06e372d14738319af_rle_crop_3726274197_0.png', 1346725492: '1742800853_2665668_1346725127_0b182c717c0a240bc5fa8307fcca0647_rle_crop_3726274441_0.png', 1346725494: '1742800853_2665668_1346725099_85f00edd59ca81c07612bcfb5f7fb629_rle_crop_3726274493_0.png', 1346725642: '1742800871_2666006_1346725140_6e305ac54009e115fbda89bf859e6593_rle_crop_3726274715_0.png', 1346725643: '1742800871_2666006_1346724924_1bec84cdda72cd33f4d5d1bc0f63b07c_rle_crop_3726274745_0.png', 1346725644: '1742800871_2666006_1346724924_1bec84cdda72cd33f4d5d1bc0f63b07c_rle_crop_3726274747_0.png', 1346725645: '1742800871_2666006_1346724917_caba3c1a7f9ce8f04f07afd1999fb3ee_rle_crop_3726274759_0.png', 1346725646: '1742800871_2666006_1346724914_098305fec39a1ad49e68181e64cd0dee_rle_crop_3726274827_0.png', 1346725647: '1742800871_2666006_1346724911_a53ed2be041dd797dad08942f06e97be_rle_crop_3726274841_0.png', 1346725648: '1742800871_2666006_1346724907_b2bfddc7fc6274a27e8a5b13adf6cfc5_rle_crop_3726274875_0.png', 1346725682: '1742800891_2666331_1346724936_9357b2a4a91a31b4d072c8dfbc7ba064_rle_crop_3726274861_0.png', 1346725683: '1742800891_2666331_1346724780_6733e7ac62b07cfdde679b020350df97_rle_crop_3726274883_0.png', 1346725684: '1742800891_2666331_1346724746_2bc61c9e5fe37419bf0f4e8637cc79c2_rle_crop_3726274891_0.png', 1346725685: '1742800891_2666331_1346724746_2bc61c9e5fe37419bf0f4e8637cc79c2_rle_crop_3726274900_0.png', 1346725686: '1742800891_2666331_1346724740_6161ed34b0eabdfa5b57bd76db854ac6_rle_crop_3726274922_0.png', 1346725687: '1742800891_2666331_1346724731_f6fbb597d8724bff7a7b3915feb2d5b8_rle_crop_3726274944_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/4f728025989ca7c4d8b9ffba8826e10e_16004814.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/fcf725faece97aab180eac99f9511bd8_51304907.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/6e305603879eff3420762d4f1569add9_94802905.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/ebddb08fc0b963ec6c15744849a440c6_78022863.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/ef5ad8a148344b0cbbc0c99267f1ca04_36688565.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/c8b6f8d9a8a83e8cfc3cf121ba4a168e_56989082.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/d2cd396bb7ab561016d940e4e4d3d052_15587376.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/4efbdbc0b14368745eb344df616d17d7_90704018.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/fac0085e5efa983a2fc765fb6d09f729_64935802.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/222cbf37a2bdd7fd2d0ffe81d8a06e74_95404070.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/11d8c8e352725541b86875c3bf5ac638_26479362.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/c42ff19c0af49d0d8a60e1e90f51be77_56649371.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/06283f32ec6d5a4a6d376389f68eef1d_24639574.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/0f240cf9711fdd85930c4dadf29d2fdb_1214637.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/d90ea3b6dc7b9d6f93eea7e871feab79_91432954.png change filename to text .imagette216329281742800979/ imagette216329281742800979/1742800871_2666006_1346724924_1bec84cdda72cd33f4d5d1bc0f63b07c_rle_crop_3726274747_0.png.png imagette216329281742800979/1742800853_2665668_1346725132_dc8438bdde7587b06e372d14738319af_rle_crop_3726274197_0.png.png imagette216329281742800979/1742800871_2666006_1346724907_b2bfddc7fc6274a27e8a5b13adf6cfc5_rle_crop_3726274875_0.png.png imagette216329281742800979/1742800891_2666331_1346724731_f6fbb597d8724bff7a7b3915feb2d5b8_rle_crop_3726274944_0.png.png imagette216329281742800979/1742800871_2666006_1346725140_6e305ac54009e115fbda89bf859e6593_rle_crop_3726274715_0.png.png imagette216329281742800979/1742800891_2666331_1346724746_2bc61c9e5fe37419bf0f4e8637cc79c2_rle_crop_3726274891_0.png.png imagette216329281742800979/1742800891_2666331_1346724740_6161ed34b0eabdfa5b57bd76db854ac6_rle_crop_3726274922_0.png.png imagette216329281742800979/1742800871_2666006_1346724914_098305fec39a1ad49e68181e64cd0dee_rle_crop_3726274827_0.png.png imagette216329281742800979/1742800891_2666331_1346724780_6733e7ac62b07cfdde679b020350df97_rle_crop_3726274883_0.png.png imagette216329281742800979/1742800853_2665668_1346725099_85f00edd59ca81c07612bcfb5f7fb629_rle_crop_3726274493_0.png.png imagette216329281742800979/1742800891_2666331_1346724936_9357b2a4a91a31b4d072c8dfbc7ba064_rle_crop_3726274861_0.png.png imagette216329281742800979/1742800891_2666331_1346724746_2bc61c9e5fe37419bf0f4e8637cc79c2_rle_crop_3726274900_0.png.png imagette216329281742800979/1742800853_2665668_1346725127_0b182c717c0a240bc5fa8307fcca0647_rle_crop_3726274441_0.png.png imagette216329281742800979/1742800871_2666006_1346724911_a53ed2be041dd797dad08942f06e97be_rle_crop_3726274841_0.png.png imagette216329281742800979/1742800871_2666006_1346724924_1bec84cdda72cd33f4d5d1bc0f63b07c_rle_crop_3726274745_0.png.png imagette216329281742800979/1742800871_2666006_1346724917_caba3c1a7f9ce8f04f07afd1999fb3ee_rle_crop_3726274759_0.png.png imagette216329291742800982/ wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/cb56153fa0c9eb8804ddcf9dcea2cac4_68036792.png imagette216329281742800979 21632929 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=21632929 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette216329291742800982 21632933 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=21632933 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346725672: '1742800871_2666006_1346724911_a53ed2be041dd797dad08942f06e97be_rle_crop_3726274835_0.png'} change filename to text .imagette216329331742800982/ imagette216329331742800982/1742800871_2666006_1346724911_a53ed2be041dd797dad08942f06e97be_rle_crop_3726274835_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/56d342b5c429f0f7082bd001832d3eff_82900236.png imagette216329331742800982 21632935 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=21632935 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346725654: '1742800871_2666006_1346725140_6e305ac54009e115fbda89bf859e6593_rle_crop_3726274702_0.png', 1346725655: '1742800871_2666006_1346724911_a53ed2be041dd797dad08942f06e97be_rle_crop_3726274838_0.png', 1346725656: '1742800871_2666006_1346724907_b2bfddc7fc6274a27e8a5b13adf6cfc5_rle_crop_3726274866_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/ef6eba491f9f1fa6193f073d5b2fd809_37835316.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/7804c6a9327c69e4680af8a55e194123_72090385.png change filename to text .imagette216329351742800982/ imagette216329351742800982/1742800871_2666006_1346725140_6e305ac54009e115fbda89bf859e6593_rle_crop_3726274702_0.png.png imagette216329351742800982/1742800871_2666006_1346724911_a53ed2be041dd797dad08942f06e97be_rle_crop_3726274838_0.png.png imagette216329351742800982/1742800871_2666006_1346724907_b2bfddc7fc6274a27e8a5b13adf6cfc5_rle_crop_3726274866_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/5d31af74f0a447fbcc241248c701291f_41355124.png imagette216329351742800982 21632936 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=21632936 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346725668: '1742800871_2666006_1346724924_1bec84cdda72cd33f4d5d1bc0f63b07c_rle_crop_3726274729_0.png', 1346725669: '1742800871_2666006_1346724917_caba3c1a7f9ce8f04f07afd1999fb3ee_rle_crop_3726274753_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/3de55044bfc6b2d5bb5b0525d754e6ad_66149393.png change filename to text .imagette216329361742800982/ imagette216329361742800982/1742800871_2666006_1346724924_1bec84cdda72cd33f4d5d1bc0f63b07c_rle_crop_3726274729_0.png.png imagette216329361742800982/1742800871_2666006_1346724917_caba3c1a7f9ce8f04f07afd1999fb3ee_rle_crop_3726274753_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/4c94043c596487fd10ef455398e88b52_38389451.png imagette216329361742800982 21632930 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=21632930 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346725650: '1742800871_2666006_1346724914_098305fec39a1ad49e68181e64cd0dee_rle_crop_3726274820_0.png', 1346725651: '1742800871_2666006_1346724914_098305fec39a1ad49e68181e64cd0dee_rle_crop_3726274822_0.png', 1346725652: '1742800871_2666006_1346724911_a53ed2be041dd797dad08942f06e97be_rle_crop_3726274839_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/00d3bfef35214c5ccbae6b8e5534b351_51750472.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/9f8c1234b51d7d1665d0ada7dc81d499_156396.png change filename to text .imagette216329301742800983/ imagette216329301742800983/1742800871_2666006_1346724911_a53ed2be041dd797dad08942f06e97be_rle_crop_3726274839_0.png.png imagette216329301742800983/1742800871_2666006_1346724914_098305fec39a1ad49e68181e64cd0dee_rle_crop_3726274822_0.png.png imagette216329301742800983/1742800871_2666006_1346724914_098305fec39a1ad49e68181e64cd0dee_rle_crop_3726274820_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/53440fc6a10d25445840b29664eae069_73392772.png imagette216329301742800983 21632931 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=21632931 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346725500: '1742800853_2665668_1346725132_dc8438bdde7587b06e372d14738319af_rle_crop_3726274187_0.png', 1346725501: '1742800853_2665668_1346725132_dc8438bdde7587b06e372d14738319af_rle_crop_3726274192_0.png', 1346725660: '1742800871_2666006_1346725140_6e305ac54009e115fbda89bf859e6593_rle_crop_3726274709_0.png', 1346725661: '1742800871_2666006_1346725140_6e305ac54009e115fbda89bf859e6593_rle_crop_3726274708_0.png', 1346725662: '1742800871_2666006_1346724917_caba3c1a7f9ce8f04f07afd1999fb3ee_rle_crop_3726274756_0.png', 1346725663: '1742800871_2666006_1346724907_b2bfddc7fc6274a27e8a5b13adf6cfc5_rle_crop_3726274870_0.png', 1346725664: '1742800871_2666006_1346724907_b2bfddc7fc6274a27e8a5b13adf6cfc5_rle_crop_3726274873_0.png', 1346725665: '1742800871_2666006_1346724907_b2bfddc7fc6274a27e8a5b13adf6cfc5_rle_crop_3726274869_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/95e58cf035e014b558253b3decf84bb9_28987867.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/55dbe0bc2b8716cd04707e003f276bd5_78830304.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/639de9c301e76abbbc9cca5710b01d3f_5727562.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/2040895d7e96138f4d0bef51ca9608af_44532541.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/fa0f2f97a03b0e0b9b2bec9f019586eb_48121173.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/30faef9501280ce93de886b84c5a9479_65794809.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/3ca07b5017ee0ada730b63c01b5edf21_25706678.png change filename to text .imagette216329311742800983/ imagette216329311742800983/1742800871_2666006_1346724907_b2bfddc7fc6274a27e8a5b13adf6cfc5_rle_crop_3726274873_0.png.png imagette216329311742800983/1742800853_2665668_1346725132_dc8438bdde7587b06e372d14738319af_rle_crop_3726274187_0.png.png imagette216329311742800983/1742800871_2666006_1346725140_6e305ac54009e115fbda89bf859e6593_rle_crop_3726274709_0.png.png imagette216329311742800983/1742800871_2666006_1346724907_b2bfddc7fc6274a27e8a5b13adf6cfc5_rle_crop_3726274869_0.png.png imagette216329311742800983/1742800853_2665668_1346725132_dc8438bdde7587b06e372d14738319af_rle_crop_3726274192_0.png.png imagette216329311742800983/1742800871_2666006_1346725140_6e305ac54009e115fbda89bf859e6593_rle_crop_3726274708_0.png.png imagette216329311742800983/1742800871_2666006_1346724917_caba3c1a7f9ce8f04f07afd1999fb3ee_rle_crop_3726274756_0.png.png imagette216329311742800983/1742800871_2666006_1346724907_b2bfddc7fc6274a27e8a5b13adf6cfc5_rle_crop_3726274870_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/76ddf461e89424e4dd92c147e83a28a4_81193826.png imagette216329311742800983 21632937 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=21632937 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346725485: '1742800853_2665668_1346725132_dc8438bdde7587b06e372d14738319af_rle_crop_3726274189_0.png', 1346725486: '1742800853_2665668_1346725127_0b182c717c0a240bc5fa8307fcca0647_rle_crop_3726274440_0.png', 1346725487: '1742800853_2665668_1346725127_0b182c717c0a240bc5fa8307fcca0647_rle_crop_3726274443_0.png', 1346725488: '1742800853_2665668_1346725099_85f00edd59ca81c07612bcfb5f7fb629_rle_crop_3726274494_0.png', 1346725489: '1742800853_2665668_1346725099_85f00edd59ca81c07612bcfb5f7fb629_rle_crop_3726274491_0.png', 1346725634: '1742800871_2666006_1346724924_1bec84cdda72cd33f4d5d1bc0f63b07c_rle_crop_3726274735_0.png', 1346725635: '1742800871_2666006_1346724917_caba3c1a7f9ce8f04f07afd1999fb3ee_rle_crop_3726274758_0.png', 1346725636: '1742800871_2666006_1346724914_098305fec39a1ad49e68181e64cd0dee_rle_crop_3726274831_0.png', 1346725674: '1742800891_2666331_1346724936_9357b2a4a91a31b4d072c8dfbc7ba064_rle_crop_3726274857_0.png', 1346725675: '1742800891_2666331_1346724746_2bc61c9e5fe37419bf0f4e8637cc79c2_rle_crop_3726274899_0.png', 1346725676: '1742800891_2666331_1346724731_f6fbb597d8724bff7a7b3915feb2d5b8_rle_crop_3726274938_0.png', 1346725677: '1742800891_2666331_1346724731_f6fbb597d8724bff7a7b3915feb2d5b8_rle_crop_3726274935_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/7ec129bda328d7349842a7d1a40dd21a_54303624.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/4d3392e3ac9e836c57a06533c936fd12_71776003.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/956585e9f865ac033147ef64c94029e1_50868722.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/e985b4b5cd8e40b7987136e7552c00d0_61949500.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/d72133e04bcc859a8bfb98c53694148e_83138944.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/5f29fa03e6f069e3bb2cfb01c5589a7c_29747648.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/d8b25b525628d16d3ca1449e80da7524_72574161.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/c0996a88222d91e2154c2060aafd6fe5_58466174.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/ca55aa2329365e93b60f1183106f4f19_30303995.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/1ad58e3858eeed3b1deff7b3133cb7ec_99827217.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/c5350895e232f57e3b43f3a028cb3327_36011302.png change filename to text .imagette216329371742800983/ imagette216329371742800983/1742800853_2665668_1346725127_0b182c717c0a240bc5fa8307fcca0647_rle_crop_3726274443_0.png.png imagette216329371742800983/1742800853_2665668_1346725099_85f00edd59ca81c07612bcfb5f7fb629_rle_crop_3726274491_0.png.png imagette216329371742800983/1742800871_2666006_1346724914_098305fec39a1ad49e68181e64cd0dee_rle_crop_3726274831_0.png.png imagette216329371742800983/1742800891_2666331_1346724731_f6fbb597d8724bff7a7b3915feb2d5b8_rle_crop_3726274938_0.png.png imagette216329371742800983/1742800853_2665668_1346725127_0b182c717c0a240bc5fa8307fcca0647_rle_crop_3726274440_0.png.png imagette216329371742800983/1742800871_2666006_1346724917_caba3c1a7f9ce8f04f07afd1999fb3ee_rle_crop_3726274758_0.png.png imagette216329371742800983/1742800853_2665668_1346725099_85f00edd59ca81c07612bcfb5f7fb629_rle_crop_3726274494_0.png.png imagette216329371742800983/1742800891_2666331_1346724746_2bc61c9e5fe37419bf0f4e8637cc79c2_rle_crop_3726274899_0.png.png imagette216329371742800983/1742800853_2665668_1346725132_dc8438bdde7587b06e372d14738319af_rle_crop_3726274189_0.png.png imagette216329371742800983/1742800891_2666331_1346724936_9357b2a4a91a31b4d072c8dfbc7ba064_rle_crop_3726274857_0.png.png imagette216329371742800983/1742800871_2666006_1346724924_1bec84cdda72cd33f4d5d1bc0f63b07c_rle_crop_3726274735_0.png.png imagette216329371742800983/1742800891_2666331_1346724731_f6fbb597d8724bff7a7b3915feb2d5b8_rle_crop_3726274935_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/54ef40d2333eb7b61067e1d6313a76e6_46789768.png imagette216329371742800983 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21632901 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21632939,21632940,21632941,21632942,21632943,21632944,21632945,21632946,21632947,21632948,21632949,21632950?tags=mal_croppe,flou,autre_refus,metal,Carton_gris,Carton_brun,environnement,kraft,papier,cartonnette,plastique,Teint_Dans_La_Masse your option no_mail is active, we will not send the real mail to your client args[1346725626] : ('0.08052797531434697',) no score found for photo 1346725626 We are sending mail with results at report@fotonower.com args[1346725621] : ('0.08052797531434697',) no score found for photo 1346725621 We are sending mail with results at report@fotonower.com args[1346725593] : ('0.08052797531434697',) no score found for photo 1346725593 We are sending mail with results at report@fotonower.com args[1346725569] : ('0.08052797531434697',) no score found for photo 1346725569 We are sending mail with results at report@fotonower.com args[1346725567] : ('0.08052797531434697',) no score found for photo 1346725567 We are sending mail with results at report@fotonower.com args[1346725436] : ('0.08052797531434697',) no score found for photo 1346725436 We are sending mail with results at report@fotonower.com args[1346725432] : ('0.08052797531434697',) no score found for photo 1346725432 We are sending mail with results at report@fotonower.com args[1346725428] : ('0.08052797531434697',) no score found for photo 1346725428 We are sending mail with results at report@fotonower.com args[1346725322] : ('0.08052797531434697',) no score found for photo 1346725322 We are sending mail with results at report@fotonower.com args[1346725310] : ('0.08052797531434697',) no score found for photo 1346725310 We are sending mail with results at report@fotonower.com args[1346725140] : ('0.08052797531434697',) no score found for photo 1346725140 We are sending mail with results at report@fotonower.com args[1346725132] : ('0.08052797531434697',) no score found for photo 1346725132 We are sending mail with results at report@fotonower.com args[1346725127] : ('0.08052797531434697',) no score found for photo 1346725127 We are sending mail with results at report@fotonower.com args[1346725099] : ('0.08052797531434697',) no score found for photo 1346725099 We are sending mail with results at report@fotonower.com refus_total : 0.08052797531434697 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=21632901 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_P21632901_24-03-2025_08_22_59.pdf results_Auto_P21632901_24-03-2025_08_22_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21632901_24-03-2025_08_22_59.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','21632901','results_Auto_P21632901_24-03-2025_08_22_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21632901_24-03-2025_08_22_59.pdf','pdf','','0.25','0.08052797531434697') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21632901]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1346725626, 1346725621, 1346725593, 1346725569, 1346725567, 1346725436, 1346725432, 1346725428, 1346725322, 1346725310, 1346725140, 1346725132, 1346725127, 1346725099] map_info['map_portfolio_photo'] : {21632901: [1346725626, 1346725621, 1346725593, 1346725569, 1346725567, 1346725436, 1346725432, 1346725428, 1346725322, 1346725310, 1346725140, 1346725132, 1346725127, 1346725099, 1346724936, 1346724924, 1346724917, 1346724914, 1346724911, 1346724907, 1346724780, 1346724746, 1346724740, 1346724731]} final : False mtd_id 4302 list_pids : [1346725626, 1346725621, 1346725593, 1346725569, 1346725567, 1346725436, 1346725432, 1346725428, 1346725322, 1346725310, 1346725140, 1346725132, 1346725127, 1346725099] 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, '2684345') ('4302', '21632901', '1346725626', None, None, None, None, None, '2684345') ('4302', None, None, None, None, None, None, None, '2684345') ('4302', '21632901', '1346725621', None, None, None, None, None, '2684345') ('4302', None, None, None, None, None, None, None, '2684345') ('4302', '21632901', '1346725593', None, None, None, None, None, '2684345') ('4302', None, None, None, None, None, None, None, '2684345') ('4302', '21632901', '1346725569', None, None, None, None, None, '2684345') ('4302', None, None, None, None, None, None, None, '2684345') ('4302', '21632901', '1346725567', None, None, None, None, None, '2684345') ('4302', None, None, None, None, None, None, None, '2684345') ('4302', '21632901', '1346725436', None, None, None, None, None, '2684345') ('4302', None, None, None, None, None, None, None, '2684345') ('4302', '21632901', '1346725432', None, None, None, None, None, '2684345') ('4302', None, None, None, None, None, None, None, '2684345') ('4302', '21632901', '1346725428', None, None, None, None, None, '2684345') ('4302', None, None, None, None, None, None, None, '2684345') ('4302', '21632901', '1346725322', None, None, None, None, None, '2684345') ('4302', None, None, None, None, None, None, None, '2684345') ('4302', '21632901', '1346725310', None, None, None, None, None, '2684345') ('4302', None, None, None, None, None, None, None, '2684345') ('4302', '21632901', '1346725140', None, None, None, None, None, '2684345') ('4302', None, None, None, None, None, None, None, '2684345') ('4302', '21632901', '1346725132', None, None, None, None, None, '2684345') ('4302', None, None, None, None, None, None, None, '2684345') ('4302', '21632901', '1346725127', None, None, None, None, None, '2684345') ('4302', None, None, None, None, None, None, None, '2684345') ('4302', '21632901', '1346725099', None, None, None, None, None, '2684345') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 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', '21632901', '1346725626', None, None, None, None, None, '2684345'), ('4302', '21632901', '1346725621', None, None, None, None, None, '2684345'), ('4302', '21632901', '1346725593', None, None, None, None, None, '2684345'), ('4302', '21632901', '1346725569', None, None, None, None, None, '2684345'), ('4302', '21632901', '1346725567', None, None, None, None, None, '2684345'), ('4302', '21632901', '1346725436', None, None, None, None, None, '2684345'), ('4302', '21632901', '1346725432', None, None, None, None, None, '2684345'), ('4302', '21632901', '1346725428', None, None, None, None, None, '2684345'), ('4302', '21632901', '1346725322', None, None, None, None, None, '2684345'), ('4302', '21632901', '1346725310', None, None, None, None, None, '2684345'), ('4302', '21632901', '1346725140', None, None, None, None, None, '2684345'), ('4302', '21632901', '1346725132', None, None, None, None, None, '2684345'), ('4302', '21632901', '1346725127', None, None, None, None, None, '2684345'), ('4302', '21632901', '1346725099', None, None, None, None, None, '2684345')] time used for this insertion : 0.013868570327758789 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.162550449371338 time spend to save output : 0.014201879501342773 total time spend for step 4 : 6.176752328872681 step5:split_time_score Mon Mar 24 08:23:05 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 : ['21632901'] 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 : [('21632901',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21632901) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1346725621: {'path': 'temp/1742800979_3316175_1346725621_b4ac67a1112dff0e5dd3f157f08c1935.jpg', 'extension': 'jpg'}, 1346725626: {'path': 'temp/1742800979_3316175_1346725626_596ba36b04507a195166d3f63d3b7064.jpg', 'extension': 'jpg'}, 1346725099: {'path': 'temp/1742800979_3316175_1346725099_85f00edd59ca81c07612bcfb5f7fb629.jpg', 'extension': 'jpg'}, 1346725127: {'path': 'temp/1742800979_3316175_1346725127_0b182c717c0a240bc5fa8307fcca0647.jpg', 'extension': 'jpg'}, 1346725132: {'path': 'temp/1742800979_3316175_1346725132_dc8438bdde7587b06e372d14738319af.jpg', 'extension': 'jpg'}, 1346725428: {'path': 'temp/1742800979_3316175_1346725428_16c983b842544659d87c6ea0753c88c2.jpg', 'extension': 'jpg'}, 1346725432: {'path': 'temp/1742800979_3316175_1346725432_cfb9cdf8b757b91f931adfa6b0088bed.jpg', 'extension': 'jpg'}, 1346725436: {'path': 'temp/1742800979_3316175_1346725436_7f5c6d20d13fd22d9ad7a1f40eff09b4.jpg', 'extension': 'jpg'}, 1346725140: {'path': 'temp/1742800979_3316175_1346725140_6e305ac54009e115fbda89bf859e6593.jpg', 'extension': 'jpg'}, 1346725310: {'path': 'temp/1742800979_3316175_1346725310_f15038c140e18077df6804fa9ccd4f91.jpg', 'extension': 'jpg'}, 1346725322: {'path': 'temp/1742800979_3316175_1346725322_ffc4e1980429299169262ea4c61e6719.jpg', 'extension': 'jpg'}, 1346725567: {'path': 'temp/1742800979_3316175_1346725567_a7c2f3177ceabbc708b52dd3b980be39.jpg', 'extension': 'jpg'}, 1346725569: {'path': 'temp/1742800979_3316175_1346725569_acc03ff91650a6275c165b93f0d7dfec.jpg', 'extension': 'jpg'}, 1346725593: {'path': 'temp/1742800979_3316175_1346725593_65583903ce8f7fd135af2169548fdad1.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 = 21632901; (('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 = 21632901 group by h (('08', 24),) 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=21632901 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 (21632901) 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 (21632901) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 24032025 21632901 Nombre de photos uploadées : 24 / 23040 (0%) 24032025 21632901 Nombre de photos taguées (types de déchets): 0 / 24 (0%) 24032025 21632901 Nombre de photos taguées (volume) : 0 / 24 (0%) [{'photo_id': 1346724780, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/6733e7ac62b07cfdde679b020350df97.jpg', 'username': None, 'uploaded_at': 1742800628, 'text': 'image_24032025_08_15_14_10146.jpg'}, {'photo_id': 1346724746, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/2bc61c9e5fe37419bf0f4e8637cc79c2.jpg', 'username': None, 'uploaded_at': 1742800628, 'text': 'image_24032025_08_15_24_10142.jpg'}, {'photo_id': 1346724740, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/6161ed34b0eabdfa5b57bd76db854ac6.jpg', 'username': None, 'uploaded_at': 1742800628, 'text': 'image_24032025_08_15_34_10142.jpg'}, {'photo_id': 1346724731, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/f6fbb597d8724bff7a7b3915feb2d5b8.jpg', 'username': None, 'uploaded_at': 1742800628, 'text': 'image_24032025_08_15_43_9130.jpg'}] 0 [] elapsed_time : load_data_split_time_score 3.5762786865234375e-06 elapsed_time : order_list_meta_photo_and_scores 7.867813110351562e-06 ???????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0008594989776611328 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21632901, '2025-03-24' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1682789,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.023549318313598633 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= 1682789 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1682789, 'dashboard_run_id': 1690616, 'mtr_portfolio_id': 21630706, 'dashboard_result_id': 9568310, '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_P21630706_24-03-2025_07_49_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21630800, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21630801, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21630802, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21630803, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21630804, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21630805, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21630806, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21630807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21630808, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21630809, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21630810, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21630811, 'pht': 3726}}"}, {'dashboat_entry_day': 1682789, 'dashboard_run_id': 1690616, 'mtr_portfolio_id': 21631501, 'dashboard_result_id': 9568311, '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_P21631501_24-03-2025_08_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21631502, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21631503, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21631504, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21631505, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21631506, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21631507, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21631508, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21631509, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21631510, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21631511, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21631512, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21631513, 'pht': 3726}}"}, {'dashboat_entry_day': 1682789, 'dashboard_run_id': 1690616, 'mtr_portfolio_id': 21632290, 'dashboard_result_id': 9568312, '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_P21632290_24-03-2025_08_18_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21632303, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21632304, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21632305, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21632306, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21632307, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21632308, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21632309, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21632310, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21632311, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21632312, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21632313, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21632314, 'pht': 3726}}"}, {'dashboat_entry_day': 1682789, 'dashboard_run_id': 1690616, 'mtr_portfolio_id': 21632901, 'dashboard_result_id': 9568313, '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_P21632901_24-03-2025_08_20_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21632926, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21632927, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21632928, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21632929, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21632930, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21632931, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21632932, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21632933, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21632934, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21632935, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21632936, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21632937, '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 = 21630706 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': 2684184, 'mtr_portfolio_id': 21630706, 'created_at': datetime.datetime(2025, 3, 24, 7, 49, 3), 'result': '0.0633065718942427', 'result_long': None, 'result_double': None}] Qualite : 0.0633065718942427 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21630706 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21630706_24-03-2025_07_49_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21630706 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_P21630706_24-03-2025_07_49_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21630800, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21630801, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21630802, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21630803, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21630804, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21630805, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21630806, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21630807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21630808, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21630809, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21630810, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21630811, 'pht': 3726}}" where mtr_portfolio_id = 21630706 and dashboard_run_id = 1690616 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`=21630706 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9568310, 0.0633065718942427, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21630706_24-03-2025_07_49_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21630800, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21630801, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21630802, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21630803, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21630804, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21630805, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21630806, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21630807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21630808, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21630809, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21630810, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21630811, '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 = 21631501 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': 2684235, 'mtr_portfolio_id': 21631501, 'created_at': datetime.datetime(2025, 3, 24, 8, 2, 59), 'result': '0.08660300273084101', 'result_long': None, 'result_double': None}] Qualite : 0.08660300273084101 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21631501 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21631501_24-03-2025_08_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21631501 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_P21631501_24-03-2025_08_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21631502, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21631503, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21631504, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21631505, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21631506, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21631507, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21631508, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21631509, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21631510, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21631511, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21631512, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21631513, 'pht': 3726}}" where mtr_portfolio_id = 21631501 and dashboard_run_id = 1690616 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`=21631501 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9568311, 0.08660300273084101, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21631501_24-03-2025_08_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21631502, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21631503, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21631504, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21631505, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21631506, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21631507, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21631508, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21631509, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21631510, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21631511, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21631512, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21631513, '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 = 21632290 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': 2684309, 'mtr_portfolio_id': 21632290, 'created_at': datetime.datetime(2025, 3, 24, 8, 18), 'result': '0.08792172414748939', 'result_long': None, 'result_double': None}] Qualite : 0.08792172414748939 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21632290 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21632290_24-03-2025_08_18_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21632290 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_P21632290_24-03-2025_08_18_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21632303, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21632304, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21632305, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21632306, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21632307, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21632308, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21632309, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21632310, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21632311, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21632312, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21632313, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21632314, 'pht': 3726}}" where mtr_portfolio_id = 21632290 and dashboard_run_id = 1690616 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`=21632290 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9568312, 0.08792172414748939, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21632290_24-03-2025_08_18_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21632303, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21632304, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21632305, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21632306, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21632307, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21632308, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21632309, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21632310, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21632311, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21632312, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21632313, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21632314, '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 = 21632901 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': 2684345, 'mtr_portfolio_id': 21632901, 'created_at': datetime.datetime(2025, 3, 24, 8, 22, 59), 'result': '0.08052797531434697', 'result_long': None, 'result_double': None}] Qualite : 0.08052797531434697 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21632901 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21632901_24-03-2025_08_22_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21632901 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_P21632901_24-03-2025_08_22_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21632926, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21632927, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21632928, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21632929, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21632930, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21632931, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21632932, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21632933, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21632934, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21632935, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21632936, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21632937, 'pht': 3726}}" where mtr_portfolio_id = 21632901 and dashboard_run_id = 1690616 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`=21632901 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9568313, 0.08052797531434697, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21632901_24-03-2025_08_22_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21632926, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21632927, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21632928, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21632929, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21632930, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21632931, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21632932, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21632933, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21632934, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21632935, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21632936, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21632937, '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 (21630706,21631501,21632290,21632901) result : ((1346716273,), (1346716281,), (1346716288,), (1346716291,), (1346716578,), (1346716600,), (1346716618,), (1346716628,), (1346716656,), (1346716667,), (1346716800,), (1346716808,), (1346716821,), (1346716842,), (1346716854,), (1346716861,), (1346716953,), (1346717007,), (1346717021,), (1346717145,), (1346717150,), (1346717155,), (1346717159,), (1346717166,), (1346717172,), (1346717238,), (1346717245,), (1346717253,), (1346717268,), (1346717275,), (1346717280,), (1346717340,), (1346717350,), (1346717361,), (1346717536,), (1346717545,), (1346717562,), (1346717575,), (1346717631,), (1346717636,), (1346717642,), (1346717645,), (1346717651,), (1346717698,), (1346717703,), (1346717710,), (1346717815,), (1346717821,), (1346717872,), (1346717891,), (1346717899,), (1346718032,), (1346718037,), (1346718043,), (1346718049,), (1346718057,), (1346718099,), (1346718107,), (1346718110,), (1346718116,), (1346718123,), (1346718153,), (1346718158,), (1346718165,), (1346718172,), (1346718365,), (1346718254,), (1346718315,), (1346718320,), (1346718356,), (1346718524,), (1346718531,), (1346718538,), (1346718545,), (1346718557,), (1346718624,), (1346718653,), (1346718723,), (1346719082,), (1346719087,), (1346719271,), (1346719330,), (1346719340,), (1346719662,), (1346719736,), (1346719774,), (1346719777,), (1346719778,), (1346719781,), (1346719810,), (1346719814,), (1346719815,), (1346719859,), (1346719862,), (1346719864,), (1346719865,), (1346719870,), (1346720352,), (1346720431,), (1346720510,), (1346720588,), (1346720672,), (1346720731,), (1346721113,), (1346721151,), (1346721169,), (1346721194,), (1346721616,), (1346721621,), (1346721623,), (1346721633,), (1346721638,), (1346721646,), (1346721663,), (1346721669,), (1346721709,), (1346721704,), (1346721889,), (1346721896,), (1346721899,), (1346721902,), (1346722050,), (1346722084,), (1346722087,), (1346722142,), (1346722149,), (1346722297,), (1346722300,), (1346722313,), (1346722360,), (1346722375,), (1346722377,), (1346722388,), (1346722586,), (1346722626,), (1346722649,), (1346722662,), (1346722678,), (1346722875,), (1346722901,), (1346722926,), (1346722946,), (1346723052,), (1346723058,), (1346723063,), (1346723068,), (1346723101,), (1346723102,), (1346723106,), (1346723110,), (1346723114,), (1346723119,), (1346723165,), (1346723180,), (1346723195,), (1346723220,), (1346723598,), (1346723625,), (1346723645,), (1346723676,), (1346723708,), (1346723733,), (1346723830,), (1346723850,), (1346723872,), (1346724017,), (1346724048,), (1346724090,), (1346724227,), (1346724253,), (1346724271,), (1346724274,), (1346724321,), (1346724327,), (1346724332,), (1346724358,), (1346724368,), (1346724372,), (1346724405,), (1346724409,), (1346724412,), (1346724836,), (1346724731,), (1346724740,), (1346724746,), (1346724780,), (1346724907,), (1346724911,), (1346724914,), (1346724917,), (1346724924,), (1346724936,), (1346725099,), (1346725127,), (1346725132,), (1346725140,), (1346725310,), (1346725322,), (1346725428,), (1346725432,), (1346725436,), (1346725567,), (1346725569,), (1346725593,), (1346725621,), (1346725626,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'24032025': {'nb_upload': 24, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21632901]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1346725626, 1346725621, 1346725593, 1346725569, 1346725567, 1346725436, 1346725432, 1346725428, 1346725322, 1346725310, 1346725140, 1346725132, 1346725127, 1346725099] map_info['map_portfolio_photo'] : {21632901: [1346725626, 1346725621, 1346725593, 1346725569, 1346725567, 1346725436, 1346725432, 1346725428, 1346725322, 1346725310, 1346725140, 1346725132, 1346725127, 1346725099, 1346724936, 1346724924, 1346724917, 1346724914, 1346724911, 1346724907, 1346724780, 1346724746, 1346724740, 1346724731]} final : True mtd_id 4302 list_pids : [1346725626, 1346725621, 1346725593, 1346725569, 1346725567, 1346725436, 1346725432, 1346725428, 1346725322, 1346725310, 1346725140, 1346725132, 1346725127, 1346725099] Looping around the photos to save general results len do output : 1 /21632901Didn'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, '2684345') ('4302', '21632901', '1346725626', None, None, None, None, None, '2684345') ('4302', None, None, None, None, None, None, None, '2684345') ('4302', '21632901', '1346725621', None, None, None, None, None, '2684345') ('4302', None, None, None, None, None, None, None, '2684345') ('4302', '21632901', '1346725593', None, None, None, None, None, '2684345') ('4302', None, None, None, None, None, None, None, '2684345') ('4302', '21632901', '1346725569', None, None, None, None, None, '2684345') ('4302', None, None, None, None, None, None, None, '2684345') ('4302', '21632901', '1346725567', None, None, None, None, None, '2684345') ('4302', None, None, None, None, None, None, None, '2684345') ('4302', '21632901', '1346725436', None, None, None, None, None, '2684345') ('4302', None, None, None, None, None, None, None, '2684345') ('4302', '21632901', '1346725432', None, None, None, None, None, '2684345') ('4302', None, None, None, None, None, None, None, '2684345') ('4302', '21632901', '1346725428', None, None, None, None, None, '2684345') ('4302', None, None, None, None, None, None, None, '2684345') ('4302', '21632901', '1346725322', None, None, None, None, None, '2684345') ('4302', None, None, None, None, None, None, None, '2684345') ('4302', '21632901', '1346725310', None, None, None, None, None, '2684345') ('4302', None, None, None, None, None, None, None, '2684345') ('4302', '21632901', '1346725140', None, None, None, None, None, '2684345') ('4302', None, None, None, None, None, None, None, '2684345') ('4302', '21632901', '1346725132', None, None, None, None, None, '2684345') ('4302', None, None, None, None, None, None, None, '2684345') ('4302', '21632901', '1346725127', None, None, None, None, None, '2684345') ('4302', None, None, None, None, None, None, None, '2684345') ('4302', '21632901', '1346725099', None, None, None, None, None, '2684345') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21632901', 'None', None, None, None, None, '2684345'), ('4302', '21632901', '1346725626', None, None, None, None, None, '2684345'), ('4302', '21632901', '1346725621', None, None, None, None, None, '2684345'), ('4302', '21632901', '1346725593', None, None, None, None, None, '2684345'), ('4302', '21632901', '1346725569', None, None, None, None, None, '2684345'), ('4302', '21632901', '1346725567', None, None, None, None, None, '2684345'), ('4302', '21632901', '1346725436', None, None, None, None, None, '2684345'), ('4302', '21632901', '1346725432', None, None, None, None, None, '2684345'), ('4302', '21632901', '1346725428', None, None, None, None, None, '2684345'), ('4302', '21632901', '1346725322', None, None, None, None, None, '2684345'), ('4302', '21632901', '1346725310', None, None, None, None, None, '2684345'), ('4302', '21632901', '1346725140', None, None, None, None, None, '2684345'), ('4302', '21632901', '1346725132', None, None, None, None, None, '2684345'), ('4302', '21632901', '1346725127', None, None, None, None, None, '2684345'), ('4302', '21632901', '1346725099', None, None, None, None, None, '2684345')] time used for this insertion : 0.013927698135375977 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3447716236114502 time spend to save output : 0.014151334762573242 total time spend for step 5 : 0.35892295837402344 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 (2684345) 2.29user 2.44system 0:10.97elapsed 43%CPU (0avgtext+0avgdata 161360maxresident)k 472inputs+14104outputs (0major+76103minor)pagefaults 0swaps