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 : 2490004 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 (3425093) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3425093) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25598358 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3425093'] with mtr_portfolio_ids : ['25598358'] and first list_photo_ids : [] new path : /proc/2490004/ Name: python3 Umask: 0002 State: R (running) Tgid: 2490004 Ngid: 0 Pid: 2490004 PPid: 2490003 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2490004 NSpid: 2490004 NSpgid: 2488896 NSsid: 2488896 VmPeak: 1106860 kB VmSize: 1106860 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98344 kB VmRSS: 98344 kB RssAnon: 59812 kB RssFile: 38532 kB RssShmem: 0 kB VmData: 865612 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 592 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: 84 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2490004', 'Ngid': '0', 'Pid': '2490004', 'PPid': '2490003', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2490004', 'NSpid': '2490004', 'NSpgid': '2488896', 'NSsid': '2488896', 'VmPeak': '1106860 kB', 'VmSize': '1106860 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98344 kB', 'VmRSS': '98344 kB', 'RssAnon': '59812 kB', 'RssFile': '38532 kB', 'RssShmem': '0 kB', 'VmData': '865612 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '592 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': '84'} ('datou_batch_current', '2490004', '1106860', '0', '1106860', '865612', '98344', b'', 'marlene', '3425093') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (25598358) 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 (3425093 ) ) 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 (25598358) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1374850724, 'portfolio_id': 25598358}, {'photo_id': 1374850696, 'portfolio_id': 25598358}, {'photo_id': 1374850694, 'portfolio_id': 25598358}, {'photo_id': 1374850668, 'portfolio_id': 25598358}, {'photo_id': 1374850666, 'portfolio_id': 25598358}, {'photo_id': 1374850665, 'portfolio_id': 25598358}, {'photo_id': 1374850662, 'portfolio_id': 25598358}, {'photo_id': 1374850646, 'portfolio_id': 25598358}, {'photo_id': 1374850644, 'portfolio_id': 25598358}, {'photo_id': 1374850643, 'portfolio_id': 25598358}, {'photo_id': 1374850642, 'portfolio_id': 25598358}, {'photo_id': 1374850613, 'portfolio_id': 25598358}, {'photo_id': 1374850612, 'portfolio_id': 25598358}, {'photo_id': 1374850611, 'portfolio_id': 25598358}, {'photo_id': 1374850610, 'portfolio_id': 25598358}, {'photo_id': 1374850592, 'portfolio_id': 25598358}, {'photo_id': 1374850591, 'portfolio_id': 25598358}, {'photo_id': 1374850590, 'portfolio_id': 25598358}, {'photo_id': 1374850588, 'portfolio_id': 25598358}, {'photo_id': 1374850526, 'portfolio_id': 25598358}, {'photo_id': 1374850525, 'portfolio_id': 25598358}, {'photo_id': 1374850524, 'portfolio_id': 25598358}, {'photo_id': 1374850510, 'portfolio_id': 25598358}, {'photo_id': 1374850506, 'portfolio_id': 25598358}, {'photo_id': 1374850501, 'portfolio_id': 25598358}, {'photo_id': 1374850495, 'portfolio_id': 25598358}, {'photo_id': 1374850492, 'portfolio_id': 25598358}, {'photo_id': 1374850474, 'portfolio_id': 25598358}, {'photo_id': 1374850473, 'portfolio_id': 25598358}, {'photo_id': 1374850471, 'portfolio_id': 25598358}, {'photo_id': 1374850469, 'portfolio_id': 25598358}, {'photo_id': 1374850467, 'portfolio_id': 25598358}, {'photo_id': 1374850454, 'portfolio_id': 25598358}, {'photo_id': 1374850450, 'portfolio_id': 25598358}, {'photo_id': 1374850447, 'portfolio_id': 25598358}, {'photo_id': 1374850444, 'portfolio_id': 25598358}, {'photo_id': 1374850442, 'portfolio_id': 25598358}, {'photo_id': 1374850441, 'portfolio_id': 25598358}, {'photo_id': 1374850414, 'portfolio_id': 25598358}, {'photo_id': 1374850413, 'portfolio_id': 25598358}, {'photo_id': 1374850412, 'portfolio_id': 25598358}, {'photo_id': 1374850411, 'portfolio_id': 25598358}, {'photo_id': 1374850383, 'portfolio_id': 25598358}, {'photo_id': 1374850373, 'portfolio_id': 25598358}, {'photo_id': 1374850369, 'portfolio_id': 25598358}, {'photo_id': 1374850365, 'portfolio_id': 25598358}, {'photo_id': 1374850350, 'portfolio_id': 25598358}, {'photo_id': 1374850340, 'portfolio_id': 25598358}, {'photo_id': 1374850333, 'portfolio_id': 25598358}, {'photo_id': 1374850313, 'portfolio_id': 25598358}, {'photo_id': 1374850312, 'portfolio_id': 25598358}, {'photo_id': 1374850307, 'portfolio_id': 25598358}] map_portfolio_id_photo_id: {25598358: [1374850724, 1374850696, 1374850694, 1374850668, 1374850666, 1374850665, 1374850662, 1374850646, 1374850644, 1374850643, 1374850642, 1374850613, 1374850612, 1374850611, 1374850610, 1374850592, 1374850591, 1374850590, 1374850588, 1374850526, 1374850525, 1374850524, 1374850510, 1374850506, 1374850501, 1374850495, 1374850492, 1374850474, 1374850473, 1374850471, 1374850469, 1374850467, 1374850454, 1374850450, 1374850447, 1374850444, 1374850442, 1374850441, 1374850414, 1374850413, 1374850412, 1374850411, 1374850383, 1374850373, 1374850369, 1374850365, 1374850350, 1374850340, 1374850333, 1374850313, 1374850312, 1374850307]} ##### 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.017894744873046875 #### 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 Sat Aug 2 02:32:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25598358) 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 : 25598358 get user id for portfolio 25598358 get sub ptf for main ptf 25598358, type 3726 and hashtags ['Carton_gris', 'kraft', 'Teint_Dans_La_Masse', 'cartonnette', 'metal', 'plastique', 'environnement', 'autre_refus', 'flou', 'papier', 'mal_croppe', 'Carton_brun'] 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`=25598358 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','kraft','Teint_Dans_La_Masse','cartonnette','metal','plastique','environnement','autre_refus','flou','papier','mal_croppe','Carton_brun')) 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`=25598358 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','kraft','Teint_Dans_La_Masse','cartonnette','metal','plastique','environnement','autre_refus','flou','papier','mal_croppe','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 25598358, 'sub_port_id': 25598391, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17259993, 'last_updated_at': datetime.datetime(2025, 8, 2, 2, 30, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 2, 2, 30, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 2, 2, 17, 28)}, 'plastique': {'main_port_id': 25598358, 'sub_port_id': 25598392, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17259994, 'last_updated_at': datetime.datetime(2025, 8, 2, 2, 30, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 2, 2, 30, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 2, 2, 17, 28)}, 'Carton_gris': {'main_port_id': 25598358, 'sub_port_id': 25598393, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17259995, 'last_updated_at': datetime.datetime(2025, 8, 2, 2, 30, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 2, 2, 30, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 2, 2, 17, 28)}, 'cartonnette': {'main_port_id': 25598358, 'sub_port_id': 25598394, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17259996, 'last_updated_at': datetime.datetime(2025, 8, 2, 2, 30, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 2, 2, 30, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 2, 2, 17, 28)}, 'papier': {'main_port_id': 25598358, 'sub_port_id': 25598395, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17259997, 'last_updated_at': datetime.datetime(2025, 8, 2, 2, 30, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 2, 2, 30, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 2, 2, 17, 28)}, 'environnement': {'main_port_id': 25598358, 'sub_port_id': 25598396, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17259998, 'last_updated_at': datetime.datetime(2025, 8, 2, 2, 30, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 2, 2, 30, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 2, 2, 17, 28)}, 'mal_croppe': {'main_port_id': 25598358, 'sub_port_id': 25598397, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17259999, 'last_updated_at': datetime.datetime(2025, 8, 2, 2, 30, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 2, 2, 30, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 2, 2, 17, 28)}, 'Carton_brun': {'main_port_id': 25598358, 'sub_port_id': 25598398, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17260000, 'last_updated_at': datetime.datetime(2025, 8, 2, 2, 30, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 2, 2, 30, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 2, 2, 17, 28)}, 'metal': {'main_port_id': 25598358, 'sub_port_id': 25598399, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17260001, 'last_updated_at': datetime.datetime(2025, 8, 2, 2, 30, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 2, 2, 30, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 2, 2, 17, 28)}, 'kraft': {'main_port_id': 25598358, 'sub_port_id': 25598400, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17260002, 'last_updated_at': datetime.datetime(2025, 8, 2, 2, 30, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 2, 2, 30, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 2, 2, 17, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 25598358, 'sub_port_id': 25598401, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17260003, 'last_updated_at': datetime.datetime(2025, 8, 2, 2, 30, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 2, 2, 30, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 2, 2, 17, 28)}, 'flou': {'main_port_id': 25598358, 'sub_port_id': 25598402, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17260004, 'last_updated_at': datetime.datetime(2025, 8, 2, 2, 30, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 2, 2, 30, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 2, 2, 17, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25598391 , 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=25598358 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 (25598391) result : ((1374850499,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25598358) result : ((1374850307,), (1374850312,), (1374850313,), (1374850333,), (1374850340,), (1374850350,), (1374850365,), (1374850369,), (1374850373,), (1374850383,), (1374850411,), (1374850412,), (1374850413,), (1374850414,), (1374850441,), (1374850442,), (1374850444,), (1374850447,), (1374850450,), (1374850454,), (1374850467,), (1374850469,), (1374850471,), (1374850473,), (1374850474,), (1374850492,), (1374850495,), (1374850501,), (1374850506,), (1374850510,), (1374850524,), (1374850525,), (1374850526,), (1374850588,), (1374850590,), (1374850591,), (1374850592,), (1374850610,), (1374850611,), (1374850612,), (1374850613,), (1374850642,), (1374850643,), (1374850644,), (1374850646,), (1374850662,), (1374850665,), (1374850666,), (1374850668,), (1374850694,), (1374850696,), (1374850724,)) 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 25598392 , 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=25598358 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 (25598392) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25598358) result : ((1374850307,), (1374850312,), (1374850313,), (1374850333,), (1374850340,), (1374850350,), (1374850365,), (1374850369,), (1374850373,), (1374850383,), (1374850411,), (1374850412,), (1374850413,), (1374850414,), (1374850441,), (1374850442,), (1374850444,), (1374850447,), (1374850450,), (1374850454,), (1374850467,), (1374850469,), (1374850471,), (1374850473,), (1374850474,), (1374850492,), (1374850495,), (1374850501,), (1374850506,), (1374850510,), (1374850524,), (1374850525,), (1374850526,), (1374850588,), (1374850590,), (1374850591,), (1374850592,), (1374850610,), (1374850611,), (1374850612,), (1374850613,), (1374850642,), (1374850643,), (1374850644,), (1374850646,), (1374850662,), (1374850665,), (1374850666,), (1374850668,), (1374850694,), (1374850696,), (1374850724,)) 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 25598393 , 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=25598358 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 (25598393) result : ((1374850437,), (1374850500,), (1374850543,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25598358) result : ((1374850307,), (1374850312,), (1374850313,), (1374850333,), (1374850340,), (1374850350,), (1374850365,), (1374850369,), (1374850373,), (1374850383,), (1374850411,), (1374850412,), (1374850413,), (1374850414,), (1374850441,), (1374850442,), (1374850444,), (1374850447,), (1374850450,), (1374850454,), (1374850467,), (1374850469,), (1374850471,), (1374850473,), (1374850474,), (1374850492,), (1374850495,), (1374850501,), (1374850506,), (1374850510,), (1374850524,), (1374850525,), (1374850526,), (1374850588,), (1374850590,), (1374850591,), (1374850592,), (1374850610,), (1374850611,), (1374850612,), (1374850613,), (1374850642,), (1374850643,), (1374850644,), (1374850646,), (1374850662,), (1374850665,), (1374850666,), (1374850668,), (1374850694,), (1374850696,), (1374850724,)) 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 25598394 , 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=25598358 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 (25598394) result : ((1374850438,), (1374850439,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25598358) result : ((1374850307,), (1374850312,), (1374850313,), (1374850333,), (1374850340,), (1374850350,), (1374850365,), (1374850369,), (1374850373,), (1374850383,), (1374850411,), (1374850412,), (1374850413,), (1374850414,), (1374850441,), (1374850442,), (1374850444,), (1374850447,), (1374850450,), (1374850454,), (1374850467,), (1374850469,), (1374850471,), (1374850473,), (1374850474,), (1374850492,), (1374850495,), (1374850501,), (1374850506,), (1374850510,), (1374850524,), (1374850525,), (1374850526,), (1374850588,), (1374850590,), (1374850591,), (1374850592,), (1374850610,), (1374850611,), (1374850612,), (1374850613,), (1374850642,), (1374850643,), (1374850644,), (1374850646,), (1374850662,), (1374850665,), (1374850666,), (1374850668,), (1374850694,), (1374850696,), (1374850724,)) 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 25598395 , 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=25598358 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 (25598395) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25598358) result : ((1374850307,), (1374850312,), (1374850313,), (1374850333,), (1374850340,), (1374850350,), (1374850365,), (1374850369,), (1374850373,), (1374850383,), (1374850411,), (1374850412,), (1374850413,), (1374850414,), (1374850441,), (1374850442,), (1374850444,), (1374850447,), (1374850450,), (1374850454,), (1374850467,), (1374850469,), (1374850471,), (1374850473,), (1374850474,), (1374850492,), (1374850495,), (1374850501,), (1374850506,), (1374850510,), (1374850524,), (1374850525,), (1374850526,), (1374850588,), (1374850590,), (1374850591,), (1374850592,), (1374850610,), (1374850611,), (1374850612,), (1374850613,), (1374850642,), (1374850643,), (1374850644,), (1374850646,), (1374850662,), (1374850665,), (1374850666,), (1374850668,), (1374850694,), (1374850696,), (1374850724,)) 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 25598396 , 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=25598358 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 (25598396) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25598358) result : ((1374850307,), (1374850312,), (1374850313,), (1374850333,), (1374850340,), (1374850350,), (1374850365,), (1374850369,), (1374850373,), (1374850383,), (1374850411,), (1374850412,), (1374850413,), (1374850414,), (1374850441,), (1374850442,), (1374850444,), (1374850447,), (1374850450,), (1374850454,), (1374850467,), (1374850469,), (1374850471,), (1374850473,), (1374850474,), (1374850492,), (1374850495,), (1374850501,), (1374850506,), (1374850510,), (1374850524,), (1374850525,), (1374850526,), (1374850588,), (1374850590,), (1374850591,), (1374850592,), (1374850610,), (1374850611,), (1374850612,), (1374850613,), (1374850642,), (1374850643,), (1374850644,), (1374850646,), (1374850662,), (1374850665,), (1374850666,), (1374850668,), (1374850694,), (1374850696,), (1374850724,)) 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 25598397 , 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=25598358 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 (25598397) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25598358) result : ((1374850307,), (1374850312,), (1374850313,), (1374850333,), (1374850340,), (1374850350,), (1374850365,), (1374850369,), (1374850373,), (1374850383,), (1374850411,), (1374850412,), (1374850413,), (1374850414,), (1374850441,), (1374850442,), (1374850444,), (1374850447,), (1374850450,), (1374850454,), (1374850467,), (1374850469,), (1374850471,), (1374850473,), (1374850474,), (1374850492,), (1374850495,), (1374850501,), (1374850506,), (1374850510,), (1374850524,), (1374850525,), (1374850526,), (1374850588,), (1374850590,), (1374850591,), (1374850592,), (1374850610,), (1374850611,), (1374850612,), (1374850613,), (1374850642,), (1374850643,), (1374850644,), (1374850646,), (1374850662,), (1374850665,), (1374850666,), (1374850668,), (1374850694,), (1374850696,), (1374850724,)) 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 25598398 , 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=25598358 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 (25598398) result : ((1374850440,), (1374850503,), (1374850544,), (1374850545,), (1374850689,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25598358) result : ((1374850307,), (1374850312,), (1374850313,), (1374850333,), (1374850340,), (1374850350,), (1374850365,), (1374850369,), (1374850373,), (1374850383,), (1374850411,), (1374850412,), (1374850413,), (1374850414,), (1374850441,), (1374850442,), (1374850444,), (1374850447,), (1374850450,), (1374850454,), (1374850467,), (1374850469,), (1374850471,), (1374850473,), (1374850474,), (1374850492,), (1374850495,), (1374850501,), (1374850506,), (1374850510,), (1374850524,), (1374850525,), (1374850526,), (1374850588,), (1374850590,), (1374850591,), (1374850592,), (1374850610,), (1374850611,), (1374850612,), (1374850613,), (1374850642,), (1374850643,), (1374850644,), (1374850646,), (1374850662,), (1374850665,), (1374850666,), (1374850668,), (1374850694,), (1374850696,), (1374850724,)) 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 25598399 , 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=25598358 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 (25598399) result : ((1374850504,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25598358) result : ((1374850307,), (1374850312,), (1374850313,), (1374850333,), (1374850340,), (1374850350,), (1374850365,), (1374850369,), (1374850373,), (1374850383,), (1374850411,), (1374850412,), (1374850413,), (1374850414,), (1374850441,), (1374850442,), (1374850444,), (1374850447,), (1374850450,), (1374850454,), (1374850467,), (1374850469,), (1374850471,), (1374850473,), (1374850474,), (1374850492,), (1374850495,), (1374850501,), (1374850506,), (1374850510,), (1374850524,), (1374850525,), (1374850526,), (1374850588,), (1374850590,), (1374850591,), (1374850592,), (1374850610,), (1374850611,), (1374850612,), (1374850613,), (1374850642,), (1374850643,), (1374850644,), (1374850646,), (1374850662,), (1374850665,), (1374850666,), (1374850668,), (1374850694,), (1374850696,), (1374850724,)) 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 25598400 , 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=25598358 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 (25598400) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25598358) result : ((1374850307,), (1374850312,), (1374850313,), (1374850333,), (1374850340,), (1374850350,), (1374850365,), (1374850369,), (1374850373,), (1374850383,), (1374850411,), (1374850412,), (1374850413,), (1374850414,), (1374850441,), (1374850442,), (1374850444,), (1374850447,), (1374850450,), (1374850454,), (1374850467,), (1374850469,), (1374850471,), (1374850473,), (1374850474,), (1374850492,), (1374850495,), (1374850501,), (1374850506,), (1374850510,), (1374850524,), (1374850525,), (1374850526,), (1374850588,), (1374850590,), (1374850591,), (1374850592,), (1374850610,), (1374850611,), (1374850612,), (1374850613,), (1374850642,), (1374850643,), (1374850644,), (1374850646,), (1374850662,), (1374850665,), (1374850666,), (1374850668,), (1374850694,), (1374850696,), (1374850724,)) 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 25598401 , 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=25598358 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 (25598401) result : ((1374850436,), (1374850496,), (1374850640,), (1374850641,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25598358) result : ((1374850307,), (1374850312,), (1374850313,), (1374850333,), (1374850340,), (1374850350,), (1374850365,), (1374850369,), (1374850373,), (1374850383,), (1374850411,), (1374850412,), (1374850413,), (1374850414,), (1374850441,), (1374850442,), (1374850444,), (1374850447,), (1374850450,), (1374850454,), (1374850467,), (1374850469,), (1374850471,), (1374850473,), (1374850474,), (1374850492,), (1374850495,), (1374850501,), (1374850506,), (1374850510,), (1374850524,), (1374850525,), (1374850526,), (1374850588,), (1374850590,), (1374850591,), (1374850592,), (1374850610,), (1374850611,), (1374850612,), (1374850613,), (1374850642,), (1374850643,), (1374850644,), (1374850646,), (1374850662,), (1374850665,), (1374850666,), (1374850668,), (1374850694,), (1374850696,), (1374850724,)) 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 25598402 , 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=25598358 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 (25598402) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25598358) result : ((1374850307,), (1374850312,), (1374850313,), (1374850333,), (1374850340,), (1374850350,), (1374850365,), (1374850369,), (1374850373,), (1374850383,), (1374850411,), (1374850412,), (1374850413,), (1374850414,), (1374850441,), (1374850442,), (1374850444,), (1374850447,), (1374850450,), (1374850454,), (1374850467,), (1374850469,), (1374850471,), (1374850473,), (1374850474,), (1374850492,), (1374850495,), (1374850501,), (1374850506,), (1374850510,), (1374850524,), (1374850525,), (1374850526,), (1374850588,), (1374850590,), (1374850591,), (1374850592,), (1374850610,), (1374850611,), (1374850612,), (1374850613,), (1374850642,), (1374850643,), (1374850644,), (1374850646,), (1374850662,), (1374850665,), (1374850666,), (1374850668,), (1374850694,), (1374850696,), (1374850724,)) 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`=25598358 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','kraft','Teint_Dans_La_Masse','cartonnette','metal','plastique','environnement','autre_refus','flou','papier','mal_croppe','Carton_brun')) 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`=25598358 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','kraft','Teint_Dans_La_Masse','cartonnette','metal','plastique','environnement','autre_refus','flou','papier','mal_croppe','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 25598358, 'sub_port_id': 25598403, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17260005, 'last_updated_at': datetime.datetime(2025, 8, 2, 2, 17, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 2, 2, 17, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 2, 2, 17, 30)}, 'plastique': {'main_port_id': 25598358, 'sub_port_id': 25598404, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17260006, 'last_updated_at': datetime.datetime(2025, 8, 2, 2, 17, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 2, 2, 17, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 2, 2, 17, 30)}, 'Carton_gris': {'main_port_id': 25598358, 'sub_port_id': 25598405, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17260007, 'last_updated_at': datetime.datetime(2025, 8, 2, 2, 17, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 2, 2, 17, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 2, 2, 17, 30)}, 'cartonnette': {'main_port_id': 25598358, 'sub_port_id': 25598406, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17260008, 'last_updated_at': datetime.datetime(2025, 8, 2, 2, 17, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 2, 2, 17, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 2, 2, 17, 30)}, 'papier': {'main_port_id': 25598358, 'sub_port_id': 25598407, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17260009, 'last_updated_at': datetime.datetime(2025, 8, 2, 2, 17, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 2, 2, 17, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 2, 2, 17, 30)}, 'environnement': {'main_port_id': 25598358, 'sub_port_id': 25598408, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17260010, 'last_updated_at': datetime.datetime(2025, 8, 2, 2, 17, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 2, 2, 17, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 2, 2, 17, 30)}, 'mal_croppe': {'main_port_id': 25598358, 'sub_port_id': 25598409, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17260011, 'last_updated_at': datetime.datetime(2025, 8, 2, 2, 17, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 2, 2, 17, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 2, 2, 17, 30)}, 'Carton_brun': {'main_port_id': 25598358, 'sub_port_id': 25598410, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17260012, 'last_updated_at': datetime.datetime(2025, 8, 2, 2, 17, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 2, 2, 17, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 2, 2, 17, 30)}, 'metal': {'main_port_id': 25598358, 'sub_port_id': 25598411, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17260013, 'last_updated_at': datetime.datetime(2025, 8, 2, 2, 17, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 2, 2, 17, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 2, 2, 17, 30)}, 'kraft': {'main_port_id': 25598358, 'sub_port_id': 25598412, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17260014, 'last_updated_at': datetime.datetime(2025, 8, 2, 2, 17, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 2, 2, 17, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 2, 2, 17, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 25598358, 'sub_port_id': 25598413, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17260015, 'last_updated_at': datetime.datetime(2025, 8, 2, 2, 17, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 2, 2, 17, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 2, 2, 17, 30)}, 'flou': {'main_port_id': 25598358, 'sub_port_id': 25598414, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17260016, 'last_updated_at': datetime.datetime(2025, 8, 2, 2, 30, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 2, 2, 30, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 2, 2, 17, 30)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25598403,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25598391 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25598404,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25598392 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25598405,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25598393 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25598406,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25598394 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25598407,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25598395 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25598408,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25598396 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25598409,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25598397 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25598410,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25598398 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25598411,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25598399 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25598412,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25598400 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25598413,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25598401 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25598414,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25598402 lien utilise dans velours : https://www.fotonower.com/velours/25598403,25598404,25598405,25598406,25598407,25598408,25598409,25598410,25598411,25598412,25598413,25598414?tags=autre_refus,plastique,Carton_gris,cartonnette,papier,environnement,mal_croppe,Carton_brun,metal,kraft,Teint_Dans_La_Masse,flou After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25598358]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1374850724] map_info['map_portfolio_photo'] : {25598358: [1374850724, 1374850696, 1374850694, 1374850668, 1374850666, 1374850665, 1374850662, 1374850646, 1374850644, 1374850643, 1374850642, 1374850613, 1374850612, 1374850611, 1374850610, 1374850592, 1374850591, 1374850590, 1374850588, 1374850526, 1374850525, 1374850524, 1374850510, 1374850506, 1374850501, 1374850495, 1374850492, 1374850474, 1374850473, 1374850471, 1374850469, 1374850467, 1374850454, 1374850450, 1374850447, 1374850444, 1374850442, 1374850441, 1374850414, 1374850413, 1374850412, 1374850411, 1374850383, 1374850373, 1374850369, 1374850365, 1374850350, 1374850340, 1374850333, 1374850313, 1374850312, 1374850307]} final : False mtd_id 4302 list_pids : [1374850724] Looping around the photos to save general results len do output : 1 /25598358. 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, '3425093') ('4302', '25598358', '1374850724', None, None, None, None, None, '3425093') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 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, '25598358', "{'autre_refus': 25598391, 'plastique': 25598392, 'Carton_gris': 25598393, 'cartonnette': 25598394, 'papier': 25598395, 'environnement': 25598396, 'mal_croppe': 25598397, 'Carton_brun': 25598398, 'metal': 25598399, 'kraft': 25598400, 'Teint_Dans_La_Masse': 25598401, 'flou': 25598402}", None, None, None, None, '3425093'), ('4302', '25598358', '1374850724', None, None, None, None, None, '3425093')] time used for this insertion : 0.0132598876953125 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.446845531463623 time spend to save output : 0.013485193252563477 total time spend for step 1 : 1.4603307247161865 step2:final Sat Aug 2 02:32:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25598358) 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 25598358 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1374850313,1374850312,1374850307,1374850373,1374850369,1374850365,1374850350,1374850340,1374850333,1374850383,1374850414,1374850413,1374850412,1374850411,1374850454,1374850450,1374850447,1374850444,1374850442,1374850441,1374850474,1374850473,1374850471,1374850469,1374850467,1374850510,1374850506,1374850501,1374850495,1374850492,1374850526,1374850525,1374850524,1374850592,1374850591,1374850590,1374850588,1374850613,1374850612,1374850611,1374850610,1374850646,1374850644,1374850643,1374850642,1374850668,1374850666,1374850665,1374850662,1374850696,1374850694,1374850724); 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([25598358]) Inside saveOutput : final : False verbose : True original output for save of step final : {1374850724: ('0.046473615498694665',)} new output for save of step final : {1374850724: ('0.046473615498694665',)} [1374850724] map_info['map_portfolio_photo'] : {25598358: [1374850724, 1374850696, 1374850694, 1374850668, 1374850666, 1374850665, 1374850662, 1374850646, 1374850644, 1374850643, 1374850642, 1374850613, 1374850612, 1374850611, 1374850610, 1374850592, 1374850591, 1374850590, 1374850588, 1374850526, 1374850525, 1374850524, 1374850510, 1374850506, 1374850501, 1374850495, 1374850492, 1374850474, 1374850473, 1374850471, 1374850469, 1374850467, 1374850454, 1374850450, 1374850447, 1374850444, 1374850442, 1374850441, 1374850414, 1374850413, 1374850412, 1374850411, 1374850383, 1374850373, 1374850369, 1374850365, 1374850350, 1374850340, 1374850333, 1374850313, 1374850312, 1374850307]} final : False mtd_id 4302 list_pids : [1374850724] Looping around the photos to save general results len do output : 1 /1374850724.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, '3425093') ('4302', '25598358', '1374850724', None, None, None, None, None, '3425093') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 3 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', '25598358', '1374850724', '0.046473615498694665', None, None, None, None, '3425093')] time used for this insertion : 0.01098012924194336 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.062320709228515625 time spend to save output : 0.01114654541015625 total time spend for step 2 : 0.07346725463867188 step3:velours_tree Sat Aug 2 02:32:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {25598358: [{'autre_refus': 25598391, 'plastique': 25598392, 'Carton_gris': 25598393, 'cartonnette': 25598394, 'papier': 25598395, 'environnement': 25598396, 'mal_croppe': 25598397, 'Carton_brun': 25598398, 'metal': 25598399, 'kraft': 25598400, 'Teint_Dans_La_Masse': 25598401, 'flou': 25598402}]} input_args_next_step : {25598358: ()} output_args : {25598358: [{'autre_refus': 25598391, 'plastique': 25598392, 'Carton_gris': 25598393, 'cartonnette': 25598394, 'papier': 25598395, 'environnement': 25598396, 'mal_croppe': 25598397, 'Carton_brun': 25598398, 'metal': 25598399, 'kraft': 25598400, 'Teint_Dans_La_Masse': 25598401, 'flou': 25598402}]} args : 25598358 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'autre_refus': 25598391, 'plastique': 25598392, 'Carton_gris': 25598393, 'cartonnette': 25598394, 'papier': 25598395, 'environnement': 25598396, 'mal_croppe': 25598397, 'Carton_brun': 25598398, 'metal': 25598399, 'kraft': 25598400, 'Teint_Dans_La_Masse': 25598401, 'flou': 25598402},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25598358) 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([25598358]) 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.29025959968566895 time spend to save output : 4.2438507080078125e-05 total time spend for step 3 : 0.290302038192749 step4:send_mail_cod Sat Aug 2 02:32:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1374850724: ('0.046473615498694665',)} input_args_next_step : {1374850724: ()} output_args : {1374850724: ('0.046473615498694665',)} args : 1374850724 depend.output_id : 0 complete output_args for input 3 : {25598358: [{'autre_refus': 25598391, 'plastique': 25598392, 'Carton_gris': 25598393, 'cartonnette': 25598394, 'papier': 25598395, 'environnement': 25598396, 'mal_croppe': 25598397, 'Carton_brun': 25598398, 'metal': 25598399, 'kraft': 25598400, 'Teint_Dans_La_Masse': 25598401, 'flou': 25598402}]} input_args_next_step : {1374850724: ('0.046473615498694665',), 25598358: ()} output_args : {25598358: [{'autre_refus': 25598391, 'plastique': 25598392, 'Carton_gris': 25598393, 'cartonnette': 25598394, 'papier': 25598395, 'environnement': 25598396, 'mal_croppe': 25598397, 'Carton_brun': 25598398, 'metal': 25598399, 'kraft': 25598400, 'Teint_Dans_La_Masse': 25598401, 'flou': 25598402}]} args : 25598358 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 :2, first value : ('0.046473615498694665',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25598358) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1374850724) Found this number of photos: 1 ##### Call download_photos : nb_thread : 5 begin to download photo : 1374850724 download finish for photo 1374850724 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 1 ; length of list_pids : 1 ; length of list_args : 1 results_Auto_P25598358_02-08-2025_02_32_59.pdf 25598391 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25598391 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374850499: '1754094086_706954_1374850411_eede2da048ed100fe06ce35d26809bcf_rle_crop_3901035734_0.png'} change filename to text .imagette255983911754094779/ imagette255983911754094779/1754094086_706954_1374850411_eede2da048ed100fe06ce35d26809bcf_rle_crop_3901035734_0.png.png imagette255983921754094779/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/2/5516dd7f189e51c2c488f6440a92427f_6650685.png imagette255983911754094779 25598392 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25598392 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette255983921754094779 25598394 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25598394 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374850438: '1754093967_704024_1374850365_2231c497ae3eef4a653640a645ec0d4f_rle_crop_3901035212_0.png', 1374850439: '1754093967_704024_1374850333_63f04d8710ff5b8ba99df3e7483a2670_rle_crop_3901035243_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/2/aa17789d8e3385ed68664bbf24bd0338_45367076.png change filename to text .imagette255983941754094779/ imagette255983941754094779/1754093967_704024_1374850333_63f04d8710ff5b8ba99df3e7483a2670_rle_crop_3901035243_0.png.png imagette255983941754094779/1754093967_704024_1374850365_2231c497ae3eef4a653640a645ec0d4f_rle_crop_3901035212_0.png.png imagette255983971754094779/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/2/df9c420ece76769c8c1e03a2bab0543e_40896146.png imagette255983941754094779 25598397 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25598397 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette255983971754094779 25598399 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25598399 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374850504: '1754094086_706954_1374850411_eede2da048ed100fe06ce35d26809bcf_rle_crop_3901035738_0.png'} change filename to text .imagette255983991754094779/ imagette255983991754094779/1754094086_706954_1374850411_eede2da048ed100fe06ce35d26809bcf_rle_crop_3901035738_0.png.png imagette255984001754094779/ imagette255984021754094779/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/2/b25df2ed4d26d661f4cde971bf7056bb_62755228.png imagette255983991754094779 25598400 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25598400 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette255984001754094779 25598402 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25598402 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette255984021754094779 25598393 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25598393 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374850437: '1754093967_704024_1374850350_8e406550964493b2bf5752b34f1eecf8_rle_crop_3901035219_0.png', 1374850500: '1754094086_706954_1374850411_eede2da048ed100fe06ce35d26809bcf_rle_crop_3901035733_0.png', 1374850543: '1754094206_709715_1374850506_73d89af8c8e0e912a09b3026b5c4e010_rle_crop_3901035833_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/2/e2774161eb55e8502b956418695b9524_32279466.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/2/67be6ed0e23442fa8c8b272023aadde7_56997380.png change filename to text .imagette255983931754094779/ imagette255983931754094779/1754093967_704024_1374850350_8e406550964493b2bf5752b34f1eecf8_rle_crop_3901035219_0.png.png imagette255983931754094779/1754094206_709715_1374850506_73d89af8c8e0e912a09b3026b5c4e010_rle_crop_3901035833_0.png.png imagette255983931754094779/1754094086_706954_1374850411_eede2da048ed100fe06ce35d26809bcf_rle_crop_3901035733_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/2/5358948ca573617d2cce974c256a3e30_34387887.png imagette255983931754094779 25598398 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25598398 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374850440: '1754093967_704024_1374850350_8e406550964493b2bf5752b34f1eecf8_rle_crop_3901035222_0.png', 1374850503: '1754094086_706954_1374850412_7393a751a9de238437b499fb1b489380_rle_crop_3901035722_0.png', 1374850544: '1754094206_709715_1374850495_28113ac348d1c59ebf6ab53b97ffcbe8_rle_crop_3901035847_0.png', 1374850545: '1754094206_709715_1374850495_28113ac348d1c59ebf6ab53b97ffcbe8_rle_crop_3901035851_0.png', 1374850689: '1754094566_718095_1374850642_1a47c60b0ba6911c3cb513c5767c0f8e_rle_crop_3901036670_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/2/2ca7e18c59e9502a1b8cfad0bbcacb7d_90545323.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/2/bb3ecfe20634e5b8556ea731a5f56edf_95332195.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/2/8cc8a15ed4c65938abb0371b874d8512_20334417.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/2/cbf5116fdfc5ac268cd53e923bb85d85_21227415.png change filename to text .imagette255983981754094779/ imagette255983981754094779/1754093967_704024_1374850350_8e406550964493b2bf5752b34f1eecf8_rle_crop_3901035222_0.png.png imagette255983981754094779/1754094206_709715_1374850495_28113ac348d1c59ebf6ab53b97ffcbe8_rle_crop_3901035847_0.png.png imagette255983981754094779/1754094086_706954_1374850412_7393a751a9de238437b499fb1b489380_rle_crop_3901035722_0.png.png imagette255983981754094779/1754094566_718095_1374850642_1a47c60b0ba6911c3cb513c5767c0f8e_rle_crop_3901036670_0.png.png imagette255983981754094779/1754094206_709715_1374850495_28113ac348d1c59ebf6ab53b97ffcbe8_rle_crop_3901035851_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/2/9a7bf33a6664661446d87d4de803d00a_6010588.png imagette255983981754094779 25598401 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25598401 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374850436: '1754093967_704024_1374850340_432719214f312492f477814ef7af510a_rle_crop_3901035231_0.png', 1374850496: '1754094086_706954_1374850411_eede2da048ed100fe06ce35d26809bcf_rle_crop_3901035742_0.png', 1374850640: '1754094448_715279_1374850591_cf2918fb27ec6fa656f58d424408c527_rle_crop_3901036410_0.png', 1374850641: '1754094448_715279_1374850590_6d422d1bdbf737cf47f1bd583812f95d_rle_crop_3901036420_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/2/8a157582d1f6fc796d0fbfd5246460f9_66699242.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/2/db62ae709a36ca5aa7fd40e60a6e0171_558125.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/2/6767fb6b5609d05ac21a27dd2e6998ff_65992887.png change filename to text .imagette255984011754094779/ imagette255984011754094779/1754094448_715279_1374850591_cf2918fb27ec6fa656f58d424408c527_rle_crop_3901036410_0.png.png imagette255984011754094779/1754094086_706954_1374850411_eede2da048ed100fe06ce35d26809bcf_rle_crop_3901035742_0.png.png imagette255984011754094779/1754094448_715279_1374850590_6d422d1bdbf737cf47f1bd583812f95d_rle_crop_3901036420_0.png.png imagette255984011754094779/1754093967_704024_1374850340_432719214f312492f477814ef7af510a_rle_crop_3901035231_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/2/f4c176ff45a78823d09cdd19800d5cc4_94088997.png imagette255984011754094779 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=25598358 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/25598403,25598404,25598405,25598406,25598407,25598408,25598409,25598410,25598411,25598412,25598413,25598414?tags=autre_refus,plastique,Carton_gris,cartonnette,papier,environnement,mal_croppe,Carton_brun,metal,kraft,Teint_Dans_La_Masse,flou your option no_mail is active, we will not send the real mail to your client args[1374850724] : ('0.046473615498694665',) no score found for photo 1374850724 We are sending mail with results at report@fotonower.com refus_total : 0.046473615498694665 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25598358 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_P25598358_02-08-2025_02_32_59.pdf results_Auto_P25598358_02-08-2025_02_32_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25598358_02-08-2025_02_32_59.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','25598358','results_Auto_P25598358_02-08-2025_02_32_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25598358_02-08-2025_02_32_59.pdf','pdf','','0.09','0.046473615498694665') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25598358]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1374850724] map_info['map_portfolio_photo'] : {25598358: [1374850724, 1374850696, 1374850694, 1374850668, 1374850666, 1374850665, 1374850662, 1374850646, 1374850644, 1374850643, 1374850642, 1374850613, 1374850612, 1374850611, 1374850610, 1374850592, 1374850591, 1374850590, 1374850588, 1374850526, 1374850525, 1374850524, 1374850510, 1374850506, 1374850501, 1374850495, 1374850492, 1374850474, 1374850473, 1374850471, 1374850469, 1374850467, 1374850454, 1374850450, 1374850447, 1374850444, 1374850442, 1374850441, 1374850414, 1374850413, 1374850412, 1374850411, 1374850383, 1374850373, 1374850369, 1374850365, 1374850350, 1374850340, 1374850333, 1374850313, 1374850312, 1374850307]} final : False mtd_id 4302 list_pids : [1374850724] 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, '3425093') ('4302', '25598358', '1374850724', None, None, None, None, None, '3425093') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 1 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', '25598358', '1374850724', None, None, None, None, None, '3425093')] time used for this insertion : 0.013948440551757812 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.8697800636291504 time spend to save output : 0.014093399047851562 total time spend for step 4 : 1.883873462677002 step5:split_time_score Sat Aug 2 02:33: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 : ['25598358'] 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 : [('25598358',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25598358) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1374850724: {'path': 'temp/1754094779_2490004_1374850724_ca8aedc31c345c4695c4e179596cf540.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 = 25598358; (('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 ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 25598358 group by h (('02', 52),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25598358 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 (25598358) 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 (25598358) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 02082025 25598358 Nombre de photos uploadées : 52 / 23040 (0%) 02082025 25598358 Nombre de photos taguées (types de déchets): 0 / 52 (0%) 02082025 25598358 Nombre de photos taguées (volume) : 0 / 52 (0%) [{'photo_id': 1374850313, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/2/58b02b1138ad5f45c80c34e6d16e85a7.jpg', 'username': None, 'uploaded_at': 1754093768, 'text': 'image_02082025_02_15_03_10143.jpg'}, {'photo_id': 1374850312, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/2/805ada7192250a6bb40a14f2cf29a70b.jpg', 'username': None, 'uploaded_at': 1754093768, 'text': 'image_02082025_02_15_13_10141.jpg'}, {'photo_id': 1374850307, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/2/dc4dc1693346bbe16d193cf559bca9dd.jpg', 'username': None, 'uploaded_at': 1754093768, 'text': 'image_02082025_02_15_34_10140.jpg'}, {'photo_id': 1374850373, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/2/d17191ac343f5138f7d2610a367126c0.jpg', 'username': None, 'uploaded_at': 1754093833, 'text': 'image_02082025_02_15_43_9130.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 5.245208740234375e-06 ???????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0031783580780029297 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 25598358, '2025-08-02' ) 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-08-02' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2049729,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.20661616325378418 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= 2049729 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2049729, 'dashboard_run_id': 2057555, 'mtr_portfolio_id': 25595390, 'dashboard_result_id': 13495056, '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_P25595390_02-08-2025_00_16_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25595398, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25595399, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25595400, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25595401, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25595402, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25595403, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25595404, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25595405, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25595406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25595407, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25595408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25595409, 'pht': 3726}}"}, {'dashboat_entry_day': 2049729, 'dashboard_run_id': 2057555, 'mtr_portfolio_id': 25595654, 'dashboard_result_id': 13495057, '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_P25595654_02-08-2025_00_33_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25595659, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25595660, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25595661, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25595662, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25595663, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25595664, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25595665, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25595666, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25595667, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25595668, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25595669, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25595670, 'pht': 3726}}"}, {'dashboat_entry_day': 2049729, 'dashboard_run_id': 2057555, 'mtr_portfolio_id': 25596080, 'dashboard_result_id': 13495058, '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_P25596080_02-08-2025_00_46_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25596101, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25596102, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25596103, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25596104, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25596105, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25596106, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25596107, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25596108, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25596109, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25596110, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25596111, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25596112, 'pht': 3726}}"}, {'dashboat_entry_day': 2049729, 'dashboard_run_id': 2057555, 'mtr_portfolio_id': 25596465, 'dashboard_result_id': 13495059, '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_P25596465_02-08-2025_01_17_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25596471, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25596472, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25596473, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25596474, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25596475, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25596476, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25596477, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25596478, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25596479, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25596480, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25596481, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25596482, 'pht': 3726}}"}, {'dashboat_entry_day': 2049729, 'dashboard_run_id': 2057555, 'mtr_portfolio_id': 25597427, 'dashboard_result_id': 13495060, '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_P25597427_02-08-2025_01_49_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25597436, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25597437, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25597438, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25597439, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25597440, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25597441, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25597442, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25597443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25597444, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25597445, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25597446, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25597447, 'pht': 3726}}"}, {'dashboat_entry_day': 2049729, 'dashboard_run_id': 2057555, 'mtr_portfolio_id': 25597738, 'dashboard_result_id': 13495061, '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_P25597738_02-08-2025_02_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25597746, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25597747, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25597748, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25597749, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25597750, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25597751, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25597752, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25597753, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25597754, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25597755, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25597756, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25597757, 'pht': 3726}}"}, {'dashboat_entry_day': 2049729, 'dashboard_run_id': 2057555, 'mtr_portfolio_id': 25597981, 'dashboard_result_id': 13495062, '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_P25597981_02-08-2025_02_16_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25598002, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25598003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25598004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25598005, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25598006, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25598007, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25598008, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25598009, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25598010, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25598011, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25598012, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25598013, 'pht': 3726}}"}, {'dashboat_entry_day': 2049729, 'dashboard_run_id': 2057555, 'mtr_portfolio_id': 25598358, 'dashboard_result_id': 13495063, '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_P25598358_02-08-2025_02_30_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25598391, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25598392, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25598393, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25598394, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25598395, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25598396, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25598397, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25598398, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25598399, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25598400, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25598401, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25598402, '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 = 25595390 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': 3424620, 'mtr_portfolio_id': 25595390, 'created_at': datetime.datetime(2025, 8, 2, 0, 16, 57), 'result': '0.06380500763912292', 'result_long': None, 'result_double': None}] Qualite : 0.06380500763912292 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25595390 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25595390_02-08-2025_00_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25595390 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_P25595390_02-08-2025_00_16_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25595398, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25595399, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25595400, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25595401, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25595402, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25595403, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25595404, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25595405, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25595406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25595407, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25595408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25595409, 'pht': 3726}}" where mtr_portfolio_id = 25595390 and dashboard_run_id = 2057555 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`=25595390 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13495056, 0.06380500763912292, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25595390_02-08-2025_00_16_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25595398, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25595399, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25595400, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25595401, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25595402, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25595403, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25595404, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25595405, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25595406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25595407, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25595408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25595409, '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 = 25595654 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': 3424660, 'mtr_portfolio_id': 25595654, 'created_at': datetime.datetime(2025, 8, 2, 0, 32, 59), 'result': '0.052064631463634055', 'result_long': None, 'result_double': None}] Qualite : 0.052064631463634055 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25595654 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25595654_02-08-2025_00_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25595654 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_P25595654_02-08-2025_00_33_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25595659, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25595660, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25595661, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25595662, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25595663, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25595664, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25595665, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25595666, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25595667, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25595668, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25595669, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25595670, 'pht': 3726}}" where mtr_portfolio_id = 25595654 and dashboard_run_id = 2057555 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`=25595654 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13495057, 0.052064631463634055, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25595654_02-08-2025_00_33_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25595659, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25595660, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25595661, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25595662, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25595663, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25595664, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25595665, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25595666, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25595667, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25595668, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25595669, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25595670, '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 = 25596080 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': 3424708, 'mtr_portfolio_id': 25596080, 'created_at': datetime.datetime(2025, 8, 2, 0, 46, 57), 'result': '0.042643255143462885', 'result_long': None, 'result_double': None}] Qualite : 0.042643255143462885 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25596080 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25596080_02-08-2025_00_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25596080 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_P25596080_02-08-2025_00_46_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25596101, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25596102, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25596103, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25596104, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25596105, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25596106, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25596107, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25596108, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25596109, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25596110, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25596111, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25596112, 'pht': 3726}}" where mtr_portfolio_id = 25596080 and dashboard_run_id = 2057555 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`=25596080 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13495058, 0.042643255143462885, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25596080_02-08-2025_00_46_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25596101, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25596102, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25596103, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25596104, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25596105, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25596106, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25596107, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25596108, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25596109, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25596110, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25596111, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25596112, '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 = 25596465 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': 3424746, 'mtr_portfolio_id': 25596465, 'created_at': datetime.datetime(2025, 8, 2, 1, 17), 'result': '0.025741396202413263', 'result_long': None, 'result_double': None}] Qualite : 0.025741396202413263 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25596465 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25596465_02-08-2025_01_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25596465 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_P25596465_02-08-2025_01_17_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25596471, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25596472, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25596473, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25596474, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25596475, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25596476, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25596477, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25596478, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25596479, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25596480, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25596481, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25596482, 'pht': 3726}}" where mtr_portfolio_id = 25596465 and dashboard_run_id = 2057555 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`=25596465 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13495059, 0.025741396202413263, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25596465_02-08-2025_01_17_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25596471, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25596472, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25596473, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25596474, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25596475, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25596476, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25596477, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25596478, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25596479, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25596480, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25596481, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25596482, '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 = 25597427 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': 3424932, 'mtr_portfolio_id': 25597427, 'created_at': datetime.datetime(2025, 8, 2, 1, 49), 'result': '0.05328604024542941', 'result_long': None, 'result_double': None}] Qualite : 0.05328604024542941 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25597427 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25597427_02-08-2025_01_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25597427 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_P25597427_02-08-2025_01_49_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25597436, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25597437, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25597438, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25597439, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25597440, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25597441, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25597442, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25597443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25597444, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25597445, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25597446, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25597447, 'pht': 3726}}" where mtr_portfolio_id = 25597427 and dashboard_run_id = 2057555 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`=25597427 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13495060, 0.05328604024542941, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25597427_02-08-2025_01_49_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25597436, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25597437, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25597438, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25597439, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25597440, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25597441, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25597442, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25597443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25597444, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25597445, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25597446, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25597447, '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 = 25597738 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': 3424992, 'mtr_portfolio_id': 25597738, 'created_at': datetime.datetime(2025, 8, 2, 2, 2, 59), 'result': '0.11761387545980878', 'result_long': None, 'result_double': None}] Qualite : 0.11761387545980878 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25597738 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25597738_02-08-2025_02_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25597738 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_P25597738_02-08-2025_02_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25597746, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25597747, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25597748, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25597749, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25597750, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25597751, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25597752, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25597753, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25597754, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25597755, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25597756, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25597757, 'pht': 3726}}" where mtr_portfolio_id = 25597738 and dashboard_run_id = 2057557 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`=25597738 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13495061, 0.11761387545980878, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25597738_02-08-2025_02_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25597746, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25597747, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25597748, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25597749, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25597750, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25597751, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25597752, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25597753, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25597754, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25597755, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25597756, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25597757, '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 = 25597981 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': 3425048, 'mtr_portfolio_id': 25597981, 'created_at': datetime.datetime(2025, 8, 2, 2, 16, 58), 'result': '0.05754301521843373', 'result_long': None, 'result_double': None}] Qualite : 0.05754301521843373 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25597981 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25597981_02-08-2025_02_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25597981 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_P25597981_02-08-2025_02_16_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25598002, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25598003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25598004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25598005, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25598006, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25598007, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25598008, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25598009, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25598010, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25598011, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25598012, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25598013, 'pht': 3726}}" where mtr_portfolio_id = 25597981 and dashboard_run_id = 2057557 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`=25597981 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13495062, 0.05754301521843373, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25597981_02-08-2025_02_16_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25598002, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25598003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25598004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25598005, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25598006, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25598007, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25598008, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25598009, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25598010, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25598011, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25598012, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25598013, '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 = 25598358 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': 3425093, 'mtr_portfolio_id': 25598358, 'created_at': datetime.datetime(2025, 8, 2, 2, 32, 58), 'result': '0.046473615498694665', 'result_long': None, 'result_double': None}] Qualite : 0.046473615498694665 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25598358 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25598358_02-08-2025_02_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25598358 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_P25598358_02-08-2025_02_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25598391, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25598392, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25598393, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25598394, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25598395, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25598396, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25598397, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25598398, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25598399, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25598400, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25598401, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25598402, 'pht': 3726}}" where mtr_portfolio_id = 25598358 and dashboard_run_id = 2057557 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`=25598358 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13495063, 0.046473615498694665, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25598358_02-08-2025_02_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25598391, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25598392, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25598393, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25598394, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25598395, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25598396, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25598397, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25598398, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25598399, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25598400, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25598401, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25598402, '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 (25595390,25595654,25596080,25596465,25597427,25597738,25597981,25598358) result : ((1374836743,), (1374836744,), (1374836745,), (1374836750,), (1374836751,), (1374836752,), (1374836754,), (1374836756,), (1374836764,), (1374836765,), (1374836766,), (1374836767,), (1374836774,), (1374836775,), (1374836776,), (1374836777,), (1374836778,), (1374836781,), (1374836782,), (1374836783,), (1374836784,), (1374836786,), (1374836787,), (1374836795,), (1374836796,), (1374836798,), (1374836812,), (1374836813,), (1374836814,), (1374836816,), (1374836817,), (1374836820,), (1374836832,), (1374836833,), (1374836834,), (1374836835,), (1374836855,), (1374836906,), (1374836907,), (1374836908,), (1374836909,), (1374837060,), (1374837061,), (1374837075,), (1374837099,), (1374837110,), (1374837114,), (1374837159,), (1374837160,), (1374837164,), (1374837184,), (1374837209,), (1374837234,), (1374837303,), (1374837304,), (1374837305,), (1374837307,), (1374837318,), (1374837319,), (1374837320,), (1374837322,), (1374837324,), (1374837334,), (1374837335,), (1374837336,), (1374837337,), (1374837338,), (1374837340,), (1374837348,), (1374837350,), (1374837351,), (1374837352,), (1374837370,), (1374837368,), (1374837369,), (1374837388,), (1374837389,), (1374837390,), (1374837391,), (1374837394,), (1374837414,), (1374837416,), (1374837441,), (1374837463,), (1374837484,), (1374837751,), (1374837778,), (1374837802,), (1374837827,), (1374838017,), (1374838019,), (1374838020,), (1374838028,), (1374838034,), (1374838035,), (1374838036,), (1374838037,), (1374838040,), (1374838041,), (1374838042,), (1374838044,), (1374838248,), (1374838277,), (1374838300,), (1374838323,), (1374838971,), (1374839003,), (1374839030,), (1374839053,), (1374839099,), (1374839206,), (1374839247,), (1374839280,), (1374839302,), (1374839327,), (1374839502,), (1374839537,), (1374839588,), (1374839629,), (1374840397,), (1374840475,), (1374840536,), (1374840588,), (1374840631,), (1374840681,), (1374841103,), (1374841125,), (1374841148,), (1374841170,), (1374841183,), (1374841284,), (1374841327,), (1374841373,), (1374841418,), (1374841806,), (1374841807,), (1374841839,), (1374841889,), (1374841901,), (1374841907,), (1374841920,), (1374841922,), (1374841923,), (1374841924,), (1374841928,), (1374841929,), (1374841954,), (1374841952,), (1374841953,), (1374841984,), (1374841985,), (1374841986,), (1374841987,), (1374841989,), (1374841991,), (1374841995,), (1374841996,), (1374841997,), (1374842000,), (1374842003,), (1374842005,), (1374842015,), (1374842017,), (1374842019,), (1374842021,), (1374842022,), (1374842025,), (1374842028,), (1374842031,), (1374842034,), (1374842037,), (1374842038,), (1374842039,), (1374842040,), (1374842076,), (1374842099,), (1374842125,), (1374842434,), (1374842457,), (1374842683,), (1374842710,), (1374842735,), (1374842761,), (1374842942,), (1374842948,), (1374842949,), (1374842966,), (1374842967,), (1374842969,), (1374842970,), (1374842971,), (1374843009,), (1374843010,), (1374843011,), (1374843012,), (1374843014,), (1374843019,), (1374843027,), (1374843029,), (1374843031,), (1374843032,), (1374843040,), (1374843050,), (1374843051,), (1374843054,), (1374843063,), (1374843064,), (1374843065,), (1374843066,), (1374843083,), (1374843084,), (1374843085,), (1374843087,), (1374843089,), (1374843091,), (1374843099,), (1374843100,), (1374843101,), (1374843127,), (1374843122,), (1374843123,), (1374843124,), (1374843125,), (1374843137,), (1374843138,), (1374843139,), (1374843140,), (1374843142,), (1374843242,), (1374843269,), (1374843293,), (1374843502,), (1374843521,), (1374843532,), (1374843541,), (1374843542,), (1374843543,), (1374843559,), (1374843560,), (1374843561,), (1374843582,), (1374843583,), (1374843585,), (1374843586,), (1374843589,), (1374843603,), (1374843604,), (1374843605,), (1374843623,), (1374843625,), (1374843627,), (1374843629,), (1374843630,), (1374843634,), (1374843635,), (1374843636,), (1374843637,), (1374843641,), (1374843642,), (1374843643,), (1374843644,), (1374843646,), (1374843655,), (1374843656,), (1374843687,), (1374843688,), (1374843689,), (1374843690,), (1374843693,), (1374843714,), (1374843947,), (1374843948,), (1374843949,), (1374843956,), (1374843977,), (1374844001,), (1374844636,), (1374844675,), (1374844724,), (1374845663,), (1374846659,), (1374846661,), (1374846663,), (1374846687,), (1374846688,), (1374846689,), (1374846690,), (1374846692,), (1374846693,), (1374846704,), (1374846705,), (1374846706,), (1374846738,), (1374846741,), (1374846744,), (1374846747,), (1374846749,), (1374846760,), (1374846762,), (1374846763,), (1374846764,), (1374846766,), (1374846767,), (1374846786,), (1374846788,), (1374846789,), (1374846791,), (1374846794,), (1374846807,), (1374846808,), (1374846810,), (1374846829,), (1374846833,), (1374846838,), (1374846843,), (1374846845,), (1374846846,), (1374846859,), (1374846860,), (1374846861,), (1374846863,), (1374846973,), (1374846975,), (1374847008,), (1374847000,), (1374847001,), (1374847003,), (1374847006,), (1374847023,), (1374847025,), (1374847027,), (1374847049,), (1374847052,), (1374847053,), (1374847565,), (1374847856,), (1374847857,), (1374847858,), (1374847860,), (1374847887,), (1374847889,), (1374847896,), (1374847899,), (1374847986,), (1374848390,), (1374848411,), (1374848451,), (1374849254,), (1374849257,), (1374849282,), (1374849285,), (1374849290,), (1374849291,), (1374849292,), (1374849316,), (1374849306,), (1374849308,), (1374849309,), (1374849310,), (1374849439,), (1374849463,), (1374849487,), (1374849511,), (1374849534,), (1374849561,), (1374849778,), (1374849780,), (1374849782,), (1374849784,), (1374849787,), (1374849955,), (1374849977,), (1374849993,), (1374850002,), (1374850010,), (1374850013,), (1374850019,), (1374850021,), (1374850023,), (1374850025,), (1374850026,), (1374850057,), (1374850059,), (1374850061,), (1374850063,), (1374850068,), (1374850080,), (1374850082,), (1374850083,), (1374850084,), (1374850086,), (1374850106,), (1374850107,), (1374850108,), (1374850126,), (1374850127,), (1374850128,), (1374850130,), (1374850131,), (1374850134,), (1374850147,), (1374850150,), (1374850152,), (1374850154,), (1374850156,), (1374850159,), (1374850173,), (1374850175,), (1374850176,), (1374850179,), (1374850181,), (1374850197,), (1374850198,), (1374850199,), (1374850201,), (1374850204,), (1374850207,), (1374850219,), (1374850221,), (1374850224,), (1374850228,), (1374850231,), (1374850234,), (1374850249,), (1374850251,), (1374850270,), (1374850273,), (1374850274,), (1374850275,), (1374850315,), (1374850307,), (1374850312,), (1374850313,), (1374850333,), (1374850340,), (1374850350,), (1374850365,), (1374850369,), (1374850373,), (1374850383,), (1374850411,), (1374850412,), (1374850413,), (1374850414,), (1374850441,), (1374850442,), (1374850444,), (1374850447,), (1374850450,), (1374850454,), (1374850467,), (1374850469,), (1374850471,), (1374850473,), (1374850474,), (1374850492,), (1374850495,), (1374850501,), (1374850506,), (1374850510,), (1374850524,), (1374850525,), (1374850526,), (1374850588,), (1374850590,), (1374850591,), (1374850592,), (1374850610,), (1374850611,), (1374850612,), (1374850613,), (1374850642,), (1374850643,), (1374850644,), (1374850646,), (1374850662,), (1374850665,), (1374850666,), (1374850668,), (1374850694,), (1374850696,), (1374850724,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'02082025': {'nb_upload': 52, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25598358]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1374850724] map_info['map_portfolio_photo'] : {25598358: [1374850724, 1374850696, 1374850694, 1374850668, 1374850666, 1374850665, 1374850662, 1374850646, 1374850644, 1374850643, 1374850642, 1374850613, 1374850612, 1374850611, 1374850610, 1374850592, 1374850591, 1374850590, 1374850588, 1374850526, 1374850525, 1374850524, 1374850510, 1374850506, 1374850501, 1374850495, 1374850492, 1374850474, 1374850473, 1374850471, 1374850469, 1374850467, 1374850454, 1374850450, 1374850447, 1374850444, 1374850442, 1374850441, 1374850414, 1374850413, 1374850412, 1374850411, 1374850383, 1374850373, 1374850369, 1374850365, 1374850350, 1374850340, 1374850333, 1374850313, 1374850312, 1374850307]} final : True mtd_id 4302 list_pids : [1374850724] Looping around the photos to save general results len do output : 1 /25598358Didn'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, '3425093') ('4302', '25598358', '1374850724', None, None, None, None, None, '3425093') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 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, '25598358', 'None', None, None, None, None, '3425093'), ('4302', '25598358', '1374850724', None, None, None, None, None, '3425093')] time used for this insertion : 0.012136459350585938 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.7286531925201416 time spend to save output : 0.012287616729736328 total time spend for step 5 : 0.7409408092498779 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 (3425093) 1.70user 2.35system 0:06.96elapsed 58%CPU (0avgtext+0avgdata 156144maxresident)k 16inputs+3304outputs (1major+61992minor)pagefaults 0swaps