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 : 1447613 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 (3525766) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3525766) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25960559 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3525766'] with mtr_portfolio_ids : ['25960559'] and first list_photo_ids : [] new path : /proc/1447613/ Name: python3 Umask: 0002 State: R (running) Tgid: 1447613 Ngid: 0 Pid: 1447613 PPid: 1447612 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1447613 NSpid: 1447613 NSpgid: 1446348 NSsid: 1446348 VmPeak: 1107252 kB VmSize: 1107252 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 100724 kB VmRSS: 100724 kB RssAnon: 60160 kB RssFile: 40564 kB RssShmem: 0 kB VmData: 866004 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 588 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 50 nonvoluntary_ctxt_switches: 59 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1447613', 'Ngid': '0', 'Pid': '1447613', 'PPid': '1447612', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1447613', 'NSpid': '1447613', 'NSpgid': '1446348', 'NSsid': '1446348', 'VmPeak': '1107252 kB', 'VmSize': '1107252 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '100724 kB', 'VmRSS': '100724 kB', 'RssAnon': '60160 kB', 'RssFile': '40564 kB', 'RssShmem': '0 kB', 'VmData': '866004 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '588 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '50', 'nonvoluntary_ctxt_switches': '59'} ('datou_batch_current', '1447613', '1107252', '0', '1107252', '866004', '100724', b'', 'marlene', '3525766') 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 (25960559) 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 (3525766 ) ) 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 (25960559) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1376924053, 'portfolio_id': 25960559}, {'photo_id': 1376924052, 'portfolio_id': 25960559}, {'photo_id': 1376924051, 'portfolio_id': 25960559}, {'photo_id': 1376924048, 'portfolio_id': 25960559}, {'photo_id': 1376924046, 'portfolio_id': 25960559}, {'photo_id': 1376924043, 'portfolio_id': 25960559}, {'photo_id': 1376924032, 'portfolio_id': 25960559}, {'photo_id': 1376924014, 'portfolio_id': 25960559}, {'photo_id': 1376924000, 'portfolio_id': 25960559}, {'photo_id': 1376923986, 'portfolio_id': 25960559}, {'photo_id': 1376923786, 'portfolio_id': 25960559}, {'photo_id': 1376922643, 'portfolio_id': 25960559}, {'photo_id': 1376921894, 'portfolio_id': 25960559}, {'photo_id': 1376921553, 'portfolio_id': 25960559}, {'photo_id': 1376921525, 'portfolio_id': 25960559}, {'photo_id': 1376921470, 'portfolio_id': 25960559}, {'photo_id': 1376920762, 'portfolio_id': 25960559}, {'photo_id': 1376920680, 'portfolio_id': 25960559}, {'photo_id': 1376920592, 'portfolio_id': 25960559}, {'photo_id': 1376919660, 'portfolio_id': 25960559}, {'photo_id': 1376919555, 'portfolio_id': 25960559}, {'photo_id': 1376919470, 'portfolio_id': 25960559}, {'photo_id': 1376919381, 'portfolio_id': 25960559}, {'photo_id': 1376918752, 'portfolio_id': 25960559}, {'photo_id': 1376918689, 'portfolio_id': 25960559}, {'photo_id': 1376918625, 'portfolio_id': 25960559}, {'photo_id': 1376918569, 'portfolio_id': 25960559}, {'photo_id': 1376917885, 'portfolio_id': 25960559}, {'photo_id': 1376917816, 'portfolio_id': 25960559}, {'photo_id': 1376917238, 'portfolio_id': 25960559}, {'photo_id': 1376917182, 'portfolio_id': 25960559}, {'photo_id': 1376916882, 'portfolio_id': 25960559}, {'photo_id': 1376916850, 'portfolio_id': 25960559}, {'photo_id': 1376916806, 'portfolio_id': 25960559}, {'photo_id': 1376916778, 'portfolio_id': 25960559}] map_portfolio_id_photo_id: {25960559: [1376924053, 1376924052, 1376924051, 1376924048, 1376924046, 1376924043, 1376924032, 1376924014, 1376924000, 1376923986, 1376923786, 1376922643, 1376921894, 1376921553, 1376921525, 1376921470, 1376920762, 1376920680, 1376920592, 1376919660, 1376919555, 1376919470, 1376919381, 1376918752, 1376918689, 1376918625, 1376918569, 1376917885, 1376917816, 1376917238, 1376917182, 1376916882, 1376916850, 1376916806, 1376916778]} ##### 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.015162944793701172 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Thu Aug 14 02:14:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25960559) 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 : 25960559 get user id for portfolio 25960559 get sub ptf for main ptf 25960559, type 3726 and hashtags ['metal', 'kraft', 'mal_croppe', 'Carton_brun', 'flou', 'papier', 'environnement', 'cartonnette', 'Teint_Dans_La_Masse', 'Carton_gris', 'autre_refus', 'plastique'] 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`=25960559 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','kraft','mal_croppe','Carton_brun','flou','papier','environnement','cartonnette','Teint_Dans_La_Masse','Carton_gris','autre_refus','plastique')) 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`=25960559 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','kraft','mal_croppe','Carton_brun','flou','papier','environnement','cartonnette','Teint_Dans_La_Masse','Carton_gris','autre_refus','plastique')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 25960559, 'sub_port_id': 25960569, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17489456, 'last_updated_at': datetime.datetime(2025, 8, 14, 2, 13), 'last_updated_at_desc': datetime.datetime(2025, 8, 14, 2, 13), 'last_updated_at_asc': datetime.datetime(2025, 8, 14, 2, 3, 26)}, 'plastique': {'main_port_id': 25960559, 'sub_port_id': 25960570, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17489457, 'last_updated_at': datetime.datetime(2025, 8, 14, 2, 13), 'last_updated_at_desc': datetime.datetime(2025, 8, 14, 2, 13), 'last_updated_at_asc': datetime.datetime(2025, 8, 14, 2, 3, 26)}, 'flou': {'main_port_id': 25960559, 'sub_port_id': 25960571, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17489458, 'last_updated_at': datetime.datetime(2025, 8, 14, 2, 13), 'last_updated_at_desc': datetime.datetime(2025, 8, 14, 2, 13), 'last_updated_at_asc': datetime.datetime(2025, 8, 14, 2, 3, 26)}, 'autre_refus': {'main_port_id': 25960559, 'sub_port_id': 25960572, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17489459, 'last_updated_at': datetime.datetime(2025, 8, 14, 2, 13), 'last_updated_at_desc': datetime.datetime(2025, 8, 14, 2, 13), 'last_updated_at_asc': datetime.datetime(2025, 8, 14, 2, 3, 26)}, 'papier': {'main_port_id': 25960559, 'sub_port_id': 25960573, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17489460, 'last_updated_at': datetime.datetime(2025, 8, 14, 2, 13), 'last_updated_at_desc': datetime.datetime(2025, 8, 14, 2, 13), 'last_updated_at_asc': datetime.datetime(2025, 8, 14, 2, 3, 26)}, 'cartonnette': {'main_port_id': 25960559, 'sub_port_id': 25960574, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17489461, 'last_updated_at': datetime.datetime(2025, 8, 14, 2, 13), 'last_updated_at_desc': datetime.datetime(2025, 8, 14, 2, 13), 'last_updated_at_asc': datetime.datetime(2025, 8, 14, 2, 3, 26)}, 'Carton_gris': {'main_port_id': 25960559, 'sub_port_id': 25960575, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17489462, 'last_updated_at': datetime.datetime(2025, 8, 14, 2, 13), 'last_updated_at_desc': datetime.datetime(2025, 8, 14, 2, 13), 'last_updated_at_asc': datetime.datetime(2025, 8, 14, 2, 3, 26)}, 'Teint_Dans_La_Masse': {'main_port_id': 25960559, 'sub_port_id': 25960576, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17489463, 'last_updated_at': datetime.datetime(2025, 8, 14, 2, 13), 'last_updated_at_desc': datetime.datetime(2025, 8, 14, 2, 13), 'last_updated_at_asc': datetime.datetime(2025, 8, 14, 2, 3, 26)}, 'kraft': {'main_port_id': 25960559, 'sub_port_id': 25960577, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17489464, 'last_updated_at': datetime.datetime(2025, 8, 14, 2, 13), 'last_updated_at_desc': datetime.datetime(2025, 8, 14, 2, 13), 'last_updated_at_asc': datetime.datetime(2025, 8, 14, 2, 3, 26)}, 'metal': {'main_port_id': 25960559, 'sub_port_id': 25960578, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17489465, 'last_updated_at': datetime.datetime(2025, 8, 14, 2, 13), 'last_updated_at_desc': datetime.datetime(2025, 8, 14, 2, 13), 'last_updated_at_asc': datetime.datetime(2025, 8, 14, 2, 3, 26)}, 'Carton_brun': {'main_port_id': 25960559, 'sub_port_id': 25960579, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17489466, 'last_updated_at': datetime.datetime(2025, 8, 14, 2, 13), 'last_updated_at_desc': datetime.datetime(2025, 8, 14, 2, 13), 'last_updated_at_asc': datetime.datetime(2025, 8, 14, 2, 3, 26)}, 'mal_croppe': {'main_port_id': 25960559, 'sub_port_id': 25960580, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17489467, 'last_updated_at': datetime.datetime(2025, 8, 14, 2, 13), 'last_updated_at_desc': datetime.datetime(2025, 8, 14, 2, 13), 'last_updated_at_asc': datetime.datetime(2025, 8, 14, 2, 3, 26)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25960569 , 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=25960559 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 (25960569) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25960559) result : ((1376916778,), (1376916806,), (1376916850,), (1376916882,), (1376917182,), (1376917238,), (1376917816,), (1376917885,), (1376918569,), (1376918625,), (1376918689,), (1376918752,), (1376919381,), (1376919470,), (1376919555,), (1376919660,), (1376920592,), (1376920680,), (1376920762,), (1376921470,), (1376921525,), (1376921553,), (1376921894,), (1376922643,), (1376923786,), (1376923986,), (1376924000,), (1376924014,), (1376924032,), (1376924043,), (1376924046,), (1376924048,), (1376924051,), (1376924052,), (1376924053,)) 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 (1376924000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25960570 , 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=25960559 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 (25960570) result : ((1376920509,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25960559) result : ((1376916778,), (1376916806,), (1376916850,), (1376916882,), (1376917182,), (1376917238,), (1376917816,), (1376917885,), (1376918569,), (1376918625,), (1376918689,), (1376918752,), (1376919381,), (1376919470,), (1376919555,), (1376919660,), (1376920592,), (1376920680,), (1376920762,), (1376921470,), (1376921525,), (1376921553,), (1376921894,), (1376922643,), (1376923786,), (1376923986,), (1376924000,), (1376924014,), (1376924032,), (1376924043,), (1376924046,), (1376924048,), (1376924051,), (1376924052,), (1376924053,)) 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 (1376924000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25960571 , 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=25960559 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 (25960571) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25960559) result : ((1376916778,), (1376916806,), (1376916850,), (1376916882,), (1376917182,), (1376917238,), (1376917816,), (1376917885,), (1376918569,), (1376918625,), (1376918689,), (1376918752,), (1376919381,), (1376919470,), (1376919555,), (1376919660,), (1376920592,), (1376920680,), (1376920762,), (1376921470,), (1376921525,), (1376921553,), (1376921894,), (1376922643,), (1376923786,), (1376923986,), (1376924000,), (1376924014,), (1376924032,), (1376924043,), (1376924046,), (1376924048,), (1376924051,), (1376924052,), (1376924053,)) 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 (1376924000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25960572 , 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=25960559 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 (25960572) result : ((1376921789,), (1376921791,), (1376924054,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25960559) result : ((1376916778,), (1376916806,), (1376916850,), (1376916882,), (1376917182,), (1376917238,), (1376917816,), (1376917885,), (1376918569,), (1376918625,), (1376918689,), (1376918752,), (1376919381,), (1376919470,), (1376919555,), (1376919660,), (1376920592,), (1376920680,), (1376920762,), (1376921470,), (1376921525,), (1376921553,), (1376921894,), (1376922643,), (1376923786,), (1376923986,), (1376924000,), (1376924014,), (1376924032,), (1376924043,), (1376924046,), (1376924048,), (1376924051,), (1376924052,), (1376924053,)) 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 (1376924000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25960573 , 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=25960559 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 (25960573) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25960559) result : ((1376916778,), (1376916806,), (1376916850,), (1376916882,), (1376917182,), (1376917238,), (1376917816,), (1376917885,), (1376918569,), (1376918625,), (1376918689,), (1376918752,), (1376919381,), (1376919470,), (1376919555,), (1376919660,), (1376920592,), (1376920680,), (1376920762,), (1376921470,), (1376921525,), (1376921553,), (1376921894,), (1376922643,), (1376923786,), (1376923986,), (1376924000,), (1376924014,), (1376924032,), (1376924043,), (1376924046,), (1376924048,), (1376924051,), (1376924052,), (1376924053,)) 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 (1376924000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25960574 , 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=25960559 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 (25960574) result : ((1376920459,), (1376921806,), (1376921808,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25960559) result : ((1376916778,), (1376916806,), (1376916850,), (1376916882,), (1376917182,), (1376917238,), (1376917816,), (1376917885,), (1376918569,), (1376918625,), (1376918689,), (1376918752,), (1376919381,), (1376919470,), (1376919555,), (1376919660,), (1376920592,), (1376920680,), (1376920762,), (1376921470,), (1376921525,), (1376921553,), (1376921894,), (1376922643,), (1376923786,), (1376923986,), (1376924000,), (1376924014,), (1376924032,), (1376924043,), (1376924046,), (1376924048,), (1376924051,), (1376924052,), (1376924053,)) 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 (1376924000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25960575 , 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=25960559 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 (25960575) result : ((1376920428,), (1376920433,), (1376920438,), (1376921799,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25960559) result : ((1376916778,), (1376916806,), (1376916850,), (1376916882,), (1376917182,), (1376917238,), (1376917816,), (1376917885,), (1376918569,), (1376918625,), (1376918689,), (1376918752,), (1376919381,), (1376919470,), (1376919555,), (1376919660,), (1376920592,), (1376920680,), (1376920762,), (1376921470,), (1376921525,), (1376921553,), (1376921894,), (1376922643,), (1376923786,), (1376923986,), (1376924000,), (1376924014,), (1376924032,), (1376924043,), (1376924046,), (1376924048,), (1376924051,), (1376924052,), (1376924053,)) 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 (1376924000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25960576 , 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=25960559 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 (25960576) result : ((1376920392,), (1376920397,), (1376923927,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25960559) result : ((1376916778,), (1376916806,), (1376916850,), (1376916882,), (1376917182,), (1376917238,), (1376917816,), (1376917885,), (1376918569,), (1376918625,), (1376918689,), (1376918752,), (1376919381,), (1376919470,), (1376919555,), (1376919660,), (1376920592,), (1376920680,), (1376920762,), (1376921470,), (1376921525,), (1376921553,), (1376921894,), (1376922643,), (1376923786,), (1376923986,), (1376924000,), (1376924014,), (1376924032,), (1376924043,), (1376924046,), (1376924048,), (1376924051,), (1376924052,), (1376924053,)) 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 (1376924000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25960577 , 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=25960559 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 (25960577) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25960559) result : ((1376916778,), (1376916806,), (1376916850,), (1376916882,), (1376917182,), (1376917238,), (1376917816,), (1376917885,), (1376918569,), (1376918625,), (1376918689,), (1376918752,), (1376919381,), (1376919470,), (1376919555,), (1376919660,), (1376920592,), (1376920680,), (1376920762,), (1376921470,), (1376921525,), (1376921553,), (1376921894,), (1376922643,), (1376923786,), (1376923986,), (1376924000,), (1376924014,), (1376924032,), (1376924043,), (1376924046,), (1376924048,), (1376924051,), (1376924052,), (1376924053,)) 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 (1376924000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25960578 , 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=25960559 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 (25960578) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25960559) result : ((1376916778,), (1376916806,), (1376916850,), (1376916882,), (1376917182,), (1376917238,), (1376917816,), (1376917885,), (1376918569,), (1376918625,), (1376918689,), (1376918752,), (1376919381,), (1376919470,), (1376919555,), (1376919660,), (1376920592,), (1376920680,), (1376920762,), (1376921470,), (1376921525,), (1376921553,), (1376921894,), (1376922643,), (1376923786,), (1376923986,), (1376924000,), (1376924014,), (1376924032,), (1376924043,), (1376924046,), (1376924048,), (1376924051,), (1376924052,), (1376924053,)) 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 (1376924000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25960579 , 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=25960559 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 (25960579) result : ((1376920485,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25960559) result : ((1376916778,), (1376916806,), (1376916850,), (1376916882,), (1376917182,), (1376917238,), (1376917816,), (1376917885,), (1376918569,), (1376918625,), (1376918689,), (1376918752,), (1376919381,), (1376919470,), (1376919555,), (1376919660,), (1376920592,), (1376920680,), (1376920762,), (1376921470,), (1376921525,), (1376921553,), (1376921894,), (1376922643,), (1376923786,), (1376923986,), (1376924000,), (1376924014,), (1376924032,), (1376924043,), (1376924046,), (1376924048,), (1376924051,), (1376924052,), (1376924053,)) 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 (1376924000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25960580 , 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=25960559 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 (25960580) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25960559) result : ((1376916778,), (1376916806,), (1376916850,), (1376916882,), (1376917182,), (1376917238,), (1376917816,), (1376917885,), (1376918569,), (1376918625,), (1376918689,), (1376918752,), (1376919381,), (1376919470,), (1376919555,), (1376919660,), (1376920592,), (1376920680,), (1376920762,), (1376921470,), (1376921525,), (1376921553,), (1376921894,), (1376922643,), (1376923786,), (1376923986,), (1376924000,), (1376924014,), (1376924032,), (1376924043,), (1376924046,), (1376924048,), (1376924051,), (1376924052,), (1376924053,)) 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 (1376924000) and cspi.crop_hashtag_id = chi.id; 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`=25960559 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','kraft','mal_croppe','Carton_brun','flou','papier','environnement','cartonnette','Teint_Dans_La_Masse','Carton_gris','autre_refus','plastique')) 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`=25960559 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','kraft','mal_croppe','Carton_brun','flou','papier','environnement','cartonnette','Teint_Dans_La_Masse','Carton_gris','autre_refus','plastique')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 25960559, 'sub_port_id': 25960582, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17489468, 'last_updated_at': datetime.datetime(2025, 8, 14, 2, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 8, 14, 2, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 8, 14, 2, 3, 33)}, 'plastique': {'main_port_id': 25960559, 'sub_port_id': 25960583, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17489469, 'last_updated_at': datetime.datetime(2025, 8, 14, 2, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 8, 14, 2, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 8, 14, 2, 3, 33)}, 'flou': {'main_port_id': 25960559, 'sub_port_id': 25960584, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17489470, 'last_updated_at': datetime.datetime(2025, 8, 14, 2, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 8, 14, 2, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 8, 14, 2, 3, 33)}, 'autre_refus': {'main_port_id': 25960559, 'sub_port_id': 25960585, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17489471, 'last_updated_at': datetime.datetime(2025, 8, 14, 2, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 8, 14, 2, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 8, 14, 2, 3, 33)}, 'papier': {'main_port_id': 25960559, 'sub_port_id': 25960586, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17489472, 'last_updated_at': datetime.datetime(2025, 8, 14, 2, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 8, 14, 2, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 8, 14, 2, 3, 33)}, 'cartonnette': {'main_port_id': 25960559, 'sub_port_id': 25960587, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17489473, 'last_updated_at': datetime.datetime(2025, 8, 14, 2, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 8, 14, 2, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 8, 14, 2, 3, 33)}, 'Carton_gris': {'main_port_id': 25960559, 'sub_port_id': 25960588, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17489474, 'last_updated_at': datetime.datetime(2025, 8, 14, 2, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 8, 14, 2, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 8, 14, 2, 3, 33)}, 'Teint_Dans_La_Masse': {'main_port_id': 25960559, 'sub_port_id': 25960589, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17489475, 'last_updated_at': datetime.datetime(2025, 8, 14, 2, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 8, 14, 2, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 8, 14, 2, 3, 33)}, 'kraft': {'main_port_id': 25960559, 'sub_port_id': 25960590, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17489476, 'last_updated_at': datetime.datetime(2025, 8, 14, 2, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 8, 14, 2, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 8, 14, 2, 3, 33)}, 'metal': {'main_port_id': 25960559, 'sub_port_id': 25960591, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17489477, 'last_updated_at': datetime.datetime(2025, 8, 14, 2, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 8, 14, 2, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 8, 14, 2, 3, 33)}, 'Carton_brun': {'main_port_id': 25960559, 'sub_port_id': 25960592, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17489478, 'last_updated_at': datetime.datetime(2025, 8, 14, 2, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 8, 14, 2, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 8, 14, 2, 3, 33)}, 'mal_croppe': {'main_port_id': 25960559, 'sub_port_id': 25960593, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17489479, 'last_updated_at': datetime.datetime(2025, 8, 14, 2, 13), 'last_updated_at_desc': datetime.datetime(2025, 8, 14, 2, 13), 'last_updated_at_asc': datetime.datetime(2025, 8, 14, 2, 3, 33)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25960582,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25960569 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25960583,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25960570 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25960584,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25960571 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25960585,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25960572 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25960586,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25960573 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25960587,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25960574 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25960588,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25960575 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25960589,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25960576 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25960590,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25960577 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25960591,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25960578 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25960592,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25960579 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25960593,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25960580 lien utilise dans velours : https://www.fotonower.com/velours/25960582,25960583,25960584,25960585,25960586,25960587,25960588,25960589,25960590,25960591,25960592,25960593?tags=environnement,plastique,flou,autre_refus,papier,cartonnette,Carton_gris,Teint_Dans_La_Masse,kraft,metal,Carton_brun,mal_croppe After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25960559]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1376924053, 1376924052, 1376924051, 1376924048, 1376924046, 1376924043, 1376924032, 1376924014, 1376924000, 1376923986] map_info['map_portfolio_photo'] : {25960559: [1376924053, 1376924052, 1376924051, 1376924048, 1376924046, 1376924043, 1376924032, 1376924014, 1376924000, 1376923986, 1376923786, 1376922643, 1376921894, 1376921553, 1376921525, 1376921470, 1376920762, 1376920680, 1376920592, 1376919660, 1376919555, 1376919470, 1376919381, 1376918752, 1376918689, 1376918625, 1376918569, 1376917885, 1376917816, 1376917238, 1376917182, 1376916882, 1376916850, 1376916806, 1376916778]} final : False mtd_id 4302 list_pids : [1376924053, 1376924052, 1376924051, 1376924048, 1376924046, 1376924043, 1376924032, 1376924014, 1376924000, 1376923986] Looping around the photos to save general results len do output : 1 /25960559. 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, '3525766') ('4302', '25960559', '1376924053', None, None, None, None, None, '3525766') ('4302', None, None, None, None, None, None, None, '3525766') ('4302', '25960559', '1376924052', None, None, None, None, None, '3525766') ('4302', None, None, None, None, None, None, None, '3525766') ('4302', '25960559', '1376924051', None, None, None, None, None, '3525766') ('4302', None, None, None, None, None, None, None, '3525766') ('4302', '25960559', '1376924048', None, None, None, None, None, '3525766') ('4302', None, None, None, None, None, None, None, '3525766') ('4302', '25960559', '1376924046', None, None, None, None, None, '3525766') ('4302', None, None, None, None, None, None, None, '3525766') ('4302', '25960559', '1376924043', None, None, None, None, None, '3525766') ('4302', None, None, None, None, None, None, None, '3525766') ('4302', '25960559', '1376924032', None, None, None, None, None, '3525766') ('4302', None, None, None, None, None, None, None, '3525766') ('4302', '25960559', '1376924014', None, None, None, None, None, '3525766') ('4302', None, None, None, None, None, None, None, '3525766') ('4302', '25960559', '1376924000', None, None, None, None, None, '3525766') ('4302', None, None, None, None, None, None, None, '3525766') ('4302', '25960559', '1376923986', None, None, None, None, None, '3525766') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '25960559', "{'environnement': 25960569, 'plastique': 25960570, 'flou': 25960571, 'autre_refus': 25960572, 'papier': 25960573, 'cartonnette': 25960574, 'Carton_gris': 25960575, 'Teint_Dans_La_Masse': 25960576, 'kraft': 25960577, 'metal': 25960578, 'Carton_brun': 25960579, 'mal_croppe': 25960580}", None, None, None, None, '3525766'), ('4302', '25960559', '1376924053', None, None, None, None, None, '3525766'), ('4302', '25960559', '1376924052', None, None, None, None, None, '3525766'), ('4302', '25960559', '1376924051', None, None, None, None, None, '3525766'), ('4302', '25960559', '1376924048', None, None, None, None, None, '3525766'), ('4302', '25960559', '1376924046', None, None, None, None, None, '3525766'), ('4302', '25960559', '1376924043', None, None, None, None, None, '3525766'), ('4302', '25960559', '1376924032', None, None, None, None, None, '3525766'), ('4302', '25960559', '1376924014', None, None, None, None, None, '3525766'), ('4302', '25960559', '1376924000', None, None, None, None, None, '3525766'), ('4302', '25960559', '1376923986', None, None, None, None, None, '3525766')] time used for this insertion : 0.017647266387939453 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4262959957122803 time spend to save output : 0.0179445743560791 total time spend for step 1 : 0.4442405700683594 step2:final Thu Aug 14 02:14: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 (25960559) 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 25960559 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1376916882,1376916850,1376916806,1376916778,1376917238,1376917182,1376917885,1376917816,1376918752,1376918689,1376918625,1376918569,1376919660,1376919555,1376919470,1376919381,1376920762,1376920680,1376920592,1376921553,1376921525,1376921470,1376922643,1376921894,1376923786,1376924043,1376924032,1376924014,1376924000,1376923986,1376924053,1376924052,1376924051,1376924048,1376924046); 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([25960559]) Inside saveOutput : final : False verbose : True original output for save of step final : {1376924053: ('0.050279387285392635',), 1376924052: ('0.050279387285392635',), 1376924051: ('0.050279387285392635',), 1376924048: ('0.050279387285392635',), 1376924046: ('0.050279387285392635',), 1376924043: ('0.050279387285392635',), 1376924032: ('0.050279387285392635',), 1376924014: ('0.050279387285392635',), 1376924000: ('0.050279387285392635',), 1376923986: ('0.050279387285392635',)} new output for save of step final : {1376924053: ('0.050279387285392635',), 1376924052: ('0.050279387285392635',), 1376924051: ('0.050279387285392635',), 1376924048: ('0.050279387285392635',), 1376924046: ('0.050279387285392635',), 1376924043: ('0.050279387285392635',), 1376924032: ('0.050279387285392635',), 1376924014: ('0.050279387285392635',), 1376924000: ('0.050279387285392635',), 1376923986: ('0.050279387285392635',)} [1376924053, 1376924052, 1376924051, 1376924048, 1376924046, 1376924043, 1376924032, 1376924014, 1376924000, 1376923986] map_info['map_portfolio_photo'] : {25960559: [1376924053, 1376924052, 1376924051, 1376924048, 1376924046, 1376924043, 1376924032, 1376924014, 1376924000, 1376923986, 1376923786, 1376922643, 1376921894, 1376921553, 1376921525, 1376921470, 1376920762, 1376920680, 1376920592, 1376919660, 1376919555, 1376919470, 1376919381, 1376918752, 1376918689, 1376918625, 1376918569, 1376917885, 1376917816, 1376917238, 1376917182, 1376916882, 1376916850, 1376916806, 1376916778]} final : False mtd_id 4302 list_pids : [1376924053, 1376924052, 1376924051, 1376924048, 1376924046, 1376924043, 1376924032, 1376924014, 1376924000, 1376923986] Looping around the photos to save general results len do output : 10 /1376924053.Didn't retrieve data . /1376924052.Didn't retrieve data . /1376924051.Didn't retrieve data . /1376924048.Didn't retrieve data . /1376924046.Didn't retrieve data . /1376924043.Didn't retrieve data . /1376924032.Didn't retrieve data . /1376924014.Didn't retrieve data . /1376924000.Didn't retrieve data . /1376923986.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, '3525766') ('4302', '25960559', '1376924053', None, None, None, None, None, '3525766') ('4302', None, None, None, None, None, None, None, '3525766') ('4302', '25960559', '1376924052', None, None, None, None, None, '3525766') ('4302', None, None, None, None, None, None, None, '3525766') ('4302', '25960559', '1376924051', None, None, None, None, None, '3525766') ('4302', None, None, None, None, None, None, None, '3525766') ('4302', '25960559', '1376924048', None, None, None, None, None, '3525766') ('4302', None, None, None, None, None, None, None, '3525766') ('4302', '25960559', '1376924046', None, None, None, None, None, '3525766') ('4302', None, None, None, None, None, None, None, '3525766') ('4302', '25960559', '1376924043', None, None, None, None, None, '3525766') ('4302', None, None, None, None, None, None, None, '3525766') ('4302', '25960559', '1376924032', None, None, None, None, None, '3525766') ('4302', None, None, None, None, None, None, None, '3525766') ('4302', '25960559', '1376924014', None, None, None, None, None, '3525766') ('4302', None, None, None, None, None, None, None, '3525766') ('4302', '25960559', '1376924000', None, None, None, None, None, '3525766') ('4302', None, None, None, None, None, None, None, '3525766') ('4302', '25960559', '1376923986', None, None, None, None, None, '3525766') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 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', '25960559', '1376924053', '0.050279387285392635', None, None, None, None, '3525766'), ('4302', '25960559', '1376924052', '0.050279387285392635', None, None, None, None, '3525766'), ('4302', '25960559', '1376924051', '0.050279387285392635', None, None, None, None, '3525766'), ('4302', '25960559', '1376924048', '0.050279387285392635', None, None, None, None, '3525766'), ('4302', '25960559', '1376924046', '0.050279387285392635', None, None, None, None, '3525766'), ('4302', '25960559', '1376924043', '0.050279387285392635', None, None, None, None, '3525766'), ('4302', '25960559', '1376924032', '0.050279387285392635', None, None, None, None, '3525766'), ('4302', '25960559', '1376924014', '0.050279387285392635', None, None, None, None, '3525766'), ('4302', '25960559', '1376924000', '0.050279387285392635', None, None, None, None, '3525766'), ('4302', '25960559', '1376923986', '0.050279387285392635', None, None, None, None, '3525766')] time used for this insertion : 0.013599157333374023 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06803107261657715 time spend to save output : 0.014104843139648438 total time spend for step 2 : 0.08213591575622559 step3:velours_tree Thu Aug 14 02:14: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 : {25960559: [{'environnement': 25960569, 'plastique': 25960570, 'flou': 25960571, 'autre_refus': 25960572, 'papier': 25960573, 'cartonnette': 25960574, 'Carton_gris': 25960575, 'Teint_Dans_La_Masse': 25960576, 'kraft': 25960577, 'metal': 25960578, 'Carton_brun': 25960579, 'mal_croppe': 25960580}]} input_args_next_step : {25960559: ()} output_args : {25960559: [{'environnement': 25960569, 'plastique': 25960570, 'flou': 25960571, 'autre_refus': 25960572, 'papier': 25960573, 'cartonnette': 25960574, 'Carton_gris': 25960575, 'Teint_Dans_La_Masse': 25960576, 'kraft': 25960577, 'metal': 25960578, 'Carton_brun': 25960579, 'mal_croppe': 25960580}]} args : 25960559 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 : ({'environnement': 25960569, 'plastique': 25960570, 'flou': 25960571, 'autre_refus': 25960572, 'papier': 25960573, 'cartonnette': 25960574, 'Carton_gris': 25960575, 'Teint_Dans_La_Masse': 25960576, 'kraft': 25960577, 'metal': 25960578, 'Carton_brun': 25960579, 'mal_croppe': 25960580},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25960559) 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([25960559]) 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.27925992012023926 time spend to save output : 5.173683166503906e-05 total time spend for step 3 : 0.2793116569519043 step4:send_mail_cod Thu Aug 14 02:14: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 : {1376924053: ('0.050279387285392635',), 1376924052: ('0.050279387285392635',), 1376924051: ('0.050279387285392635',), 1376924048: ('0.050279387285392635',), 1376924046: ('0.050279387285392635',), 1376924043: ('0.050279387285392635',), 1376924032: ('0.050279387285392635',), 1376924014: ('0.050279387285392635',), 1376924000: ('0.050279387285392635',), 1376923986: ('0.050279387285392635',)} input_args_next_step : {1376924053: ()} output_args : {1376924053: ('0.050279387285392635',), 1376924052: ('0.050279387285392635',), 1376924051: ('0.050279387285392635',), 1376924048: ('0.050279387285392635',), 1376924046: ('0.050279387285392635',), 1376924043: ('0.050279387285392635',), 1376924032: ('0.050279387285392635',), 1376924014: ('0.050279387285392635',), 1376924000: ('0.050279387285392635',), 1376923986: ('0.050279387285392635',)} args : 1376924053 depend.output_id : 0 input_args_next_step : {1376924053: ('0.050279387285392635',), 1376924052: ()} output_args : {1376924053: ('0.050279387285392635',), 1376924052: ('0.050279387285392635',), 1376924051: ('0.050279387285392635',), 1376924048: ('0.050279387285392635',), 1376924046: ('0.050279387285392635',), 1376924043: ('0.050279387285392635',), 1376924032: ('0.050279387285392635',), 1376924014: ('0.050279387285392635',), 1376924000: ('0.050279387285392635',), 1376923986: ('0.050279387285392635',)} args : 1376924052 depend.output_id : 0 input_args_next_step : {1376924053: ('0.050279387285392635',), 1376924052: ('0.050279387285392635',), 1376924051: ()} output_args : {1376924053: ('0.050279387285392635',), 1376924052: ('0.050279387285392635',), 1376924051: ('0.050279387285392635',), 1376924048: ('0.050279387285392635',), 1376924046: ('0.050279387285392635',), 1376924043: ('0.050279387285392635',), 1376924032: ('0.050279387285392635',), 1376924014: ('0.050279387285392635',), 1376924000: ('0.050279387285392635',), 1376923986: ('0.050279387285392635',)} args : 1376924051 depend.output_id : 0 input_args_next_step : {1376924053: ('0.050279387285392635',), 1376924052: ('0.050279387285392635',), 1376924051: ('0.050279387285392635',), 1376924048: ()} output_args : {1376924053: ('0.050279387285392635',), 1376924052: ('0.050279387285392635',), 1376924051: ('0.050279387285392635',), 1376924048: ('0.050279387285392635',), 1376924046: ('0.050279387285392635',), 1376924043: ('0.050279387285392635',), 1376924032: ('0.050279387285392635',), 1376924014: ('0.050279387285392635',), 1376924000: ('0.050279387285392635',), 1376923986: ('0.050279387285392635',)} args : 1376924048 depend.output_id : 0 input_args_next_step : {1376924053: ('0.050279387285392635',), 1376924052: ('0.050279387285392635',), 1376924051: ('0.050279387285392635',), 1376924048: ('0.050279387285392635',), 1376924046: ()} output_args : {1376924053: ('0.050279387285392635',), 1376924052: ('0.050279387285392635',), 1376924051: ('0.050279387285392635',), 1376924048: ('0.050279387285392635',), 1376924046: ('0.050279387285392635',), 1376924043: ('0.050279387285392635',), 1376924032: ('0.050279387285392635',), 1376924014: ('0.050279387285392635',), 1376924000: ('0.050279387285392635',), 1376923986: ('0.050279387285392635',)} args : 1376924046 depend.output_id : 0 input_args_next_step : {1376924053: ('0.050279387285392635',), 1376924052: ('0.050279387285392635',), 1376924051: ('0.050279387285392635',), 1376924048: ('0.050279387285392635',), 1376924046: ('0.050279387285392635',), 1376924043: ()} output_args : {1376924053: ('0.050279387285392635',), 1376924052: ('0.050279387285392635',), 1376924051: ('0.050279387285392635',), 1376924048: ('0.050279387285392635',), 1376924046: ('0.050279387285392635',), 1376924043: ('0.050279387285392635',), 1376924032: ('0.050279387285392635',), 1376924014: ('0.050279387285392635',), 1376924000: ('0.050279387285392635',), 1376923986: ('0.050279387285392635',)} args : 1376924043 depend.output_id : 0 input_args_next_step : {1376924053: ('0.050279387285392635',), 1376924052: ('0.050279387285392635',), 1376924051: ('0.050279387285392635',), 1376924048: ('0.050279387285392635',), 1376924046: ('0.050279387285392635',), 1376924043: ('0.050279387285392635',), 1376924032: ()} output_args : {1376924053: ('0.050279387285392635',), 1376924052: ('0.050279387285392635',), 1376924051: ('0.050279387285392635',), 1376924048: ('0.050279387285392635',), 1376924046: ('0.050279387285392635',), 1376924043: ('0.050279387285392635',), 1376924032: ('0.050279387285392635',), 1376924014: ('0.050279387285392635',), 1376924000: ('0.050279387285392635',), 1376923986: ('0.050279387285392635',)} args : 1376924032 depend.output_id : 0 input_args_next_step : {1376924053: ('0.050279387285392635',), 1376924052: ('0.050279387285392635',), 1376924051: ('0.050279387285392635',), 1376924048: ('0.050279387285392635',), 1376924046: ('0.050279387285392635',), 1376924043: ('0.050279387285392635',), 1376924032: ('0.050279387285392635',), 1376924014: ()} output_args : {1376924053: ('0.050279387285392635',), 1376924052: ('0.050279387285392635',), 1376924051: ('0.050279387285392635',), 1376924048: ('0.050279387285392635',), 1376924046: ('0.050279387285392635',), 1376924043: ('0.050279387285392635',), 1376924032: ('0.050279387285392635',), 1376924014: ('0.050279387285392635',), 1376924000: ('0.050279387285392635',), 1376923986: ('0.050279387285392635',)} args : 1376924014 depend.output_id : 0 input_args_next_step : {1376924053: ('0.050279387285392635',), 1376924052: ('0.050279387285392635',), 1376924051: ('0.050279387285392635',), 1376924048: ('0.050279387285392635',), 1376924046: ('0.050279387285392635',), 1376924043: ('0.050279387285392635',), 1376924032: ('0.050279387285392635',), 1376924014: ('0.050279387285392635',), 1376924000: ()} output_args : {1376924053: ('0.050279387285392635',), 1376924052: ('0.050279387285392635',), 1376924051: ('0.050279387285392635',), 1376924048: ('0.050279387285392635',), 1376924046: ('0.050279387285392635',), 1376924043: ('0.050279387285392635',), 1376924032: ('0.050279387285392635',), 1376924014: ('0.050279387285392635',), 1376924000: ('0.050279387285392635',), 1376923986: ('0.050279387285392635',)} args : 1376924000 depend.output_id : 0 input_args_next_step : {1376924053: ('0.050279387285392635',), 1376924052: ('0.050279387285392635',), 1376924051: ('0.050279387285392635',), 1376924048: ('0.050279387285392635',), 1376924046: ('0.050279387285392635',), 1376924043: ('0.050279387285392635',), 1376924032: ('0.050279387285392635',), 1376924014: ('0.050279387285392635',), 1376924000: ('0.050279387285392635',), 1376923986: ()} output_args : {1376924053: ('0.050279387285392635',), 1376924052: ('0.050279387285392635',), 1376924051: ('0.050279387285392635',), 1376924048: ('0.050279387285392635',), 1376924046: ('0.050279387285392635',), 1376924043: ('0.050279387285392635',), 1376924032: ('0.050279387285392635',), 1376924014: ('0.050279387285392635',), 1376924000: ('0.050279387285392635',), 1376923986: ('0.050279387285392635',)} args : 1376923986 depend.output_id : 0 Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 3 : {25960559: [{'environnement': 25960569, 'plastique': 25960570, 'flou': 25960571, 'autre_refus': 25960572, 'papier': 25960573, 'cartonnette': 25960574, 'Carton_gris': 25960575, 'Teint_Dans_La_Masse': 25960576, 'kraft': 25960577, 'metal': 25960578, 'Carton_brun': 25960579, 'mal_croppe': 25960580}]} input_args_next_step : {1376924053: ('0.050279387285392635',), 1376924052: ('0.050279387285392635',), 1376924051: ('0.050279387285392635',), 1376924048: ('0.050279387285392635',), 1376924046: ('0.050279387285392635',), 1376924043: ('0.050279387285392635',), 1376924032: ('0.050279387285392635',), 1376924014: ('0.050279387285392635',), 1376924000: ('0.050279387285392635',), 1376923986: ('0.050279387285392635',), 25960559: ()} output_args : {25960559: [{'environnement': 25960569, 'plastique': 25960570, 'flou': 25960571, 'autre_refus': 25960572, 'papier': 25960573, 'cartonnette': 25960574, 'Carton_gris': 25960575, 'Teint_Dans_La_Masse': 25960576, 'kraft': 25960577, 'metal': 25960578, 'Carton_brun': 25960579, 'mal_croppe': 25960580}]} args : 25960559 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 :11, first value : ('0.050279387285392635',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25960559) 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 (1376924053,1376924052,1376924051,1376924048,1376924046,1376924043,1376924032,1376924014,1376924000,1376923986) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1376923986 begin to download photo : 1376924032 begin to download photo : 1376924048 begin to download photo : 1376924053 download finish for photo 1376924048 begin to download photo : 1376924051 download finish for photo 1376924053 download finish for photo 1376923986 begin to download photo : 1376924000 download finish for photo 1376924032 begin to download photo : 1376924043 download finish for photo 1376924000 begin to download photo : 1376924014 download finish for photo 1376924014 download finish for photo 1376924051 begin to download photo : 1376924052 download finish for photo 1376924052 download finish for photo 1376924043 begin to download photo : 1376924046 download finish for photo 1376924046 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 : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P25960559_14-08-2025_02_14_59.pdf 25960570 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=25960570 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1376920509: '1755129924_3916173_1376916778_22124f779d8b22b579560abd7f144b08_rle_crop_3914166885_0.png'} change filename to text .imagette259605701755130499/ imagette259605701755130499/1755129924_3916173_1376916778_22124f779d8b22b579560abd7f144b08_rle_crop_3914166885_0.png.png imagette259605711755130499/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/14/7fa4ce5f174bd41fa2d22f255f09b6ab_31722249.png imagette259605701755130499 25960571 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=25960571 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette259605711755130499 25960572 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=25960572 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1376921789: '1755130046_3920930_1376917885_1b13326b654c56edbae8ff64c9165521_rle_crop_3914167383_0.png', 1376921791: '1755130046_3920930_1376917182_6653bad1e925247f70bbf84011293e32_rle_crop_3914167395_0.png', 1376924054: '1755130405_3930485_1376922643_1394e6d549175faeb8104bde640b8a18_rle_crop_3914167645_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/14/df707bf07d8111a6d49f75e30465fd7f_82866383.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/14/5f6f71cca6f6ef32a959e69f93faae18_88589165.png change filename to text .imagette259605721755130499/ imagette259605721755130499/1755130046_3920930_1376917182_6653bad1e925247f70bbf84011293e32_rle_crop_3914167395_0.png.png imagette259605721755130499/1755130405_3930485_1376922643_1394e6d549175faeb8104bde640b8a18_rle_crop_3914167645_0.png.png imagette259605721755130499/1755130046_3920930_1376917885_1b13326b654c56edbae8ff64c9165521_rle_crop_3914167383_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/14/d17dd7dcc9e6c0ebf376ecfbbfb156ca_35506285.png imagette259605721755130499 25960574 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=25960574 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1376920459: '1755129924_3916173_1376916806_d56b96fccaab45fe82fe8b1626165e7e_rle_crop_3914166872_0.png', 1376921806: '1755130046_3920930_1376917885_1b13326b654c56edbae8ff64c9165521_rle_crop_3914167382_0.png', 1376921808: '1755130046_3920930_1376917182_6653bad1e925247f70bbf84011293e32_rle_crop_3914167400_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/14/8385c995bca9f5e29c41cc3e8597a45a_45564154.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/14/060290b551c481cb2992f12caf660f2f_38679336.png change filename to text .imagette259605741755130500/ imagette259605741755130500/1755130046_3920930_1376917885_1b13326b654c56edbae8ff64c9165521_rle_crop_3914167382_0.png.png imagette259605741755130500/1755130046_3920930_1376917182_6653bad1e925247f70bbf84011293e32_rle_crop_3914167400_0.png.png imagette259605741755130500/1755129924_3916173_1376916806_d56b96fccaab45fe82fe8b1626165e7e_rle_crop_3914166872_0.png.png imagette259605771755130501/ imagette259605781755130501/ imagette259605801755130501/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/14/622e86386ae128291f447811535d5900_6658530.png imagette259605741755130500 25960577 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=25960577 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette259605771755130501 25960578 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=25960578 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette259605781755130501 25960580 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=25960580 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette259605801755130501 25960575 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=25960575 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1376920428: '1755129924_3916173_1376917238_c9981820fd62843cea16392f958a0b6a_rle_crop_3914166843_0.png', 1376920433: '1755129924_3916173_1376916778_22124f779d8b22b579560abd7f144b08_rle_crop_3914166888_0.png', 1376920438: '1755129924_3916173_1376916778_22124f779d8b22b579560abd7f144b08_rle_crop_3914166884_0.png', 1376921799: '1755130046_3920930_1376917182_6653bad1e925247f70bbf84011293e32_rle_crop_3914167397_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/14/9f53fa19289d9846c384c94e89920b3e_5192541.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/14/1e6507eea4f85d658ee5112b769f854f_15380991.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/14/3144612bc8f62b17565273be894ff322_30957032.png change filename to text .imagette259605751755130501/ imagette259605751755130501/1755129924_3916173_1376916778_22124f779d8b22b579560abd7f144b08_rle_crop_3914166888_0.png.png imagette259605751755130501/1755129924_3916173_1376916778_22124f779d8b22b579560abd7f144b08_rle_crop_3914166884_0.png.png imagette259605751755130501/1755130046_3920930_1376917182_6653bad1e925247f70bbf84011293e32_rle_crop_3914167397_0.png.png imagette259605751755130501/1755129924_3916173_1376917238_c9981820fd62843cea16392f958a0b6a_rle_crop_3914166843_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/14/ef74e80c6ba9a5e8dc283d0d699b293e_10794931.png imagette259605751755130501 25960576 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=25960576 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1376920392: '1755129924_3916173_1376916850_af8272b81223aa0bf4ecf43ce95260b5_rle_crop_3914166861_0.png', 1376920397: '1755129924_3916173_1376916850_af8272b81223aa0bf4ecf43ce95260b5_rle_crop_3914166865_0.png', 1376923927: '1755130287_3927576_1376921470_ceeb8853ac07a1532b07c928f60ea958_rle_crop_3914167618_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/14/45c63d857a7cfada5e8ddc134f5b0cd0_48869036.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/14/f03ecf702cf092d21f23e6e06ab5889a_83785820.png change filename to text .imagette259605761755130501/ imagette259605761755130501/1755129924_3916173_1376916850_af8272b81223aa0bf4ecf43ce95260b5_rle_crop_3914166865_0.png.png imagette259605761755130501/1755129924_3916173_1376916850_af8272b81223aa0bf4ecf43ce95260b5_rle_crop_3914166861_0.png.png imagette259605761755130501/1755130287_3927576_1376921470_ceeb8853ac07a1532b07c928f60ea958_rle_crop_3914167618_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/14/e6424d5ecfda7996b28db84175d35737_54212473.png imagette259605761755130501 25960579 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=25960579 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1376920485: '1755129924_3916173_1376916778_22124f779d8b22b579560abd7f144b08_rle_crop_3914166893_0.png'} change filename to text .imagette259605791755130502/ imagette259605791755130502/1755129924_3916173_1376916778_22124f779d8b22b579560abd7f144b08_rle_crop_3914166893_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/14/84c9b99ffd18c1c828aa3cefe9e9681f_97683188.png imagette259605791755130502 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=25960559 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/25960582,25960583,25960584,25960585,25960586,25960587,25960588,25960589,25960590,25960591,25960592,25960593?tags=environnement,plastique,flou,autre_refus,papier,cartonnette,Carton_gris,Teint_Dans_La_Masse,kraft,metal,Carton_brun,mal_croppe your option no_mail is active, we will not send the real mail to your client args[1376924053] : ('0.050279387285392635',) no score found for photo 1376924053 We are sending mail with results at report@fotonower.com args[1376924052] : ('0.050279387285392635',) no score found for photo 1376924052 We are sending mail with results at report@fotonower.com args[1376924051] : ('0.050279387285392635',) no score found for photo 1376924051 We are sending mail with results at report@fotonower.com args[1376924048] : ('0.050279387285392635',) no score found for photo 1376924048 We are sending mail with results at report@fotonower.com args[1376924046] : ('0.050279387285392635',) no score found for photo 1376924046 We are sending mail with results at report@fotonower.com args[1376924043] : ('0.050279387285392635',) no score found for photo 1376924043 We are sending mail with results at report@fotonower.com args[1376924032] : ('0.050279387285392635',) no score found for photo 1376924032 We are sending mail with results at report@fotonower.com args[1376924014] : ('0.050279387285392635',) no score found for photo 1376924014 We are sending mail with results at report@fotonower.com args[1376924000] : ('0.050279387285392635',) no score found for photo 1376924000 We are sending mail with results at report@fotonower.com args[1376923986] : ('0.050279387285392635',) no score found for photo 1376923986 We are sending mail with results at report@fotonower.com refus_total : 0.050279387285392635 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=25960559 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_P25960559_14-08-2025_02_14_59.pdf results_Auto_P25960559_14-08-2025_02_14_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25960559_14-08-2025_02_14_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','25960559','results_Auto_P25960559_14-08-2025_02_14_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25960559_14-08-2025_02_14_59.pdf','pdf','','0.15','0.050279387285392635') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25960559]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1376924053, 1376924052, 1376924051, 1376924048, 1376924046, 1376924043, 1376924032, 1376924014, 1376924000, 1376923986] map_info['map_portfolio_photo'] : {25960559: [1376924053, 1376924052, 1376924051, 1376924048, 1376924046, 1376924043, 1376924032, 1376924014, 1376924000, 1376923986, 1376923786, 1376922643, 1376921894, 1376921553, 1376921525, 1376921470, 1376920762, 1376920680, 1376920592, 1376919660, 1376919555, 1376919470, 1376919381, 1376918752, 1376918689, 1376918625, 1376918569, 1376917885, 1376917816, 1376917238, 1376917182, 1376916882, 1376916850, 1376916806, 1376916778]} final : False mtd_id 4302 list_pids : [1376924053, 1376924052, 1376924051, 1376924048, 1376924046, 1376924043, 1376924032, 1376924014, 1376924000, 1376923986] 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, '3525766') ('4302', '25960559', '1376924053', None, None, None, None, None, '3525766') ('4302', None, None, None, None, None, None, None, '3525766') ('4302', '25960559', '1376924052', None, None, None, None, None, '3525766') ('4302', None, None, None, None, None, None, None, '3525766') ('4302', '25960559', '1376924051', None, None, None, None, None, '3525766') ('4302', None, None, None, None, None, None, None, '3525766') ('4302', '25960559', '1376924048', None, None, None, None, None, '3525766') ('4302', None, None, None, None, None, None, None, '3525766') ('4302', '25960559', '1376924046', None, None, None, None, None, '3525766') ('4302', None, None, None, None, None, None, None, '3525766') ('4302', '25960559', '1376924043', None, None, None, None, None, '3525766') ('4302', None, None, None, None, None, None, None, '3525766') ('4302', '25960559', '1376924032', None, None, None, None, None, '3525766') ('4302', None, None, None, None, None, None, None, '3525766') ('4302', '25960559', '1376924014', None, None, None, None, None, '3525766') ('4302', None, None, None, None, None, None, None, '3525766') ('4302', '25960559', '1376924000', None, None, None, None, None, '3525766') ('4302', None, None, None, None, None, None, None, '3525766') ('4302', '25960559', '1376923986', None, None, None, None, None, '3525766') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 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', '25960559', '1376924053', None, None, None, None, None, '3525766'), ('4302', '25960559', '1376924052', None, None, None, None, None, '3525766'), ('4302', '25960559', '1376924051', None, None, None, None, None, '3525766'), ('4302', '25960559', '1376924048', None, None, None, None, None, '3525766'), ('4302', '25960559', '1376924046', None, None, None, None, None, '3525766'), ('4302', '25960559', '1376924043', None, None, None, None, None, '3525766'), ('4302', '25960559', '1376924032', None, None, None, None, None, '3525766'), ('4302', '25960559', '1376924014', None, None, None, None, None, '3525766'), ('4302', '25960559', '1376924000', None, None, None, None, None, '3525766'), ('4302', '25960559', '1376923986', None, None, None, None, None, '3525766')] time used for this insertion : 0.016869544982910156 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.042536020278931 time spend to save output : 0.017080307006835938 total time spend for step 4 : 4.059616327285767 step5:split_time_score Thu Aug 14 02:15:03 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 : ['25960559'] 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 : [('25960559',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25960559) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1376924053: {'path': 'temp/1755130499_1447613_1376924053_8a551ffadf0df00e54636d788f4a113c.jpg', 'extension': 'jpg'}, 1376923986: {'path': 'temp/1755130499_1447613_1376923986_fbe612fcd7b2eb0f47c51280bfebd2ea.jpg', 'extension': 'jpg'}, 1376924000: {'path': 'temp/1755130499_1447613_1376924000_3c7fda306dd16696ef824cfd22149217.jpg', 'extension': 'jpg'}, 1376924014: {'path': 'temp/1755130499_1447613_1376924014_f1774620d77e522cd98e4082169e9a64.jpg', 'extension': 'jpg'}, 1376924048: {'path': 'temp/1755130499_1447613_1376924048_657dbd956e51aaaddf56deeb15a9a91b.jpg', 'extension': 'jpg'}, 1376924051: {'path': 'temp/1755130499_1447613_1376924051_ef509fff578666f3af3a3a1d64f63fa1.jpg', 'extension': 'jpg'}, 1376924052: {'path': 'temp/1755130499_1447613_1376924052_dee44b38042dfc1b05a1300641672628.jpg', 'extension': 'jpg'}, 1376924032: {'path': 'temp/1755130499_1447613_1376924032_16e2d6ebeec7819f8359f1334379267c.jpg', 'extension': 'jpg'}, 1376924043: {'path': 'temp/1755130499_1447613_1376924043_3b1c06d5632a3a3f8b31f132871fefae.jpg', 'extension': 'jpg'}, 1376924046: {'path': 'temp/1755130499_1447613_1376924046_b09cb485dc01f966cf2e60cf7ad147a3.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 = 25960559; (('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 = 25960559 group by h (('02', 35),) 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=25960559 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 (25960559) 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 (25960559) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 14082025 25960559 Nombre de photos uploadées : 35 / 23040 (0%) 14082025 25960559 Nombre de photos taguées (types de déchets): 0 / 35 (0%) 14082025 25960559 Nombre de photos taguées (volume) : 0 / 35 (0%) [{'photo_id': 1376916882, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/14/11c28a734f7b46ac8f05bc672837b488.jpg', 'username': None, 'uploaded_at': 1755129668, 'text': 'image_14082025_02_00_14_010202m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1376916850, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/14/af8272b81223aa0bf4ecf43ce95260b5.jpg', 'username': None, 'uploaded_at': 1755129668, 'text': 'image_14082025_02_00_24_010138m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1376916806, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/14/d56b96fccaab45fe82fe8b1626165e7e.jpg', 'username': None, 'uploaded_at': 1755129668, 'text': 'image_14082025_02_00_34_010135m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1376916778, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/14/22124f779d8b22b579560abd7f144b08.jpg', 'username': None, 'uploaded_at': 1755129668, 'text': 'image_14082025_02_00_45_010137m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 5.7220458984375e-06 ??????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0035114288330078125 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 25960559, '2025-08-14' ) 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-14' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2114655,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.21229863166809082 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= 2114655 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2114655, 'dashboard_run_id': 2122411, 'mtr_portfolio_id': 25957846, 'dashboard_result_id': 13967276, '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_P25957846_14-08-2025_00_18_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25957848, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25957849, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25957850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25957851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25957852, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25957853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25957854, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25957855, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25957856, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25957857, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25957858, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25957859, 'pht': 3726}}"}, {'dashboat_entry_day': 2114655, 'dashboard_run_id': 2122411, 'mtr_portfolio_id': 25958208, 'dashboard_result_id': 13967277, '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_P25958208_14-08-2025_00_32_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25958216, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25958217, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25958218, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25958219, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25958220, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25958221, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25958222, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25958223, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25958224, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25958225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25958226, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25958227, 'pht': 3726}}"}, {'dashboat_entry_day': 2114655, 'dashboard_run_id': 2122411, 'mtr_portfolio_id': 25958481, 'dashboard_result_id': 13967278, '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_P25958481_14-08-2025_00_48_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25958506, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25958507, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25958508, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25958509, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25958510, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25958511, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25958512, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25958513, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25958514, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25958515, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25958516, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25958517, 'pht': 3726}}"}, {'dashboat_entry_day': 2114655, 'dashboard_run_id': 2122411, 'mtr_portfolio_id': 25958896, 'dashboard_result_id': 13967279, '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_P25958896_14-08-2025_01_14_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25958930, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25958931, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25958932, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25958933, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25958934, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25958935, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25958936, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25958937, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25958938, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25958939, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25958940, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25958941, 'pht': 3726}}"}, {'dashboat_entry_day': 2114655, 'dashboard_run_id': 2122411, 'mtr_portfolio_id': 25960055, 'dashboard_result_id': 13967280, '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_P25960055_14-08-2025_01_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25960064, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25960065, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25960066, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25960067, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25960068, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25960069, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25960070, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25960071, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25960072, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25960073, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25960074, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25960075, 'pht': 3726}}"}, {'dashboat_entry_day': 2114655, 'dashboard_run_id': 2122411, 'mtr_portfolio_id': 25960403, 'dashboard_result_id': 13967281, '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_P25960403_14-08-2025_02_03_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25960407, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25960408, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25960409, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25960410, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25960411, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25960412, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25960413, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25960414, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25960415, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25960416, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25960417, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25960418, 'pht': 3726}}"}, {'dashboat_entry_day': 2114655, 'dashboard_run_id': 2122411, 'mtr_portfolio_id': 25960559, 'dashboard_result_id': 13967282, '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_P25960559_14-08-2025_02_13_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25960569, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25960570, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25960571, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25960572, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25960573, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25960574, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25960575, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25960576, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25960577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25960578, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25960579, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25960580, '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 = 25957846 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': 3524946, 'mtr_portfolio_id': 25957846, 'created_at': datetime.datetime(2025, 8, 14, 0, 18, 58), 'result': '0.04804361889320135', 'result_long': None, 'result_double': None}] Qualite : 0.04804361889320135 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25957846 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25957846_14-08-2025_00_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25957846 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_P25957846_14-08-2025_00_18_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25957848, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25957849, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25957850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25957851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25957852, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25957853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25957854, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25957855, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25957856, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25957857, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25957858, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25957859, 'pht': 3726}}" where mtr_portfolio_id = 25957846 and dashboard_run_id = 2122411 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`=25957846 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13967276, 0.04804361889320135, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25957846_14-08-2025_00_18_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25957848, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25957849, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25957850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25957851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25957852, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25957853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25957854, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25957855, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25957856, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25957857, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25957858, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25957859, '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 = 25958208 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': 3525008, 'mtr_portfolio_id': 25958208, 'created_at': datetime.datetime(2025, 8, 14, 0, 32, 56), 'result': '0.07947868953469915', 'result_long': None, 'result_double': None}] Qualite : 0.07947868953469915 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25958208 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25958208_14-08-2025_00_32_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25958208 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_P25958208_14-08-2025_00_32_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25958216, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25958217, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25958218, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25958219, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25958220, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25958221, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25958222, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25958223, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25958224, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25958225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25958226, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25958227, 'pht': 3726}}" where mtr_portfolio_id = 25958208 and dashboard_run_id = 2122411 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`=25958208 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13967277, 0.07947868953469915, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25958208_14-08-2025_00_32_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25958216, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25958217, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25958218, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25958219, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25958220, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25958221, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25958222, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25958223, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25958224, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25958225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25958226, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25958227, '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 = 25958481 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': 3525104, 'mtr_portfolio_id': 25958481, 'created_at': datetime.datetime(2025, 8, 14, 0, 48, 58), 'result': '0.04998134130984344', 'result_long': None, 'result_double': None}] Qualite : 0.04998134130984344 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25958481 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25958481_14-08-2025_00_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25958481 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_P25958481_14-08-2025_00_48_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25958506, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25958507, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25958508, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25958509, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25958510, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25958511, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25958512, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25958513, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25958514, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25958515, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25958516, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25958517, 'pht': 3726}}" where mtr_portfolio_id = 25958481 and dashboard_run_id = 2122411 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`=25958481 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13967278, 0.04998134130984344, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25958481_14-08-2025_00_48_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25958506, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25958507, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25958508, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25958509, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25958510, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25958511, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25958512, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25958513, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25958514, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25958515, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25958516, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25958517, '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 = 25958896 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': 3525208, 'mtr_portfolio_id': 25958896, 'created_at': datetime.datetime(2025, 8, 14, 1, 14, 59), 'result': '0.054304353837374614', 'result_long': None, 'result_double': None}] Qualite : 0.054304353837374614 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25958896 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25958896_14-08-2025_01_14_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25958896 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_P25958896_14-08-2025_01_14_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25958930, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25958931, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25958932, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25958933, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25958934, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25958935, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25958936, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25958937, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25958938, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25958939, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25958940, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25958941, 'pht': 3726}}" where mtr_portfolio_id = 25958896 and dashboard_run_id = 2122411 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`=25958896 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13967279, 0.054304353837374614, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25958896_14-08-2025_01_14_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25958930, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25958931, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25958932, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25958933, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25958934, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25958935, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25958936, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25958937, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25958938, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25958939, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25958940, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25958941, '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 = 25960055 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': 3525583, 'mtr_portfolio_id': 25960055, 'created_at': datetime.datetime(2025, 8, 14, 1, 48, 59), 'result': '0.05956646381909155', 'result_long': None, 'result_double': None}] Qualite : 0.05956646381909155 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25960055 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25960055_14-08-2025_01_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25960055 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_P25960055_14-08-2025_01_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25960064, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25960065, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25960066, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25960067, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25960068, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25960069, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25960070, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25960071, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25960072, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25960073, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25960074, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25960075, 'pht': 3726}}" where mtr_portfolio_id = 25960055 and dashboard_run_id = 2122411 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`=25960055 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13967280, 0.05956646381909155, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25960055_14-08-2025_01_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25960064, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25960065, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25960066, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25960067, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25960068, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25960069, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25960070, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25960071, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25960072, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25960073, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25960074, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25960075, '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 = 25960403 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': 3525688, 'mtr_portfolio_id': 25960403, 'created_at': datetime.datetime(2025, 8, 14, 2, 3), 'result': '0.03853438581507154', 'result_long': None, 'result_double': None}] Qualite : 0.03853438581507154 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25960403 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25960403_14-08-2025_02_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25960403 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_P25960403_14-08-2025_02_03_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25960407, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25960408, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25960409, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25960410, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25960411, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25960412, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25960413, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25960414, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25960415, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25960416, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25960417, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25960418, 'pht': 3726}}" where mtr_portfolio_id = 25960403 and dashboard_run_id = 2122411 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`=25960403 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13967281, 0.03853438581507154, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25960403_14-08-2025_02_03_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25960407, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25960408, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25960409, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25960410, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25960411, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25960412, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25960413, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25960414, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25960415, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25960416, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25960417, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25960418, '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 = 25960559 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': 3525766, 'mtr_portfolio_id': 25960559, 'created_at': datetime.datetime(2025, 8, 14, 2, 14, 58), 'result': '0.050279387285392635', 'result_long': None, 'result_double': None}] Qualite : 0.050279387285392635 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25960559 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25960559_14-08-2025_02_14_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25960559 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_P25960559_14-08-2025_02_14_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25960569, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25960570, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25960571, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25960572, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25960573, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25960574, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25960575, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25960576, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25960577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25960578, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25960579, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25960580, 'pht': 3726}}" where mtr_portfolio_id = 25960559 and dashboard_run_id = 2122411 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`=25960559 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13967282, 0.050279387285392635, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25960559_14-08-2025_02_14_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25960569, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25960570, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25960571, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25960572, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25960573, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25960574, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25960575, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25960576, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25960577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25960578, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25960579, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25960580, '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 (25957846,25958208,25958481,25958896,25960055,25960403,25960559) result : ((1376905300,), (1376905334,), (1376905363,), (1376905889,), (1376905892,), (1376905895,), (1376906072,), (1376906125,), (1376906188,), (1376906745,), (1376906785,), (1376906817,), (1376906856,), (1376907193,), (1376907222,), (1376907262,), (1376907290,), (1376907583,), (1376907638,), (1376907671,), (1376907713,), (1376907742,), (1376907999,), (1376908029,), (1376908060,), (1376908102,), (1376908158,), (1376908661,), (1376908692,), (1376908721,), (1376909206,), (1376909222,), (1376909225,), (1376909228,), (1376909230,), (1376909238,), (1376909336,), (1376909368,), (1376909400,), (1376909435,), (1376909456,), (1376909458,), (1376909512,), (1376909531,), (1376909533,), (1376909540,), (1376909541,), (1376909542,), (1376909543,), (1376909544,), (1376909545,), (1376909550,), (1376909552,), (1376909554,), (1376909557,), (1376909558,), (1376909563,), (1376909566,), (1376909575,), (1376909578,), (1376909588,), (1376909591,), (1376909592,), (1376909614,), (1376909602,), (1376909605,), (1376909607,), (1376909611,), (1376909638,), (1376909651,), (1376909661,), (1376909662,), (1376909663,), (1376909676,), (1376909679,), (1376909682,), (1376909685,), (1376909697,), (1376909699,), (1376909701,), (1376909727,), (1376909728,), (1376909729,), (1376909730,), (1376909732,), (1376909739,), (1376909741,), (1376909743,), (1376909745,), (1376909751,), (1376909752,), (1376909753,), (1376909755,), (1376909758,), (1376909761,), (1376909767,), (1376909769,), (1376909771,), (1376909774,), (1376909777,), (1376909790,), (1376909793,), (1376909796,), (1376909799,), (1376909800,), (1376909802,), (1376909817,), (1376909823,), (1376909841,), (1376909843,), (1376909853,), (1376909854,), (1376909855,), (1376909857,), (1376909859,), (1376909869,), (1376909870,), (1376909872,), (1376909875,), (1376909892,), (1376909894,), (1376909916,), (1376909910,), (1376909912,), (1376909914,), (1376909942,), (1376909948,), (1376909949,), (1376909951,), (1376909969,), (1376909971,), (1376909973,), (1376909975,), (1376909977,), (1376909979,), (1376909984,), (1376909985,), (1376909986,), (1376909997,), (1376909999,), (1376910001,), (1376910003,), (1376910024,), (1376910029,), (1376910030,), (1376910032,), (1376910036,), (1376910038,), (1376910056,), (1376910058,), (1376910060,), (1376910077,), (1376910079,), (1376910081,), (1376910083,), (1376910085,), (1376910091,), (1376910093,), (1376910095,), (1376910097,), (1376910112,), (1376910116,), (1376910118,), (1376910121,), (1376910124,), (1376910131,), (1376910133,), (1376910160,), (1376910169,), (1376910178,), (1376910180,), (1376910183,), (1376910191,), (1376910194,), (1376910196,), (1376910198,), (1376910200,), (1376910205,), (1376910206,), (1376910207,), (1376910209,), (1376910211,), (1376910221,), (1376910223,), (1376910224,), (1376910252,), (1376910239,), (1376910241,), (1376910243,), (1376910246,), (1376910249,), (1376910287,), (1376910289,), (1376910292,), (1376910294,), (1376910313,), (1376910315,), (1376910317,), (1376910318,), (1376910320,), (1376910332,), (1376910333,), (1376910334,), (1376910338,), (1376910339,), (1376910341,), (1376910348,), (1376910350,), (1376910352,), (1376910363,), (1376910364,), (1376910365,), (1376910367,), (1376910370,), (1376910387,), (1376910389,), (1376910391,), (1376910393,), (1376910395,), (1376910397,), (1376910409,), (1376910412,), (1376910414,), (1376910428,), (1376910430,), (1376910432,), (1376910434,), (1376910436,), (1376910438,), (1376910449,), (1376910450,), (1376910451,), (1376910454,), (1376910457,), (1376910467,), (1376910469,), (1376910472,), (1376910475,), (1376910483,), (1376910485,), (1376910487,), (1376910488,), (1376910489,), (1376910490,), (1376910497,), (1376910498,), (1376910499,), (1376910501,), (1376910512,), (1376910514,), (1376910516,), (1376910518,), (1376915097,), (1376915416,), (1376915421,), (1376915423,), (1376915425,), (1376915444,), (1376915445,), (1376915447,), (1376915448,), (1376915449,), (1376915455,), (1376915456,), (1376915471,), (1376915473,), (1376915475,), (1376915477,), (1376915479,), (1376915481,), (1376915490,), (1376915492,), (1376915495,), (1376915496,), (1376915497,), (1376915512,), (1376915514,), (1376915515,), (1376915517,), (1376915520,), (1376915530,), (1376915532,), (1376915534,), (1376915542,), (1376915543,), (1376915550,), (1376915561,), (1376915562,), (1376915563,), (1376915565,), (1376915574,), (1376915585,), (1376915588,), (1376915589,), (1376915591,), (1376915616,), (1376915617,), (1376915618,), (1376915619,), (1376915633,), (1376915635,), (1376915637,), (1376915639,), (1376915641,), (1376915642,), (1376915645,), (1376915646,), (1376915647,), (1376915649,), (1376915651,), (1376915653,), (1376915662,), (1376915663,), (1376915665,), (1376915667,), (1376915669,), (1376915670,), (1376915676,), (1376915679,), (1376915682,), (1376915684,), (1376915687,), (1376915688,), (1376915692,), (1376915694,), (1376915696,), (1376915698,), (1376915700,), (1376915702,), (1376915703,), (1376915704,), (1376915707,), (1376915711,), (1376915714,), (1376915740,), (1376915739,), (1376915751,), (1376915752,), (1376915753,), (1376915756,), (1376915759,), (1376915762,), (1376915769,), (1376915770,), (1376915771,), (1376915772,), (1376915775,), (1376915805,), (1376915807,), (1376915809,), (1376915836,), (1376915838,), (1376915839,), (1376915842,), (1376915844,), (1376915846,), (1376915853,), (1376915855,), (1376915857,), (1376915859,), (1376915879,), (1376915881,), (1376915883,), (1376915885,), (1376915894,), (1376915895,), (1376915896,), (1376915899,), (1376915903,), (1376915908,), (1376915909,), (1376915910,), (1376915912,), (1376915923,), (1376915925,), (1376915928,), (1376915933,), (1376915934,), (1376915935,), (1376915937,), (1376915940,), (1376916186,), (1376916219,), (1376916245,), (1376916276,), (1376916915,), (1376916778,), (1376916806,), (1376916850,), (1376916882,), (1376917182,), (1376917238,), (1376917816,), (1376917885,), (1376918569,), (1376918625,), (1376918689,), (1376918752,), (1376919381,), (1376919470,), (1376919555,), (1376919660,), (1376920592,), (1376920680,), (1376920762,), (1376921470,), (1376921525,), (1376921553,), (1376921894,), (1376922643,), (1376923786,), (1376923986,), (1376924000,), (1376924014,), (1376924032,), (1376924043,), (1376924046,), (1376924048,), (1376924051,), (1376924052,), (1376924053,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'14082025': {'nb_upload': 35, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25960559]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1376924053, 1376924052, 1376924051, 1376924048, 1376924046, 1376924043, 1376924032, 1376924014, 1376924000, 1376923986] map_info['map_portfolio_photo'] : {25960559: [1376924053, 1376924052, 1376924051, 1376924048, 1376924046, 1376924043, 1376924032, 1376924014, 1376924000, 1376923986, 1376923786, 1376922643, 1376921894, 1376921553, 1376921525, 1376921470, 1376920762, 1376920680, 1376920592, 1376919660, 1376919555, 1376919470, 1376919381, 1376918752, 1376918689, 1376918625, 1376918569, 1376917885, 1376917816, 1376917238, 1376917182, 1376916882, 1376916850, 1376916806, 1376916778]} final : True mtd_id 4302 list_pids : [1376924053, 1376924052, 1376924051, 1376924048, 1376924046, 1376924043, 1376924032, 1376924014, 1376924000, 1376923986] Looping around the photos to save general results len do output : 1 /25960559Didn'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, '3525766') ('4302', '25960559', '1376924053', None, None, None, None, None, '3525766') ('4302', None, None, None, None, None, None, None, '3525766') ('4302', '25960559', '1376924052', None, None, None, None, None, '3525766') ('4302', None, None, None, None, None, None, None, '3525766') ('4302', '25960559', '1376924051', None, None, None, None, None, '3525766') ('4302', None, None, None, None, None, None, None, '3525766') ('4302', '25960559', '1376924048', None, None, None, None, None, '3525766') ('4302', None, None, None, None, None, None, None, '3525766') ('4302', '25960559', '1376924046', None, None, None, None, None, '3525766') ('4302', None, None, None, None, None, None, None, '3525766') ('4302', '25960559', '1376924043', None, None, None, None, None, '3525766') ('4302', None, None, None, None, None, None, None, '3525766') ('4302', '25960559', '1376924032', None, None, None, None, None, '3525766') ('4302', None, None, None, None, None, None, None, '3525766') ('4302', '25960559', '1376924014', None, None, None, None, None, '3525766') ('4302', None, None, None, None, None, None, None, '3525766') ('4302', '25960559', '1376924000', None, None, None, None, None, '3525766') ('4302', None, None, None, None, None, None, None, '3525766') ('4302', '25960559', '1376923986', None, None, None, None, None, '3525766') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '25960559', 'None', None, None, None, None, '3525766'), ('4302', '25960559', '1376924053', None, None, None, None, None, '3525766'), ('4302', '25960559', '1376924052', None, None, None, None, None, '3525766'), ('4302', '25960559', '1376924051', None, None, None, None, None, '3525766'), ('4302', '25960559', '1376924048', None, None, None, None, None, '3525766'), ('4302', '25960559', '1376924046', None, None, None, None, None, '3525766'), ('4302', '25960559', '1376924043', None, None, None, None, None, '3525766'), ('4302', '25960559', '1376924032', None, None, None, None, None, '3525766'), ('4302', '25960559', '1376924014', None, None, None, None, None, '3525766'), ('4302', '25960559', '1376924000', None, None, None, None, None, '3525766'), ('4302', '25960559', '1376923986', None, None, None, None, None, '3525766')] time used for this insertion : 0.01672506332397461 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.6951136589050293 time spend to save output : 0.016945838928222656 total time spend for step 5 : 0.712059497833252 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 (3525766) 2.08user 2.58system 0:08.03elapsed 58%CPU (0avgtext+0avgdata 162476maxresident)k 256inputs+8344outputs (3major+64207minor)pagefaults 0swaps