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 : 3511309 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 (4201716) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4201716) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29286524 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4201716'] with mtr_portfolio_ids : ['29286524'] and first list_photo_ids : [] new path : /proc/3511309/ Name: python3 Umask: 0002 State: R (running) Tgid: 3511309 Ngid: 0 Pid: 3511309 PPid: 3511308 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3511309 NSpid: 3511309 NSpgid: 3509930 NSsid: 3509930 VmPeak: 1113364 kB VmSize: 1113364 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 105648 kB VmRSS: 105648 kB RssAnon: 66288 kB RssFile: 39360 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: 47 nonvoluntary_ctxt_switches: 76 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3511309', 'Ngid': '0', 'Pid': '3511309', 'PPid': '3511308', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3511309', 'NSpid': '3511309', 'NSpgid': '3509930', 'NSsid': '3509930', 'VmPeak': '1113364 kB', 'VmSize': '1113364 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '105648 kB', 'VmRSS': '105648 kB', 'RssAnon': '66288 kB', 'RssFile': '39360 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': '47', 'nonvoluntary_ctxt_switches': '76'} ('datou_batch_current', '3511309', '1113364', '0', '1113364', '872092', '105648', b'', 'marlene', '4201716') 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 (29286524) 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 (4201716 ) ) 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 (29286524) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1398604098, 'portfolio_id': 29286524}, {'photo_id': 1398604040, 'portfolio_id': 29286524}, {'photo_id': 1398603977, 'portfolio_id': 29286524}, {'photo_id': 1398603917, 'portfolio_id': 29286524}, {'photo_id': 1398603881, 'portfolio_id': 29286524}, {'photo_id': 1398603634, 'portfolio_id': 29286524}, {'photo_id': 1398603596, 'portfolio_id': 29286524}, {'photo_id': 1398603551, 'portfolio_id': 29286524}, {'photo_id': 1398603511, 'portfolio_id': 29286524}, {'photo_id': 1398603469, 'portfolio_id': 29286524}, {'photo_id': 1398603433, 'portfolio_id': 29286524}, {'photo_id': 1398602882, 'portfolio_id': 29286524}, {'photo_id': 1398602812, 'portfolio_id': 29286524}, {'photo_id': 1398602774, 'portfolio_id': 29286524}, {'photo_id': 1398602741, 'portfolio_id': 29286524}, {'photo_id': 1398602280, 'portfolio_id': 29286524}, {'photo_id': 1398602242, 'portfolio_id': 29286524}, {'photo_id': 1398602202, 'portfolio_id': 29286524}, {'photo_id': 1398602166, 'portfolio_id': 29286524}, {'photo_id': 1398602129, 'portfolio_id': 29286524}, {'photo_id': 1398601936, 'portfolio_id': 29286524}, {'photo_id': 1398601932, 'portfolio_id': 29286524}, {'photo_id': 1398601929, 'portfolio_id': 29286524}, {'photo_id': 1398601926, 'portfolio_id': 29286524}, {'photo_id': 1398601557, 'portfolio_id': 29286524}, {'photo_id': 1398601525, 'portfolio_id': 29286524}, {'photo_id': 1398600925, 'portfolio_id': 29286524}, {'photo_id': 1398600858, 'portfolio_id': 29286524}, {'photo_id': 1398600779, 'portfolio_id': 29286524}, {'photo_id': 1398600733, 'portfolio_id': 29286524}, {'photo_id': 1398600530, 'portfolio_id': 29286524}, {'photo_id': 1398600526, 'portfolio_id': 29286524}, {'photo_id': 1398600499, 'portfolio_id': 29286524}, {'photo_id': 1398600351, 'portfolio_id': 29286524}, {'photo_id': 1398600309, 'portfolio_id': 29286524}, {'photo_id': 1398600242, 'portfolio_id': 29286524}, {'photo_id': 1398600193, 'portfolio_id': 29286524}, {'photo_id': 1398600139, 'portfolio_id': 29286524}, {'photo_id': 1398600008, 'portfolio_id': 29286524}, {'photo_id': 1398599971, 'portfolio_id': 29286524}, {'photo_id': 1398599933, 'portfolio_id': 29286524}, {'photo_id': 1398599897, 'portfolio_id': 29286524}, {'photo_id': 1398599855, 'portfolio_id': 29286524}, {'photo_id': 1398599820, 'portfolio_id': 29286524}, {'photo_id': 1398599260, 'portfolio_id': 29286524}, {'photo_id': 1398599175, 'portfolio_id': 29286524}, {'photo_id': 1398599140, 'portfolio_id': 29286524}, {'photo_id': 1398599103, 'portfolio_id': 29286524}, {'photo_id': 1398599068, 'portfolio_id': 29286524}, {'photo_id': 1398599029, 'portfolio_id': 29286524}, {'photo_id': 1398598546, 'portfolio_id': 29286524}] map_portfolio_id_photo_id: {29286524: [1398604098, 1398604040, 1398603977, 1398603917, 1398603881, 1398603634, 1398603596, 1398603551, 1398603511, 1398603469, 1398603433, 1398602882, 1398602812, 1398602774, 1398602741, 1398602280, 1398602242, 1398602202, 1398602166, 1398602129, 1398601936, 1398601932, 1398601929, 1398601926, 1398601557, 1398601525, 1398600925, 1398600858, 1398600779, 1398600733, 1398600530, 1398600526, 1398600499, 1398600351, 1398600309, 1398600242, 1398600193, 1398600139, 1398600008, 1398599971, 1398599933, 1398599897, 1398599855, 1398599820, 1398599260, 1398599175, 1398599140, 1398599103, 1398599068, 1398599029, 1398598546]} ##### 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.025008440017700195 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Dec 10 06:12: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 (29286524) 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 : 29286524 get user id for portfolio 29286524 get sub ptf for main ptf 29286524, type 3726 and hashtags ['flou', 'kraft', 'Carton_gris', 'mal_croppe', 'plastique', 'environnement', 'papier', 'autre_refus', 'Carton_brun', 'cartonnette', 'Teint_Dans_La_Masse', 'metal'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29286524 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','kraft','Carton_gris','mal_croppe','plastique','environnement','papier','autre_refus','Carton_brun','cartonnette','Teint_Dans_La_Masse','metal')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29286524 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','kraft','Carton_gris','mal_croppe','plastique','environnement','papier','autre_refus','Carton_brun','cartonnette','Teint_Dans_La_Masse','metal')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 29286524, 'sub_port_id': 29286543, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19930826, 'last_updated_at': datetime.datetime(2025, 12, 10, 6, 10, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 6, 10, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 6, 4, 58)}, 'autre_refus': {'main_port_id': 29286524, 'sub_port_id': 29286544, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19930827, 'last_updated_at': datetime.datetime(2025, 12, 10, 6, 10, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 6, 10, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 6, 4, 58)}, 'Carton_gris': {'main_port_id': 29286524, 'sub_port_id': 29286545, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19930828, 'last_updated_at': datetime.datetime(2025, 12, 10, 6, 10, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 6, 10, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 6, 4, 58)}, 'Carton_brun': {'main_port_id': 29286524, 'sub_port_id': 29286546, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19930829, 'last_updated_at': datetime.datetime(2025, 12, 10, 6, 10, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 6, 10, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 6, 4, 58)}, 'environnement': {'main_port_id': 29286524, 'sub_port_id': 29286547, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19930830, 'last_updated_at': datetime.datetime(2025, 12, 10, 6, 10, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 6, 10, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 6, 4, 58)}, 'kraft': {'main_port_id': 29286524, 'sub_port_id': 29286548, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19930831, 'last_updated_at': datetime.datetime(2025, 12, 10, 6, 10, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 6, 10, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 6, 4, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 29286524, 'sub_port_id': 29286549, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19930832, 'last_updated_at': datetime.datetime(2025, 12, 10, 6, 10, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 6, 10, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 6, 4, 58)}, 'plastique': {'main_port_id': 29286524, 'sub_port_id': 29286550, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19930833, 'last_updated_at': datetime.datetime(2025, 12, 10, 6, 10, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 6, 10, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 6, 4, 58)}, 'cartonnette': {'main_port_id': 29286524, 'sub_port_id': 29286551, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19930834, 'last_updated_at': datetime.datetime(2025, 12, 10, 6, 10, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 6, 10, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 6, 4, 58)}, 'flou': {'main_port_id': 29286524, 'sub_port_id': 29286552, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19930835, 'last_updated_at': datetime.datetime(2025, 12, 10, 6, 10, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 6, 10, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 6, 4, 58)}, 'papier': {'main_port_id': 29286524, 'sub_port_id': 29286553, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19930836, 'last_updated_at': datetime.datetime(2025, 12, 10, 6, 10, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 6, 10, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 6, 4, 58)}, 'mal_croppe': {'main_port_id': 29286524, 'sub_port_id': 29286554, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19930837, 'last_updated_at': datetime.datetime(2025, 12, 10, 6, 10, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 6, 10, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 6, 4, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29286543 , 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=29286524 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 (29286543) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29286524) result : ((1398598546,), (1398599029,), (1398599068,), (1398599103,), (1398599140,), (1398599175,), (1398599260,), (1398599820,), (1398599855,), (1398599897,), (1398599933,), (1398599971,), (1398600008,), (1398600139,), (1398600193,), (1398600242,), (1398600309,), (1398600351,), (1398600499,), (1398600526,), (1398600530,), (1398600733,), (1398600779,), (1398600858,), (1398600925,), (1398601525,), (1398601557,), (1398601926,), (1398601929,), (1398601932,), (1398601936,), (1398602129,), (1398602166,), (1398602202,), (1398602242,), (1398602280,), (1398602741,), (1398602774,), (1398602812,), (1398602882,), (1398603433,), (1398603469,), (1398603511,), (1398603551,), (1398603596,), (1398603634,), (1398603881,), (1398603917,), (1398603977,), (1398604040,), (1398604098,)) 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 29286544 , 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=29286524 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 (29286544) result : ((1398603498,), (1398603500,), (1398603502,), (1398604331,), (1398604333,), (1398604335,), (1398604337,), (1398604427,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29286524) result : ((1398598546,), (1398599029,), (1398599068,), (1398599103,), (1398599140,), (1398599175,), (1398599260,), (1398599820,), (1398599855,), (1398599897,), (1398599933,), (1398599971,), (1398600008,), (1398600139,), (1398600193,), (1398600242,), (1398600309,), (1398600351,), (1398600499,), (1398600526,), (1398600530,), (1398600733,), (1398600779,), (1398600858,), (1398600925,), (1398601525,), (1398601557,), (1398601926,), (1398601929,), (1398601932,), (1398601936,), (1398602129,), (1398602166,), (1398602202,), (1398602242,), (1398602280,), (1398602741,), (1398602774,), (1398602812,), (1398602882,), (1398603433,), (1398603469,), (1398603511,), (1398603551,), (1398603596,), (1398603634,), (1398603881,), (1398603917,), (1398603977,), (1398604040,), (1398604098,)) 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 29286545 , 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=29286524 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 (29286545) result : ((1398603519,), (1398603521,), (1398603523,), (1398603525,), (1398603527,), (1398604346,), (1398604430,), (1398604817,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29286524) result : ((1398598546,), (1398599029,), (1398599068,), (1398599103,), (1398599140,), (1398599175,), (1398599260,), (1398599820,), (1398599855,), (1398599897,), (1398599933,), (1398599971,), (1398600008,), (1398600139,), (1398600193,), (1398600242,), (1398600309,), (1398600351,), (1398600499,), (1398600526,), (1398600530,), (1398600733,), (1398600779,), (1398600858,), (1398600925,), (1398601525,), (1398601557,), (1398601926,), (1398601929,), (1398601932,), (1398601936,), (1398602129,), (1398602166,), (1398602202,), (1398602242,), (1398602280,), (1398602741,), (1398602774,), (1398602812,), (1398602882,), (1398603433,), (1398603469,), (1398603511,), (1398603551,), (1398603596,), (1398603634,), (1398603881,), (1398603917,), (1398603977,), (1398604040,), (1398604098,)) 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 29286546 , 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=29286524 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 (29286546) result : ((1398602676,), (1398603572,), (1398603574,), (1398603576,), (1398604363,), (1398604365,), (1398604440,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29286524) result : ((1398598546,), (1398599029,), (1398599068,), (1398599103,), (1398599140,), (1398599175,), (1398599260,), (1398599820,), (1398599855,), (1398599897,), (1398599933,), (1398599971,), (1398600008,), (1398600139,), (1398600193,), (1398600242,), (1398600309,), (1398600351,), (1398600499,), (1398600526,), (1398600530,), (1398600733,), (1398600779,), (1398600858,), (1398600925,), (1398601525,), (1398601557,), (1398601926,), (1398601929,), (1398601932,), (1398601936,), (1398602129,), (1398602166,), (1398602202,), (1398602242,), (1398602280,), (1398602741,), (1398602774,), (1398602812,), (1398602882,), (1398603433,), (1398603469,), (1398603511,), (1398603551,), (1398603596,), (1398603634,), (1398603881,), (1398603917,), (1398603977,), (1398604040,), (1398604098,)) 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 29286547 , 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=29286524 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 (29286547) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29286524) result : ((1398598546,), (1398599029,), (1398599068,), (1398599103,), (1398599140,), (1398599175,), (1398599260,), (1398599820,), (1398599855,), (1398599897,), (1398599933,), (1398599971,), (1398600008,), (1398600139,), (1398600193,), (1398600242,), (1398600309,), (1398600351,), (1398600499,), (1398600526,), (1398600530,), (1398600733,), (1398600779,), (1398600858,), (1398600925,), (1398601525,), (1398601557,), (1398601926,), (1398601929,), (1398601932,), (1398601936,), (1398602129,), (1398602166,), (1398602202,), (1398602242,), (1398602280,), (1398602741,), (1398602774,), (1398602812,), (1398602882,), (1398603433,), (1398603469,), (1398603511,), (1398603551,), (1398603596,), (1398603634,), (1398603881,), (1398603917,), (1398603977,), (1398604040,), (1398604098,)) 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 29286548 , 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=29286524 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 (29286548) result : ((1398604375,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29286524) result : ((1398598546,), (1398599029,), (1398599068,), (1398599103,), (1398599140,), (1398599175,), (1398599260,), (1398599820,), (1398599855,), (1398599897,), (1398599933,), (1398599971,), (1398600008,), (1398600139,), (1398600193,), (1398600242,), (1398600309,), (1398600351,), (1398600499,), (1398600526,), (1398600530,), (1398600733,), (1398600779,), (1398600858,), (1398600925,), (1398601525,), (1398601557,), (1398601926,), (1398601929,), (1398601932,), (1398601936,), (1398602129,), (1398602166,), (1398602202,), (1398602242,), (1398602280,), (1398602741,), (1398602774,), (1398602812,), (1398602882,), (1398603433,), (1398603469,), (1398603511,), (1398603551,), (1398603596,), (1398603634,), (1398603881,), (1398603917,), (1398603977,), (1398604040,), (1398604098,)) 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 29286549 , 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=29286524 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 (29286549) result : ((1398603060,), (1398603481,), (1398603484,), (1398604812,), (1398604813,), (1398604814,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29286524) result : ((1398598546,), (1398599029,), (1398599068,), (1398599103,), (1398599140,), (1398599175,), (1398599260,), (1398599820,), (1398599855,), (1398599897,), (1398599933,), (1398599971,), (1398600008,), (1398600139,), (1398600193,), (1398600242,), (1398600309,), (1398600351,), (1398600499,), (1398600526,), (1398600530,), (1398600733,), (1398600779,), (1398600858,), (1398600925,), (1398601525,), (1398601557,), (1398601926,), (1398601929,), (1398601932,), (1398601936,), (1398602129,), (1398602166,), (1398602202,), (1398602242,), (1398602280,), (1398602741,), (1398602774,), (1398602812,), (1398602882,), (1398603433,), (1398603469,), (1398603511,), (1398603551,), (1398603596,), (1398603634,), (1398603881,), (1398603917,), (1398603977,), (1398604040,), (1398604098,)) 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 29286550 , 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=29286524 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 (29286550) result : ((1398603083,), (1398603590,), (1398603592,), (1398604819,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29286524) result : ((1398598546,), (1398599029,), (1398599068,), (1398599103,), (1398599140,), (1398599175,), (1398599260,), (1398599820,), (1398599855,), (1398599897,), (1398599933,), (1398599971,), (1398600008,), (1398600139,), (1398600193,), (1398600242,), (1398600309,), (1398600351,), (1398600499,), (1398600526,), (1398600530,), (1398600733,), (1398600779,), (1398600858,), (1398600925,), (1398601525,), (1398601557,), (1398601926,), (1398601929,), (1398601932,), (1398601936,), (1398602129,), (1398602166,), (1398602202,), (1398602242,), (1398602280,), (1398602741,), (1398602774,), (1398602812,), (1398602882,), (1398603433,), (1398603469,), (1398603511,), (1398603551,), (1398603596,), (1398603634,), (1398603881,), (1398603917,), (1398603977,), (1398604040,), (1398604098,)) 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 29286551 , 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=29286524 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 (29286551) result : ((1398602664,), (1398602666,), (1398602668,), (1398603071,), (1398603073,), (1398603549,), (1398603552,), (1398603554,), (1398603556,), (1398603558,), (1398603560,), (1398604354,), (1398604818,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29286524) result : ((1398598546,), (1398599029,), (1398599068,), (1398599103,), (1398599140,), (1398599175,), (1398599260,), (1398599820,), (1398599855,), (1398599897,), (1398599933,), (1398599971,), (1398600008,), (1398600139,), (1398600193,), (1398600242,), (1398600309,), (1398600351,), (1398600499,), (1398600526,), (1398600530,), (1398600733,), (1398600779,), (1398600858,), (1398600925,), (1398601525,), (1398601557,), (1398601926,), (1398601929,), (1398601932,), (1398601936,), (1398602129,), (1398602166,), (1398602202,), (1398602242,), (1398602280,), (1398602741,), (1398602774,), (1398602812,), (1398602882,), (1398603433,), (1398603469,), (1398603511,), (1398603551,), (1398603596,), (1398603634,), (1398603881,), (1398603917,), (1398603977,), (1398604040,), (1398604098,)) 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 29286552 , 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=29286524 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 (29286552) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29286524) result : ((1398598546,), (1398599029,), (1398599068,), (1398599103,), (1398599140,), (1398599175,), (1398599260,), (1398599820,), (1398599855,), (1398599897,), (1398599933,), (1398599971,), (1398600008,), (1398600139,), (1398600193,), (1398600242,), (1398600309,), (1398600351,), (1398600499,), (1398600526,), (1398600530,), (1398600733,), (1398600779,), (1398600858,), (1398600925,), (1398601525,), (1398601557,), (1398601926,), (1398601929,), (1398601932,), (1398601936,), (1398602129,), (1398602166,), (1398602202,), (1398602242,), (1398602280,), (1398602741,), (1398602774,), (1398602812,), (1398602882,), (1398603433,), (1398603469,), (1398603511,), (1398603551,), (1398603596,), (1398603634,), (1398603881,), (1398603917,), (1398603977,), (1398604040,), (1398604098,)) 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 29286553 , 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=29286524 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 (29286553) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29286524) result : ((1398598546,), (1398599029,), (1398599068,), (1398599103,), (1398599140,), (1398599175,), (1398599260,), (1398599820,), (1398599855,), (1398599897,), (1398599933,), (1398599971,), (1398600008,), (1398600139,), (1398600193,), (1398600242,), (1398600309,), (1398600351,), (1398600499,), (1398600526,), (1398600530,), (1398600733,), (1398600779,), (1398600858,), (1398600925,), (1398601525,), (1398601557,), (1398601926,), (1398601929,), (1398601932,), (1398601936,), (1398602129,), (1398602166,), (1398602202,), (1398602242,), (1398602280,), (1398602741,), (1398602774,), (1398602812,), (1398602882,), (1398603433,), (1398603469,), (1398603511,), (1398603551,), (1398603596,), (1398603634,), (1398603881,), (1398603917,), (1398603977,), (1398604040,), (1398604098,)) 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 29286554 , 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=29286524 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 (29286554) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29286524) result : ((1398598546,), (1398599029,), (1398599068,), (1398599103,), (1398599140,), (1398599175,), (1398599260,), (1398599820,), (1398599855,), (1398599897,), (1398599933,), (1398599971,), (1398600008,), (1398600139,), (1398600193,), (1398600242,), (1398600309,), (1398600351,), (1398600499,), (1398600526,), (1398600530,), (1398600733,), (1398600779,), (1398600858,), (1398600925,), (1398601525,), (1398601557,), (1398601926,), (1398601929,), (1398601932,), (1398601936,), (1398602129,), (1398602166,), (1398602202,), (1398602242,), (1398602280,), (1398602741,), (1398602774,), (1398602812,), (1398602882,), (1398603433,), (1398603469,), (1398603511,), (1398603551,), (1398603596,), (1398603634,), (1398603881,), (1398603917,), (1398603977,), (1398604040,), (1398604098,)) 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`=29286524 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','kraft','Carton_gris','mal_croppe','plastique','environnement','papier','autre_refus','Carton_brun','cartonnette','Teint_Dans_La_Masse','metal')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29286524 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','kraft','Carton_gris','mal_croppe','plastique','environnement','papier','autre_refus','Carton_brun','cartonnette','Teint_Dans_La_Masse','metal')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 29286524, 'sub_port_id': 29286555, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19930838, 'last_updated_at': datetime.datetime(2025, 12, 10, 6, 5), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 6, 5), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 6, 5)}, 'autre_refus': {'main_port_id': 29286524, 'sub_port_id': 29286556, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19930839, 'last_updated_at': datetime.datetime(2025, 12, 10, 6, 5), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 6, 5), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 6, 5)}, 'Carton_gris': {'main_port_id': 29286524, 'sub_port_id': 29286557, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19930840, 'last_updated_at': datetime.datetime(2025, 12, 10, 6, 5), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 6, 5), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 6, 5)}, 'Carton_brun': {'main_port_id': 29286524, 'sub_port_id': 29286558, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19930841, 'last_updated_at': datetime.datetime(2025, 12, 10, 6, 5), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 6, 5), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 6, 5)}, 'environnement': {'main_port_id': 29286524, 'sub_port_id': 29286559, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19930842, 'last_updated_at': datetime.datetime(2025, 12, 10, 6, 5), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 6, 5), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 6, 5)}, 'kraft': {'main_port_id': 29286524, 'sub_port_id': 29286560, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19930843, 'last_updated_at': datetime.datetime(2025, 12, 10, 6, 5), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 6, 5), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 6, 5)}, 'Teint_Dans_La_Masse': {'main_port_id': 29286524, 'sub_port_id': 29286561, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19930844, 'last_updated_at': datetime.datetime(2025, 12, 10, 6, 5), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 6, 5), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 6, 5)}, 'plastique': {'main_port_id': 29286524, 'sub_port_id': 29286562, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19930845, 'last_updated_at': datetime.datetime(2025, 12, 10, 6, 5), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 6, 5), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 6, 5)}, 'cartonnette': {'main_port_id': 29286524, 'sub_port_id': 29286563, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19930846, 'last_updated_at': datetime.datetime(2025, 12, 10, 6, 5), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 6, 5), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 6, 5)}, 'flou': {'main_port_id': 29286524, 'sub_port_id': 29286564, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19930847, 'last_updated_at': datetime.datetime(2025, 12, 10, 6, 5), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 6, 5), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 6, 5)}, 'papier': {'main_port_id': 29286524, 'sub_port_id': 29286565, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19930848, 'last_updated_at': datetime.datetime(2025, 12, 10, 6, 5), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 6, 5), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 6, 5)}, 'mal_croppe': {'main_port_id': 29286524, 'sub_port_id': 29286566, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19930849, 'last_updated_at': datetime.datetime(2025, 12, 10, 6, 10, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 6, 10, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 6, 5)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29286555,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29286543 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29286556,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29286544 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29286557,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29286545 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29286558,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29286546 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29286559,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29286547 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29286560,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29286548 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29286561,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29286549 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29286562,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29286550 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29286563,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29286551 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29286564,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29286552 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29286565,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29286553 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29286566,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29286554 lien utilise dans velours : https://marlene.fotonower.com/velours/29286555,29286556,29286557,29286558,29286559,29286560,29286561,29286562,29286563,29286564,29286565,29286566?tags=metal,autre_refus,Carton_gris,Carton_brun,environnement,kraft,Teint_Dans_La_Masse,plastique,cartonnette,flou,papier,mal_croppe After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29286524]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1398604098, 1398604040, 1398603977, 1398603917, 1398603881, 1398603634, 1398603596, 1398603551, 1398603511, 1398603469, 1398603433] map_info['map_portfolio_photo'] : {29286524: [1398604098, 1398604040, 1398603977, 1398603917, 1398603881, 1398603634, 1398603596, 1398603551, 1398603511, 1398603469, 1398603433, 1398602882, 1398602812, 1398602774, 1398602741, 1398602280, 1398602242, 1398602202, 1398602166, 1398602129, 1398601936, 1398601932, 1398601929, 1398601926, 1398601557, 1398601525, 1398600925, 1398600858, 1398600779, 1398600733, 1398600530, 1398600526, 1398600499, 1398600351, 1398600309, 1398600242, 1398600193, 1398600139, 1398600008, 1398599971, 1398599933, 1398599897, 1398599855, 1398599820, 1398599260, 1398599175, 1398599140, 1398599103, 1398599068, 1398599029, 1398598546]} final : False mtd_id 4302 list_pids : [1398604098, 1398604040, 1398603977, 1398603917, 1398603881, 1398603634, 1398603596, 1398603551, 1398603511, 1398603469, 1398603433] Looping around the photos to save general results len do output : 1 /29286524. 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, '4201716') ('4302', '29286524', '1398604098', None, None, None, None, None, '4201716') ('4302', None, None, None, None, None, None, None, '4201716') ('4302', '29286524', '1398604040', None, None, None, None, None, '4201716') ('4302', None, None, None, None, None, None, None, '4201716') ('4302', '29286524', '1398603977', None, None, None, None, None, '4201716') ('4302', None, None, None, None, None, None, None, '4201716') ('4302', '29286524', '1398603917', None, None, None, None, None, '4201716') ('4302', None, None, None, None, None, None, None, '4201716') ('4302', '29286524', '1398603881', None, None, None, None, None, '4201716') ('4302', None, None, None, None, None, None, None, '4201716') ('4302', '29286524', '1398603634', None, None, None, None, None, '4201716') ('4302', None, None, None, None, None, None, None, '4201716') ('4302', '29286524', '1398603596', None, None, None, None, None, '4201716') ('4302', None, None, None, None, None, None, None, '4201716') ('4302', '29286524', '1398603551', None, None, None, None, None, '4201716') ('4302', None, None, None, None, None, None, None, '4201716') ('4302', '29286524', '1398603511', None, None, None, None, None, '4201716') ('4302', None, None, None, None, None, None, None, '4201716') ('4302', '29286524', '1398603469', None, None, None, None, None, '4201716') ('4302', None, None, None, None, None, None, None, '4201716') ('4302', '29286524', '1398603433', None, None, None, None, None, '4201716') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '29286524', "{'metal': 29286543, 'autre_refus': 29286544, 'Carton_gris': 29286545, 'Carton_brun': 29286546, 'environnement': 29286547, 'kraft': 29286548, 'Teint_Dans_La_Masse': 29286549, 'plastique': 29286550, 'cartonnette': 29286551, 'flou': 29286552, 'papier': 29286553, 'mal_croppe': 29286554}", None, None, None, None, '4201716'), ('4302', '29286524', '1398604098', None, None, None, None, None, '4201716'), ('4302', '29286524', '1398604040', None, None, None, None, None, '4201716'), ('4302', '29286524', '1398603977', None, None, None, None, None, '4201716'), ('4302', '29286524', '1398603917', None, None, None, None, None, '4201716'), ('4302', '29286524', '1398603881', None, None, None, None, None, '4201716'), ('4302', '29286524', '1398603634', None, None, None, None, None, '4201716'), ('4302', '29286524', '1398603596', None, None, None, None, None, '4201716'), ('4302', '29286524', '1398603551', None, None, None, None, None, '4201716'), ('4302', '29286524', '1398603511', None, None, None, None, None, '4201716'), ('4302', '29286524', '1398603469', None, None, None, None, None, '4201716'), ('4302', '29286524', '1398603433', None, None, None, None, None, '4201716')] time used for this insertion : 0.01616692543029785 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.9238955974578857 time spend to save output : 0.016376733779907227 total time spend for step 1 : 1.940272331237793 step2:final Wed Dec 10 06:13:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29286524) 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 29286524 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1398598546,1398599260,1398600351,1398599175,1398600309,1398599140,1398600242,1398599103,1398600193,1398599068,1398600139,1398599029,1398600008,1398599971,1398599933,1398599897,1398599855,1398599820,1398600530,1398600526,1398600499,1398600925,1398600858,1398600779,1398600733,1398601557,1398601525,1398601936,1398601932,1398601929,1398601926,1398602280,1398602242,1398602202,1398602166,1398602129,1398602882,1398602812,1398602774,1398602741,1398603634,1398603596,1398603551,1398603511,1398603469,1398603433,1398604098,1398604040,1398603977,1398603917,1398603881); 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([29286524]) Inside saveOutput : final : False verbose : True original output for save of step final : {1398604098: ('0.03034573199930589',), 1398604040: ('0.03034573199930589',), 1398603977: ('0.03034573199930589',), 1398603917: ('0.03034573199930589',), 1398603881: ('0.03034573199930589',), 1398603634: ('0.03034573199930589',), 1398603596: ('0.03034573199930589',), 1398603551: ('0.03034573199930589',), 1398603511: ('0.03034573199930589',), 1398603469: ('0.03034573199930589',), 1398603433: ('0.03034573199930589',)} new output for save of step final : {1398604098: ('0.03034573199930589',), 1398604040: ('0.03034573199930589',), 1398603977: ('0.03034573199930589',), 1398603917: ('0.03034573199930589',), 1398603881: ('0.03034573199930589',), 1398603634: ('0.03034573199930589',), 1398603596: ('0.03034573199930589',), 1398603551: ('0.03034573199930589',), 1398603511: ('0.03034573199930589',), 1398603469: ('0.03034573199930589',), 1398603433: ('0.03034573199930589',)} [1398604098, 1398604040, 1398603977, 1398603917, 1398603881, 1398603634, 1398603596, 1398603551, 1398603511, 1398603469, 1398603433] map_info['map_portfolio_photo'] : {29286524: [1398604098, 1398604040, 1398603977, 1398603917, 1398603881, 1398603634, 1398603596, 1398603551, 1398603511, 1398603469, 1398603433, 1398602882, 1398602812, 1398602774, 1398602741, 1398602280, 1398602242, 1398602202, 1398602166, 1398602129, 1398601936, 1398601932, 1398601929, 1398601926, 1398601557, 1398601525, 1398600925, 1398600858, 1398600779, 1398600733, 1398600530, 1398600526, 1398600499, 1398600351, 1398600309, 1398600242, 1398600193, 1398600139, 1398600008, 1398599971, 1398599933, 1398599897, 1398599855, 1398599820, 1398599260, 1398599175, 1398599140, 1398599103, 1398599068, 1398599029, 1398598546]} final : False mtd_id 4302 list_pids : [1398604098, 1398604040, 1398603977, 1398603917, 1398603881, 1398603634, 1398603596, 1398603551, 1398603511, 1398603469, 1398603433] Looping around the photos to save general results len do output : 11 /1398604098.Didn't retrieve data . /1398604040.Didn't retrieve data . /1398603977.Didn't retrieve data . /1398603917.Didn't retrieve data . /1398603881.Didn't retrieve data . /1398603634.Didn't retrieve data . /1398603596.Didn't retrieve data . /1398603551.Didn't retrieve data . /1398603511.Didn't retrieve data . /1398603469.Didn't retrieve data . /1398603433.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, '4201716') ('4302', '29286524', '1398604098', None, None, None, None, None, '4201716') ('4302', None, None, None, None, None, None, None, '4201716') ('4302', '29286524', '1398604040', None, None, None, None, None, '4201716') ('4302', None, None, None, None, None, None, None, '4201716') ('4302', '29286524', '1398603977', None, None, None, None, None, '4201716') ('4302', None, None, None, None, None, None, None, '4201716') ('4302', '29286524', '1398603917', None, None, None, None, None, '4201716') ('4302', None, None, None, None, None, None, None, '4201716') ('4302', '29286524', '1398603881', None, None, None, None, None, '4201716') ('4302', None, None, None, None, None, None, None, '4201716') ('4302', '29286524', '1398603634', None, None, None, None, None, '4201716') ('4302', None, None, None, None, None, None, None, '4201716') ('4302', '29286524', '1398603596', None, None, None, None, None, '4201716') ('4302', None, None, None, None, None, None, None, '4201716') ('4302', '29286524', '1398603551', None, None, None, None, None, '4201716') ('4302', None, None, None, None, None, None, None, '4201716') ('4302', '29286524', '1398603511', None, None, None, None, None, '4201716') ('4302', None, None, None, None, None, None, None, '4201716') ('4302', '29286524', '1398603469', None, None, None, None, None, '4201716') ('4302', None, None, None, None, None, None, None, '4201716') ('4302', '29286524', '1398603433', None, None, None, None, None, '4201716') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 33 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '29286524', '1398604098', '0.03034573199930589', None, None, None, None, '4201716'), ('4302', '29286524', '1398604040', '0.03034573199930589', None, None, None, None, '4201716'), ('4302', '29286524', '1398603977', '0.03034573199930589', None, None, None, None, '4201716'), ('4302', '29286524', '1398603917', '0.03034573199930589', None, None, None, None, '4201716'), ('4302', '29286524', '1398603881', '0.03034573199930589', None, None, None, None, '4201716'), ('4302', '29286524', '1398603634', '0.03034573199930589', None, None, None, None, '4201716'), ('4302', '29286524', '1398603596', '0.03034573199930589', None, None, None, None, '4201716'), ('4302', '29286524', '1398603551', '0.03034573199930589', None, None, None, None, '4201716'), ('4302', '29286524', '1398603511', '0.03034573199930589', None, None, None, None, '4201716'), ('4302', '29286524', '1398603469', '0.03034573199930589', None, None, None, None, '4201716'), ('4302', '29286524', '1398603433', '0.03034573199930589', None, None, None, None, '4201716')] time used for this insertion : 0.015704631805419922 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07979989051818848 time spend to save output : 0.01628589630126953 total time spend for step 2 : 0.09608578681945801 step3:velours_tree Wed Dec 10 06:13:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {29286524: [{'metal': 29286543, 'autre_refus': 29286544, 'Carton_gris': 29286545, 'Carton_brun': 29286546, 'environnement': 29286547, 'kraft': 29286548, 'Teint_Dans_La_Masse': 29286549, 'plastique': 29286550, 'cartonnette': 29286551, 'flou': 29286552, 'papier': 29286553, 'mal_croppe': 29286554}]} input_args_next_step : {29286524: ()} output_args : {29286524: [{'metal': 29286543, 'autre_refus': 29286544, 'Carton_gris': 29286545, 'Carton_brun': 29286546, 'environnement': 29286547, 'kraft': 29286548, 'Teint_Dans_La_Masse': 29286549, 'plastique': 29286550, 'cartonnette': 29286551, 'flou': 29286552, 'papier': 29286553, 'mal_croppe': 29286554}]} args : 29286524 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 : ({'metal': 29286543, 'autre_refus': 29286544, 'Carton_gris': 29286545, 'Carton_brun': 29286546, 'environnement': 29286547, 'kraft': 29286548, 'Teint_Dans_La_Masse': 29286549, 'plastique': 29286550, 'cartonnette': 29286551, 'flou': 29286552, 'papier': 29286553, 'mal_croppe': 29286554},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29286524) 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([29286524]) 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.29007673263549805 time spend to save output : 5.4836273193359375e-05 total time spend for step 3 : 0.2901315689086914 step4:send_mail_cod Wed Dec 10 06:13: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 : {1398604098: ('0.03034573199930589',), 1398604040: ('0.03034573199930589',), 1398603977: ('0.03034573199930589',), 1398603917: ('0.03034573199930589',), 1398603881: ('0.03034573199930589',), 1398603634: ('0.03034573199930589',), 1398603596: ('0.03034573199930589',), 1398603551: ('0.03034573199930589',), 1398603511: ('0.03034573199930589',), 1398603469: ('0.03034573199930589',), 1398603433: ('0.03034573199930589',)} input_args_next_step : {1398604098: ()} output_args : {1398604098: ('0.03034573199930589',), 1398604040: ('0.03034573199930589',), 1398603977: ('0.03034573199930589',), 1398603917: ('0.03034573199930589',), 1398603881: ('0.03034573199930589',), 1398603634: ('0.03034573199930589',), 1398603596: ('0.03034573199930589',), 1398603551: ('0.03034573199930589',), 1398603511: ('0.03034573199930589',), 1398603469: ('0.03034573199930589',), 1398603433: ('0.03034573199930589',)} args : 1398604098 depend.output_id : 0 input_args_next_step : {1398604098: ('0.03034573199930589',), 1398604040: ()} output_args : {1398604098: ('0.03034573199930589',), 1398604040: ('0.03034573199930589',), 1398603977: ('0.03034573199930589',), 1398603917: ('0.03034573199930589',), 1398603881: ('0.03034573199930589',), 1398603634: ('0.03034573199930589',), 1398603596: ('0.03034573199930589',), 1398603551: ('0.03034573199930589',), 1398603511: ('0.03034573199930589',), 1398603469: ('0.03034573199930589',), 1398603433: ('0.03034573199930589',)} args : 1398604040 depend.output_id : 0 input_args_next_step : {1398604098: ('0.03034573199930589',), 1398604040: ('0.03034573199930589',), 1398603977: ()} output_args : {1398604098: ('0.03034573199930589',), 1398604040: ('0.03034573199930589',), 1398603977: ('0.03034573199930589',), 1398603917: ('0.03034573199930589',), 1398603881: ('0.03034573199930589',), 1398603634: ('0.03034573199930589',), 1398603596: ('0.03034573199930589',), 1398603551: ('0.03034573199930589',), 1398603511: ('0.03034573199930589',), 1398603469: ('0.03034573199930589',), 1398603433: ('0.03034573199930589',)} args : 1398603977 depend.output_id : 0 input_args_next_step : {1398604098: ('0.03034573199930589',), 1398604040: ('0.03034573199930589',), 1398603977: ('0.03034573199930589',), 1398603917: ()} output_args : {1398604098: ('0.03034573199930589',), 1398604040: ('0.03034573199930589',), 1398603977: ('0.03034573199930589',), 1398603917: ('0.03034573199930589',), 1398603881: ('0.03034573199930589',), 1398603634: ('0.03034573199930589',), 1398603596: ('0.03034573199930589',), 1398603551: ('0.03034573199930589',), 1398603511: ('0.03034573199930589',), 1398603469: ('0.03034573199930589',), 1398603433: ('0.03034573199930589',)} args : 1398603917 depend.output_id : 0 input_args_next_step : {1398604098: ('0.03034573199930589',), 1398604040: ('0.03034573199930589',), 1398603977: ('0.03034573199930589',), 1398603917: ('0.03034573199930589',), 1398603881: ()} output_args : {1398604098: ('0.03034573199930589',), 1398604040: ('0.03034573199930589',), 1398603977: ('0.03034573199930589',), 1398603917: ('0.03034573199930589',), 1398603881: ('0.03034573199930589',), 1398603634: ('0.03034573199930589',), 1398603596: ('0.03034573199930589',), 1398603551: ('0.03034573199930589',), 1398603511: ('0.03034573199930589',), 1398603469: ('0.03034573199930589',), 1398603433: ('0.03034573199930589',)} args : 1398603881 depend.output_id : 0 input_args_next_step : {1398604098: ('0.03034573199930589',), 1398604040: ('0.03034573199930589',), 1398603977: ('0.03034573199930589',), 1398603917: ('0.03034573199930589',), 1398603881: ('0.03034573199930589',), 1398603634: ()} output_args : {1398604098: ('0.03034573199930589',), 1398604040: ('0.03034573199930589',), 1398603977: ('0.03034573199930589',), 1398603917: ('0.03034573199930589',), 1398603881: ('0.03034573199930589',), 1398603634: ('0.03034573199930589',), 1398603596: ('0.03034573199930589',), 1398603551: ('0.03034573199930589',), 1398603511: ('0.03034573199930589',), 1398603469: ('0.03034573199930589',), 1398603433: ('0.03034573199930589',)} args : 1398603634 depend.output_id : 0 input_args_next_step : {1398604098: ('0.03034573199930589',), 1398604040: ('0.03034573199930589',), 1398603977: ('0.03034573199930589',), 1398603917: ('0.03034573199930589',), 1398603881: ('0.03034573199930589',), 1398603634: ('0.03034573199930589',), 1398603596: ()} output_args : {1398604098: ('0.03034573199930589',), 1398604040: ('0.03034573199930589',), 1398603977: ('0.03034573199930589',), 1398603917: ('0.03034573199930589',), 1398603881: ('0.03034573199930589',), 1398603634: ('0.03034573199930589',), 1398603596: ('0.03034573199930589',), 1398603551: ('0.03034573199930589',), 1398603511: ('0.03034573199930589',), 1398603469: ('0.03034573199930589',), 1398603433: ('0.03034573199930589',)} args : 1398603596 depend.output_id : 0 input_args_next_step : {1398604098: ('0.03034573199930589',), 1398604040: ('0.03034573199930589',), 1398603977: ('0.03034573199930589',), 1398603917: ('0.03034573199930589',), 1398603881: ('0.03034573199930589',), 1398603634: ('0.03034573199930589',), 1398603596: ('0.03034573199930589',), 1398603551: ()} output_args : {1398604098: ('0.03034573199930589',), 1398604040: ('0.03034573199930589',), 1398603977: ('0.03034573199930589',), 1398603917: ('0.03034573199930589',), 1398603881: ('0.03034573199930589',), 1398603634: ('0.03034573199930589',), 1398603596: ('0.03034573199930589',), 1398603551: ('0.03034573199930589',), 1398603511: ('0.03034573199930589',), 1398603469: ('0.03034573199930589',), 1398603433: ('0.03034573199930589',)} args : 1398603551 depend.output_id : 0 input_args_next_step : {1398604098: ('0.03034573199930589',), 1398604040: ('0.03034573199930589',), 1398603977: ('0.03034573199930589',), 1398603917: ('0.03034573199930589',), 1398603881: ('0.03034573199930589',), 1398603634: ('0.03034573199930589',), 1398603596: ('0.03034573199930589',), 1398603551: ('0.03034573199930589',), 1398603511: ()} output_args : {1398604098: ('0.03034573199930589',), 1398604040: ('0.03034573199930589',), 1398603977: ('0.03034573199930589',), 1398603917: ('0.03034573199930589',), 1398603881: ('0.03034573199930589',), 1398603634: ('0.03034573199930589',), 1398603596: ('0.03034573199930589',), 1398603551: ('0.03034573199930589',), 1398603511: ('0.03034573199930589',), 1398603469: ('0.03034573199930589',), 1398603433: ('0.03034573199930589',)} args : 1398603511 depend.output_id : 0 input_args_next_step : {1398604098: ('0.03034573199930589',), 1398604040: ('0.03034573199930589',), 1398603977: ('0.03034573199930589',), 1398603917: ('0.03034573199930589',), 1398603881: ('0.03034573199930589',), 1398603634: ('0.03034573199930589',), 1398603596: ('0.03034573199930589',), 1398603551: ('0.03034573199930589',), 1398603511: ('0.03034573199930589',), 1398603469: ()} output_args : {1398604098: ('0.03034573199930589',), 1398604040: ('0.03034573199930589',), 1398603977: ('0.03034573199930589',), 1398603917: ('0.03034573199930589',), 1398603881: ('0.03034573199930589',), 1398603634: ('0.03034573199930589',), 1398603596: ('0.03034573199930589',), 1398603551: ('0.03034573199930589',), 1398603511: ('0.03034573199930589',), 1398603469: ('0.03034573199930589',), 1398603433: ('0.03034573199930589',)} args : 1398603469 depend.output_id : 0 input_args_next_step : {1398604098: ('0.03034573199930589',), 1398604040: ('0.03034573199930589',), 1398603977: ('0.03034573199930589',), 1398603917: ('0.03034573199930589',), 1398603881: ('0.03034573199930589',), 1398603634: ('0.03034573199930589',), 1398603596: ('0.03034573199930589',), 1398603551: ('0.03034573199930589',), 1398603511: ('0.03034573199930589',), 1398603469: ('0.03034573199930589',), 1398603433: ()} output_args : {1398604098: ('0.03034573199930589',), 1398604040: ('0.03034573199930589',), 1398603977: ('0.03034573199930589',), 1398603917: ('0.03034573199930589',), 1398603881: ('0.03034573199930589',), 1398603634: ('0.03034573199930589',), 1398603596: ('0.03034573199930589',), 1398603551: ('0.03034573199930589',), 1398603511: ('0.03034573199930589',), 1398603469: ('0.03034573199930589',), 1398603433: ('0.03034573199930589',)} args : 1398603433 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 : {29286524: [{'metal': 29286543, 'autre_refus': 29286544, 'Carton_gris': 29286545, 'Carton_brun': 29286546, 'environnement': 29286547, 'kraft': 29286548, 'Teint_Dans_La_Masse': 29286549, 'plastique': 29286550, 'cartonnette': 29286551, 'flou': 29286552, 'papier': 29286553, 'mal_croppe': 29286554}]} input_args_next_step : {1398604098: ('0.03034573199930589',), 1398604040: ('0.03034573199930589',), 1398603977: ('0.03034573199930589',), 1398603917: ('0.03034573199930589',), 1398603881: ('0.03034573199930589',), 1398603634: ('0.03034573199930589',), 1398603596: ('0.03034573199930589',), 1398603551: ('0.03034573199930589',), 1398603511: ('0.03034573199930589',), 1398603469: ('0.03034573199930589',), 1398603433: ('0.03034573199930589',), 29286524: ()} output_args : {29286524: [{'metal': 29286543, 'autre_refus': 29286544, 'Carton_gris': 29286545, 'Carton_brun': 29286546, 'environnement': 29286547, 'kraft': 29286548, 'Teint_Dans_La_Masse': 29286549, 'plastique': 29286550, 'cartonnette': 29286551, 'flou': 29286552, 'papier': 29286553, 'mal_croppe': 29286554}]} args : 29286524 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :12, first value : ('0.03034573199930589',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29286524) 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 (1398604098,1398604040,1398603977,1398603917,1398603881,1398603634,1398603596,1398603551,1398603511,1398603469,1398603433) Found this number of photos: 11 ##### Call download_photos : nb_thread : 5 begin to download photo : 1398603433 begin to download photo : 1398603551 begin to download photo : 1398603881 begin to download photo : 1398604040 download finish for photo 1398603881 begin to download photo : 1398603917 download finish for photo 1398604040 begin to download photo : 1398604098 download finish for photo 1398603433 begin to download photo : 1398603469 download finish for photo 1398603551 begin to download photo : 1398603596 download finish for photo 1398603917 begin to download photo : 1398603977 download finish for photo 1398603469 begin to download photo : 1398603511 download finish for photo 1398604098 download finish for photo 1398603596 begin to download photo : 1398603634 download finish for photo 1398603977 download finish for photo 1398603511 download finish for photo 1398603634 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette292865431765343581/ length of list_filenames : 11 ; length of list_pids : 11 ; length of list_args : 11 results_Auto_P29286524_10-12-2025_06_13_01.pdf 29286543 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=29286543 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette292865431765343581 29286544 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=29286544 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398603498: '1765343366_1210910_1398600008_b8f47fd0bfdac6ca9628e634fed3222c_rle_crop_4064058236_0.png', 1398603500: '1765343366_1210910_1398599971_17be510a30239c8095d71e50728b68e7_rle_crop_4064058247_0.png', 1398603502: '1765343366_1210910_1398599029_91e4e3ac7df22b74631881c938fb19d2_rle_crop_4064058304_0.png', 1398604331: '1765343466_1217219_1398599933_850f124618bbf84bdd5c3f1f33957c59_rle_crop_4064060098_0.png', 1398604333: '1765343466_1217219_1398599897_3f974d872cacf9acdf364513bfdcf8c5_rle_crop_4064060109_0.png', 1398604335: '1765343466_1217219_1398599897_3f974d872cacf9acdf364513bfdcf8c5_rle_crop_4064060117_0.png', 1398604337: '1765343466_1217219_1398599855_9b5737d36f433b1fe4631ef1bdf7b235_rle_crop_4064060125_0.png', 1398604427: '1765343487_1218485_1398598546_ccc0253d0b91bdb34878e6397f8afd3f_rle_crop_4064060188_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/b3b972dcf7adc15116238f13587dfe19_16307943.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/c4e23b3734a91a12cbe411eab624b4f2_38847573.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/b3b972dcf7adc15116238f13587dfe19_91906610.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/03419a513b2c6ab3f378f75c1962064a_40169748.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/a07f626baf14b58528d9cdddc009747e_22267323.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/365ff954fb4b00f3ebfab39d2598c4ad_72633345.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/87f43f0e0008202f048b6a20cc4fbfdc_7923956.png change filename to text .imagette292865441765343581/ imagette292865441765343581/1765343466_1217219_1398599855_9b5737d36f433b1fe4631ef1bdf7b235_rle_crop_4064060125_0.png.png imagette292865441765343581/1765343466_1217219_1398599897_3f974d872cacf9acdf364513bfdcf8c5_rle_crop_4064060117_0.png.png imagette292865441765343581/1765343366_1210910_1398600008_b8f47fd0bfdac6ca9628e634fed3222c_rle_crop_4064058236_0.png.png imagette292865441765343581/1765343487_1218485_1398598546_ccc0253d0b91bdb34878e6397f8afd3f_rle_crop_4064060188_0.png.png imagette292865441765343581/1765343466_1217219_1398599933_850f124618bbf84bdd5c3f1f33957c59_rle_crop_4064060098_0.png.png imagette292865441765343581/1765343466_1217219_1398599897_3f974d872cacf9acdf364513bfdcf8c5_rle_crop_4064060109_0.png.png imagette292865441765343581/1765343366_1210910_1398599971_17be510a30239c8095d71e50728b68e7_rle_crop_4064058247_0.png.png imagette292865441765343581/1765343366_1210910_1398599029_91e4e3ac7df22b74631881c938fb19d2_rle_crop_4064058304_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/c0d2bc95887a0dc98174b9373fadc893_49691083.png imagette292865441765343581 29286548 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=29286548 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398604375: '1765343466_1217219_1398599897_3f974d872cacf9acdf364513bfdcf8c5_rle_crop_4064060114_0.png'} change filename to text .imagette292865481765343581/ imagette292865481765343581/1765343466_1217219_1398599897_3f974d872cacf9acdf364513bfdcf8c5_rle_crop_4064060114_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/20953de455bec06658c2c5aff8a04b7e_29656965.png imagette292865481765343581 29286550 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=29286550 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398603083: '1765343347_1209194_1398600925_fd24c9d643da747e9b5f5fd83b7aa01b_rle_crop_4064057913_0.png', 1398603590: '1765343366_1210910_1398600193_454617434ff5643acc3651814f5ec9f8_rle_crop_4064058224_0.png', 1398603592: '1765343366_1210910_1398599103_8fe9a5e4f429d8ed6ad5856617e998dc_rle_crop_4064058292_0.png', 1398604819: '1765343547_1223404_1398602774_880533f394df96de0598ffc486ddffca_rle_crop_4064060295_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/4ccf6295631e28332520c46c9c770776_24945084.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/b21ae9c0bd561f5cb2c694354e46c3dd_15274443.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/b21ae9c0bd561f5cb2c694354e46c3dd_50126489.png change filename to text .imagette292865501765343581/ imagette292865501765343581/1765343366_1210910_1398599103_8fe9a5e4f429d8ed6ad5856617e998dc_rle_crop_4064058292_0.png.png imagette292865501765343581/1765343347_1209194_1398600925_fd24c9d643da747e9b5f5fd83b7aa01b_rle_crop_4064057913_0.png.png imagette292865501765343581/1765343547_1223404_1398602774_880533f394df96de0598ffc486ddffca_rle_crop_4064060295_0.png.png imagette292865501765343581/1765343366_1210910_1398600193_454617434ff5643acc3651814f5ec9f8_rle_crop_4064058224_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/575f1a6884b217bf1af16a308dbe927d_89596743.png imagette292865501765343581 29286551 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=29286551 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398602664: '1765343306_1207188_1398601557_2866bb20976c237db05bc90a32a190c7_rle_crop_4064057793_0.png', 1398602666: '1765343306_1207188_1398600858_7192a3715dc7fd5f6da40dcf86ce76c1_rle_crop_4064057804_0.png', 1398602668: '1765343306_1207188_1398600779_28e54cb37a45e8f596d516d99abcc57c_rle_crop_4064057819_0.png', 1398603071: '1765343347_1209194_1398600526_e590c8092556dd2e0a60acd5f373923d_rle_crop_4064057916_0.png', 1398603073: '1765343347_1209194_1398600499_3b0865e426d50061cc26c6d605f26cfa_rle_crop_4064057925_0.png', 1398603549: '1765343366_1210910_1398600242_09c42a261294b2d25c56e602c68f6abd_rle_crop_4064058202_0.png', 1398603552: '1765343366_1210910_1398600242_09c42a261294b2d25c56e602c68f6abd_rle_crop_4064058209_0.png', 1398603554: '1765343366_1210910_1398600193_454617434ff5643acc3651814f5ec9f8_rle_crop_4064058223_0.png', 1398603556: '1765343366_1210910_1398599140_fd34b622069227772648af636189dc07_rle_crop_4064058270_0.png', 1398603558: '1765343366_1210910_1398599140_fd34b622069227772648af636189dc07_rle_crop_4064058277_0.png', 1398603560: '1765343366_1210910_1398599103_8fe9a5e4f429d8ed6ad5856617e998dc_rle_crop_4064058291_0.png', 1398604354: '1765343466_1217219_1398599933_850f124618bbf84bdd5c3f1f33957c59_rle_crop_4064060100_0.png', 1398604818: '1765343547_1223404_1398602741_79a3cf6062ff3262a45ad969677fd15e_rle_crop_4064060309_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/e67279acd80a8314c4394b898ae3b307_35082505.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/245ec29a3818f540e2f8546476b9fe14_41791435.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/35f6e63e1fdc4183beaee90344397601_87761511.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/c83dc7901e3bd5f1ce2d757b12af91f4_72350050.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/fcae6c48e189d9cfc6b67f8caa5b4961_15139341.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/5318d6adc676bf9c93c4120a2a1a4cd2_70103517.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/fda1eee2181ece53fc67dc2eb02f6545_77026365.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/e6039f252e5bd16c73d2f925acdcd4fb_70640640.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/5318d6adc676bf9c93c4120a2a1a4cd2_24467986.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/fda1eee2181ece53fc67dc2eb02f6545_46052168.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/e6039f252e5bd16c73d2f925acdcd4fb_26496864.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/255a9525b8d6caf713ecc24b198ef7f7_87941616.png change filename to text .imagette292865511765343582/ imagette292865511765343582/1765343466_1217219_1398599933_850f124618bbf84bdd5c3f1f33957c59_rle_crop_4064060100_0.png.png imagette292865511765343582/1765343347_1209194_1398600499_3b0865e426d50061cc26c6d605f26cfa_rle_crop_4064057925_0.png.png imagette292865511765343582/1765343306_1207188_1398600858_7192a3715dc7fd5f6da40dcf86ce76c1_rle_crop_4064057804_0.png.png imagette292865511765343582/1765343366_1210910_1398599140_fd34b622069227772648af636189dc07_rle_crop_4064058270_0.png.png imagette292865511765343582/1765343366_1210910_1398600242_09c42a261294b2d25c56e602c68f6abd_rle_crop_4064058202_0.png.png imagette292865511765343582/1765343366_1210910_1398600193_454617434ff5643acc3651814f5ec9f8_rle_crop_4064058223_0.png.png imagette292865511765343582/1765343366_1210910_1398599140_fd34b622069227772648af636189dc07_rle_crop_4064058277_0.png.png imagette292865511765343582/1765343306_1207188_1398600779_28e54cb37a45e8f596d516d99abcc57c_rle_crop_4064057819_0.png.png imagette292865511765343582/1765343347_1209194_1398600526_e590c8092556dd2e0a60acd5f373923d_rle_crop_4064057916_0.png.png imagette292865511765343582/1765343547_1223404_1398602741_79a3cf6062ff3262a45ad969677fd15e_rle_crop_4064060309_0.png.png imagette292865511765343582/1765343306_1207188_1398601557_2866bb20976c237db05bc90a32a190c7_rle_crop_4064057793_0.png.png imagette292865511765343582/1765343366_1210910_1398600242_09c42a261294b2d25c56e602c68f6abd_rle_crop_4064058209_0.png.png imagette292865511765343582/1765343366_1210910_1398599103_8fe9a5e4f429d8ed6ad5856617e998dc_rle_crop_4064058291_0.png.png imagette292865521765343583/ imagette292865541765343583/ wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/cf686ff03cea6941ad3ba28c43b10f11_69921644.png imagette292865511765343582 29286552 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=29286552 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette292865521765343583 29286554 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=29286554 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette292865541765343583 29286545 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=29286545 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398603519: '1765343366_1210910_1398600309_8c49c45035ae27c2a3f3000e151f131d_rle_crop_4064058193_0.png', 1398603521: '1765343366_1210910_1398600139_35486e05b7d186398bf8b85564aaa058_rle_crop_4064058230_0.png', 1398603523: '1765343366_1210910_1398599971_17be510a30239c8095d71e50728b68e7_rle_crop_4064058245_0.png', 1398603525: '1765343366_1210910_1398599175_f48a1aa88f5b7dbbcaeeeddde255e848_rle_crop_4064058261_0.png', 1398603527: '1765343366_1210910_1398599068_906f629f57b285f0855556e9fe4c9f2d_rle_crop_4064058298_0.png', 1398604346: '1765343466_1217219_1398599855_9b5737d36f433b1fe4631ef1bdf7b235_rle_crop_4064060128_0.png', 1398604430: '1765343487_1218485_1398598546_ccc0253d0b91bdb34878e6397f8afd3f_rle_crop_4064060190_0.png', 1398604817: '1765343547_1223404_1398602774_880533f394df96de0598ffc486ddffca_rle_crop_4064060291_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/c71faca2515ff0c3bf7e3d401aea249e_52661231.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/b13df82dbc90b120cd0700ff7053bfc7_69606750.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/37af2a22e5573d0ebd6828d2e4232a67_27360902.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/c71faca2515ff0c3bf7e3d401aea249e_27471532.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/b13df82dbc90b120cd0700ff7053bfc7_5621619.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/ad65df546f0c45422e083783b7556f8f_82409170.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/1ff4fbe7a844f8fc27fef91a42b5b36d_64369968.png change filename to text .imagette292865451765343583/ imagette292865451765343583/1765343366_1210910_1398599971_17be510a30239c8095d71e50728b68e7_rle_crop_4064058245_0.png.png imagette292865451765343583/1765343547_1223404_1398602774_880533f394df96de0598ffc486ddffca_rle_crop_4064060291_0.png.png imagette292865451765343583/1765343366_1210910_1398600139_35486e05b7d186398bf8b85564aaa058_rle_crop_4064058230_0.png.png imagette292865451765343583/1765343366_1210910_1398600309_8c49c45035ae27c2a3f3000e151f131d_rle_crop_4064058193_0.png.png imagette292865451765343583/1765343487_1218485_1398598546_ccc0253d0b91bdb34878e6397f8afd3f_rle_crop_4064060190_0.png.png imagette292865451765343583/1765343466_1217219_1398599855_9b5737d36f433b1fe4631ef1bdf7b235_rle_crop_4064060128_0.png.png imagette292865451765343583/1765343366_1210910_1398599068_906f629f57b285f0855556e9fe4c9f2d_rle_crop_4064058298_0.png.png imagette292865451765343583/1765343366_1210910_1398599175_f48a1aa88f5b7dbbcaeeeddde255e848_rle_crop_4064058261_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/ec5b720b17febf327152d79db096b0fd_49778929.png imagette292865451765343583 29286546 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=29286546 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398602676: '1765343306_1207188_1398601557_2866bb20976c237db05bc90a32a190c7_rle_crop_4064057792_0.png', 1398603572: '1765343366_1210910_1398600309_8c49c45035ae27c2a3f3000e151f131d_rle_crop_4064058191_0.png', 1398603574: '1765343366_1210910_1398599971_17be510a30239c8095d71e50728b68e7_rle_crop_4064058251_0.png', 1398603576: '1765343366_1210910_1398599175_f48a1aa88f5b7dbbcaeeeddde255e848_rle_crop_4064058259_0.png', 1398604363: '1765343466_1217219_1398599933_850f124618bbf84bdd5c3f1f33957c59_rle_crop_4064060102_0.png', 1398604365: '1765343466_1217219_1398599897_3f974d872cacf9acdf364513bfdcf8c5_rle_crop_4064060118_0.png', 1398604440: '1765343487_1218485_1398598546_ccc0253d0b91bdb34878e6397f8afd3f_rle_crop_4064060191_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/43e6873a34228ea6dab5f4ff7d10292e_77347072.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/e1ce2772d894e462eab4b5cf604a9a08_37426121.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/fedaee5b1a07a0174f8e24087ae809ea_59328979.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/e1ce2772d894e462eab4b5cf604a9a08_87173822.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/501e8b27a64af19ad740d99b7f06ac3d_29008273.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/47c897c8731c4862e578e473ec5e61b6_98701347.png change filename to text .imagette292865461765343583/ imagette292865461765343583/1765343366_1210910_1398599175_f48a1aa88f5b7dbbcaeeeddde255e848_rle_crop_4064058259_0.png.png imagette292865461765343583/1765343466_1217219_1398599897_3f974d872cacf9acdf364513bfdcf8c5_rle_crop_4064060118_0.png.png imagette292865461765343583/1765343306_1207188_1398601557_2866bb20976c237db05bc90a32a190c7_rle_crop_4064057792_0.png.png imagette292865461765343583/1765343466_1217219_1398599933_850f124618bbf84bdd5c3f1f33957c59_rle_crop_4064060102_0.png.png imagette292865461765343583/1765343366_1210910_1398600309_8c49c45035ae27c2a3f3000e151f131d_rle_crop_4064058191_0.png.png imagette292865461765343583/1765343366_1210910_1398599971_17be510a30239c8095d71e50728b68e7_rle_crop_4064058251_0.png.png imagette292865461765343583/1765343487_1218485_1398598546_ccc0253d0b91bdb34878e6397f8afd3f_rle_crop_4064060191_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/976ae95bd82bba9c108b61c2066676a3_66411970.png imagette292865461765343583 29286549 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=29286549 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398603060: '1765343347_1209194_1398600925_fd24c9d643da747e9b5f5fd83b7aa01b_rle_crop_4064057911_0.png', 1398603481: '1765343366_1210910_1398600193_454617434ff5643acc3651814f5ec9f8_rle_crop_4064058226_0.png', 1398603484: '1765343366_1210910_1398599103_8fe9a5e4f429d8ed6ad5856617e998dc_rle_crop_4064058294_0.png', 1398604812: '1765343547_1223404_1398602774_880533f394df96de0598ffc486ddffca_rle_crop_4064060298_0.png', 1398604813: '1765343547_1223404_1398602774_880533f394df96de0598ffc486ddffca_rle_crop_4064060288_0.png', 1398604814: '1765343547_1223404_1398602741_79a3cf6062ff3262a45ad969677fd15e_rle_crop_4064060312_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/813ae57e018db4e5cf19892d07dd414f_82015073.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/0d9d2d96c7f71bed90c83f36cc55b593_14964702.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/0d9d2d96c7f71bed90c83f36cc55b593_96964861.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/58b351df262f836c5fbc3307ef8c9be4_32721029.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/d9a660f60dc6078a6d2790f6c805f473_3151372.png change filename to text .imagette292865491765343584/ imagette292865491765343584/1765343547_1223404_1398602741_79a3cf6062ff3262a45ad969677fd15e_rle_crop_4064060312_0.png.png imagette292865491765343584/1765343547_1223404_1398602774_880533f394df96de0598ffc486ddffca_rle_crop_4064060298_0.png.png imagette292865491765343584/1765343347_1209194_1398600925_fd24c9d643da747e9b5f5fd83b7aa01b_rle_crop_4064057911_0.png.png imagette292865491765343584/1765343366_1210910_1398600193_454617434ff5643acc3651814f5ec9f8_rle_crop_4064058226_0.png.png imagette292865491765343584/1765343366_1210910_1398599103_8fe9a5e4f429d8ed6ad5856617e998dc_rle_crop_4064058294_0.png.png imagette292865491765343584/1765343547_1223404_1398602774_880533f394df96de0598ffc486ddffca_rle_crop_4064060288_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/41dfc345c4e69178db157eeb7cd4e32d_32539644.png imagette292865491765343584 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29286524 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29286555,29286556,29286557,29286558,29286559,29286560,29286561,29286562,29286563,29286564,29286565,29286566?tags=metal,autre_refus,Carton_gris,Carton_brun,environnement,kraft,Teint_Dans_La_Masse,plastique,cartonnette,flou,papier,mal_croppe your option no_mail is active, we will not send the real mail to your client args[1398604098] : ('0.03034573199930589',) no score found for photo 1398604098 We are sending mail with results at report@fotonower.com args[1398604040] : ('0.03034573199930589',) no score found for photo 1398604040 We are sending mail with results at report@fotonower.com args[1398603977] : ('0.03034573199930589',) no score found for photo 1398603977 We are sending mail with results at report@fotonower.com args[1398603917] : ('0.03034573199930589',) no score found for photo 1398603917 We are sending mail with results at report@fotonower.com args[1398603881] : ('0.03034573199930589',) no score found for photo 1398603881 We are sending mail with results at report@fotonower.com args[1398603634] : ('0.03034573199930589',) no score found for photo 1398603634 We are sending mail with results at report@fotonower.com args[1398603596] : ('0.03034573199930589',) no score found for photo 1398603596 We are sending mail with results at report@fotonower.com args[1398603551] : ('0.03034573199930589',) no score found for photo 1398603551 We are sending mail with results at report@fotonower.com args[1398603511] : ('0.03034573199930589',) no score found for photo 1398603511 We are sending mail with results at report@fotonower.com args[1398603469] : ('0.03034573199930589',) no score found for photo 1398603469 We are sending mail with results at report@fotonower.com args[1398603433] : ('0.03034573199930589',) no score found for photo 1398603433 We are sending mail with results at report@fotonower.com refus_total : 0.03034573199930589 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=29286524 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_P29286524_10-12-2025_06_13_01.pdf results_Auto_P29286524_10-12-2025_06_13_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29286524_10-12-2025_06_13_01.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','29286524','results_Auto_P29286524_10-12-2025_06_13_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29286524_10-12-2025_06_13_01.pdf','pdf','','0.19','0.03034573199930589') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29286524]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1398604098, 1398604040, 1398603977, 1398603917, 1398603881, 1398603634, 1398603596, 1398603551, 1398603511, 1398603469, 1398603433] map_info['map_portfolio_photo'] : {29286524: [1398604098, 1398604040, 1398603977, 1398603917, 1398603881, 1398603634, 1398603596, 1398603551, 1398603511, 1398603469, 1398603433, 1398602882, 1398602812, 1398602774, 1398602741, 1398602280, 1398602242, 1398602202, 1398602166, 1398602129, 1398601936, 1398601932, 1398601929, 1398601926, 1398601557, 1398601525, 1398600925, 1398600858, 1398600779, 1398600733, 1398600530, 1398600526, 1398600499, 1398600351, 1398600309, 1398600242, 1398600193, 1398600139, 1398600008, 1398599971, 1398599933, 1398599897, 1398599855, 1398599820, 1398599260, 1398599175, 1398599140, 1398599103, 1398599068, 1398599029, 1398598546]} final : False mtd_id 4302 list_pids : [1398604098, 1398604040, 1398603977, 1398603917, 1398603881, 1398603634, 1398603596, 1398603551, 1398603511, 1398603469, 1398603433] 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, '4201716') ('4302', '29286524', '1398604098', None, None, None, None, None, '4201716') ('4302', None, None, None, None, None, None, None, '4201716') ('4302', '29286524', '1398604040', None, None, None, None, None, '4201716') ('4302', None, None, None, None, None, None, None, '4201716') ('4302', '29286524', '1398603977', None, None, None, None, None, '4201716') ('4302', None, None, None, None, None, None, None, '4201716') ('4302', '29286524', '1398603917', None, None, None, None, None, '4201716') ('4302', None, None, None, None, None, None, None, '4201716') ('4302', '29286524', '1398603881', None, None, None, None, None, '4201716') ('4302', None, None, None, None, None, None, None, '4201716') ('4302', '29286524', '1398603634', None, None, None, None, None, '4201716') ('4302', None, None, None, None, None, None, None, '4201716') ('4302', '29286524', '1398603596', None, None, None, None, None, '4201716') ('4302', None, None, None, None, None, None, None, '4201716') ('4302', '29286524', '1398603551', None, None, None, None, None, '4201716') ('4302', None, None, None, None, None, None, None, '4201716') ('4302', '29286524', '1398603511', None, None, None, None, None, '4201716') ('4302', None, None, None, None, None, None, None, '4201716') ('4302', '29286524', '1398603469', None, None, None, None, None, '4201716') ('4302', None, None, None, None, None, None, None, '4201716') ('4302', '29286524', '1398603433', None, None, None, None, None, '4201716') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '29286524', '1398604098', None, None, None, None, None, '4201716'), ('4302', '29286524', '1398604040', None, None, None, None, None, '4201716'), ('4302', '29286524', '1398603977', None, None, None, None, None, '4201716'), ('4302', '29286524', '1398603917', None, None, None, None, None, '4201716'), ('4302', '29286524', '1398603881', None, None, None, None, None, '4201716'), ('4302', '29286524', '1398603634', None, None, None, None, None, '4201716'), ('4302', '29286524', '1398603596', None, None, None, None, None, '4201716'), ('4302', '29286524', '1398603551', None, None, None, None, None, '4201716'), ('4302', '29286524', '1398603511', None, None, None, None, None, '4201716'), ('4302', '29286524', '1398603469', None, None, None, None, None, '4201716'), ('4302', '29286524', '1398603433', None, None, None, None, None, '4201716')] time used for this insertion : 0.015857934951782227 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.458425998687744 time spend to save output : 0.016092538833618164 total time spend for step 4 : 5.474518537521362 step5:split_time_score Wed Dec 10 06:13:06 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 : ['29286524'] 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 : [('29286524',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29286524) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1398604040: {'path': 'temp/1765343580_3511309_1398604040_2ce631cdfdfd8de0164ebbf31fb9c625.jpg', 'extension': 'jpg'}, 1398604098: {'path': 'temp/1765343580_3511309_1398604098_4e891b1eb3101cbccfe339cbc76c7bb9.jpg', 'extension': 'jpg'}, 1398603881: {'path': 'temp/1765343580_3511309_1398603881_2e54f19c97e5ff0e509e8de6afc3a90b.jpg', 'extension': 'jpg'}, 1398603917: {'path': 'temp/1765343580_3511309_1398603917_f4ddcd3d5dc0e41797f28b44a068824c.jpg', 'extension': 'jpg'}, 1398603977: {'path': 'temp/1765343580_3511309_1398603977_858700222018e8dfb5ead6818264347d.jpg', 'extension': 'jpg'}, 1398603433: {'path': 'temp/1765343580_3511309_1398603433_bb66206b19ebd0f0b74e5a9eaf4043a9.jpg', 'extension': 'jpg'}, 1398603469: {'path': 'temp/1765343580_3511309_1398603469_1cd2aa6a56b847ae61771a6562fba73f.jpg', 'extension': 'jpg'}, 1398603511: {'path': 'temp/1765343580_3511309_1398603511_eaa7876b836384d480f8afcda5d6d54f.jpg', 'extension': 'jpg'}, 1398603551: {'path': 'temp/1765343580_3511309_1398603551_c99d678c2461acefb035d209f1f5168e.jpg', 'extension': 'jpg'}, 1398603596: {'path': 'temp/1765343580_3511309_1398603596_799a12f1a14f7f7b865b705eaddbf67b.jpg', 'extension': 'jpg'}, 1398603634: {'path': 'temp/1765343580_3511309_1398603634_565807d48bf847bfa361f23ab6458a7f.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 = 29286524; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 29286524 group by h (('06', 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=29286524 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 (29286524) 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 (29286524) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 10122025 29286524 Nombre de photos uploadées : 51 / 23040 (0%) 10122025 29286524 Nombre de photos taguées (types de déchets): 0 / 51 (0%) 10122025 29286524 Nombre de photos taguées (volume) : 0 / 51 (0%) [{'photo_id': 1398598546, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/ccc0253d0b91bdb34878e6397f8afd3f.jpg', 'username': None, 'uploaded_at': 1765342867, 'text': 'image_10122025_06_00_14_010193m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1398599260, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/c24b9dfb4cf9f0741bc3ed293a7a57ff.jpg', 'username': None, 'uploaded_at': 1765342927, 'text': 'image_10122025_06_00_25_010140m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1398600351, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/b7b14e01da8338d29cdf12ba3e33cc03.jpg', 'username': None, 'uploaded_at': 1765343027, 'text': 'image_10122025_06_00_25_010140m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1398599175, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/f48a1aa88f5b7dbbcaeeeddde255e848.jpg', 'username': None, 'uploaded_at': 1765342927, 'text': 'image_10122025_06_01_05_010155m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 5.4836273193359375e-06 ??????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002187490463256836 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29286524, '2025-12-10' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-12-10' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2712863,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.2443983554840088 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= 2712863 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2712863, 'dashboard_run_id': 2721035, 'mtr_portfolio_id': 29283133, 'dashboard_result_id': 18193563, '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_P29283133_10-12-2025_00_18_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29283134, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29283135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29283136, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29283137, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29283138, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29283139, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29283140, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29283141, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29283142, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29283143, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29283144, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29283145, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2721035, 'mtr_portfolio_id': 29283507, 'dashboard_result_id': 18193564, '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_P29283507_10-12-2025_00_32_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29283508, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29283509, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29283510, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29283511, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29283512, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29283513, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29283514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29283515, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29283516, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29283517, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29283518, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29283519, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2721035, 'mtr_portfolio_id': 29283563, 'dashboard_result_id': 18193565, '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_P29283563_10-12-2025_00_49_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29283564, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29283565, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29283566, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29283567, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29283568, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29283569, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29283570, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29283571, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29283572, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29283573, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29283574, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29283575, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2721035, 'mtr_portfolio_id': 29283646, 'dashboard_result_id': 18193566, '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_P29283646_10-12-2025_01_36_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29283647, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29283648, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29283649, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29283650, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29283651, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29283652, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29283653, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29283654, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29283655, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29283656, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29283657, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29283658, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2721035, 'mtr_portfolio_id': 29284551, 'dashboard_result_id': 18193567, '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_P29284551_10-12-2025_03_03_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29284552, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29284553, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29284554, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29284555, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29284556, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29284557, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29284558, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29284559, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29284560, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29284561, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29284562, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29284563, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2721035, 'mtr_portfolio_id': 29284712, 'dashboard_result_id': 18193568, '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_P29284712_10-12-2025_03_17_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29284719, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29284720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29284721, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29284722, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29284723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29284724, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29284725, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29284726, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29284727, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29284728, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29284729, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29284730, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2721035, 'mtr_portfolio_id': 29285136, 'dashboard_result_id': 18193569, '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_P29285136_10-12-2025_05_17_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29285139, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29285140, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29285141, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29285142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29285143, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29285144, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29285145, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29285146, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29285147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29285148, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29285149, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29285150, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2721035, 'mtr_portfolio_id': 29285345, 'dashboard_result_id': 18193570, '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_P29285345_10-12-2025_06_11_16.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29285348, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29285349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29285350, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29285351, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29285352, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29285353, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29285354, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29285355, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29285356, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29285357, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29285358, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29285359, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2721035, 'mtr_portfolio_id': 29285732, 'dashboard_result_id': 18193571, '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_P29285732_10-12-2025_05_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29285738, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29285739, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29285740, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29285741, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29285742, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29285743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29285744, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29285745, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29285746, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29285747, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29285748, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29285749, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2721035, 'mtr_portfolio_id': 29286087, 'dashboard_result_id': 18193572, '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_P29286087_10-12-2025_06_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29286095, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29286096, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29286097, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29286098, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29286099, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29286100, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29286101, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29286102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29286103, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29286104, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29286105, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29286106, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2721035, 'mtr_portfolio_id': 29286524, 'dashboard_result_id': 18193573, '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_P29286524_10-12-2025_06_10_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29286543, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29286544, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29286545, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29286546, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29286547, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29286548, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29286549, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29286550, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29286551, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29286552, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29286553, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29286554, '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 = 29283133 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': 4201514, 'mtr_portfolio_id': 29283133, 'created_at': datetime.datetime(2025, 12, 10, 6, 7, 29), 'result': '0.010678362266960811', 'result_long': None, 'result_double': None}] Qualite : 0.010678362266960811 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29283133 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29283133_10-12-2025_06_07_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29283133 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_P29283133_10-12-2025_06_07_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29283134, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29283135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29283136, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29283137, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29283138, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29283139, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29283140, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29283141, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29283142, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29283143, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29283144, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29283145, 'pht': 3726}}" where mtr_portfolio_id = 29283133 and dashboard_run_id = 2721035 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`=29283133 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18193563, 0.010678362266960811, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29283133_10-12-2025_06_07_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29283134, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29283135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29283136, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29283137, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29283138, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29283139, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29283140, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29283141, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29283142, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29283143, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29283144, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29283145, '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 = 29283507 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': 4201515, 'mtr_portfolio_id': 29283507, 'created_at': datetime.datetime(2025, 12, 10, 6, 7, 56), 'result': '0.060292920952775546', 'result_long': None, 'result_double': None}] Qualite : 0.060292920952775546 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29283507 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29283507_10-12-2025_06_07_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29283507 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_P29283507_10-12-2025_06_07_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29283508, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29283509, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29283510, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29283511, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29283512, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29283513, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29283514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29283515, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29283516, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29283517, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29283518, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29283519, 'pht': 3726}}" where mtr_portfolio_id = 29283507 and dashboard_run_id = 2721035 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`=29283507 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18193564, 0.060292920952775546, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29283507_10-12-2025_06_07_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29283508, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29283509, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29283510, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29283511, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29283512, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29283513, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29283514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29283515, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29283516, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29283517, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29283518, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29283519, '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 = 29283563 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': 4201516, 'mtr_portfolio_id': 29283563, 'created_at': datetime.datetime(2025, 12, 10, 6, 8, 29), 'result': '0.05437533202236932', 'result_long': None, 'result_double': None}] Qualite : 0.05437533202236932 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29283563 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29283563_10-12-2025_06_08_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29283563 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_P29283563_10-12-2025_06_08_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29283564, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29283565, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29283566, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29283567, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29283568, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29283569, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29283570, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29283571, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29283572, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29283573, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29283574, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29283575, 'pht': 3726}}" where mtr_portfolio_id = 29283563 and dashboard_run_id = 2721035 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`=29283563 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18193565, 0.05437533202236932, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29283563_10-12-2025_06_08_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29283564, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29283565, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29283566, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29283567, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29283568, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29283569, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29283570, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29283571, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29283572, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29283573, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29283574, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29283575, '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 = 29283646 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': 4201517, 'mtr_portfolio_id': 29283646, 'created_at': datetime.datetime(2025, 12, 10, 6, 9, 30), 'result': '0.035229902913867295', 'result_long': None, 'result_double': None}] Qualite : 0.035229902913867295 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29283646 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29283646_10-12-2025_06_09_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29283646 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_P29283646_10-12-2025_06_09_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29283647, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29283648, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29283649, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29283650, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29283651, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29283652, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29283653, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29283654, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29283655, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29283656, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29283657, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29283658, 'pht': 3726}}" where mtr_portfolio_id = 29283646 and dashboard_run_id = 2721035 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`=29283646 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18193566, 0.035229902913867295, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29283646_10-12-2025_06_09_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29283647, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29283648, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29283649, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29283650, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29283651, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29283652, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29283653, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29283654, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29283655, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29283656, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29283657, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29283658, '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 = 29284551 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': 4201518, 'mtr_portfolio_id': 29284551, 'created_at': datetime.datetime(2025, 12, 10, 6, 9, 59), 'result': '0.12040949980131724', 'result_long': None, 'result_double': None}] Qualite : 0.12040949980131724 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29284551 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29284551_10-12-2025_06_10_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29284551 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_P29284551_10-12-2025_06_10_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29284552, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29284553, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29284554, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29284555, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29284556, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29284557, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29284558, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29284559, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29284560, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29284561, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29284562, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29284563, 'pht': 3726}}" where mtr_portfolio_id = 29284551 and dashboard_run_id = 2721035 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`=29284551 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18193567, 0.12040949980131724, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29284551_10-12-2025_06_10_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29284552, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29284553, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29284554, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29284555, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29284556, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29284557, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29284558, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29284559, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29284560, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29284561, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29284562, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29284563, '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 = 29284712 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': 4201519, 'mtr_portfolio_id': 29284712, 'created_at': datetime.datetime(2025, 12, 10, 6, 10, 30), 'result': '0.08618908751612969', 'result_long': None, 'result_double': None}] Qualite : 0.08618908751612969 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29284712 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29284712_10-12-2025_06_10_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29284712 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_P29284712_10-12-2025_06_10_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29284719, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29284720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29284721, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29284722, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29284723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29284724, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29284725, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29284726, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29284727, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29284728, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29284729, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29284730, 'pht': 3726}}" where mtr_portfolio_id = 29284712 and dashboard_run_id = 2721035 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`=29284712 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18193568, 0.08618908751612969, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29284712_10-12-2025_06_10_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29284719, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29284720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29284721, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29284722, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29284723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29284724, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29284725, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29284726, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29284727, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29284728, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29284729, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29284730, '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 = 29285136 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': 4201520, 'mtr_portfolio_id': 29285136, 'created_at': datetime.datetime(2025, 12, 10, 6, 10, 38), 'result': '0.061449803204952656', 'result_long': None, 'result_double': None}] Qualite : 0.061449803204952656 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29285136 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29285136_10-12-2025_06_10_40.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29285136 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_P29285136_10-12-2025_06_10_40.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29285139, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29285140, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29285141, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29285142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29285143, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29285144, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29285145, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29285146, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29285147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29285148, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29285149, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29285150, 'pht': 3726}}" where mtr_portfolio_id = 29285136 and dashboard_run_id = 2721035 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`=29285136 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18193569, 0.061449803204952656, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29285136_10-12-2025_06_10_40.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29285139, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29285140, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29285141, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29285142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29285143, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29285144, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29285145, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29285146, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29285147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29285148, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29285149, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29285150, '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 = 29285345 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': 4201521, 'mtr_portfolio_id': 29285345, 'created_at': datetime.datetime(2025, 12, 10, 6, 11, 13), 'result': '0.0449976319961059', 'result_long': None, 'result_double': None}] Qualite : 0.0449976319961059 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29285345 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29285345_10-12-2025_06_11_16.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29285345 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_P29285345_10-12-2025_06_11_16.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29285348, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29285349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29285350, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29285351, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29285352, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29285353, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29285354, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29285355, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29285356, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29285357, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29285358, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29285359, 'pht': 3726}}" where mtr_portfolio_id = 29285345 and dashboard_run_id = 2721037 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`=29285345 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18193570, 0.0449976319961059, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29285345_10-12-2025_06_11_16.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29285348, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29285349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29285350, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29285351, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29285352, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29285353, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29285354, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29285355, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29285356, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29285357, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29285358, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29285359, '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 = 29285732 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': 4201445, 'mtr_portfolio_id': 29285732, 'created_at': datetime.datetime(2025, 12, 10, 5, 46, 59), 'result': '0.04341877282480353', 'result_long': None, 'result_double': None}] Qualite : 0.04341877282480353 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29285732 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29285732_10-12-2025_05_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29285732 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_P29285732_10-12-2025_05_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29285738, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29285739, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29285740, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29285741, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29285742, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29285743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29285744, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29285745, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29285746, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29285747, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29285748, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29285749, 'pht': 3726}}" where mtr_portfolio_id = 29285732 and dashboard_run_id = 2721037 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`=29285732 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18193571, 0.04341877282480353, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29285732_10-12-2025_05_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29285738, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29285739, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29285740, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29285741, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29285742, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29285743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29285744, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29285745, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29285746, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29285747, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29285748, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29285749, '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 = 29286087 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': 4201629, 'mtr_portfolio_id': 29286087, 'created_at': datetime.datetime(2025, 12, 10, 6, 2, 59), 'result': '0.05901750348886181', 'result_long': None, 'result_double': None}] Qualite : 0.05901750348886181 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29286087 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29286087_10-12-2025_06_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29286087 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_P29286087_10-12-2025_06_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29286095, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29286096, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29286097, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29286098, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29286099, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29286100, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29286101, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29286102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29286103, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29286104, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29286105, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29286106, 'pht': 3726}}" where mtr_portfolio_id = 29286087 and dashboard_run_id = 2721037 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`=29286087 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18193572, 0.05901750348886181, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29286087_10-12-2025_06_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29286095, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29286096, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29286097, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29286098, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29286099, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29286100, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29286101, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29286102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29286103, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29286104, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29286105, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29286106, '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 = 29286524 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': 4201716, 'mtr_portfolio_id': 29286524, 'created_at': datetime.datetime(2025, 12, 10, 6, 13), 'result': '0.03034573199930589', 'result_long': None, 'result_double': None}] Qualite : 0.03034573199930589 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29286524 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29286524_10-12-2025_06_13_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29286524 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_P29286524_10-12-2025_06_13_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29286543, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29286544, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29286545, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29286546, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29286547, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29286548, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29286549, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29286550, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29286551, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29286552, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29286553, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29286554, 'pht': 3726}}" where mtr_portfolio_id = 29286524 and dashboard_run_id = 2721037 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`=29286524 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18193573, 0.03034573199930589, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29286524_10-12-2025_06_13_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29286543, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29286544, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29286545, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29286546, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29286547, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29286548, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29286549, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29286550, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29286551, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29286552, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29286553, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29286554, '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 (29283133,29283507,29283563,29283646,29284551,29284712,29285136,29285345,29285732,29286087,29286524) result : ((1398578619,), (1398579570,), (1398579942,), (1398581226,), (1398582557,), (1398582769,), (1398582809,), (1398583350,), (1398583552,), (1398583569,), (1398583937,), (1398583950,), (1398583982,), (1398584042,), (1398584061,), (1398584083,), (1398584100,), (1398584133,), (1398584198,), (1398584213,), (1398584215,), (1398584250,), (1398584252,), (1398584320,), (1398584358,), (1398584471,), (1398584473,), (1398584490,), (1398584510,), (1398584511,), (1398584526,), (1398584529,), (1398584568,), (1398584607,), (1398588536,), (1398592466,), (1398592469,), (1398592472,), (1398592576,), (1398592580,), (1398592633,), (1398593633,), (1398593977,), (1398594020,), (1398594022,), (1398594036,), (1398594038,), (1398594054,), (1398594097,), (1398594165,), (1398594177,), (1398594213,), (1398594264,), (1398596363,), (1398596383,), (1398596385,), (1398596399,), (1398596402,), (1398596418,), (1398596420,), (1398596474,), (1398596490,), (1398596505,), (1398596528,), (1398596530,), (1398596532,), (1398596547,), (1398596549,), (1398596571,), (1398596574,), (1398596576,), (1398596592,), (1398596594,), (1398596596,), (1398596600,), (1398596604,), (1398596609,), (1398596627,), (1398596629,), (1398596686,), (1398596683,), (1398596684,), (1398596685,), (1398596705,), (1398596707,), (1398596709,), (1398596710,), (1398596713,), (1398596716,), (1398596730,), (1398596732,), (1398596734,), (1398596736,), (1398596751,), (1398596754,), (1398596756,), (1398596758,), (1398596761,), (1398596764,), (1398596774,), (1398596777,), (1398596779,), (1398596782,), (1398596784,), (1398596796,), (1398596799,), (1398596801,), (1398596803,), (1398596805,), (1398596830,), (1398596831,), (1398596833,), (1398596835,), (1398596838,), (1398596841,), (1398596863,), (1398596867,), (1398596871,), (1398596877,), (1398596882,), (1398596884,), (1398596892,), (1398596895,), (1398596922,), (1398596927,), (1398596948,), (1398596951,), (1398596954,), (1398596957,), (1398596959,), (1398596960,), (1398596970,), (1398596972,), (1398596974,), (1398596976,), (1398597026,), (1398597029,), (1398597030,), (1398597031,), (1398597034,), (1398597037,), (1398597048,), (1398597050,), (1398597053,), (1398597056,), (1398597060,), (1398597078,), (1398597080,), (1398597082,), (1398597085,), (1398597088,), (1398597091,), (1398597101,), (1398597103,), (1398597105,), (1398597131,), (1398597132,), (1398597134,), (1398597135,), (1398597138,), (1398597142,), (1398597162,), (1398597149,), (1398597156,), (1398597159,), (1398597215,), (1398597219,), (1398597220,), (1398597221,), (1398597224,), (1398597227,), (1398597238,), (1398597241,), (1398597244,), (1398597247,), (1398597275,), (1398597280,), (1398597282,), (1398597284,), (1398597287,), (1398597289,), (1398597300,), (1398597301,), (1398597302,), (1398597323,), (1398597326,), (1398597329,), (1398597332,), (1398597335,), (1398597337,), (1398597346,), (1398597348,), (1398597351,), (1398597352,), (1398597353,), (1398597355,), (1398597366,), (1398597376,), (1398597386,), (1398597393,), (1398597394,), (1398597395,), (1398597398,), (1398597401,), (1398597404,), (1398597412,), (1398597415,), (1398597418,), (1398597421,), (1398597424,), (1398597446,), (1398597448,), (1398597450,), (1398597452,), (1398597463,), (1398597465,), (1398597467,), (1398597469,), (1398597472,), (1398597491,), (1398597492,), (1398597497,), (1398597501,), (1398597515,), (1398597517,), (1398597519,), (1398597523,), (1398597527,), (1398597530,), (1398597541,), (1398597542,), (1398597543,), (1398597544,), (1398597560,), (1398597563,), (1398597566,), (1398597570,), (1398597582,), (1398597584,), (1398597587,), (1398597589,), (1398597592,), (1398597596,), (1398597637,), (1398597627,), (1398597635,), (1398597636,), (1398597653,), (1398597655,), (1398597657,), (1398597659,), (1398597662,), (1398597665,), (1398597688,), (1398597689,), (1398597691,), (1398597693,), (1398597695,), (1398597707,), (1398597709,), (1398597711,), (1398597713,), (1398597716,), (1398597718,), (1398597755,), (1398597757,), (1398597759,), (1398597777,), (1398597778,), (1398597779,), (1398597780,), (1398597783,), (1398597786,), (1398597811,), (1398597814,), (1398597817,), (1398597820,), (1398597823,), (1398597838,), (1398597839,), (1398597840,), (1398597841,), (1398597844,), (1398597847,), (1398597871,), (1398597874,), (1398597877,), (1398597880,), (1398597883,), (1398597899,), (1398597901,), (1398597904,), (1398597907,), (1398597910,), (1398597912,), (1398597940,), (1398597941,), (1398597943,), (1398597945,), (1398597948,), (1398597966,), (1398597969,), (1398597972,), (1398597974,), (1398597998,), (1398598001,), (1398598004,), (1398598007,), (1398598011,), (1398598014,), (1398598034,), (1398598040,), (1398598076,), (1398598112,), (1398598588,), (1398598546,), (1398599029,), (1398599068,), (1398599103,), (1398599140,), (1398599175,), (1398599260,), (1398599820,), (1398599855,), (1398599897,), (1398599933,), (1398599971,), (1398600008,), (1398600139,), (1398600193,), (1398600242,), (1398600309,), (1398600351,), (1398600499,), (1398600526,), (1398600530,), (1398600733,), (1398600779,), (1398600858,), (1398600925,), (1398601525,), (1398601557,), (1398601926,), (1398601929,), (1398601932,), (1398601936,), (1398602129,), (1398602166,), (1398602202,), (1398602242,), (1398602280,), (1398602741,), (1398602774,), (1398602812,), (1398602882,), (1398603433,), (1398603469,), (1398603511,), (1398603551,), (1398603596,), (1398603634,), (1398603881,), (1398603917,), (1398603977,), (1398604040,), (1398604098,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'10122025': {'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([29286524]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1398604098, 1398604040, 1398603977, 1398603917, 1398603881, 1398603634, 1398603596, 1398603551, 1398603511, 1398603469, 1398603433] map_info['map_portfolio_photo'] : {29286524: [1398604098, 1398604040, 1398603977, 1398603917, 1398603881, 1398603634, 1398603596, 1398603551, 1398603511, 1398603469, 1398603433, 1398602882, 1398602812, 1398602774, 1398602741, 1398602280, 1398602242, 1398602202, 1398602166, 1398602129, 1398601936, 1398601932, 1398601929, 1398601926, 1398601557, 1398601525, 1398600925, 1398600858, 1398600779, 1398600733, 1398600530, 1398600526, 1398600499, 1398600351, 1398600309, 1398600242, 1398600193, 1398600139, 1398600008, 1398599971, 1398599933, 1398599897, 1398599855, 1398599820, 1398599260, 1398599175, 1398599140, 1398599103, 1398599068, 1398599029, 1398598546]} final : True mtd_id 4302 list_pids : [1398604098, 1398604040, 1398603977, 1398603917, 1398603881, 1398603634, 1398603596, 1398603551, 1398603511, 1398603469, 1398603433] Looping around the photos to save general results len do output : 1 /29286524Didn'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, '4201716') ('4302', '29286524', '1398604098', None, None, None, None, None, '4201716') ('4302', None, None, None, None, None, None, None, '4201716') ('4302', '29286524', '1398604040', None, None, None, None, None, '4201716') ('4302', None, None, None, None, None, None, None, '4201716') ('4302', '29286524', '1398603977', None, None, None, None, None, '4201716') ('4302', None, None, None, None, None, None, None, '4201716') ('4302', '29286524', '1398603917', None, None, None, None, None, '4201716') ('4302', None, None, None, None, None, None, None, '4201716') ('4302', '29286524', '1398603881', None, None, None, None, None, '4201716') ('4302', None, None, None, None, None, None, None, '4201716') ('4302', '29286524', '1398603634', None, None, None, None, None, '4201716') ('4302', None, None, None, None, None, None, None, '4201716') ('4302', '29286524', '1398603596', None, None, None, None, None, '4201716') ('4302', None, None, None, None, None, None, None, '4201716') ('4302', '29286524', '1398603551', None, None, None, None, None, '4201716') ('4302', None, None, None, None, None, None, None, '4201716') ('4302', '29286524', '1398603511', None, None, None, None, None, '4201716') ('4302', None, None, None, None, None, None, None, '4201716') ('4302', '29286524', '1398603469', None, None, None, None, None, '4201716') ('4302', None, None, None, None, None, None, None, '4201716') ('4302', '29286524', '1398603433', None, None, None, None, None, '4201716') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '29286524', 'None', None, None, None, None, '4201716'), ('4302', '29286524', '1398604098', None, None, None, None, None, '4201716'), ('4302', '29286524', '1398604040', None, None, None, None, None, '4201716'), ('4302', '29286524', '1398603977', None, None, None, None, None, '4201716'), ('4302', '29286524', '1398603917', None, None, None, None, None, '4201716'), ('4302', '29286524', '1398603881', None, None, None, None, None, '4201716'), ('4302', '29286524', '1398603634', None, None, None, None, None, '4201716'), ('4302', '29286524', '1398603596', None, None, None, None, None, '4201716'), ('4302', '29286524', '1398603551', None, None, None, None, None, '4201716'), ('4302', '29286524', '1398603511', None, None, None, None, None, '4201716'), ('4302', '29286524', '1398603469', None, None, None, None, None, '4201716'), ('4302', '29286524', '1398603433', None, None, None, None, None, '4201716')] time used for this insertion : 0.01523280143737793 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.8074214458465576 time spend to save output : 0.01551675796508789 total time spend for step 5 : 1.8229382038116455 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 (4201716) 2.27user 2.43system 0:11.94elapsed 39%CPU (0avgtext+0avgdata 167500maxresident)k 360inputs+11256outputs (2major+78989minor)pagefaults 0swaps