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 : 1197369 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 (4206214) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4206214) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29322398 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4206214'] with mtr_portfolio_ids : ['29322398'] and first list_photo_ids : [] new path : /proc/1197369/ Name: python3 Umask: 0002 State: R (running) Tgid: 1197369 Ngid: 0 Pid: 1197369 PPid: 1197368 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1197369 NSpid: 1197369 NSpgid: 1196284 NSsid: 1196284 VmPeak: 1113364 kB VmSize: 1113364 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 106360 kB VmRSS: 106360 kB RssAnon: 66292 kB RssFile: 40068 kB RssShmem: 0 kB VmData: 872092 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 620 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 50 nonvoluntary_ctxt_switches: 95 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1197369', 'Ngid': '0', 'Pid': '1197369', 'PPid': '1197368', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1197369', 'NSpid': '1197369', 'NSpgid': '1196284', 'NSsid': '1196284', 'VmPeak': '1113364 kB', 'VmSize': '1113364 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '106360 kB', 'VmRSS': '106360 kB', 'RssAnon': '66292 kB', 'RssFile': '40068 kB', 'RssShmem': '0 kB', 'VmData': '872092 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '620 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '50', 'nonvoluntary_ctxt_switches': '95'} ('datou_batch_current', '1197369', '1113364', '0', '1113364', '872092', '106360', b'', 'marlene', '4206214') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (29322398) 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 (4206214 ) ) 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 (29322398) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1398799902, 'portfolio_id': 29322398}, {'photo_id': 1398799901, 'portfolio_id': 29322398}, {'photo_id': 1398799899, 'portfolio_id': 29322398}, {'photo_id': 1398799887, 'portfolio_id': 29322398}, {'photo_id': 1398799882, 'portfolio_id': 29322398}, {'photo_id': 1398799879, 'portfolio_id': 29322398}, {'photo_id': 1398799870, 'portfolio_id': 29322398}, {'photo_id': 1398799865, 'portfolio_id': 29322398}, {'photo_id': 1398799862, 'portfolio_id': 29322398}, {'photo_id': 1398799856, 'portfolio_id': 29322398}, {'photo_id': 1398799854, 'portfolio_id': 29322398}, {'photo_id': 1398799852, 'portfolio_id': 29322398}, {'photo_id': 1398799850, 'portfolio_id': 29322398}, {'photo_id': 1398799849, 'portfolio_id': 29322398}, {'photo_id': 1398799848, 'portfolio_id': 29322398}, {'photo_id': 1398799834, 'portfolio_id': 29322398}, {'photo_id': 1398799831, 'portfolio_id': 29322398}, {'photo_id': 1398799828, 'portfolio_id': 29322398}, {'photo_id': 1398799826, 'portfolio_id': 29322398}, {'photo_id': 1398799816, 'portfolio_id': 29322398}, {'photo_id': 1398799814, 'portfolio_id': 29322398}, {'photo_id': 1398799811, 'portfolio_id': 29322398}, {'photo_id': 1398799809, 'portfolio_id': 29322398}, {'photo_id': 1398799807, 'portfolio_id': 29322398}, {'photo_id': 1398799805, 'portfolio_id': 29322398}, {'photo_id': 1398799787, 'portfolio_id': 29322398}, {'photo_id': 1398799784, 'portfolio_id': 29322398}, {'photo_id': 1398799782, 'portfolio_id': 29322398}, {'photo_id': 1398799780, 'portfolio_id': 29322398}, {'photo_id': 1398799778, 'portfolio_id': 29322398}, {'photo_id': 1398799758, 'portfolio_id': 29322398}, {'photo_id': 1398799754, 'portfolio_id': 29322398}, {'photo_id': 1398799750, 'portfolio_id': 29322398}, {'photo_id': 1398799748, 'portfolio_id': 29322398}, {'photo_id': 1398799746, 'portfolio_id': 29322398}, {'photo_id': 1398799734, 'portfolio_id': 29322398}, {'photo_id': 1398799731, 'portfolio_id': 29322398}, {'photo_id': 1398799729, 'portfolio_id': 29322398}, {'photo_id': 1398799727, 'portfolio_id': 29322398}, {'photo_id': 1398799725, 'portfolio_id': 29322398}, {'photo_id': 1398799695, 'portfolio_id': 29322398}, {'photo_id': 1398799693, 'portfolio_id': 29322398}, {'photo_id': 1398799691, 'portfolio_id': 29322398}, {'photo_id': 1398799689, 'portfolio_id': 29322398}, {'photo_id': 1398799675, 'portfolio_id': 29322398}, {'photo_id': 1398799621, 'portfolio_id': 29322398}, {'photo_id': 1398799619, 'portfolio_id': 29322398}, {'photo_id': 1398799617, 'portfolio_id': 29322398}, {'photo_id': 1398799594, 'portfolio_id': 29322398}, {'photo_id': 1398799591, 'portfolio_id': 29322398}, {'photo_id': 1398799588, 'portfolio_id': 29322398}] map_portfolio_id_photo_id: {29322398: [1398799902, 1398799901, 1398799899, 1398799887, 1398799882, 1398799879, 1398799870, 1398799865, 1398799862, 1398799856, 1398799854, 1398799852, 1398799850, 1398799849, 1398799848, 1398799834, 1398799831, 1398799828, 1398799826, 1398799816, 1398799814, 1398799811, 1398799809, 1398799807, 1398799805, 1398799787, 1398799784, 1398799782, 1398799780, 1398799778, 1398799758, 1398799754, 1398799750, 1398799748, 1398799746, 1398799734, 1398799731, 1398799729, 1398799727, 1398799725, 1398799695, 1398799693, 1398799691, 1398799689, 1398799675, 1398799621, 1398799619, 1398799617, 1398799594, 1398799591, 1398799588]} ##### 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.018359661102294922 #### 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 Thu Dec 11 00:46: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 After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29322398) 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 : 29322398 get user id for portfolio 29322398 get sub ptf for main ptf 29322398, type 3726 and hashtags ['kraft', 'Teint_Dans_La_Masse', 'papier', 'mal_croppe', 'metal', 'Carton_gris', 'Carton_brun', 'autre_refus', 'plastique', 'cartonnette', 'environnement', 'flou'] 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`=29322398 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','Teint_Dans_La_Masse','papier','mal_croppe','metal','Carton_gris','Carton_brun','autre_refus','plastique','cartonnette','environnement','flou')) 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`=29322398 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','Teint_Dans_La_Masse','papier','mal_croppe','metal','Carton_gris','Carton_brun','autre_refus','plastique','cartonnette','environnement','flou')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 29322398, 'sub_port_id': 29322400, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19962640, 'last_updated_at': datetime.datetime(2025, 12, 11, 0, 44, 31), 'last_updated_at_desc': datetime.datetime(2025, 12, 11, 0, 44, 31), 'last_updated_at_asc': datetime.datetime(2025, 12, 11, 0, 36, 59)}, 'papier': {'main_port_id': 29322398, 'sub_port_id': 29322401, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19962641, 'last_updated_at': datetime.datetime(2025, 12, 11, 0, 44, 31), 'last_updated_at_desc': datetime.datetime(2025, 12, 11, 0, 44, 31), 'last_updated_at_asc': datetime.datetime(2025, 12, 11, 0, 36, 59)}, 'environnement': {'main_port_id': 29322398, 'sub_port_id': 29322402, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19962642, 'last_updated_at': datetime.datetime(2025, 12, 11, 0, 44, 31), 'last_updated_at_desc': datetime.datetime(2025, 12, 11, 0, 44, 31), 'last_updated_at_asc': datetime.datetime(2025, 12, 11, 0, 36, 59)}, 'plastique': {'main_port_id': 29322398, 'sub_port_id': 29322403, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19962643, 'last_updated_at': datetime.datetime(2025, 12, 11, 0, 44, 31), 'last_updated_at_desc': datetime.datetime(2025, 12, 11, 0, 44, 31), 'last_updated_at_asc': datetime.datetime(2025, 12, 11, 0, 36, 59)}, 'flou': {'main_port_id': 29322398, 'sub_port_id': 29322404, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19962644, 'last_updated_at': datetime.datetime(2025, 12, 11, 0, 44, 31), 'last_updated_at_desc': datetime.datetime(2025, 12, 11, 0, 44, 31), 'last_updated_at_asc': datetime.datetime(2025, 12, 11, 0, 36, 59)}, 'Carton_brun': {'main_port_id': 29322398, 'sub_port_id': 29322405, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19962645, 'last_updated_at': datetime.datetime(2025, 12, 11, 0, 44, 31), 'last_updated_at_desc': datetime.datetime(2025, 12, 11, 0, 44, 31), 'last_updated_at_asc': datetime.datetime(2025, 12, 11, 0, 36, 59)}, 'cartonnette': {'main_port_id': 29322398, 'sub_port_id': 29322406, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19962646, 'last_updated_at': datetime.datetime(2025, 12, 11, 0, 44, 31), 'last_updated_at_desc': datetime.datetime(2025, 12, 11, 0, 44, 31), 'last_updated_at_asc': datetime.datetime(2025, 12, 11, 0, 36, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 29322398, 'sub_port_id': 29322407, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19962647, 'last_updated_at': datetime.datetime(2025, 12, 11, 0, 44, 31), 'last_updated_at_desc': datetime.datetime(2025, 12, 11, 0, 44, 31), 'last_updated_at_asc': datetime.datetime(2025, 12, 11, 0, 36, 59)}, 'mal_croppe': {'main_port_id': 29322398, 'sub_port_id': 29322408, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19962648, 'last_updated_at': datetime.datetime(2025, 12, 11, 0, 44, 31), 'last_updated_at_desc': datetime.datetime(2025, 12, 11, 0, 44, 31), 'last_updated_at_asc': datetime.datetime(2025, 12, 11, 0, 36, 59)}, 'metal': {'main_port_id': 29322398, 'sub_port_id': 29322409, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19962649, 'last_updated_at': datetime.datetime(2025, 12, 11, 0, 44, 31), 'last_updated_at_desc': datetime.datetime(2025, 12, 11, 0, 44, 31), 'last_updated_at_asc': datetime.datetime(2025, 12, 11, 0, 36, 59)}, 'kraft': {'main_port_id': 29322398, 'sub_port_id': 29322410, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19962650, 'last_updated_at': datetime.datetime(2025, 12, 11, 0, 44, 31), 'last_updated_at_desc': datetime.datetime(2025, 12, 11, 0, 44, 31), 'last_updated_at_asc': datetime.datetime(2025, 12, 11, 0, 36, 59)}, 'Carton_gris': {'main_port_id': 29322398, 'sub_port_id': 29322411, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19962651, 'last_updated_at': datetime.datetime(2025, 12, 11, 0, 44, 31), 'last_updated_at_desc': datetime.datetime(2025, 12, 11, 0, 44, 31), 'last_updated_at_asc': datetime.datetime(2025, 12, 11, 0, 36, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29322400 , 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=29322398 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 (29322400) result : ((1398799656,), (1398799657,), (1398799668,), (1398799669,), (1398799702,), (1398799770,), (1398799817,), (1398799868,), (1398799869,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29322398) result : ((1398799588,), (1398799591,), (1398799594,), (1398799617,), (1398799619,), (1398799621,), (1398799675,), (1398799689,), (1398799691,), (1398799693,), (1398799695,), (1398799725,), (1398799727,), (1398799729,), (1398799731,), (1398799734,), (1398799746,), (1398799748,), (1398799750,), (1398799754,), (1398799758,), (1398799778,), (1398799780,), (1398799782,), (1398799784,), (1398799787,), (1398799805,), (1398799807,), (1398799809,), (1398799811,), (1398799814,), (1398799816,), (1398799826,), (1398799828,), (1398799831,), (1398799834,), (1398799848,), (1398799849,), (1398799850,), (1398799852,), (1398799854,), (1398799856,), (1398799862,), (1398799865,), (1398799870,), (1398799879,), (1398799882,), (1398799887,), (1398799899,), (1398799901,), (1398799902,)) 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 29322401 , 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=29322398 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 (29322401) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29322398) result : ((1398799588,), (1398799591,), (1398799594,), (1398799617,), (1398799619,), (1398799621,), (1398799675,), (1398799689,), (1398799691,), (1398799693,), (1398799695,), (1398799725,), (1398799727,), (1398799729,), (1398799731,), (1398799734,), (1398799746,), (1398799748,), (1398799750,), (1398799754,), (1398799758,), (1398799778,), (1398799780,), (1398799782,), (1398799784,), (1398799787,), (1398799805,), (1398799807,), (1398799809,), (1398799811,), (1398799814,), (1398799816,), (1398799826,), (1398799828,), (1398799831,), (1398799834,), (1398799848,), (1398799849,), (1398799850,), (1398799852,), (1398799854,), (1398799856,), (1398799862,), (1398799865,), (1398799870,), (1398799879,), (1398799882,), (1398799887,), (1398799899,), (1398799901,), (1398799902,)) 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 29322402 , 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=29322398 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 (29322402) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29322398) result : ((1398799588,), (1398799591,), (1398799594,), (1398799617,), (1398799619,), (1398799621,), (1398799675,), (1398799689,), (1398799691,), (1398799693,), (1398799695,), (1398799725,), (1398799727,), (1398799729,), (1398799731,), (1398799734,), (1398799746,), (1398799748,), (1398799750,), (1398799754,), (1398799758,), (1398799778,), (1398799780,), (1398799782,), (1398799784,), (1398799787,), (1398799805,), (1398799807,), (1398799809,), (1398799811,), (1398799814,), (1398799816,), (1398799826,), (1398799828,), (1398799831,), (1398799834,), (1398799848,), (1398799849,), (1398799850,), (1398799852,), (1398799854,), (1398799856,), (1398799862,), (1398799865,), (1398799870,), (1398799879,), (1398799882,), (1398799887,), (1398799899,), (1398799901,), (1398799902,)) 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 29322403 , 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=29322398 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 (29322403) result : ((1398799775,), (1398799776,), (1398799875,), (1398799876,), (1398799877,), (1398799878,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29322398) result : ((1398799588,), (1398799591,), (1398799594,), (1398799617,), (1398799619,), (1398799621,), (1398799675,), (1398799689,), (1398799691,), (1398799693,), (1398799695,), (1398799725,), (1398799727,), (1398799729,), (1398799731,), (1398799734,), (1398799746,), (1398799748,), (1398799750,), (1398799754,), (1398799758,), (1398799778,), (1398799780,), (1398799782,), (1398799784,), (1398799787,), (1398799805,), (1398799807,), (1398799809,), (1398799811,), (1398799814,), (1398799816,), (1398799826,), (1398799828,), (1398799831,), (1398799834,), (1398799848,), (1398799849,), (1398799850,), (1398799852,), (1398799854,), (1398799856,), (1398799862,), (1398799865,), (1398799870,), (1398799879,), (1398799882,), (1398799887,), (1398799899,), (1398799901,), (1398799902,)) 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 29322404 , 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=29322398 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 (29322404) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29322398) result : ((1398799588,), (1398799591,), (1398799594,), (1398799617,), (1398799619,), (1398799621,), (1398799675,), (1398799689,), (1398799691,), (1398799693,), (1398799695,), (1398799725,), (1398799727,), (1398799729,), (1398799731,), (1398799734,), (1398799746,), (1398799748,), (1398799750,), (1398799754,), (1398799758,), (1398799778,), (1398799780,), (1398799782,), (1398799784,), (1398799787,), (1398799805,), (1398799807,), (1398799809,), (1398799811,), (1398799814,), (1398799816,), (1398799826,), (1398799828,), (1398799831,), (1398799834,), (1398799848,), (1398799849,), (1398799850,), (1398799852,), (1398799854,), (1398799856,), (1398799862,), (1398799865,), (1398799870,), (1398799879,), (1398799882,), (1398799887,), (1398799899,), (1398799901,), (1398799902,)) 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 29322405 , 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=29322398 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 (29322405) result : ((1398799658,), (1398799659,), (1398799660,), (1398799661,), (1398799673,), (1398799763,), (1398799764,), (1398799765,), (1398799822,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29322398) result : ((1398799588,), (1398799591,), (1398799594,), (1398799617,), (1398799619,), (1398799621,), (1398799675,), (1398799689,), (1398799691,), (1398799693,), (1398799695,), (1398799725,), (1398799727,), (1398799729,), (1398799731,), (1398799734,), (1398799746,), (1398799748,), (1398799750,), (1398799754,), (1398799758,), (1398799778,), (1398799780,), (1398799782,), (1398799784,), (1398799787,), (1398799805,), (1398799807,), (1398799809,), (1398799811,), (1398799814,), (1398799816,), (1398799826,), (1398799828,), (1398799831,), (1398799834,), (1398799848,), (1398799849,), (1398799850,), (1398799852,), (1398799854,), (1398799856,), (1398799862,), (1398799865,), (1398799870,), (1398799879,), (1398799882,), (1398799887,), (1398799899,), (1398799901,), (1398799902,)) 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 29322406 , 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=29322398 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 (29322406) result : ((1398799672,), (1398799762,), (1398799772,), (1398799773,), (1398799774,), (1398799821,), (1398799871,), (1398799872,), (1398799873,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29322398) result : ((1398799588,), (1398799591,), (1398799594,), (1398799617,), (1398799619,), (1398799621,), (1398799675,), (1398799689,), (1398799691,), (1398799693,), (1398799695,), (1398799725,), (1398799727,), (1398799729,), (1398799731,), (1398799734,), (1398799746,), (1398799748,), (1398799750,), (1398799754,), (1398799758,), (1398799778,), (1398799780,), (1398799782,), (1398799784,), (1398799787,), (1398799805,), (1398799807,), (1398799809,), (1398799811,), (1398799814,), (1398799816,), (1398799826,), (1398799828,), (1398799831,), (1398799834,), (1398799848,), (1398799849,), (1398799850,), (1398799852,), (1398799854,), (1398799856,), (1398799862,), (1398799865,), (1398799870,), (1398799879,), (1398799882,), (1398799887,), (1398799899,), (1398799901,), (1398799902,)) 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 29322407 , 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=29322398 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 (29322407) result : ((1398799653,), (1398799654,), (1398799769,), (1398799867,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29322398) result : ((1398799588,), (1398799591,), (1398799594,), (1398799617,), (1398799619,), (1398799621,), (1398799675,), (1398799689,), (1398799691,), (1398799693,), (1398799695,), (1398799725,), (1398799727,), (1398799729,), (1398799731,), (1398799734,), (1398799746,), (1398799748,), (1398799750,), (1398799754,), (1398799758,), (1398799778,), (1398799780,), (1398799782,), (1398799784,), (1398799787,), (1398799805,), (1398799807,), (1398799809,), (1398799811,), (1398799814,), (1398799816,), (1398799826,), (1398799828,), (1398799831,), (1398799834,), (1398799848,), (1398799849,), (1398799850,), (1398799852,), (1398799854,), (1398799856,), (1398799862,), (1398799865,), (1398799870,), (1398799879,), (1398799882,), (1398799887,), (1398799899,), (1398799901,), (1398799902,)) 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 29322408 , 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=29322398 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 (29322408) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29322398) result : ((1398799588,), (1398799591,), (1398799594,), (1398799617,), (1398799619,), (1398799621,), (1398799675,), (1398799689,), (1398799691,), (1398799693,), (1398799695,), (1398799725,), (1398799727,), (1398799729,), (1398799731,), (1398799734,), (1398799746,), (1398799748,), (1398799750,), (1398799754,), (1398799758,), (1398799778,), (1398799780,), (1398799782,), (1398799784,), (1398799787,), (1398799805,), (1398799807,), (1398799809,), (1398799811,), (1398799814,), (1398799816,), (1398799826,), (1398799828,), (1398799831,), (1398799834,), (1398799848,), (1398799849,), (1398799850,), (1398799852,), (1398799854,), (1398799856,), (1398799862,), (1398799865,), (1398799870,), (1398799879,), (1398799882,), (1398799887,), (1398799899,), (1398799901,), (1398799902,)) 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 29322409 , 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=29322398 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 (29322409) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29322398) result : ((1398799588,), (1398799591,), (1398799594,), (1398799617,), (1398799619,), (1398799621,), (1398799675,), (1398799689,), (1398799691,), (1398799693,), (1398799695,), (1398799725,), (1398799727,), (1398799729,), (1398799731,), (1398799734,), (1398799746,), (1398799748,), (1398799750,), (1398799754,), (1398799758,), (1398799778,), (1398799780,), (1398799782,), (1398799784,), (1398799787,), (1398799805,), (1398799807,), (1398799809,), (1398799811,), (1398799814,), (1398799816,), (1398799826,), (1398799828,), (1398799831,), (1398799834,), (1398799848,), (1398799849,), (1398799850,), (1398799852,), (1398799854,), (1398799856,), (1398799862,), (1398799865,), (1398799870,), (1398799879,), (1398799882,), (1398799887,), (1398799899,), (1398799901,), (1398799902,)) 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 29322410 , 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=29322398 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 (29322410) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29322398) result : ((1398799588,), (1398799591,), (1398799594,), (1398799617,), (1398799619,), (1398799621,), (1398799675,), (1398799689,), (1398799691,), (1398799693,), (1398799695,), (1398799725,), (1398799727,), (1398799729,), (1398799731,), (1398799734,), (1398799746,), (1398799748,), (1398799750,), (1398799754,), (1398799758,), (1398799778,), (1398799780,), (1398799782,), (1398799784,), (1398799787,), (1398799805,), (1398799807,), (1398799809,), (1398799811,), (1398799814,), (1398799816,), (1398799826,), (1398799828,), (1398799831,), (1398799834,), (1398799848,), (1398799849,), (1398799850,), (1398799852,), (1398799854,), (1398799856,), (1398799862,), (1398799865,), (1398799870,), (1398799879,), (1398799882,), (1398799887,), (1398799899,), (1398799901,), (1398799902,)) 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 29322411 , 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=29322398 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 (29322411) result : ((1398799671,), (1398799761,), (1398799771,), (1398799818,), (1398799820,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29322398) result : ((1398799588,), (1398799591,), (1398799594,), (1398799617,), (1398799619,), (1398799621,), (1398799675,), (1398799689,), (1398799691,), (1398799693,), (1398799695,), (1398799725,), (1398799727,), (1398799729,), (1398799731,), (1398799734,), (1398799746,), (1398799748,), (1398799750,), (1398799754,), (1398799758,), (1398799778,), (1398799780,), (1398799782,), (1398799784,), (1398799787,), (1398799805,), (1398799807,), (1398799809,), (1398799811,), (1398799814,), (1398799816,), (1398799826,), (1398799828,), (1398799831,), (1398799834,), (1398799848,), (1398799849,), (1398799850,), (1398799852,), (1398799854,), (1398799856,), (1398799862,), (1398799865,), (1398799870,), (1398799879,), (1398799882,), (1398799887,), (1398799899,), (1398799901,), (1398799902,)) 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`=29322398 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','Teint_Dans_La_Masse','papier','mal_croppe','metal','Carton_gris','Carton_brun','autre_refus','plastique','cartonnette','environnement','flou')) 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`=29322398 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','Teint_Dans_La_Masse','papier','mal_croppe','metal','Carton_gris','Carton_brun','autre_refus','plastique','cartonnette','environnement','flou')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 29322398, 'sub_port_id': 29322412, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19962652, 'last_updated_at': datetime.datetime(2025, 12, 11, 0, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 11, 0, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 11, 0, 37, 1)}, 'papier': {'main_port_id': 29322398, 'sub_port_id': 29322413, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19962653, 'last_updated_at': datetime.datetime(2025, 12, 11, 0, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 11, 0, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 11, 0, 37, 1)}, 'environnement': {'main_port_id': 29322398, 'sub_port_id': 29322414, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19962654, 'last_updated_at': datetime.datetime(2025, 12, 11, 0, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 11, 0, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 11, 0, 37, 1)}, 'plastique': {'main_port_id': 29322398, 'sub_port_id': 29322415, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19962655, 'last_updated_at': datetime.datetime(2025, 12, 11, 0, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 11, 0, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 11, 0, 37, 1)}, 'flou': {'main_port_id': 29322398, 'sub_port_id': 29322416, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19962656, 'last_updated_at': datetime.datetime(2025, 12, 11, 0, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 11, 0, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 11, 0, 37, 1)}, 'Carton_brun': {'main_port_id': 29322398, 'sub_port_id': 29322417, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19962657, 'last_updated_at': datetime.datetime(2025, 12, 11, 0, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 11, 0, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 11, 0, 37, 1)}, 'cartonnette': {'main_port_id': 29322398, 'sub_port_id': 29322418, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19962658, 'last_updated_at': datetime.datetime(2025, 12, 11, 0, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 11, 0, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 11, 0, 37, 1)}, 'Teint_Dans_La_Masse': {'main_port_id': 29322398, 'sub_port_id': 29322419, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19962659, 'last_updated_at': datetime.datetime(2025, 12, 11, 0, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 11, 0, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 11, 0, 37, 1)}, 'mal_croppe': {'main_port_id': 29322398, 'sub_port_id': 29322420, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19962660, 'last_updated_at': datetime.datetime(2025, 12, 11, 0, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 11, 0, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 11, 0, 37, 1)}, 'metal': {'main_port_id': 29322398, 'sub_port_id': 29322421, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19962661, 'last_updated_at': datetime.datetime(2025, 12, 11, 0, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 11, 0, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 11, 0, 37, 1)}, 'kraft': {'main_port_id': 29322398, 'sub_port_id': 29322422, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19962662, 'last_updated_at': datetime.datetime(2025, 12, 11, 0, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 11, 0, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 11, 0, 37, 1)}, 'Carton_gris': {'main_port_id': 29322398, 'sub_port_id': 29322423, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19962663, 'last_updated_at': datetime.datetime(2025, 12, 11, 0, 44, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 11, 0, 44, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 11, 0, 37, 1)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29322412,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29322400 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29322413,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29322401 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29322414,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29322402 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29322415,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29322403 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29322416,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29322404 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29322417,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29322405 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29322418,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29322406 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29322419,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29322407 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29322420,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29322408 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29322421,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29322409 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29322422,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29322410 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29322423,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29322411 lien utilise dans velours : https://marlene.fotonower.com/velours/29322412,29322413,29322414,29322415,29322416,29322417,29322418,29322419,29322420,29322421,29322422,29322423?tags=autre_refus,papier,environnement,plastique,flou,Carton_brun,cartonnette,Teint_Dans_La_Masse,mal_croppe,metal,kraft,Carton_gris After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29322398]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1398799902, 1398799901, 1398799899, 1398799887, 1398799882, 1398799879, 1398799870, 1398799865, 1398799862, 1398799856, 1398799854, 1398799852, 1398799850, 1398799849, 1398799848] map_info['map_portfolio_photo'] : {29322398: [1398799902, 1398799901, 1398799899, 1398799887, 1398799882, 1398799879, 1398799870, 1398799865, 1398799862, 1398799856, 1398799854, 1398799852, 1398799850, 1398799849, 1398799848, 1398799834, 1398799831, 1398799828, 1398799826, 1398799816, 1398799814, 1398799811, 1398799809, 1398799807, 1398799805, 1398799787, 1398799784, 1398799782, 1398799780, 1398799778, 1398799758, 1398799754, 1398799750, 1398799748, 1398799746, 1398799734, 1398799731, 1398799729, 1398799727, 1398799725, 1398799695, 1398799693, 1398799691, 1398799689, 1398799675, 1398799621, 1398799619, 1398799617, 1398799594, 1398799591, 1398799588]} final : False mtd_id 4302 list_pids : [1398799902, 1398799901, 1398799899, 1398799887, 1398799882, 1398799879, 1398799870, 1398799865, 1398799862, 1398799856, 1398799854, 1398799852, 1398799850, 1398799849, 1398799848] Looping around the photos to save general results len do output : 1 /29322398. 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, '4206214') ('4302', '29322398', '1398799902', None, None, None, None, None, '4206214') ('4302', None, None, None, None, None, None, None, '4206214') ('4302', '29322398', '1398799901', None, None, None, None, None, '4206214') ('4302', None, None, None, None, None, None, None, '4206214') ('4302', '29322398', '1398799899', None, None, None, None, None, '4206214') ('4302', None, None, None, None, None, None, None, '4206214') ('4302', '29322398', '1398799887', None, None, None, None, None, '4206214') ('4302', None, None, None, None, None, None, None, '4206214') ('4302', '29322398', '1398799882', None, None, None, None, None, '4206214') ('4302', None, None, None, None, None, None, None, '4206214') ('4302', '29322398', '1398799879', None, None, None, None, None, '4206214') ('4302', None, None, None, None, None, None, None, '4206214') ('4302', '29322398', '1398799870', None, None, None, None, None, '4206214') ('4302', None, None, None, None, None, None, None, '4206214') ('4302', '29322398', '1398799865', None, None, None, None, None, '4206214') ('4302', None, None, None, None, None, None, None, '4206214') ('4302', '29322398', '1398799862', None, None, None, None, None, '4206214') ('4302', None, None, None, None, None, None, None, '4206214') ('4302', '29322398', '1398799856', None, None, None, None, None, '4206214') ('4302', None, None, None, None, None, None, None, '4206214') ('4302', '29322398', '1398799854', None, None, None, None, None, '4206214') ('4302', None, None, None, None, None, None, None, '4206214') ('4302', '29322398', '1398799852', None, None, None, None, None, '4206214') ('4302', None, None, None, None, None, None, None, '4206214') ('4302', '29322398', '1398799850', None, None, None, None, None, '4206214') ('4302', None, None, None, None, None, None, None, '4206214') ('4302', '29322398', '1398799849', None, None, None, None, None, '4206214') ('4302', None, None, None, None, None, None, None, '4206214') ('4302', '29322398', '1398799848', None, None, None, None, None, '4206214') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '29322398', "{'autre_refus': 29322400, 'papier': 29322401, 'environnement': 29322402, 'plastique': 29322403, 'flou': 29322404, 'Carton_brun': 29322405, 'cartonnette': 29322406, 'Teint_Dans_La_Masse': 29322407, 'mal_croppe': 29322408, 'metal': 29322409, 'kraft': 29322410, 'Carton_gris': 29322411}", None, None, None, None, '4206214'), ('4302', '29322398', '1398799902', None, None, None, None, None, '4206214'), ('4302', '29322398', '1398799901', None, None, None, None, None, '4206214'), ('4302', '29322398', '1398799899', None, None, None, None, None, '4206214'), ('4302', '29322398', '1398799887', None, None, None, None, None, '4206214'), ('4302', '29322398', '1398799882', None, None, None, None, None, '4206214'), ('4302', '29322398', '1398799879', None, None, None, None, None, '4206214'), ('4302', '29322398', '1398799870', None, None, None, None, None, '4206214'), ('4302', '29322398', '1398799865', None, None, None, None, None, '4206214'), ('4302', '29322398', '1398799862', None, None, None, None, None, '4206214'), ('4302', '29322398', '1398799856', None, None, None, None, None, '4206214'), ('4302', '29322398', '1398799854', None, None, None, None, None, '4206214'), ('4302', '29322398', '1398799852', None, None, None, None, None, '4206214'), ('4302', '29322398', '1398799850', None, None, None, None, None, '4206214'), ('4302', '29322398', '1398799849', None, None, None, None, None, '4206214'), ('4302', '29322398', '1398799848', None, None, None, None, None, '4206214')] time used for this insertion : 0.016402006149291992 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.7859394550323486 time spend to save output : 0.016712427139282227 total time spend for step 1 : 1.8026518821716309 step2:final Thu Dec 11 00:46: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 ! 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 (29322398) 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 29322398 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1398799594,1398799591,1398799588,1398799621,1398799619,1398799617,1398799675,1398799695,1398799693,1398799691,1398799689,1398799734,1398799731,1398799729,1398799727,1398799725,1398799758,1398799754,1398799750,1398799748,1398799746,1398799902,1398799834,1398799787,1398799784,1398799901,1398799831,1398799782,1398799899,1398799828,1398799856,1398799780,1398799826,1398799778,1398799816,1398799814,1398799811,1398799809,1398799807,1398799805,1398799854,1398799852,1398799850,1398799849,1398799848,1398799887,1398799882,1398799879,1398799870,1398799865,1398799862); 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([29322398]) Inside saveOutput : final : False verbose : True original output for save of step final : {1398799902: ('0.059493790648105414',), 1398799901: ('0.059493790648105414',), 1398799899: ('0.059493790648105414',), 1398799887: ('0.059493790648105414',), 1398799882: ('0.059493790648105414',), 1398799879: ('0.059493790648105414',), 1398799870: ('0.059493790648105414',), 1398799865: ('0.059493790648105414',), 1398799862: ('0.059493790648105414',), 1398799856: ('0.059493790648105414',), 1398799854: ('0.059493790648105414',), 1398799852: ('0.059493790648105414',), 1398799850: ('0.059493790648105414',), 1398799849: ('0.059493790648105414',), 1398799848: ('0.059493790648105414',)} new output for save of step final : {1398799902: ('0.059493790648105414',), 1398799901: ('0.059493790648105414',), 1398799899: ('0.059493790648105414',), 1398799887: ('0.059493790648105414',), 1398799882: ('0.059493790648105414',), 1398799879: ('0.059493790648105414',), 1398799870: ('0.059493790648105414',), 1398799865: ('0.059493790648105414',), 1398799862: ('0.059493790648105414',), 1398799856: ('0.059493790648105414',), 1398799854: ('0.059493790648105414',), 1398799852: ('0.059493790648105414',), 1398799850: ('0.059493790648105414',), 1398799849: ('0.059493790648105414',), 1398799848: ('0.059493790648105414',)} [1398799902, 1398799901, 1398799899, 1398799887, 1398799882, 1398799879, 1398799870, 1398799865, 1398799862, 1398799856, 1398799854, 1398799852, 1398799850, 1398799849, 1398799848] map_info['map_portfolio_photo'] : {29322398: [1398799902, 1398799901, 1398799899, 1398799887, 1398799882, 1398799879, 1398799870, 1398799865, 1398799862, 1398799856, 1398799854, 1398799852, 1398799850, 1398799849, 1398799848, 1398799834, 1398799831, 1398799828, 1398799826, 1398799816, 1398799814, 1398799811, 1398799809, 1398799807, 1398799805, 1398799787, 1398799784, 1398799782, 1398799780, 1398799778, 1398799758, 1398799754, 1398799750, 1398799748, 1398799746, 1398799734, 1398799731, 1398799729, 1398799727, 1398799725, 1398799695, 1398799693, 1398799691, 1398799689, 1398799675, 1398799621, 1398799619, 1398799617, 1398799594, 1398799591, 1398799588]} final : False mtd_id 4302 list_pids : [1398799902, 1398799901, 1398799899, 1398799887, 1398799882, 1398799879, 1398799870, 1398799865, 1398799862, 1398799856, 1398799854, 1398799852, 1398799850, 1398799849, 1398799848] Looping around the photos to save general results len do output : 15 /1398799902.Didn't retrieve data . /1398799901.Didn't retrieve data . /1398799899.Didn't retrieve data . /1398799887.Didn't retrieve data . /1398799882.Didn't retrieve data . /1398799879.Didn't retrieve data . /1398799870.Didn't retrieve data . /1398799865.Didn't retrieve data . /1398799862.Didn't retrieve data . /1398799856.Didn't retrieve data . /1398799854.Didn't retrieve data . /1398799852.Didn't retrieve data . /1398799850.Didn't retrieve data . /1398799849.Didn't retrieve data . /1398799848.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, '4206214') ('4302', '29322398', '1398799902', None, None, None, None, None, '4206214') ('4302', None, None, None, None, None, None, None, '4206214') ('4302', '29322398', '1398799901', None, None, None, None, None, '4206214') ('4302', None, None, None, None, None, None, None, '4206214') ('4302', '29322398', '1398799899', None, None, None, None, None, '4206214') ('4302', None, None, None, None, None, None, None, '4206214') ('4302', '29322398', '1398799887', None, None, None, None, None, '4206214') ('4302', None, None, None, None, None, None, None, '4206214') ('4302', '29322398', '1398799882', None, None, None, None, None, '4206214') ('4302', None, None, None, None, None, None, None, '4206214') ('4302', '29322398', '1398799879', None, None, None, None, None, '4206214') ('4302', None, None, None, None, None, None, None, '4206214') ('4302', '29322398', '1398799870', None, None, None, None, None, '4206214') ('4302', None, None, None, None, None, None, None, '4206214') ('4302', '29322398', '1398799865', None, None, None, None, None, '4206214') ('4302', None, None, None, None, None, None, None, '4206214') ('4302', '29322398', '1398799862', None, None, None, None, None, '4206214') ('4302', None, None, None, None, None, None, None, '4206214') ('4302', '29322398', '1398799856', None, None, None, None, None, '4206214') ('4302', None, None, None, None, None, None, None, '4206214') ('4302', '29322398', '1398799854', None, None, None, None, None, '4206214') ('4302', None, None, None, None, None, None, None, '4206214') ('4302', '29322398', '1398799852', None, None, None, None, None, '4206214') ('4302', None, None, None, None, None, None, None, '4206214') ('4302', '29322398', '1398799850', None, None, None, None, None, '4206214') ('4302', None, None, None, None, None, None, None, '4206214') ('4302', '29322398', '1398799849', None, None, None, None, None, '4206214') ('4302', None, None, None, None, None, None, None, '4206214') ('4302', '29322398', '1398799848', None, None, None, None, None, '4206214') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 45 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '29322398', '1398799902', '0.059493790648105414', None, None, None, None, '4206214'), ('4302', '29322398', '1398799901', '0.059493790648105414', None, None, None, None, '4206214'), ('4302', '29322398', '1398799899', '0.059493790648105414', None, None, None, None, '4206214'), ('4302', '29322398', '1398799887', '0.059493790648105414', None, None, None, None, '4206214'), ('4302', '29322398', '1398799882', '0.059493790648105414', None, None, None, None, '4206214'), ('4302', '29322398', '1398799879', '0.059493790648105414', None, None, None, None, '4206214'), ('4302', '29322398', '1398799870', '0.059493790648105414', None, None, None, None, '4206214'), ('4302', '29322398', '1398799865', '0.059493790648105414', None, None, None, None, '4206214'), ('4302', '29322398', '1398799862', '0.059493790648105414', None, None, None, None, '4206214'), ('4302', '29322398', '1398799856', '0.059493790648105414', None, None, None, None, '4206214'), ('4302', '29322398', '1398799854', '0.059493790648105414', None, None, None, None, '4206214'), ('4302', '29322398', '1398799852', '0.059493790648105414', None, None, None, None, '4206214'), ('4302', '29322398', '1398799850', '0.059493790648105414', None, None, None, None, '4206214'), ('4302', '29322398', '1398799849', '0.059493790648105414', None, None, None, None, '4206214'), ('4302', '29322398', '1398799848', '0.059493790648105414', None, None, None, None, '4206214')] time used for this insertion : 0.015554428100585938 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07942938804626465 time spend to save output : 0.01621842384338379 total time spend for step 2 : 0.09564781188964844 step3:velours_tree Thu Dec 11 00:46: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 : {29322398: [{'autre_refus': 29322400, 'papier': 29322401, 'environnement': 29322402, 'plastique': 29322403, 'flou': 29322404, 'Carton_brun': 29322405, 'cartonnette': 29322406, 'Teint_Dans_La_Masse': 29322407, 'mal_croppe': 29322408, 'metal': 29322409, 'kraft': 29322410, 'Carton_gris': 29322411}]} input_args_next_step : {29322398: ()} output_args : {29322398: [{'autre_refus': 29322400, 'papier': 29322401, 'environnement': 29322402, 'plastique': 29322403, 'flou': 29322404, 'Carton_brun': 29322405, 'cartonnette': 29322406, 'Teint_Dans_La_Masse': 29322407, 'mal_croppe': 29322408, 'metal': 29322409, 'kraft': 29322410, 'Carton_gris': 29322411}]} args : 29322398 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 : ({'autre_refus': 29322400, 'papier': 29322401, 'environnement': 29322402, 'plastique': 29322403, 'flou': 29322404, 'Carton_brun': 29322405, 'cartonnette': 29322406, 'Teint_Dans_La_Masse': 29322407, 'mal_croppe': 29322408, 'metal': 29322409, 'kraft': 29322410, 'Carton_gris': 29322411},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29322398) 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([29322398]) 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.24277234077453613 time spend to save output : 4.8160552978515625e-05 total time spend for step 3 : 0.24282050132751465 step4:send_mail_cod Thu Dec 11 00:47:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1398799902: ('0.059493790648105414',), 1398799901: ('0.059493790648105414',), 1398799899: ('0.059493790648105414',), 1398799887: ('0.059493790648105414',), 1398799882: ('0.059493790648105414',), 1398799879: ('0.059493790648105414',), 1398799870: ('0.059493790648105414',), 1398799865: ('0.059493790648105414',), 1398799862: ('0.059493790648105414',), 1398799856: ('0.059493790648105414',), 1398799854: ('0.059493790648105414',), 1398799852: ('0.059493790648105414',), 1398799850: ('0.059493790648105414',), 1398799849: ('0.059493790648105414',), 1398799848: ('0.059493790648105414',)} input_args_next_step : {1398799902: ()} output_args : {1398799902: ('0.059493790648105414',), 1398799901: ('0.059493790648105414',), 1398799899: ('0.059493790648105414',), 1398799887: ('0.059493790648105414',), 1398799882: ('0.059493790648105414',), 1398799879: ('0.059493790648105414',), 1398799870: ('0.059493790648105414',), 1398799865: ('0.059493790648105414',), 1398799862: ('0.059493790648105414',), 1398799856: ('0.059493790648105414',), 1398799854: ('0.059493790648105414',), 1398799852: ('0.059493790648105414',), 1398799850: ('0.059493790648105414',), 1398799849: ('0.059493790648105414',), 1398799848: ('0.059493790648105414',)} args : 1398799902 depend.output_id : 0 input_args_next_step : {1398799902: ('0.059493790648105414',), 1398799901: ()} output_args : {1398799902: ('0.059493790648105414',), 1398799901: ('0.059493790648105414',), 1398799899: ('0.059493790648105414',), 1398799887: ('0.059493790648105414',), 1398799882: ('0.059493790648105414',), 1398799879: ('0.059493790648105414',), 1398799870: ('0.059493790648105414',), 1398799865: ('0.059493790648105414',), 1398799862: ('0.059493790648105414',), 1398799856: ('0.059493790648105414',), 1398799854: ('0.059493790648105414',), 1398799852: ('0.059493790648105414',), 1398799850: ('0.059493790648105414',), 1398799849: ('0.059493790648105414',), 1398799848: ('0.059493790648105414',)} args : 1398799901 depend.output_id : 0 input_args_next_step : {1398799902: ('0.059493790648105414',), 1398799901: ('0.059493790648105414',), 1398799899: ()} output_args : {1398799902: ('0.059493790648105414',), 1398799901: ('0.059493790648105414',), 1398799899: ('0.059493790648105414',), 1398799887: ('0.059493790648105414',), 1398799882: ('0.059493790648105414',), 1398799879: ('0.059493790648105414',), 1398799870: ('0.059493790648105414',), 1398799865: ('0.059493790648105414',), 1398799862: ('0.059493790648105414',), 1398799856: ('0.059493790648105414',), 1398799854: ('0.059493790648105414',), 1398799852: ('0.059493790648105414',), 1398799850: ('0.059493790648105414',), 1398799849: ('0.059493790648105414',), 1398799848: ('0.059493790648105414',)} args : 1398799899 depend.output_id : 0 input_args_next_step : {1398799902: ('0.059493790648105414',), 1398799901: ('0.059493790648105414',), 1398799899: ('0.059493790648105414',), 1398799887: ()} output_args : {1398799902: ('0.059493790648105414',), 1398799901: ('0.059493790648105414',), 1398799899: ('0.059493790648105414',), 1398799887: ('0.059493790648105414',), 1398799882: ('0.059493790648105414',), 1398799879: ('0.059493790648105414',), 1398799870: ('0.059493790648105414',), 1398799865: ('0.059493790648105414',), 1398799862: ('0.059493790648105414',), 1398799856: ('0.059493790648105414',), 1398799854: ('0.059493790648105414',), 1398799852: ('0.059493790648105414',), 1398799850: ('0.059493790648105414',), 1398799849: ('0.059493790648105414',), 1398799848: ('0.059493790648105414',)} args : 1398799887 depend.output_id : 0 input_args_next_step : {1398799902: ('0.059493790648105414',), 1398799901: ('0.059493790648105414',), 1398799899: ('0.059493790648105414',), 1398799887: ('0.059493790648105414',), 1398799882: ()} output_args : {1398799902: ('0.059493790648105414',), 1398799901: ('0.059493790648105414',), 1398799899: ('0.059493790648105414',), 1398799887: ('0.059493790648105414',), 1398799882: ('0.059493790648105414',), 1398799879: ('0.059493790648105414',), 1398799870: ('0.059493790648105414',), 1398799865: ('0.059493790648105414',), 1398799862: ('0.059493790648105414',), 1398799856: ('0.059493790648105414',), 1398799854: ('0.059493790648105414',), 1398799852: ('0.059493790648105414',), 1398799850: ('0.059493790648105414',), 1398799849: ('0.059493790648105414',), 1398799848: ('0.059493790648105414',)} args : 1398799882 depend.output_id : 0 input_args_next_step : {1398799902: ('0.059493790648105414',), 1398799901: ('0.059493790648105414',), 1398799899: ('0.059493790648105414',), 1398799887: ('0.059493790648105414',), 1398799882: ('0.059493790648105414',), 1398799879: ()} output_args : {1398799902: ('0.059493790648105414',), 1398799901: ('0.059493790648105414',), 1398799899: ('0.059493790648105414',), 1398799887: ('0.059493790648105414',), 1398799882: ('0.059493790648105414',), 1398799879: ('0.059493790648105414',), 1398799870: ('0.059493790648105414',), 1398799865: ('0.059493790648105414',), 1398799862: ('0.059493790648105414',), 1398799856: ('0.059493790648105414',), 1398799854: ('0.059493790648105414',), 1398799852: ('0.059493790648105414',), 1398799850: ('0.059493790648105414',), 1398799849: ('0.059493790648105414',), 1398799848: ('0.059493790648105414',)} args : 1398799879 depend.output_id : 0 input_args_next_step : {1398799902: ('0.059493790648105414',), 1398799901: ('0.059493790648105414',), 1398799899: ('0.059493790648105414',), 1398799887: ('0.059493790648105414',), 1398799882: ('0.059493790648105414',), 1398799879: ('0.059493790648105414',), 1398799870: ()} output_args : {1398799902: ('0.059493790648105414',), 1398799901: ('0.059493790648105414',), 1398799899: ('0.059493790648105414',), 1398799887: ('0.059493790648105414',), 1398799882: ('0.059493790648105414',), 1398799879: ('0.059493790648105414',), 1398799870: ('0.059493790648105414',), 1398799865: ('0.059493790648105414',), 1398799862: ('0.059493790648105414',), 1398799856: ('0.059493790648105414',), 1398799854: ('0.059493790648105414',), 1398799852: ('0.059493790648105414',), 1398799850: ('0.059493790648105414',), 1398799849: ('0.059493790648105414',), 1398799848: ('0.059493790648105414',)} args : 1398799870 depend.output_id : 0 input_args_next_step : {1398799902: ('0.059493790648105414',), 1398799901: ('0.059493790648105414',), 1398799899: ('0.059493790648105414',), 1398799887: ('0.059493790648105414',), 1398799882: ('0.059493790648105414',), 1398799879: ('0.059493790648105414',), 1398799870: ('0.059493790648105414',), 1398799865: ()} output_args : {1398799902: ('0.059493790648105414',), 1398799901: ('0.059493790648105414',), 1398799899: ('0.059493790648105414',), 1398799887: ('0.059493790648105414',), 1398799882: ('0.059493790648105414',), 1398799879: ('0.059493790648105414',), 1398799870: ('0.059493790648105414',), 1398799865: ('0.059493790648105414',), 1398799862: ('0.059493790648105414',), 1398799856: ('0.059493790648105414',), 1398799854: ('0.059493790648105414',), 1398799852: ('0.059493790648105414',), 1398799850: ('0.059493790648105414',), 1398799849: ('0.059493790648105414',), 1398799848: ('0.059493790648105414',)} args : 1398799865 depend.output_id : 0 input_args_next_step : {1398799902: ('0.059493790648105414',), 1398799901: ('0.059493790648105414',), 1398799899: ('0.059493790648105414',), 1398799887: ('0.059493790648105414',), 1398799882: ('0.059493790648105414',), 1398799879: ('0.059493790648105414',), 1398799870: ('0.059493790648105414',), 1398799865: ('0.059493790648105414',), 1398799862: ()} output_args : {1398799902: ('0.059493790648105414',), 1398799901: ('0.059493790648105414',), 1398799899: ('0.059493790648105414',), 1398799887: ('0.059493790648105414',), 1398799882: ('0.059493790648105414',), 1398799879: ('0.059493790648105414',), 1398799870: ('0.059493790648105414',), 1398799865: ('0.059493790648105414',), 1398799862: ('0.059493790648105414',), 1398799856: ('0.059493790648105414',), 1398799854: ('0.059493790648105414',), 1398799852: ('0.059493790648105414',), 1398799850: ('0.059493790648105414',), 1398799849: ('0.059493790648105414',), 1398799848: ('0.059493790648105414',)} args : 1398799862 depend.output_id : 0 input_args_next_step : {1398799902: ('0.059493790648105414',), 1398799901: ('0.059493790648105414',), 1398799899: ('0.059493790648105414',), 1398799887: ('0.059493790648105414',), 1398799882: ('0.059493790648105414',), 1398799879: ('0.059493790648105414',), 1398799870: ('0.059493790648105414',), 1398799865: ('0.059493790648105414',), 1398799862: ('0.059493790648105414',), 1398799856: ()} output_args : {1398799902: ('0.059493790648105414',), 1398799901: ('0.059493790648105414',), 1398799899: ('0.059493790648105414',), 1398799887: ('0.059493790648105414',), 1398799882: ('0.059493790648105414',), 1398799879: ('0.059493790648105414',), 1398799870: ('0.059493790648105414',), 1398799865: ('0.059493790648105414',), 1398799862: ('0.059493790648105414',), 1398799856: ('0.059493790648105414',), 1398799854: ('0.059493790648105414',), 1398799852: ('0.059493790648105414',), 1398799850: ('0.059493790648105414',), 1398799849: ('0.059493790648105414',), 1398799848: ('0.059493790648105414',)} args : 1398799856 depend.output_id : 0 input_args_next_step : {1398799902: ('0.059493790648105414',), 1398799901: ('0.059493790648105414',), 1398799899: ('0.059493790648105414',), 1398799887: ('0.059493790648105414',), 1398799882: ('0.059493790648105414',), 1398799879: ('0.059493790648105414',), 1398799870: ('0.059493790648105414',), 1398799865: ('0.059493790648105414',), 1398799862: ('0.059493790648105414',), 1398799856: ('0.059493790648105414',), 1398799854: ()} output_args : {1398799902: ('0.059493790648105414',), 1398799901: ('0.059493790648105414',), 1398799899: ('0.059493790648105414',), 1398799887: ('0.059493790648105414',), 1398799882: ('0.059493790648105414',), 1398799879: ('0.059493790648105414',), 1398799870: ('0.059493790648105414',), 1398799865: ('0.059493790648105414',), 1398799862: ('0.059493790648105414',), 1398799856: ('0.059493790648105414',), 1398799854: ('0.059493790648105414',), 1398799852: ('0.059493790648105414',), 1398799850: ('0.059493790648105414',), 1398799849: ('0.059493790648105414',), 1398799848: ('0.059493790648105414',)} args : 1398799854 depend.output_id : 0 input_args_next_step : {1398799902: ('0.059493790648105414',), 1398799901: ('0.059493790648105414',), 1398799899: ('0.059493790648105414',), 1398799887: ('0.059493790648105414',), 1398799882: ('0.059493790648105414',), 1398799879: ('0.059493790648105414',), 1398799870: ('0.059493790648105414',), 1398799865: ('0.059493790648105414',), 1398799862: ('0.059493790648105414',), 1398799856: ('0.059493790648105414',), 1398799854: ('0.059493790648105414',), 1398799852: ()} output_args : {1398799902: ('0.059493790648105414',), 1398799901: ('0.059493790648105414',), 1398799899: ('0.059493790648105414',), 1398799887: ('0.059493790648105414',), 1398799882: ('0.059493790648105414',), 1398799879: ('0.059493790648105414',), 1398799870: ('0.059493790648105414',), 1398799865: ('0.059493790648105414',), 1398799862: ('0.059493790648105414',), 1398799856: ('0.059493790648105414',), 1398799854: ('0.059493790648105414',), 1398799852: ('0.059493790648105414',), 1398799850: ('0.059493790648105414',), 1398799849: ('0.059493790648105414',), 1398799848: ('0.059493790648105414',)} args : 1398799852 depend.output_id : 0 input_args_next_step : {1398799902: ('0.059493790648105414',), 1398799901: ('0.059493790648105414',), 1398799899: ('0.059493790648105414',), 1398799887: ('0.059493790648105414',), 1398799882: ('0.059493790648105414',), 1398799879: ('0.059493790648105414',), 1398799870: ('0.059493790648105414',), 1398799865: ('0.059493790648105414',), 1398799862: ('0.059493790648105414',), 1398799856: ('0.059493790648105414',), 1398799854: ('0.059493790648105414',), 1398799852: ('0.059493790648105414',), 1398799850: ()} output_args : {1398799902: ('0.059493790648105414',), 1398799901: ('0.059493790648105414',), 1398799899: ('0.059493790648105414',), 1398799887: ('0.059493790648105414',), 1398799882: ('0.059493790648105414',), 1398799879: ('0.059493790648105414',), 1398799870: ('0.059493790648105414',), 1398799865: ('0.059493790648105414',), 1398799862: ('0.059493790648105414',), 1398799856: ('0.059493790648105414',), 1398799854: ('0.059493790648105414',), 1398799852: ('0.059493790648105414',), 1398799850: ('0.059493790648105414',), 1398799849: ('0.059493790648105414',), 1398799848: ('0.059493790648105414',)} args : 1398799850 depend.output_id : 0 input_args_next_step : {1398799902: ('0.059493790648105414',), 1398799901: ('0.059493790648105414',), 1398799899: ('0.059493790648105414',), 1398799887: ('0.059493790648105414',), 1398799882: ('0.059493790648105414',), 1398799879: ('0.059493790648105414',), 1398799870: ('0.059493790648105414',), 1398799865: ('0.059493790648105414',), 1398799862: ('0.059493790648105414',), 1398799856: ('0.059493790648105414',), 1398799854: ('0.059493790648105414',), 1398799852: ('0.059493790648105414',), 1398799850: ('0.059493790648105414',), 1398799849: ()} output_args : {1398799902: ('0.059493790648105414',), 1398799901: ('0.059493790648105414',), 1398799899: ('0.059493790648105414',), 1398799887: ('0.059493790648105414',), 1398799882: ('0.059493790648105414',), 1398799879: ('0.059493790648105414',), 1398799870: ('0.059493790648105414',), 1398799865: ('0.059493790648105414',), 1398799862: ('0.059493790648105414',), 1398799856: ('0.059493790648105414',), 1398799854: ('0.059493790648105414',), 1398799852: ('0.059493790648105414',), 1398799850: ('0.059493790648105414',), 1398799849: ('0.059493790648105414',), 1398799848: ('0.059493790648105414',)} args : 1398799849 depend.output_id : 0 input_args_next_step : {1398799902: ('0.059493790648105414',), 1398799901: ('0.059493790648105414',), 1398799899: ('0.059493790648105414',), 1398799887: ('0.059493790648105414',), 1398799882: ('0.059493790648105414',), 1398799879: ('0.059493790648105414',), 1398799870: ('0.059493790648105414',), 1398799865: ('0.059493790648105414',), 1398799862: ('0.059493790648105414',), 1398799856: ('0.059493790648105414',), 1398799854: ('0.059493790648105414',), 1398799852: ('0.059493790648105414',), 1398799850: ('0.059493790648105414',), 1398799849: ('0.059493790648105414',), 1398799848: ()} output_args : {1398799902: ('0.059493790648105414',), 1398799901: ('0.059493790648105414',), 1398799899: ('0.059493790648105414',), 1398799887: ('0.059493790648105414',), 1398799882: ('0.059493790648105414',), 1398799879: ('0.059493790648105414',), 1398799870: ('0.059493790648105414',), 1398799865: ('0.059493790648105414',), 1398799862: ('0.059493790648105414',), 1398799856: ('0.059493790648105414',), 1398799854: ('0.059493790648105414',), 1398799852: ('0.059493790648105414',), 1398799850: ('0.059493790648105414',), 1398799849: ('0.059493790648105414',), 1398799848: ('0.059493790648105414',)} args : 1398799848 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 : {29322398: [{'autre_refus': 29322400, 'papier': 29322401, 'environnement': 29322402, 'plastique': 29322403, 'flou': 29322404, 'Carton_brun': 29322405, 'cartonnette': 29322406, 'Teint_Dans_La_Masse': 29322407, 'mal_croppe': 29322408, 'metal': 29322409, 'kraft': 29322410, 'Carton_gris': 29322411}]} input_args_next_step : {1398799902: ('0.059493790648105414',), 1398799901: ('0.059493790648105414',), 1398799899: ('0.059493790648105414',), 1398799887: ('0.059493790648105414',), 1398799882: ('0.059493790648105414',), 1398799879: ('0.059493790648105414',), 1398799870: ('0.059493790648105414',), 1398799865: ('0.059493790648105414',), 1398799862: ('0.059493790648105414',), 1398799856: ('0.059493790648105414',), 1398799854: ('0.059493790648105414',), 1398799852: ('0.059493790648105414',), 1398799850: ('0.059493790648105414',), 1398799849: ('0.059493790648105414',), 1398799848: ('0.059493790648105414',), 29322398: ()} output_args : {29322398: [{'autre_refus': 29322400, 'papier': 29322401, 'environnement': 29322402, 'plastique': 29322403, 'flou': 29322404, 'Carton_brun': 29322405, 'cartonnette': 29322406, 'Teint_Dans_La_Masse': 29322407, 'mal_croppe': 29322408, 'metal': 29322409, 'kraft': 29322410, 'Carton_gris': 29322411}]} args : 29322398 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :16, first value : ('0.059493790648105414',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29322398) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos_view ph WHERE photo_id IN (1398799902,1398799901,1398799899,1398799887,1398799882,1398799879,1398799870,1398799865,1398799862,1398799856,1398799854,1398799852,1398799850,1398799849,1398799848) Found this number of photos: 15 ##### Call download_photos : nb_thread : 5 begin to download photo : 1398799848 begin to download photo : 1398799854 begin to download photo : 1398799870 begin to download photo : 1398799899 download finish for photo 1398799899 begin to download photo : 1398799901 download finish for photo 1398799854 begin to download photo : 1398799856 download finish for photo 1398799870 begin to download photo : 1398799879 download finish for photo 1398799848 begin to download photo : 1398799849 download finish for photo 1398799901 begin to download photo : 1398799902 download finish for photo 1398799879 begin to download photo : 1398799882 download finish for photo 1398799856 begin to download photo : 1398799862 download finish for photo 1398799902 download finish for photo 1398799849 begin to download photo : 1398799850 download finish for photo 1398799882 begin to download photo : 1398799887 download finish for photo 1398799862 begin to download photo : 1398799865 download finish for photo 1398799850 begin to download photo : 1398799852 download finish for photo 1398799865 download finish for photo 1398799887 download finish for photo 1398799852 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 15 ; length of list_pids : 15 ; length of list_args : 15 results_Auto_P29322398_11-12-2025_00_47_00.pdf 29322400 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29322400 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398799656: '1765409827_449075_1398799619_796718520d35e652f66f8052bf841c1a_rle_crop_4065676107_0.png', 1398799657: '1765409827_449075_1398799617_f7515cfeb7c1c172a38df5e9fcec8693_rle_crop_4065676123_0.png', 1398799668: '1765409847_449565_1398799621_6c7cd5ba9b5928133f722c397a878a32_rle_crop_4065676247_0.png', 1398799669: '1765409847_449565_1398799621_6c7cd5ba9b5928133f722c397a878a32_rle_crop_4065676254_0.png', 1398799702: '1765409947_454618_1398799675_e5f9c335c152c2f894d63198b76acdd2_rle_crop_4065676337_0.png', 1398799770: '1765410086_461342_1398799729_bddee653b83d411a329ef33e2b5968d0_rle_crop_4065676621_0.png', 1398799817: '1765410186_466598_1398799748_70f94862e56d0aeaf02e677c2550bf73_rle_crop_4065676790_0.png', 1398799868: '1765410306_470950_1398799811_d67013aeb62bbbfa9b936b258853a10f_rle_crop_4065676922_0.png', 1398799869: '1765410306_470950_1398799805_400499601deb72b1c72b0b0eccbce2b5_rle_crop_4065676963_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/db4eba4c6d58a377c6dab79926aaf170_46026284.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/f36b7fe065c8d5eba30f5786a9eb9e54_21298297.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/fc2da39b0eba9120ef4525dd11f0472b_528532.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/7dae0a817f8a6ff718b217a80225edde_52776033.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/373686cd6474dbbb60024aeafc989bf8_66521225.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/980475ffc2e829705f312415142b5386_97517515.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/9da1ea61cebda7131643c0b36612928d_1811360.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/ee10bd1a9cfd336aa19cf1871c9e1b6c_71738235.png change filename to text .imagette293224001765410420/ imagette293224001765410420/1765409827_449075_1398799617_f7515cfeb7c1c172a38df5e9fcec8693_rle_crop_4065676123_0.png.png imagette293224001765410420/1765409847_449565_1398799621_6c7cd5ba9b5928133f722c397a878a32_rle_crop_4065676254_0.png.png imagette293224001765410420/1765409947_454618_1398799675_e5f9c335c152c2f894d63198b76acdd2_rle_crop_4065676337_0.png.png imagette293224001765410420/1765410186_466598_1398799748_70f94862e56d0aeaf02e677c2550bf73_rle_crop_4065676790_0.png.png imagette293224001765410420/1765409847_449565_1398799621_6c7cd5ba9b5928133f722c397a878a32_rle_crop_4065676247_0.png.png imagette293224001765410420/1765410306_470950_1398799805_400499601deb72b1c72b0b0eccbce2b5_rle_crop_4065676963_0.png.png imagette293224001765410420/1765409827_449075_1398799619_796718520d35e652f66f8052bf841c1a_rle_crop_4065676107_0.png.png imagette293224001765410420/1765410086_461342_1398799729_bddee653b83d411a329ef33e2b5968d0_rle_crop_4065676621_0.png.png imagette293224001765410420/1765410306_470950_1398799811_d67013aeb62bbbfa9b936b258853a10f_rle_crop_4065676922_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/438ffc366cc5c397500c984aa2913a7a_52273366.png imagette293224001765410420 29322403 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29322403 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398799775: '1765410086_461342_1398799731_98a93b606e4f156c4f8db8379c87d27e_rle_crop_4065676610_0.png', 1398799776: '1765410086_461342_1398799731_98a93b606e4f156c4f8db8379c87d27e_rle_crop_4065676614_0.png', 1398799875: '1765410306_470950_1398799809_2cb2c5f176f09e9c59c861202c00b9e5_rle_crop_4065676941_0.png', 1398799876: '1765410306_470950_1398799809_2cb2c5f176f09e9c59c861202c00b9e5_rle_crop_4065676940_0.png', 1398799877: '1765410306_470950_1398799807_fe94777eb5a11922ba312cdf5ed27b15_rle_crop_4065676952_0.png', 1398799878: '1765410306_470950_1398799805_400499601deb72b1c72b0b0eccbce2b5_rle_crop_4065676962_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/a507352393981610bcf104306cbd01aa_69846085.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/83aa25598bc6db9cc02f2029edb92cbb_45250172.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/7ddf7a5fb7651c5389e721a407616637_35143116.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/a994db4b4075083f6f4daca8eea304b8_94344789.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/377875d0bd2c8cd8d6956b13e04f69dd_64067506.png change filename to text .imagette293224031765410421/ imagette293224031765410421/1765410306_470950_1398799809_2cb2c5f176f09e9c59c861202c00b9e5_rle_crop_4065676941_0.png.png imagette293224031765410421/1765410306_470950_1398799805_400499601deb72b1c72b0b0eccbce2b5_rle_crop_4065676962_0.png.png imagette293224031765410421/1765410306_470950_1398799809_2cb2c5f176f09e9c59c861202c00b9e5_rle_crop_4065676940_0.png.png imagette293224031765410421/1765410306_470950_1398799807_fe94777eb5a11922ba312cdf5ed27b15_rle_crop_4065676952_0.png.png imagette293224031765410421/1765410086_461342_1398799731_98a93b606e4f156c4f8db8379c87d27e_rle_crop_4065676610_0.png.png imagette293224031765410421/1765410086_461342_1398799731_98a93b606e4f156c4f8db8379c87d27e_rle_crop_4065676614_0.png.png imagette293224041765410422/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/fe4e8a51867b63d922518a7eaed3ad25_36152115.png imagette293224031765410421 29322404 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29322404 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette293224041765410422 29322406 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29322406 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398799672: '1765409847_449565_1398799588_965fdb6b968c9005c933d262e8ece390_rle_crop_4065676287_0.png', 1398799762: '1765410065_460883_1398799689_35f4a240b0074bd223ebba21dbb8586f_rle_crop_4065676498_0.png', 1398799772: '1765410086_461342_1398799727_8d772194eca8a26ddecdb9cca253f84d_rle_crop_4065676636_0.png', 1398799773: '1765410086_461342_1398799727_8d772194eca8a26ddecdb9cca253f84d_rle_crop_4065676633_0.png', 1398799774: '1765410086_461342_1398799725_0fda9faf80b7b93f4fd326583116de44_rle_crop_4065676650_0.png', 1398799821: '1765410186_466598_1398799746_59cc48b22ab73b0de64d9bb64820eac7_rle_crop_4065676803_0.png', 1398799871: '1765410306_470950_1398799811_d67013aeb62bbbfa9b936b258853a10f_rle_crop_4065676924_0.png', 1398799872: '1765410306_470950_1398799807_fe94777eb5a11922ba312cdf5ed27b15_rle_crop_4065676954_0.png', 1398799873: '1765410306_470950_1398799805_400499601deb72b1c72b0b0eccbce2b5_rle_crop_4065676960_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/28057091ea702015b5ae49e5ed21a03d_84472447.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/31bc2fb26cd2436560c6bd5a4b04d12d_94089878.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/a5cd72156d313347226213fa155a619f_53136615.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/5e69e841a4811d506d62f09700684d92_57882473.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/cbb89c13b63e75c96b630e800bc90bfe_53246668.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/ef4ca497e1469099cc7d285920644eda_3827583.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/22e6f26abbf9bf1c97f699d73b824e13_26868303.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/efa3896fea473c870f949e0638fb1c9b_66565780.png change filename to text .imagette293224061765410422/ imagette293224061765410422/1765410065_460883_1398799689_35f4a240b0074bd223ebba21dbb8586f_rle_crop_4065676498_0.png.png imagette293224061765410422/1765410086_461342_1398799725_0fda9faf80b7b93f4fd326583116de44_rle_crop_4065676650_0.png.png imagette293224061765410422/1765410086_461342_1398799727_8d772194eca8a26ddecdb9cca253f84d_rle_crop_4065676633_0.png.png imagette293224061765410422/1765410186_466598_1398799746_59cc48b22ab73b0de64d9bb64820eac7_rle_crop_4065676803_0.png.png imagette293224061765410422/1765410306_470950_1398799807_fe94777eb5a11922ba312cdf5ed27b15_rle_crop_4065676954_0.png.png imagette293224061765410422/1765409847_449565_1398799588_965fdb6b968c9005c933d262e8ece390_rle_crop_4065676287_0.png.png imagette293224061765410422/1765410306_470950_1398799811_d67013aeb62bbbfa9b936b258853a10f_rle_crop_4065676924_0.png.png imagette293224061765410422/1765410086_461342_1398799727_8d772194eca8a26ddecdb9cca253f84d_rle_crop_4065676636_0.png.png imagette293224061765410422/1765410306_470950_1398799805_400499601deb72b1c72b0b0eccbce2b5_rle_crop_4065676960_0.png.png imagette293224081765410422/ imagette293224091765410422/ imagette293224101765410422/ wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/7a8108c1fa8612c1c59d2dafc822e413_276050.png imagette293224061765410422 29322408 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29322408 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette293224081765410422 29322409 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29322409 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette293224091765410422 29322410 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29322410 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette293224101765410422 29322405 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29322405 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398799658: '1765409827_449075_1398799619_796718520d35e652f66f8052bf841c1a_rle_crop_4065676110_0.png', 1398799659: '1765409827_449075_1398799619_796718520d35e652f66f8052bf841c1a_rle_crop_4065676116_0.png', 1398799660: '1765409827_449075_1398799617_f7515cfeb7c1c172a38df5e9fcec8693_rle_crop_4065676132_0.png', 1398799661: '1765409827_449075_1398799617_f7515cfeb7c1c172a38df5e9fcec8693_rle_crop_4065676133_0.png', 1398799673: '1765409847_449565_1398799621_6c7cd5ba9b5928133f722c397a878a32_rle_crop_4065676253_0.png', 1398799763: '1765410065_460883_1398799691_51076bf9bc9294946701cd3e4abb968e_rle_crop_4065676486_0.png', 1398799764: '1765410065_460883_1398799691_51076bf9bc9294946701cd3e4abb968e_rle_crop_4065676485_0.png', 1398799765: '1765410065_460883_1398799689_35f4a240b0074bd223ebba21dbb8586f_rle_crop_4065676501_0.png', 1398799822: '1765410186_466598_1398799748_70f94862e56d0aeaf02e677c2550bf73_rle_crop_4065676792_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/d2cedca38df3f1995fbd018feb05fb03_55171463.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/5ab79db36c61efac69ddc169677bea56_46926470.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/3ac56b5fbad3f3a7e19e8f731b493894_10600372.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/c07ca044c13f4d448940116ced11ab3c_81110319.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/eb9a22d6f67b6d37b21e94af3b493eee_81386216.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/5797bf17b9c4bd6c05f021baec2bf5cb_1569490.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/ac12cac569e2ceb6ba3110fd425d48dc_72145728.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/b300a147b88eccf6c8963cbbe53b990a_19953218.png change filename to text .imagette293224051765410422/ imagette293224051765410422/1765410065_460883_1398799691_51076bf9bc9294946701cd3e4abb968e_rle_crop_4065676486_0.png.png imagette293224051765410422/1765410065_460883_1398799691_51076bf9bc9294946701cd3e4abb968e_rle_crop_4065676485_0.png.png imagette293224051765410422/1765409847_449565_1398799621_6c7cd5ba9b5928133f722c397a878a32_rle_crop_4065676253_0.png.png imagette293224051765410422/1765409827_449075_1398799619_796718520d35e652f66f8052bf841c1a_rle_crop_4065676110_0.png.png imagette293224051765410422/1765409827_449075_1398799617_f7515cfeb7c1c172a38df5e9fcec8693_rle_crop_4065676133_0.png.png imagette293224051765410422/1765410186_466598_1398799748_70f94862e56d0aeaf02e677c2550bf73_rle_crop_4065676792_0.png.png imagette293224051765410422/1765410065_460883_1398799689_35f4a240b0074bd223ebba21dbb8586f_rle_crop_4065676501_0.png.png imagette293224051765410422/1765409827_449075_1398799619_796718520d35e652f66f8052bf841c1a_rle_crop_4065676116_0.png.png imagette293224051765410422/1765409827_449075_1398799617_f7515cfeb7c1c172a38df5e9fcec8693_rle_crop_4065676132_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/1891bca1fad8ffd68223b5d25e2b2559_597726.png imagette293224051765410422 29322407 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29322407 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398799653: '1765409827_449075_1398799619_796718520d35e652f66f8052bf841c1a_rle_crop_4065676113_0.png', 1398799654: '1765409827_449075_1398799617_f7515cfeb7c1c172a38df5e9fcec8693_rle_crop_4065676127_0.png', 1398799769: '1765410086_461342_1398799725_0fda9faf80b7b93f4fd326583116de44_rle_crop_4065676645_0.png', 1398799867: '1765410306_470950_1398799807_fe94777eb5a11922ba312cdf5ed27b15_rle_crop_4065676949_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/2dd2c3e5476864d12a8c80b3094aaad2_78970218.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/004f9e6e5cecde305f33443ee92233ca_53547643.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/fad67a7ca6b75bbabac8158899ea2022_24966028.png change filename to text .imagette293224071765410423/ imagette293224071765410423/1765409827_449075_1398799617_f7515cfeb7c1c172a38df5e9fcec8693_rle_crop_4065676127_0.png.png imagette293224071765410423/1765410306_470950_1398799807_fe94777eb5a11922ba312cdf5ed27b15_rle_crop_4065676949_0.png.png imagette293224071765410423/1765410086_461342_1398799725_0fda9faf80b7b93f4fd326583116de44_rle_crop_4065676645_0.png.png imagette293224071765410423/1765409827_449075_1398799619_796718520d35e652f66f8052bf841c1a_rle_crop_4065676113_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/e2905c05d83560f94b6e50498ddbc9e0_2389861.png imagette293224071765410423 29322411 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29322411 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398799671: '1765409847_449565_1398799591_f468546ebb93da1d0b391fc30357dad5_rle_crop_4065676270_0.png', 1398799761: '1765410065_460883_1398799693_76808d64b16a0d26bc3dd063663dfdc1_rle_crop_4065676470_0.png', 1398799771: '1765410086_461342_1398799729_bddee653b83d411a329ef33e2b5968d0_rle_crop_4065676623_0.png', 1398799818: '1765410186_466598_1398799746_59cc48b22ab73b0de64d9bb64820eac7_rle_crop_4065676810_0.png', 1398799820: '1765410186_466598_1398799746_59cc48b22ab73b0de64d9bb64820eac7_rle_crop_4065676804_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/d1ecacd0fb4b0bbaf9e49e3f4f156266_87545966.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/9c8c512529d6c64d517dddc480156f2e_2244699.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/f03ecc717e354462dc1841e8e7ba8c95_37712823.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/a32f1f78e3cb44a9aebc73ec6586c9c7_60785951.png change filename to text .imagette293224111765410423/ imagette293224111765410423/1765410186_466598_1398799746_59cc48b22ab73b0de64d9bb64820eac7_rle_crop_4065676810_0.png.png imagette293224111765410423/1765410086_461342_1398799729_bddee653b83d411a329ef33e2b5968d0_rle_crop_4065676623_0.png.png imagette293224111765410423/1765409847_449565_1398799591_f468546ebb93da1d0b391fc30357dad5_rle_crop_4065676270_0.png.png imagette293224111765410423/1765410065_460883_1398799693_76808d64b16a0d26bc3dd063663dfdc1_rle_crop_4065676470_0.png.png imagette293224111765410423/1765410186_466598_1398799746_59cc48b22ab73b0de64d9bb64820eac7_rle_crop_4065676804_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/70101131b7a3bac17f80177fc382bec3_44080514.png imagette293224111765410423 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29322398 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29322412,29322413,29322414,29322415,29322416,29322417,29322418,29322419,29322420,29322421,29322422,29322423?tags=autre_refus,papier,environnement,plastique,flou,Carton_brun,cartonnette,Teint_Dans_La_Masse,mal_croppe,metal,kraft,Carton_gris your option no_mail is active, we will not send the real mail to your client args[1398799902] : ('0.059493790648105414',) no score found for photo 1398799902 We are sending mail with results at report@fotonower.com args[1398799901] : ('0.059493790648105414',) no score found for photo 1398799901 We are sending mail with results at report@fotonower.com args[1398799899] : ('0.059493790648105414',) no score found for photo 1398799899 We are sending mail with results at report@fotonower.com args[1398799887] : ('0.059493790648105414',) no score found for photo 1398799887 We are sending mail with results at report@fotonower.com args[1398799882] : ('0.059493790648105414',) no score found for photo 1398799882 We are sending mail with results at report@fotonower.com args[1398799879] : ('0.059493790648105414',) no score found for photo 1398799879 We are sending mail with results at report@fotonower.com args[1398799870] : ('0.059493790648105414',) no score found for photo 1398799870 We are sending mail with results at report@fotonower.com args[1398799865] : ('0.059493790648105414',) no score found for photo 1398799865 We are sending mail with results at report@fotonower.com args[1398799862] : ('0.059493790648105414',) no score found for photo 1398799862 We are sending mail with results at report@fotonower.com args[1398799856] : ('0.059493790648105414',) no score found for photo 1398799856 We are sending mail with results at report@fotonower.com args[1398799854] : ('0.059493790648105414',) no score found for photo 1398799854 We are sending mail with results at report@fotonower.com args[1398799852] : ('0.059493790648105414',) no score found for photo 1398799852 We are sending mail with results at report@fotonower.com args[1398799850] : ('0.059493790648105414',) no score found for photo 1398799850 We are sending mail with results at report@fotonower.com args[1398799849] : ('0.059493790648105414',) no score found for photo 1398799849 We are sending mail with results at report@fotonower.com args[1398799848] : ('0.059493790648105414',) no score found for photo 1398799848 We are sending mail with results at report@fotonower.com refus_total : 0.059493790648105414 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29322398 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_P29322398_11-12-2025_00_47_00.pdf results_Auto_P29322398_11-12-2025_00_47_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29322398_11-12-2025_00_47_00.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','29322398','results_Auto_P29322398_11-12-2025_00_47_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29322398_11-12-2025_00_47_00.pdf','pdf','','0.24','0.059493790648105414') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29322398]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1398799902, 1398799901, 1398799899, 1398799887, 1398799882, 1398799879, 1398799870, 1398799865, 1398799862, 1398799856, 1398799854, 1398799852, 1398799850, 1398799849, 1398799848] map_info['map_portfolio_photo'] : {29322398: [1398799902, 1398799901, 1398799899, 1398799887, 1398799882, 1398799879, 1398799870, 1398799865, 1398799862, 1398799856, 1398799854, 1398799852, 1398799850, 1398799849, 1398799848, 1398799834, 1398799831, 1398799828, 1398799826, 1398799816, 1398799814, 1398799811, 1398799809, 1398799807, 1398799805, 1398799787, 1398799784, 1398799782, 1398799780, 1398799778, 1398799758, 1398799754, 1398799750, 1398799748, 1398799746, 1398799734, 1398799731, 1398799729, 1398799727, 1398799725, 1398799695, 1398799693, 1398799691, 1398799689, 1398799675, 1398799621, 1398799619, 1398799617, 1398799594, 1398799591, 1398799588]} final : False mtd_id 4302 list_pids : [1398799902, 1398799901, 1398799899, 1398799887, 1398799882, 1398799879, 1398799870, 1398799865, 1398799862, 1398799856, 1398799854, 1398799852, 1398799850, 1398799849, 1398799848] 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, '4206214') ('4302', '29322398', '1398799902', None, None, None, None, None, '4206214') ('4302', None, None, None, None, None, None, None, '4206214') ('4302', '29322398', '1398799901', None, None, None, None, None, '4206214') ('4302', None, None, None, None, None, None, None, '4206214') ('4302', '29322398', '1398799899', None, None, None, None, None, '4206214') ('4302', None, None, None, None, None, None, None, '4206214') ('4302', '29322398', '1398799887', None, None, None, None, None, '4206214') ('4302', None, None, None, None, None, None, None, '4206214') ('4302', '29322398', '1398799882', None, None, None, None, None, '4206214') ('4302', None, None, None, None, None, None, None, '4206214') ('4302', '29322398', '1398799879', None, None, None, None, None, '4206214') ('4302', None, None, None, None, None, None, None, '4206214') ('4302', '29322398', '1398799870', None, None, None, None, None, '4206214') ('4302', None, None, None, None, None, None, None, '4206214') ('4302', '29322398', '1398799865', None, None, None, None, None, '4206214') ('4302', None, None, None, None, None, None, None, '4206214') ('4302', '29322398', '1398799862', None, None, None, None, None, '4206214') ('4302', None, None, None, None, None, None, None, '4206214') ('4302', '29322398', '1398799856', None, None, None, None, None, '4206214') ('4302', None, None, None, None, None, None, None, '4206214') ('4302', '29322398', '1398799854', None, None, None, None, None, '4206214') ('4302', None, None, None, None, None, None, None, '4206214') ('4302', '29322398', '1398799852', None, None, None, None, None, '4206214') ('4302', None, None, None, None, None, None, None, '4206214') ('4302', '29322398', '1398799850', None, None, None, None, None, '4206214') ('4302', None, None, None, None, None, None, None, '4206214') ('4302', '29322398', '1398799849', None, None, None, None, None, '4206214') ('4302', None, None, None, None, None, None, None, '4206214') ('4302', '29322398', '1398799848', None, None, None, None, None, '4206214') 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', '29322398', '1398799902', None, None, None, None, None, '4206214'), ('4302', '29322398', '1398799901', None, None, None, None, None, '4206214'), ('4302', '29322398', '1398799899', None, None, None, None, None, '4206214'), ('4302', '29322398', '1398799887', None, None, None, None, None, '4206214'), ('4302', '29322398', '1398799882', None, None, None, None, None, '4206214'), ('4302', '29322398', '1398799879', None, None, None, None, None, '4206214'), ('4302', '29322398', '1398799870', None, None, None, None, None, '4206214'), ('4302', '29322398', '1398799865', None, None, None, None, None, '4206214'), ('4302', '29322398', '1398799862', None, None, None, None, None, '4206214'), ('4302', '29322398', '1398799856', None, None, None, None, None, '4206214'), ('4302', '29322398', '1398799854', None, None, None, None, None, '4206214'), ('4302', '29322398', '1398799852', None, None, None, None, None, '4206214'), ('4302', '29322398', '1398799850', None, None, None, None, None, '4206214'), ('4302', '29322398', '1398799849', None, None, None, None, None, '4206214'), ('4302', '29322398', '1398799848', None, None, None, None, None, '4206214')] time used for this insertion : 0.01665186882019043 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.102946996688843 time spend to save output : 0.016887426376342773 total time spend for step 4 : 5.1198344230651855 step5:split_time_score Thu Dec 11 00:47: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 : ['29322398'] 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 : [('29322398',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29322398) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1398799899: {'path': 'temp/1765410420_1197369_1398799899_25a40e01b01abdf007c0f09dc9ba3e8a.jpg', 'extension': 'jpg'}, 1398799901: {'path': 'temp/1765410420_1197369_1398799901_a3b7aa041e7eaee08ec6d1f7d3b48028.jpg', 'extension': 'jpg'}, 1398799902: {'path': 'temp/1765410420_1197369_1398799902_fcfbcfa815a83bf1a959324dbccf56ee.jpg', 'extension': 'jpg'}, 1398799854: {'path': 'temp/1765410420_1197369_1398799854_8741cc3213edf5b6c2c9fce2c86241e5.jpg', 'extension': 'jpg'}, 1398799856: {'path': 'temp/1765410420_1197369_1398799856_d346315aa8b1aac8a8e5a4b298c47ac7.jpg', 'extension': 'jpg'}, 1398799862: {'path': 'temp/1765410420_1197369_1398799862_f7757d83464c20028084b76c6002922e.jpg', 'extension': 'jpg'}, 1398799865: {'path': 'temp/1765410420_1197369_1398799865_0d9a559f3f2daf6eeda4fbe95a54e025.jpg', 'extension': 'jpg'}, 1398799870: {'path': 'temp/1765410420_1197369_1398799870_df069f898a9ba31d38cd537876bed154.jpg', 'extension': 'jpg'}, 1398799879: {'path': 'temp/1765410420_1197369_1398799879_4f0c6412a53c4391dc5a8df4e054c78e.jpg', 'extension': 'jpg'}, 1398799882: {'path': 'temp/1765410420_1197369_1398799882_9567cc8daa6c35242346bbe00ead432d.jpg', 'extension': 'jpg'}, 1398799887: {'path': 'temp/1765410420_1197369_1398799887_056d1c7f1fae3833d8e1e094b1648a26.jpg', 'extension': 'jpg'}, 1398799848: {'path': 'temp/1765410420_1197369_1398799848_bc234a8170565ddda202aabfd73c836b.jpg', 'extension': 'jpg'}, 1398799849: {'path': 'temp/1765410420_1197369_1398799849_e582b407bc560b8f2be9d0ceb83a65e6.jpg', 'extension': 'jpg'}, 1398799850: {'path': 'temp/1765410420_1197369_1398799850_332777cf60f13c329bc5ff8ba7b9ea8c.jpg', 'extension': 'jpg'}, 1398799852: {'path': 'temp/1765410420_1197369_1398799852_05d1dad9696a258a3ef2e968987381c9.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 = 29322398; (('arc_en_ciel_jrm_live',),) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 29322398 group by h (('00', 51),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29322398 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 (29322398) 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 (29322398) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 11122025 29322398 Nombre de photos uploadées : 51 / 23040 (0%) 11122025 29322398 Nombre de photos taguées (types de déchets): 0 / 51 (0%) 11122025 29322398 Nombre de photos taguées (volume) : 0 / 51 (0%) [{'photo_id': 1398799594, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/1ad10e60bfbdb67052ceb4f7626f6b55.jpg', 'username': None, 'uploaded_at': 1765409707, 'text': 'image_11122025_00_30_23_10136.jpg'}, {'photo_id': 1398799591, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/f468546ebb93da1d0b391fc30357dad5.jpg', 'username': None, 'uploaded_at': 1765409707, 'text': 'image_11122025_00_34_34_010153m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1398799588, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/965fdb6b968c9005c933d262e8ece390.jpg', 'username': None, 'uploaded_at': 1765409707, 'text': 'image_11122025_00_34_44_010138m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1398799621, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/6c7cd5ba9b5928133f722c397a878a32.jpg', 'username': None, 'uploaded_at': 1765409767, 'text': 'image_11122025_00_34_54_010141m0.jpg 3.0000000000000004e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 5.7220458984375e-06 ??????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002197265625 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 218, 29322398, '2025-12-11' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 218 and date = '2025-12-11' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2719445,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.23587441444396973 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= 2719445 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2719445, 'dashboard_run_id': 2726379, 'mtr_portfolio_id': 29321646, 'dashboard_result_id': 18235203, '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_P29321646_11-12-2025_00_19_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29321650, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29321651, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29321652, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29321653, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29321654, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29321655, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29321656, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29321657, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29321658, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29321659, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29321660, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29321661, 'pht': 3726}}"}, {'dashboat_entry_day': 2719445, 'dashboard_run_id': 2726379, 'mtr_portfolio_id': 29322119, 'dashboard_result_id': 18235204, '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_P29322119_11-12-2025_00_32_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29322123, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29322124, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29322125, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29322126, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29322127, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29322128, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29322129, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29322130, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29322131, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29322132, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29322133, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29322134, 'pht': 3726}}"}, {'dashboat_entry_day': 2719445, 'dashboard_run_id': 2726379, 'mtr_portfolio_id': 29322398, 'dashboard_result_id': 18235205, '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_P29322398_11-12-2025_00_44_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29322400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29322401, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29322402, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29322403, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29322404, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29322405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29322406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29322407, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29322408, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29322409, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29322410, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29322411, '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 = 29321646 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': 4206107, 'mtr_portfolio_id': 29321646, 'created_at': datetime.datetime(2025, 12, 11, 0, 19, 1), 'result': '0.0748543639238975', 'result_long': None, 'result_double': None}] Qualite : 0.0748543639238975 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29321646 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29321646_11-12-2025_00_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29321646 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_P29321646_11-12-2025_00_19_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29321650, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29321651, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29321652, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29321653, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29321654, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29321655, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29321656, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29321657, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29321658, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29321659, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29321660, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29321661, 'pht': 3726}}" where mtr_portfolio_id = 29321646 and dashboard_run_id = 2726379 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`=29321646 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18235203, 0.0748543639238975, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29321646_11-12-2025_00_19_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29321650, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29321651, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29321652, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29321653, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29321654, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29321655, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29321656, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29321657, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29321658, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29321659, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29321660, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29321661, '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 = 29322119 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': 4206172, 'mtr_portfolio_id': 29322119, 'created_at': datetime.datetime(2025, 12, 11, 0, 32, 30), 'result': '0.0484988516330043', 'result_long': None, 'result_double': None}] Qualite : 0.0484988516330043 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29322119 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29322119_11-12-2025_00_32_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29322119 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_P29322119_11-12-2025_00_32_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29322123, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29322124, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29322125, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29322126, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29322127, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29322128, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29322129, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29322130, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29322131, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29322132, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29322133, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29322134, 'pht': 3726}}" where mtr_portfolio_id = 29322119 and dashboard_run_id = 2726379 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`=29322119 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18235204, 0.0484988516330043, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29322119_11-12-2025_00_32_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29322123, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29322124, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29322125, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29322126, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29322127, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29322128, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29322129, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29322130, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29322131, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29322132, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29322133, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29322134, '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 = 29322398 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': 4206214, 'mtr_portfolio_id': 29322398, 'created_at': datetime.datetime(2025, 12, 11, 0, 46, 59), 'result': '0.059493790648105414', 'result_long': None, 'result_double': None}] Qualite : 0.059493790648105414 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29322398 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29322398_11-12-2025_00_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29322398 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_P29322398_11-12-2025_00_47_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29322400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29322401, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29322402, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29322403, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29322404, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29322405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29322406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29322407, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29322408, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29322409, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29322410, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29322411, 'pht': 3726}}" where mtr_portfolio_id = 29322398 and dashboard_run_id = 2726379 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`=29322398 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18235205, 0.059493790648105414, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29322398_11-12-2025_00_47_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29322400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29322401, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29322402, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29322403, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29322404, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29322405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29322406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29322407, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29322408, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29322409, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29322410, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29322411, '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 (29321646,29322119,29322398) result : ((1398797446,), (1398797448,), (1398797462,), (1398797465,), (1398797468,), (1398797471,), (1398797740,), (1398797838,), (1398797840,), (1398797842,), (1398797845,), (1398797847,), (1398798031,), (1398798106,), (1398798133,), (1398798136,), (1398798138,), (1398798150,), (1398798152,), (1398798154,), (1398798156,), (1398798159,), (1398798181,), (1398798184,), (1398798187,), (1398798190,), (1398798214,), (1398798216,), (1398798217,), (1398798218,), (1398798221,), (1398798234,), (1398798236,), (1398798238,), (1398798243,), (1398798250,), (1398798252,), (1398798258,), (1398798262,), (1398798263,), (1398798265,), (1398798304,), (1398798305,), (1398798306,), (1398798307,), (1398798310,), (1398798313,), (1398798322,), (1398798324,), (1398798326,), (1398798328,), (1398798355,), (1398798357,), (1398798359,), (1398798361,), (1398798364,), (1398798402,), (1398798403,), (1398798405,), (1398798408,), (1398798411,), (1398798412,), (1398798426,), (1398798429,), (1398798579,), (1398798580,), (1398798688,), (1398798684,), (1398798718,), (1398798719,), (1398798730,), (1398798732,), (1398798735,), (1398798737,), (1398798808,), (1398798815,), (1398798818,), (1398798820,), (1398799126,), (1398799147,), (1398799180,), (1398799183,), (1398799186,), (1398799199,), (1398799201,), (1398799203,), (1398799227,), (1398799228,), (1398799229,), (1398799255,), (1398799257,), (1398799260,), (1398799263,), (1398799290,), (1398799292,), (1398799294,), (1398799296,), (1398799508,), (1398799588,), (1398799591,), (1398799594,), (1398799617,), (1398799619,), (1398799621,), (1398799675,), (1398799689,), (1398799691,), (1398799693,), (1398799695,), (1398799725,), (1398799727,), (1398799729,), (1398799731,), (1398799734,), (1398799746,), (1398799748,), (1398799750,), (1398799754,), (1398799758,), (1398799778,), (1398799780,), (1398799782,), (1398799784,), (1398799787,), (1398799805,), (1398799807,), (1398799809,), (1398799811,), (1398799814,), (1398799816,), (1398799826,), (1398799828,), (1398799831,), (1398799834,), (1398799848,), (1398799849,), (1398799850,), (1398799852,), (1398799854,), (1398799856,), (1398799862,), (1398799865,), (1398799870,), (1398799879,), (1398799882,), (1398799887,), (1398799899,), (1398799901,), (1398799902,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'11122025': {'nb_upload': 51, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29322398]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1398799902, 1398799901, 1398799899, 1398799887, 1398799882, 1398799879, 1398799870, 1398799865, 1398799862, 1398799856, 1398799854, 1398799852, 1398799850, 1398799849, 1398799848] map_info['map_portfolio_photo'] : {29322398: [1398799902, 1398799901, 1398799899, 1398799887, 1398799882, 1398799879, 1398799870, 1398799865, 1398799862, 1398799856, 1398799854, 1398799852, 1398799850, 1398799849, 1398799848, 1398799834, 1398799831, 1398799828, 1398799826, 1398799816, 1398799814, 1398799811, 1398799809, 1398799807, 1398799805, 1398799787, 1398799784, 1398799782, 1398799780, 1398799778, 1398799758, 1398799754, 1398799750, 1398799748, 1398799746, 1398799734, 1398799731, 1398799729, 1398799727, 1398799725, 1398799695, 1398799693, 1398799691, 1398799689, 1398799675, 1398799621, 1398799619, 1398799617, 1398799594, 1398799591, 1398799588]} final : True mtd_id 4302 list_pids : [1398799902, 1398799901, 1398799899, 1398799887, 1398799882, 1398799879, 1398799870, 1398799865, 1398799862, 1398799856, 1398799854, 1398799852, 1398799850, 1398799849, 1398799848] Looping around the photos to save general results len do output : 1 /29322398Didn'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, '4206214') ('4302', '29322398', '1398799902', None, None, None, None, None, '4206214') ('4302', None, None, None, None, None, None, None, '4206214') ('4302', '29322398', '1398799901', None, None, None, None, None, '4206214') ('4302', None, None, None, None, None, None, None, '4206214') ('4302', '29322398', '1398799899', None, None, None, None, None, '4206214') ('4302', None, None, None, None, None, None, None, '4206214') ('4302', '29322398', '1398799887', None, None, None, None, None, '4206214') ('4302', None, None, None, None, None, None, None, '4206214') ('4302', '29322398', '1398799882', None, None, None, None, None, '4206214') ('4302', None, None, None, None, None, None, None, '4206214') ('4302', '29322398', '1398799879', None, None, None, None, None, '4206214') ('4302', None, None, None, None, None, None, None, '4206214') ('4302', '29322398', '1398799870', None, None, None, None, None, '4206214') ('4302', None, None, None, None, None, None, None, '4206214') ('4302', '29322398', '1398799865', None, None, None, None, None, '4206214') ('4302', None, None, None, None, None, None, None, '4206214') ('4302', '29322398', '1398799862', None, None, None, None, None, '4206214') ('4302', None, None, None, None, None, None, None, '4206214') ('4302', '29322398', '1398799856', None, None, None, None, None, '4206214') ('4302', None, None, None, None, None, None, None, '4206214') ('4302', '29322398', '1398799854', None, None, None, None, None, '4206214') ('4302', None, None, None, None, None, None, None, '4206214') ('4302', '29322398', '1398799852', None, None, None, None, None, '4206214') ('4302', None, None, None, None, None, None, None, '4206214') ('4302', '29322398', '1398799850', None, None, None, None, None, '4206214') ('4302', None, None, None, None, None, None, None, '4206214') ('4302', '29322398', '1398799849', None, None, None, None, None, '4206214') ('4302', None, None, None, None, None, None, None, '4206214') ('4302', '29322398', '1398799848', None, None, None, None, None, '4206214') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '29322398', 'None', None, None, None, None, '4206214'), ('4302', '29322398', '1398799902', None, None, None, None, None, '4206214'), ('4302', '29322398', '1398799901', None, None, None, None, None, '4206214'), ('4302', '29322398', '1398799899', None, None, None, None, None, '4206214'), ('4302', '29322398', '1398799887', None, None, None, None, None, '4206214'), ('4302', '29322398', '1398799882', None, None, None, None, None, '4206214'), ('4302', '29322398', '1398799879', None, None, None, None, None, '4206214'), ('4302', '29322398', '1398799870', None, None, None, None, None, '4206214'), ('4302', '29322398', '1398799865', None, None, None, None, None, '4206214'), ('4302', '29322398', '1398799862', None, None, None, None, None, '4206214'), ('4302', '29322398', '1398799856', None, None, None, None, None, '4206214'), ('4302', '29322398', '1398799854', None, None, None, None, None, '4206214'), ('4302', '29322398', '1398799852', None, None, None, None, None, '4206214'), ('4302', '29322398', '1398799850', None, None, None, None, None, '4206214'), ('4302', '29322398', '1398799849', None, None, None, None, None, '4206214'), ('4302', '29322398', '1398799848', None, None, None, None, None, '4206214')] time used for this insertion : 0.01657891273498535 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.8494124412536621 time spend to save output : 0.016832590103149414 total time spend for step 5 : 0.8662450313568115 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 (4206214) 2.25user 2.48system 0:10.84elapsed 43%CPU (0avgtext+0avgdata 168032maxresident)k 584inputs+13560outputs (10major+75905minor)pagefaults 0swaps